[02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:40]accept exits with 7 [03:10:40]New connection [03:10:40]New thread 3067055460 created [03:10:40]Thread 3066912100 joined [03:10:40]Waiting for new connection... [03:10:40] Sock 7.Parse request [03:10:40]Sock 7.Check first char [03:10:40]Sock 7.First char is OK [03:10:40]request: POST /json_proto HTTP/1.0 [03:10:40]Method: POST [03:10:40]URL: /json_proto [03:10:40]Method is POST - this is cgi request [03:10:40]url: /json_proto [03:10:40]query_string will be loaded in cgi processing [03:10:40]execute_cgi json_proto POST (null) [03:10:40]execute_cgi path=json_proto method=POST [03:10:40]POST find Content-Length [03:10:40]Host: 172.17.60.69:8080 [03:10:40]Content-Length: 1183 [03:10:40]Content-Type: application/json [03:10:40] [03:10:40]POST finish read [03:10:40]Found Content-Length = 1183 [03:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73486", "tax_sys" : 0, "items" : [ { "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 41.00, "quantity" : 2.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46034595", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C Chupa \u043D/\u043F\u0430\u043B \u0444\u0440.\u043C\u0438\u043A\u0441,\u0441\u043E\u043A \u043A\u043E\u043B\u044B 12", "price" : 25.00, "quantity" : 2.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 132.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:10:40]execute_script... [03:10: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)73486", "tax_sys" : 0, "items" : [ { "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 41.00, "quantity" : 2.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46034595", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C Chupa \u043D/\u043F\u0430\u043B \u0444\u0440.\u043C\u0438\u043A\u0441,\u0441\u043E\u043A \u043A\u043E\u043B\u044B 12", "price" : 25.00, "quantity" : 2.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 132.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:10:40]POST & json_proto [03:10:40]process_json_proto [03:10:40]json parsed OK: [03:10:40]protocol is kg_v1.0 [03:10:40]action value=close_receipt [03:10:40]process_action close_receipt [03:10:40]cmd_close_receipt [03:10:40]MH_GetDate [03:10:40]Write to MH i2c: F0 00 00 44 03 36 [03:10:40]Write i2c OK [03:10:40]MH_I2C_Read... [03:10:40]Read from MH i2c: F0 [03:10:40]MH_I2C_Read... [03:10:40]Read from MH i2c: F0 09 00 [03:10:40]MH_I2C_Read... [03:10:40]Read from MH i2c: F0 09 00 44 03 00 B1 85 5E 66 6A 96 4A 66 E9 [03:10:40]GetLastDocTimeStamp 1717465067 [03:10:40]current date 1717470641 [03:10:40]FM_GetShiftState [03:10:40]SAM_PROTO_GetShiftState [03:10:40]wFMCommunicate request_size=4 [03:10:40]MH_SAM_APDU [03:10:40]CAPDU: 80 13 01 00 [03:10:40]Write to MH i2c: E2 08 00 45 03 80 13 01 00 00 00 00 00 C5 [03:10:40]Write i2c OK [03:10:40]MH_I2C_Read... [03:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:40]Read from MH i2c: E2 [03:10:40]MH_I2C_Read... [03:10:40]Read from MH i2c: E2 0E 00 [03:10:40]MH_I2C_Read... [03:10:40]Read from MH i2c: E2 0E 00 45 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 65 [03:10:40]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [03:10:40]wFMCommunicate OK [03:10:40]SAM_PROTO_GetShiftState done [03:10:40]FM_GetShiftState done [03:10:40]opened in 1717459574 [03:10:40]opened+sec_in_day 1717545974 [03:10:40]quantity*price = 8200 [03:10:40]sum+1 = 8201 [03:10:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46034595 Карамель Chupa н/пал фр.микс,сок колы 12 2.000 * 25.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 132.00 НСП 1% : 1.17 НДС 12% : 14.02 Наличными: 0.00 Безнал.: 132.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 4 04.06.2024 03:10 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 63919 ФПД: 253810510119684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T031041&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63919&fm=253810510119684&tin=02508201610067®Number=0000000000092737&sum=13200 0 [03:10:42]StoreToDocumentArchive [03:10:42]shift 374 fd 63919 [03:10:42]save to /storage/0374/doc_00063919 [03:10:42]save last doc name /storage/0374/doc_00063919 to /storage/kkm_last_doc_name [03:10:42]save OK [03:10:42]Clear old archive folders... [03:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=417 [03:10:42]tlvbuf is 01290A10 [03:10:42]SAM_PROTO_ClearQueue [03:10:42]wFMCommunicate request_size=4 [03:10:42]MH_SAM_APDU [03:10:42]CAPDU: 80 09 00 00 [03:10:42]Write to MH i2c: E2 08 00 52 03 80 09 00 00 00 00 00 00 C7 [03:10:42]Write i2c OK [03:10:42]MH_I2C_Read... [03:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:10:42]Read from MH i2c: E2 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 03 00 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [03:10:42]RAPDU: 90 00 [03:10:42]wFMCommunicate OK [03:10:42]SAM_PROTO_ClearQueue done [03:10:42]KKMCreateOFDPacket [03:10:42]OFDProtocolAddRootSTLVToBuf [03:10:42]FM_MakeSignedData [03:10:42]FM_MakeSignedData [03:10:42]SAM_PROTO_SignData [03:10:42]wFMCommunicate request_size=4 [03:10:42]MH_SAM_APDU [03:10:42]CAPDU: 80 0D 01 02 [03:10:42]Write to MH i2c: E2 08 00 53 03 80 0D 01 02 00 00 00 00 CF [03:10:42]Write i2c OK [03:10:42]MH_I2C_Read... [03:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:10:42]Read from MH i2c: E2 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 03 00 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [03:10:42]RAPDU: 90 00 [03:10:42]wFMCommunicate OK [03:10:42]wFMCommunicate request_size=255 [03:10:42]MH_SAM_APDU [03:10:42]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [03:10:42]Write to MH i2c: E2 02 01 54 03 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 5C [03:10:42]Write i2c OK [03:10:42]MH_I2C_Read... [03:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:42]Read from MH i2c: E2 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 03 00 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [03:10:42]RAPDU: 90 00 [03:10:42]wFMCommunicate OK [03:10:42]wFMCommunicate request_size=176 [03:10:42]MH_SAM_APDU [03:10:42]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B1 85 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E6 D6 DD 4B C3 04 [03:10:42]Write to MH i2c: E2 B3 00 55 03 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B1 85 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E6 D6 DD 4B C3 04 00 00 71 [03:10:42]Write i2c OK [03:10:42]MH_I2C_Read... [03:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:42]Read from MH i2c: E2 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 03 00 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [03:10:42]RAPDU: 90 00 [03:10:42]wFMCommunicate OK [03:10:42]wFMCommunicate request_size=4 [03:10:42]MH_SAM_APDU [03:10:42]CAPDU: 80 0D 03 02 [03:10:42]Write to MH i2c: E2 08 00 56 03 80 0D 03 02 00 00 00 00 D4 [03:10:42]Write i2c OK [03:10:42]MH_I2C_Read... [03:10:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:10:42]Read from MH i2c: E2 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 0B 00 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 0B 00 56 03 00 32 1A 0D 4F 21 F9 B7 C0 90 00 0E [03:10:42]RAPDU: 32 1A 0D 4F 21 F9 B7 C0 90 00 [03:10:42]wFMCommunicate OK [03:10:42]SAM_PROTO_SignData done [03:10:42]FM_MakeSignedData done [03:10:42]CreateOFDProtocolMessage [03:10:42]wFMCommunicate request_size=4 [03:10:42]MH_SAM_APDU [03:10:42]CAPDU: 80 11 00 00 [03:10:42]Write to MH i2c: E2 08 00 57 03 80 11 00 00 00 00 00 00 D4 [03:10:42]Write i2c OK [03:10:42]MH_I2C_Read... [03:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:10:42]Read from MH i2c: E2 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 17 00 [03:10:42]MH_I2C_Read... [03:10:42]Read from MH i2c: E2 17 00 57 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 26 [03:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:10:42]wFMCommunicate OK [03:10:42]CreateOFDProtocolMessage done [03:10:42]OFDSenderStorePacket 63919 [03:10:42]StoreOFDPacket docnum=63919 [03:10: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 B5 01 00 00 34 6A AD 01 7E 0B 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B1 85 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E6 D6 DD 4B C3 04 32 1A 0D 4F 21 F9 B7 C0 [03:10:42]CheckFolder [03:10:42]dirname=/storage/ofd_packets [03:10:42]CheckFolder done [03:10:42]ProducePacketName [03:10:42]name=ofd_packets/00063919 [03:10:42]NVStorageSaveData ofd_packets/00063919 [03:10:42]File name is /storage/ofd_packets/00063919 [03:10:42]Write 467 bytes [03:10:42]NVStorageSaveData done [03:10:43]OFDSenderStorePacket done [03:10:43]KKMCreateOFDPacket done [03:10:43]NVStorageSaveData kkm_last_timestamp [03:10:43]File name is /storage/kkm_last_timestamp [03:10:43]Write 4 bytes [03:10:43]NVStorageSaveData done [03:10:43]ExternCall_PrintAddStr [03:10:43]wPrintStart [03:10:43]Write to MH i2c: 01 00 00 58 03 5B [03:10:43]OFD Sender: Processing packet 63919 [packets to send 14, broken 13] [03:10:43]ProducePacketName [03:10:43]name=ofd_packets/00063919 [03:10:43]OFD Sender: To server: pG, [03:10:43]CommunicateWithHost lk.salyk.kg:30040 [03:10:43]ConnectInit lk.salyk.kg [03:10:43]Write i2c OK [03:10:43]MH_I2C_Read... [03:10:43]Read from MH i2c: 01 [03:10:43]MH_I2C_Read... [03:10:43]Read from MH i2c: 01 07 00 [03:10:43]MH_I2C_Read... [03:10:43]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 FF 0F 70 [03:10:43]RasterBufferAndPrint [03:10:43]line Счет N : (3)73486 [03:10:43]line ИНН: 02508201610067 [03:10:43]line Контрольно-Кассовый Чек [03:10:43]line ПРОДАЖА [03:10:43]line Товар: 4607010740733 [03:10:43]line Чипсы Чипсоны шашлык 40г [03:10:43]line 2.000 * 41.00 [03:10:43]line = 82.00 [03:10:43]line НДС 12% НСП 1% [03:10:43]line > о реализуемом товаре [03:10:43]line Товар: 46034595 [03:10:43]line Карамель Chupa н/пал фр.микс,сок колы 12 [03:10:43]line 2.000 * 25.00 [03:10:43]line = 50.00 [03:10:43]line НДС 12% НСП 1% [03:10:43]line > о реализуемом товаре [03:10:43]line ИТОГО: 132.00 [03:10:43]line НСП 1% : 1.17 [03:10:43]line НДС 12% : 14.02 [03:10:43]line Наличными: 0.00 [03:10:43]line Безнал.: 132.00 [03:10:43]line Место: АЗС № 117 "Партнер Нефть" [03:10:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:10:43]line СНО: Общий режим [03:10:43]line Чек 4 04.06.2024 03:10 [03:10:43]line Смена: 374 ФФД: 1.0 [03:10:43]line ЗНМ: 0300000031 [03:10:43]line РНМ: 0000000000092737 [03:10:43]line Версия ККМ: 001 [03:10:43]line Платежная система: Бакай Банк [03:10:43]line ФМ: 0000000000875074 [03:10:43]line ФД: 63919 [03:10:43]line ФПД: 253810510119684 [03:10:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T031041&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63919&fm=253810510119684&tin=02508201610067®Number=0000000000092737&sum=13200 [03:10:43]line 0 [03:10:43]written 0, free lines is 4095 [03:10:43]Connected sock=10 [03:10: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 B5 01 00 00 34 6A AD 01 7E 0B 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 33 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B1 85 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E6 D6 DD 4B C3 04 32 1A 0D 4F 21 F9 B7 C0 [03:10: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 39 35 47 00 C7 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 AF F9 00 00 F4 03 04 00 81 31 5E 66 B6 04 01 00 00 01 B4 BD EB 61 4F 4B E2 [03:10:43]CommunicateWithHost err = 0 [03:10:43]CheckOFDResponse [03:10:43]1017 (14) - 77093643461234 [03:10:43]1041 (16) - 0000000000875074 [03:10:43]1040 (4) - 63919 [03:10:43]1012 (4) - 03.06.2024 21:11 [03:10:43]1206 (1) - 0 [03:10:43]OFD Sender: Remove packet 63919 [03:10:43]ProducePacketName [03:10:43]name=ofd_packets/00063919 [03:10:43]NVStorageDeleteData [03:10:43]Write to MH i2c: 01 00 00 89 03 8C [03:10:43]Write i2c OK [03:10:43]MH_I2C_Read... [03:10:43]Read from MH i2c: 01 [03:10:43]MH_I2C_Read... [03:10:43]Read from MH i2c: 01 07 00 [03:10:43]MH_I2C_Read... [03:10:43]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 4F 0C EE [03:10:43]RasterBufferAndPrint [03:10:43]line [03:10:43]line [03:10:43]line [03:10:43]line [03:10:43]line [03:10:43]written 0, free lines is 3157 [03:10:43]MH_Cut [03:10:43]Write to MH i2c: D1 01 00 90 03 01 65 [03:10:43]Write i2c OK [03:10:43]MH_I2C_Read... [03:10:43]Read from MH i2c: D1 [03:10:43]MH_I2C_Read... [03:10:43]Read from MH i2c: D1 01 00 [03:10:43]MH_I2C_Read... [03:10:43]Read from MH i2c: D1 01 00 90 03 00 64 [03:10:43]Write to MH i2c: 01 00 00 91 03 94 [03:10:43]Write i2c OK [03:10:43]MH_I2C_Read... [03:10:43]OFD Sender: No OFD packet to send [03:10:44]*** Cut start [03:10:44]*** Partial cut [03:10:44]*** CUTSNS_PIN = 1 [03:10:44]*** CUTSNS_PIN = 0 [03:10:44]*** Brake cut motor [03:10:45]Read from MH i2c: 01 [03:10:45]MH_I2C_Read... [03:10:45]*** Stop cut motor [03:10:45]*** Cut end [03:10:45]Read from MH i2c: 01 07 00 [03:10:45]MH_I2C_Read... [03:10:45]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [03:10:45]process_action close_receipt done [03:10:45]requested_data is exist [03:10:45]produce_requested_data [03:10:45]requested_item fm.sn is exist - process it [03:10:45]wFMCommunicate request_size=4 [03:10:45]MH_SAM_APDU [03:10:45]CAPDU: 80 11 00 00 [03:10:45]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [03:10:45]Write i2c OK [03:10:45]MH_I2C_Read... [03:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:10:45]Read from MH i2c: E2 [03:10:45]MH_I2C_Read... [03:10:45]Read from MH i2c: E2 17 00 [03:10:45]MH_I2C_Read... [03:10:45]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 61 [03:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:10:45]wFMCommunicate OK [03:10:45]requested_item fd.num is exist - process it [03:10:45]SAM_PROTO_GetFieldsCounters [03:10:45]wFMCommunicate request_size=4 [03:10:45]MH_SAM_APDU [03:10:45]CAPDU: 80 13 00 00 [03:10:45]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [03:10:45]Write i2c OK [03:10:45]MH_I2C_Read... [03:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:10:45]Read from MH i2c: E2 [03:10:45]MH_I2C_Read... [03:10:45]Read from MH i2c: E2 62 00 [03:10:45]MH_I2C_Read... [03:10:45]Read from MH i2c: E2 62 00 93 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 60 [03:10: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 AF F9 00 00 0E 04 04 00 76 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:10:45]wFMCommunicate OK [03:10:45]SAM_PROTO_GetFieldsCounters done [03:10:45]requested_item shift.num is exist - process it [03:10:45]requested_item shift.opened is exist - process it [03:10:45]req_shift_opened [03:10:45]FM_GetShiftState [03:10:45]SAM_PROTO_GetShiftState [03:10:45]wFMCommunicate request_size=4 [03:10:45]MH_SAM_APDU [03:10:45]CAPDU: 80 13 01 00 [03:10:45]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [03:10:45]Write i2c OK [03:10:45]MH_I2C_Read... [03:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:45]Read from MH i2c: E2 [03:10:45]MH_I2C_Read... [03:10:45]Read from MH i2c: E2 0E 00 [03:10:45]MH_I2C_Read... [03:10:45]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B4 [03:10:45]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [03:10:45]wFMCommunicate OK [03:10:45]SAM_PROTO_GetShiftState done [03:10:45]FM_GetShiftState done [03:10:45]req_shift_opened done [03:10:45]requested_item shift.open_date is exist - process it [03:10:45]req_shift_open_date [03:10:45]req_shift_open_date done [03:10:45]produce_requested_data done [03:10:45]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63919,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [03:10:45]process_action_free close_receipt [03:10:45]json_value_free [03:10:45]json_value_free done [03:10:45]process_json_proto returns [03:10:45]Send response to host [03:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63919,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [03:10:45]free response buf [03:10:45]execute_script done [03:10:45]execute_script returns [03:10:45]free content buf [03:10:45]Sock 7.Close socket [03:10:45]Sock 7.Thread stoped [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:43]accept exits with 9 [03:30:43]New connection [03:30:43]New thread 3066912100 created [03:30:43]Thread 3067055460 joined [03:30:43]Waiting for new connection... [03:30:43] Sock 9.Parse request [03:30:43]Sock 9.Check first char [03:30:43]Sock 9.First char is OK [03:30:43]request: POST /json_proto HTTP/1.0 [03:30:43]Method: POST [03:30:43]URL: /json_proto [03:30:43]Method is POST - this is cgi request [03:30:43]url: /json_proto [03:30:43]query_string will be loaded in cgi processing [03:30:43]execute_cgi json_proto POST (null) [03:30:43]execute_cgi path=json_proto method=POST [03:30:43]POST find Content-Length [03:30:43]Host: 172.17.60.69:8080 [03:30:43]Content-Length: 1112 [03:30:43]Content-Type: application/json [03:30:43] [03:30:43]POST finish read [03:30:43]Found Content-Length = 1112 [03:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73487", "tax_sys" : 0, "items" : [ { "code": "8591207777762", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 3\u0448\u0442", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921207778193", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "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" : 273.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:30:43]execute_script... [03:30: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)73487", "tax_sys" : 0, "items" : [ { "code": "8591207777762", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u044B Datex 3\u0448\u0442", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921207778193", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "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" : 273.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:30:43]POST & json_proto [03:30:43]process_json_proto [03:30:43]json parsed OK: [03:30:43]protocol is kg_v1.0 [03:30:43]action value=close_receipt [03:30:43]process_action close_receipt [03:30:43]cmd_close_receipt [03:30:43]MH_GetDate [03:30:43]Write to MH i2c: F0 00 00 95 03 87 [03:30:43]Write i2c OK [03:30:43]MH_I2C_Read... [03:30:43]Read from MH i2c: F0 [03:30:43]MH_I2C_Read... [03:30:43]Read from MH i2c: F0 09 00 [03:30:43]MH_I2C_Read... [03:30:43]Read from MH i2c: F0 09 00 95 03 00 64 8A 5E 66 6A 96 4A 66 F2 [03:30:43]GetLastDocTimeStamp 1717470641 [03:30:43]current date 1717471844 [03:30:43]FM_GetShiftState [03:30:43]SAM_PROTO_GetShiftState [03:30:43]wFMCommunicate request_size=4 [03:30:43]MH_SAM_APDU [03:30:43]CAPDU: 80 13 01 00 [03:30:43]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [03:30:43]Write i2c OK [03:30:43]MH_I2C_Read... [03:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:43]Read from MH i2c: E2 [03:30:43]MH_I2C_Read... [03:30:43]Read from MH i2c: E2 0E 00 [03:30:43]MH_I2C_Read... [03:30:43]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B6 [03:30:43]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [03:30:43]wFMCommunicate OK [03:30:43]SAM_PROTO_GetShiftState done [03:30:43]FM_GetShiftState done [03:30:43]opened in 1717459574 [03:30:43]opened+sec_in_day 1717545974 [03:30:43]quantity*price = 14300 [03:30:43]sum+1 = 14301 [03:30:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6921207778193 Презерватив Vie Tex 3шт 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 273.00 НСП 1% : 2.41 НДС 12% : 28.99 Наличными: 0.00 Безнал.: 273.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 5 04.06.2024 03:30 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63920 ФПД: 248168443748093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T033044&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63920&fm=248168443748093&tin=02508201610067®Number=0000000000092737&sum=27300 0 [03:30:45]StoreToDocumentArchive [03:30:45]shift 374 fd 63920 [03:30:45]save to /storage/0374/doc_00063920 [03:30:45]save last doc name /storage/0374/doc_00063920 to /storage/kkm_last_doc_name [03:30:45]save OK [03:30:45]Clear old archive folders... [03:30:45]ProcessDocumentItem done err = 0, tmpTLVsize=386 [03:30:45]tlvbuf is 012A62F0 [03:30:45]SAM_PROTO_ClearQueue [03:30:45]wFMCommunicate request_size=4 [03:30:45]MH_SAM_APDU [03:30:45]CAPDU: 80 09 00 00 [03:30:45]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [03:30:45]Write i2c OK [03:30:45]MH_I2C_Read... [03:30:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:30:45]Read from MH i2c: E2 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 03 00 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [03:30:45]RAPDU: 90 00 [03:30:45]wFMCommunicate OK [03:30:45]SAM_PROTO_ClearQueue done [03:30:45]KKMCreateOFDPacket [03:30:45]OFDProtocolAddRootSTLVToBuf [03:30:45]FM_MakeSignedData [03:30:45]FM_MakeSignedData [03:30:45]SAM_PROTO_SignData [03:30:45]wFMCommunicate request_size=4 [03:30:45]MH_SAM_APDU [03:30:45]CAPDU: 80 0D 01 02 [03:30:45]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [03:30:45]Write i2c OK [03:30:45]MH_I2C_Read... [03:30:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:30:45]Read from MH i2c: E2 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 03 00 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [03:30:45]RAPDU: 90 00 [03:30:45]wFMCommunicate OK [03:30:45]wFMCommunicate request_size=255 [03:30:45]MH_SAM_APDU [03:30:45]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 36 32 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 38 31 39 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [03:30:45]Write to MH i2c: E2 02 01 A5 03 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 36 32 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 38 31 39 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 25 [03:30:45]Write i2c OK [03:30:45]MH_I2C_Read... [03:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:45]Read from MH i2c: E2 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 03 00 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [03:30:45]RAPDU: 90 00 [03:30:45]wFMCommunicate OK [03:30:45]wFMCommunicate request_size=145 [03:30:45]MH_SAM_APDU [03:30:45]CAPDU: 80 0D 02 02 8C 06 00 F1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 64 8A 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E1 B5 37 EF 1E FD [03:30:45]Write to MH i2c: E2 94 00 A6 03 80 0D 02 02 8C 00 06 00 F1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 64 8A 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E1 B5 37 EF 1E FD 00 00 7B [03:30:45]Write i2c OK [03:30:45]MH_I2C_Read... [03:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:30:45]Read from MH i2c: E2 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 03 00 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [03:30:45]RAPDU: 90 00 [03:30:45]wFMCommunicate OK [03:30:45]wFMCommunicate request_size=4 [03:30:45]MH_SAM_APDU [03:30:45]CAPDU: 80 0D 03 02 [03:30:45]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [03:30:45]Write i2c OK [03:30:45]MH_I2C_Read... [03:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:30:45]Read from MH i2c: E2 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 0B 00 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 0B 00 A7 03 00 BA C6 36 02 58 4A AA 3C 90 00 66 [03:30:45]RAPDU: BA C6 36 02 58 4A AA 3C 90 00 [03:30:45]wFMCommunicate OK [03:30:45]SAM_PROTO_SignData done [03:30:45]FM_MakeSignedData done [03:30:45]CreateOFDProtocolMessage [03:30:45]wFMCommunicate request_size=4 [03:30:45]MH_SAM_APDU [03:30:45]CAPDU: 80 11 00 00 [03:30:45]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [03:30:45]Write i2c OK [03:30:45]MH_I2C_Read... [03:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:45]Read from MH i2c: E2 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 17 00 [03:30:45]MH_I2C_Read... [03:30:45]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 77 [03:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:30:45]wFMCommunicate OK [03:30:45]CreateOFDProtocolMessage done [03:30:45]OFDSenderStorePacket 63920 [03:30:45]StoreOFDPacket docnum=63920 [03:30: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 96 01 00 00 7D 4D 8E 01 78 03 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 36 32 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 38 31 39 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 64 8A 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E1 B5 37 EF 1E FD BA C6 36 02 58 4A AA 3C [03:30:45]CheckFolder [03:30:45]dirname=/storage/ofd_packets [03:30:45]CheckFolder done [03:30:45]ProducePacketName [03:30:45]name=ofd_packets/00063920 [03:30:45]NVStorageSaveData ofd_packets/00063920 [03:30:45]File name is /storage/ofd_packets/00063920 [03:30:45]Write 436 bytes [03:30:46]NVStorageSaveData done [03:30:46]OFDSenderStorePacket done [03:30:46]KKMCreateOFDPacket done [03:30:46]NVStorageSaveData kkm_last_timestamp [03:30:46]File name is /storage/kkm_last_timestamp [03:30:46]Write 4 bytes [03:30:46]NVStorageSaveData done [03:30:46]ExternCall_PrintAddStr [03:30:46]wPrintStart [03:30:46]Write to MH i2c: 01 00 00 A9 03 AC [03:30:46]Write i2c OK [03:30:46]MH_I2C_Read... [03:30:46]Read from MH i2c: 01 [03:30:46]MH_I2C_Read... [03:30:46]Read from MH i2c: 01 07 00 [03:30:46]MH_I2C_Read... [03:30:46]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [03:30:46]RasterBufferAndPrint [03:30:46]line Счет N : (3)73487 [03:30:46]line ИНН: 02508201610067 [03:30:46]line Контрольно-Кассовый Чек [03:30:46]line ПРОДАЖА [03:30:46]line Товар: 8591207777762 [03:30:46]line Презервативы Datex 3шт [03:30:46]line 1.000 * 143.00 [03:30:46]line = 143.00 [03:30:46]line НДС 12% НСП 1% [03:30:46]line > о реализуемом товаре [03:30:46]line Товар: 6921207778193 [03:30:46]line Презерватив Vie Tex 3шт [03:30:46]line 1.000 * 130.00 [03:30:46]line = 130.00 [03:30:46]line НДС 12% НСП 1% [03:30:46]line > о реализуемом товаре [03:30:46]line ИТОГО: 273.00 [03:30:46]line НСП 1% : 2.41 [03:30:46]line НДС 12% : 28.99 [03:30:46]line Наличными: 0.00 [03:30:46]line Безнал.: 273.00 [03:30:46]line Место: АЗС № 117 "Партнер Нефть" [03:30:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:30:46]line СНО: Общий режим [03:30:46]line Чек 5 04.06.2024 03:30 [03:30:46]line Смена: 374 ФФД: 1.0 [03:30:46]line ЗНМ: 0300000031 [03:30:46]line РНМ: 0000000000092737 [03:30:46]line Версия ККМ: 001 [03:30:46]line Платежная система: АКБ Кыргызстан [03:30:46]line ФМ: 0000000000875074 [03:30:46]line ФД: 63920 [03:30:46]line ФПД: 248168443748093 [03:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T033044&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63920&fm=248168443748093&tin=02508201610067®Number=0000000000092737&sum=27300 [03:30:46]line 0 [03:30:46]written 0, free lines is 4095 [03:30:46]OFD Sender: Processing packet 63920 [packets to send 14, broken 13] [03:30:46]ProducePacketName [03:30:46]name=ofd_packets/00063920 [03:30:46]OFD Sender: To server: pG, [03:30:46]CommunicateWithHost lk.salyk.kg:30040 [03:30:46]ConnectInit lk.salyk.kg [03:30:46]Connected sock=10 [03:30:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 96 01 00 00 7D 4D 8E 01 78 03 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 38 35 39 31 32 30 37 37 37 37 37 36 32 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 D1 8B 20 44 61 74 65 78 20 33 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 37 38 31 39 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 64 8A 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E1 B5 37 EF 1E FD BA C6 36 02 58 4A AA 3C [03:30: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 EA CE 47 00 F6 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B0 F9 00 00 F4 03 04 00 34 36 5E 66 B6 04 01 00 00 B0 C8 70 AA F6 D5 41 07 [03:30:46]CommunicateWithHost err = 0 [03:30:46]CheckOFDResponse [03:30:46]1017 (14) - 77093643461234 [03:30:46]1041 (16) - 0000000000875074 [03:30:46]1040 (4) - 63920 [03:30:46]1012 (4) - 03.06.2024 21:31 [03:30:46]1206 (1) - 0 [03:30:46]OFD Sender: Remove packet 63920 [03:30:46]ProducePacketName [03:30:46]name=ofd_packets/00063920 [03:30:46]NVStorageDeleteData [03:30:46]Write to MH i2c: 01 00 00 D9 03 DC [03:30:46]Write i2c OK [03:30:46]MH_I2C_Read... [03:30:46]Read from MH i2c: 01 [03:30:46]MH_I2C_Read... [03:30:46]Read from MH i2c: 01 07 00 [03:30:46]MH_I2C_Read... [03:30:46]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 71 0C 60 [03:30:46]RasterBufferAndPrint [03:30:46]line [03:30:46]line [03:30:46]line [03:30:46]line [03:30:46]line [03:30:46]written 0, free lines is 3189 [03:30:46]MH_Cut [03:30:46]Write to MH i2c: D1 01 00 E0 03 01 B5 [03:30:46]Write i2c OK [03:30:46]MH_I2C_Read... [03:30:46]Read from MH i2c: D1 [03:30:46]MH_I2C_Read... [03:30:46]Read from MH i2c: D1 01 00 [03:30:46]MH_I2C_Read... [03:30:46]Read from MH i2c: D1 01 00 E0 03 00 B4 [03:30:46]Write to MH i2c: 01 00 00 E1 03 E4 [03:30:46]Write i2c OK [03:30:46]MH_I2C_Read... [03:30:46]OFD Sender: No OFD packet to send [03:30:47]*** Cut start [03:30:47]*** Partial cut [03:30:47]*** CUTSNS_PIN = 1 [03:30:47]*** CUTSNS_PIN = 0 [03:30:47]*** Brake cut motor [03:30:48]Read from MH i2c: 01 [03:30:48]MH_I2C_Read... [03:30:48]*** Stop cut motor [03:30:48]*** Cut end [03:30:48]Read from MH i2c: 01 07 00 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [03:30:48]process_action close_receipt done [03:30:48]requested_data is exist [03:30:48]produce_requested_data [03:30:48]requested_item fm.sn is exist - process it [03:30:48]wFMCommunicate request_size=4 [03:30:48]MH_SAM_APDU [03:30:48]CAPDU: 80 11 00 00 [03:30:48]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [03:30:48]Write i2c OK [03:30:48]MH_I2C_Read... [03:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:30:48]Read from MH i2c: E2 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 17 00 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B1 [03:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:30:48]wFMCommunicate OK [03:30:48]requested_item fd.num is exist - process it [03:30:48]SAM_PROTO_GetFieldsCounters [03:30:48]wFMCommunicate request_size=4 [03:30:48]MH_SAM_APDU [03:30:48]CAPDU: 80 13 00 00 [03:30:48]Write to MH i2c: E2 08 00 E3 03 80 13 00 00 00 00 00 00 62 [03:30:48]Write i2c OK [03:30:48]MH_I2C_Read... [03:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:30:48]Read from MH i2c: E2 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 62 00 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 62 00 E3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 B4 [03:30: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 B0 F9 00 00 0E 04 04 00 76 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:30:48]wFMCommunicate OK [03:30:48]SAM_PROTO_GetFieldsCounters done [03:30:48]requested_item shift.num is exist - process it [03:30:48]requested_item shift.opened is exist - process it [03:30:48]req_shift_opened [03:30:48]FM_GetShiftState [03:30:48]SAM_PROTO_GetShiftState [03:30:48]wFMCommunicate request_size=4 [03:30:48]MH_SAM_APDU [03:30:48]CAPDU: 80 13 01 00 [03:30:48]Write to MH i2c: E2 08 00 E4 03 80 13 01 00 00 00 00 00 64 [03:30:48]Write i2c OK [03:30:48]MH_I2C_Read... [03:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:30:48]Read from MH i2c: E2 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 0E 00 [03:30:48]MH_I2C_Read... [03:30:48]Read from MH i2c: E2 0E 00 E4 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 04 [03:30:48]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [03:30:48]wFMCommunicate OK [03:30:48]SAM_PROTO_GetShiftState done [03:30:48]FM_GetShiftState done [03:30:48]req_shift_opened done [03:30:48]requested_item shift.open_date is exist - process it [03:30:48]req_shift_open_date [03:30:48]req_shift_open_date done [03:30:48]produce_requested_data done [03:30:48]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63920,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [03:30:48]process_action_free close_receipt [03:30:48]json_value_free [03:30:48]json_value_free done [03:30:48]process_json_proto returns [03:30:48]Send response to host [03:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63920,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [03:30:48]free response buf [03:30:48]execute_script done [03:30:48]execute_script returns [03:30:48]free content buf [03:30:48]Sock 9.Close socket [03:30:48]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:03]accept exits with 7 [03:48:03]New connection [03:48:03]New thread 3067055460 created [03:48:03]Thread 3066912100 joined [03:48:03]Waiting for new connection... [03:48:03] Sock 7.Parse request [03:48:03]Sock 7.Check first char [03:48:03]Sock 7.First char is OK [03:48:03]request: POST /json_proto HTTP/1.0 [03:48:03]Method: POST [03:48:03]URL: /json_proto [03:48:03]Method is POST - this is cgi request [03:48:03]url: /json_proto [03:48:03]query_string will be loaded in cgi processing [03:48:03]execute_cgi json_proto POST (null) [03:48:03]execute_cgi path=json_proto method=POST [03:48:03]POST find Content-Length [03:48:03]Host: 172.17.60.69:8080 [03:48:03]Content-Length: 715 [03:48:03]Content-Type: application/json [03:48:03] [03:48:03]POST finish read [03:48:03]Found Content-Length = 715 [03:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73488", "tax_sys" : 0, "items" : [ { "code": "4700000281947", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u0435\u043D\u044C\u043A\u0430\u044F 0,46\u043B \u0420\u0443\u0441.\u041C\u0435\u0434\u0432\u0435\u0434\u044C", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:03]execute_script... [03:48: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)73488", "tax_sys" : 0, "items" : [ { "code": "4700000281947", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u0435\u043D\u044C\u043A\u0430\u044F 0,46\u043B \u0420\u0443\u0441.\u041C\u0435\u0434\u0432\u0435\u0434\u044C", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:03]POST & json_proto [03:48:03]process_json_proto [03:48:03]json parsed OK: [03:48:03]protocol is kg_v1.0 [03:48:03]action value=close_receipt [03:48:03]process_action close_receipt [03:48:03]cmd_close_receipt [03:48:03]MH_GetDate [03:48:03]Write to MH i2c: F0 00 00 E5 03 D7 [03:48:03]Write i2c OK [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: F0 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: F0 09 00 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: F0 09 00 E5 03 00 74 8E 5E 66 6A 96 4A 66 56 [03:48:03]GetLastDocTimeStamp 1717471844 [03:48:03]current date 1717472884 [03:48:03]FM_GetShiftState [03:48:03]SAM_PROTO_GetShiftState [03:48:03]wFMCommunicate request_size=4 [03:48:03]MH_SAM_APDU [03:48:03]CAPDU: 80 13 01 00 [03:48:03]Write to MH i2c: E2 08 00 E6 03 80 13 01 00 00 00 00 00 66 [03:48:03]Write i2c OK [03:48:03]MH_I2C_Read... [03:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:03]Read from MH i2c: E2 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: E2 0E 00 [03:48:03]MH_I2C_Read... [03:48:03]Read from MH i2c: E2 0E 00 E6 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 06 [03:48:03]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [03:48:03]wFMCommunicate OK [03:48:03]SAM_PROTO_GetShiftState done [03:48:03]FM_GetShiftState done [03:48:03]opened in 1717459574 [03:48:03]opened+sec_in_day 1717545974 [03:48:03]quantity*price = 33000 [03:48:03]sum+1 = 33001 [03:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 6 04.06.2024 03:48 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63921 ФПД: 277311991638745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T034804&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63921&fm=277311991638745&tin=02508201610067®Number=0000000000092737&sum=33000 0 [03:48:04]StoreToDocumentArchive [03:48:04]shift 374 fd 63921 [03:48:04]save to /storage/0374/doc_00063921 [03:48:04]save last doc name /storage/0374/doc_00063921 to /storage/kkm_last_doc_name [03:48:04]save OK [03:48:04]Clear old archive folders... [03:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=300 [03:48:04]tlvbuf is 012504B0 [03:48:04]SAM_PROTO_ClearQueue [03:48:04]wFMCommunicate request_size=4 [03:48:04]MH_SAM_APDU [03:48:04]CAPDU: 80 09 00 00 [03:48:04]Write to MH i2c: E2 08 00 F3 03 80 09 00 00 00 00 00 00 68 [03:48:04]Write i2c OK [03:48:04]MH_I2C_Read... [03:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:48:04]Read from MH i2c: E2 [03:48:04]MH_I2C_Read... [03:48:04]Read from MH i2c: E2 03 00 [03:48:04]MH_I2C_Read... [03:48:04]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [03:48:04]RAPDU: 90 00 [03:48:04]wFMCommunicate OK [03:48:04]SAM_PROTO_ClearQueue done [03:48:04]KKMCreateOFDPacket [03:48:04]OFDProtocolAddRootSTLVToBuf [03:48:04]FM_MakeSignedData [03:48:04]FM_MakeSignedData [03:48:04]SAM_PROTO_SignData [03:48:04]wFMCommunicate request_size=4 [03:48:04]MH_SAM_APDU [03:48:04]CAPDU: 80 0D 01 02 [03:48:04]Write to MH i2c: E2 08 00 F4 03 80 0D 01 02 00 00 00 00 70 [03:48:04]Write i2c OK [03:48:04]MH_I2C_Read... [03:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:48:04]Read from MH i2c: E2 [03:48:04]MH_I2C_Read... [03:48:04]Read from MH i2c: E2 03 00 [03:48:04]MH_I2C_Read... [03:48:04]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [03:48:04]RAPDU: 90 00 [03:48:04]wFMCommunicate OK [03:48:04]wFMCommunicate request_size=255 [03:48:04]MH_SAM_APDU [03:48:04]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 31 39 34 37 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 34 36 D0 BB 20 D0 A0 D1 83 D1 81 2E D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 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 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 74 8E 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 [03:48:04]Write to MH i2c: E2 02 01 F5 03 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 31 39 34 37 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 34 36 D0 BB 20 D0 A0 D1 83 D1 81 2E D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 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 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 74 8E 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 4F [03:48:04]Write i2c OK [03:48:04]MH_I2C_Read... [03:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:05]Read from MH i2c: E2 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: E2 03 00 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [03:48:05]RAPDU: 90 00 [03:48:05]wFMCommunicate OK [03:48:05]wFMCommunicate request_size=59 [03:48:05]MH_SAM_APDU [03:48:05]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 FC 36 BA C0 EA D9 [03:48:05]Write to MH i2c: E2 3E 00 F6 03 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 FC 36 BA C0 EA D9 00 00 AF [03:48:05]Write i2c OK [03:48:05]MH_I2C_Read... [03:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:05]Read from MH i2c: E2 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: E2 03 00 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [03:48:05]RAPDU: 90 00 [03:48:05]wFMCommunicate OK [03:48:05]wFMCommunicate request_size=4 [03:48:05]MH_SAM_APDU [03:48:05]CAPDU: 80 0D 03 02 [03:48:05]Write to MH i2c: E2 08 00 F7 03 80 0D 03 02 00 00 00 00 75 [03:48:05]Write i2c OK [03:48:05]MH_I2C_Read... [03:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:48:05]Read from MH i2c: E2 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: E2 0B 00 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: E2 0B 00 F7 03 00 55 69 81 52 16 2A 9F 4C 90 00 32 [03:48:05]RAPDU: 55 69 81 52 16 2A 9F 4C 90 00 [03:48:05]wFMCommunicate OK [03:48:05]SAM_PROTO_SignData done [03:48:05]FM_MakeSignedData done [03:48:05]CreateOFDProtocolMessage [03:48:05]wFMCommunicate request_size=4 [03:48:05]MH_SAM_APDU [03:48:05]CAPDU: 80 11 00 00 [03:48:05]Write to MH i2c: E2 08 00 F8 03 80 11 00 00 00 00 00 00 75 [03:48:05]Write i2c OK [03:48:05]MH_I2C_Read... [03:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:05]Read from MH i2c: E2 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: E2 17 00 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: E2 17 00 F8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C7 [03:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:48:05]wFMCommunicate OK [03:48:05]CreateOFDProtocolMessage done [03:48:05]OFDSenderStorePacket 63921 [03:48:05]StoreOFDPacket docnum=63921 [03:48: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 40 01 00 00 41 40 38 01 79 1B 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 31 39 34 37 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 34 36 D0 BB 20 D0 A0 D1 83 D1 81 2E D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 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 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 74 8E 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 FC 36 BA C0 EA D9 55 69 81 52 16 2A 9F 4C [03:48:05]CheckFolder [03:48:05]dirname=/storage/ofd_packets [03:48:05]CheckFolder done [03:48:05]ProducePacketName [03:48:05]name=ofd_packets/00063921 [03:48:05]NVStorageSaveData ofd_packets/00063921 [03:48:05]File name is /storage/ofd_packets/00063921 [03:48:05]Write 350 bytes [03:48:05]NVStorageSaveData done [03:48:05]OFDSenderStorePacket done [03:48:05]KKMCreateOFDPacket done [03:48:05]NVStorageSaveData kkm_last_timestamp [03:48:05]File name is /storage/kkm_last_timestamp [03:48:05]Write 4 bytes [03:48:05]NVStorageSaveData done [03:48:05]ExternCall_PrintAddStr [03:48:05]wPrintStart [03:48:05]Write to MH i2c: 01 00 00 F9 03 FC [03:48:05]Write i2c OK [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: 01 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: 01 07 00 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: 01 07 00 F9 03 00 00 00 00 00 FF 0F 11 [03:48:05]RasterBufferAndPrint [03:48:05]line Счет N : (3)73488 [03:48:05]line ИНН: 02508201610067 [03:48:05]line Контрольно-Кассовый Чек [03:48:05]line ПРОДАЖА [03:48:05]line Товар: 4700000281947 [03:48:05]line Водка Беленькая 0,46л Рус.Медведь [03:48:05]line 1.000 * 330.00 [03:48:05]line = 330.00 [03:48:05]line НДС 12% НСП 1% [03:48:05]line > о реализуемом товаре [03:48:05]line ИТОГО: 330.00 [03:48:05]line НСП 1% : 2.92 [03:48:05]line НДС 12% : 35.04 [03:48:05]line Наличными: 330.00 [03:48:05]line Безнал.: 0.00 [03:48:05]line Место: АЗС № 117 "Партнер Нефть" [03:48:05]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [03:48:05]line СНО: Общий режим [03:48:05]line Чек 6 04.06.2024 03:48 [03:48:05]line Смена: 374 ФФД: 1.0 [03:48:05]line ЗНМ: 0300000031 [03:48:05]line РНМ: 0000000000092737 [03:48:05]line Версия ККМ: 001 [03:48:05]line ФМ: 0000000000875074 [03:48:05]line ФД: 63921 [03:48:05]line ФПД: 277311991638745 [03:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T034804&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63921&fm=277311991638745&tin=02508201610067®Number=0000000000092737&sum=33000 [03:48:05]line 0 [03:48:05]written 0, free lines is 4095 [03:48:05]OFD Sender: Processing packet 63921 [packets to send 14, broken 13] [03:48:05]ProducePacketName [03:48:05]name=ofd_packets/00063921 [03:48:05]OFD Sender: To server: pG, [03:48:05]CommunicateWithHost lk.salyk.kg:30040 [03:48:05]ConnectInit lk.salyk.kg [03:48:05]Connected sock=11 [03:48: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 40 01 00 00 41 40 38 01 79 1B 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 30 32 38 31 39 34 37 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 34 36 D0 BB 20 D0 A0 D1 83 D1 81 2E D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 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 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 74 8E 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 FC 36 BA C0 EA D9 55 69 81 52 16 2A 9F 4C [03:48: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 3C A9 47 00 34 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 B1 F9 00 00 F4 03 04 00 43 3A 5E 66 B6 04 01 00 00 EC B8 F9 E9 8F 2B 31 0D [03:48:05]CommunicateWithHost err = 0 [03:48:05]CheckOFDResponse [03:48:05]1017 (14) - 77093643461234 [03:48:05]1041 (16) - 0000000000875074 [03:48:05]1040 (4) - 63921 [03:48:05]1012 (4) - 03.06.2024 21:48 [03:48:05]1206 (1) - 0 [03:48:05]OFD Sender: Remove packet 63921 [03:48:05]ProducePacketName [03:48:05]name=ofd_packets/00063921 [03:48:05]NVStorageDeleteData [03:48:05]Write to MH i2c: 01 00 00 22 04 26 [03:48:05]Write i2c OK [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: 01 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: 01 07 00 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 E8 0C 21 [03:48:05]RasterBufferAndPrint [03:48:05]line [03:48:05]line [03:48:05]line [03:48:05]line [03:48:05]line [03:48:05]written 0, free lines is 3310 [03:48:05]MH_Cut [03:48:05]Write to MH i2c: D1 01 00 29 04 01 FF [03:48:05]Write i2c OK [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: D1 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: D1 01 00 [03:48:05]MH_I2C_Read... [03:48:05]Read from MH i2c: D1 01 00 29 04 00 FE [03:48:05]Write to MH i2c: 01 00 00 2A 04 2E [03:48:05]Write i2c OK [03:48:05]MH_I2C_Read... [03:48:06]OFD Sender: No OFD packet to send [03:48:06]*** Cut start [03:48:06]*** Partial cut [03:48:06]*** CUTSNS_PIN = 1 [03:48:06]*** CUTSNS_PIN = 0 [03:48:06]*** Brake cut motor [03:48:07]Read from MH i2c: 01 [03:48:07]MH_I2C_Read... [03:48:07]*** Stop cut motor [03:48:07]*** Cut end [03:48:07]Read from MH i2c: 01 07 00 [03:48:07]MH_I2C_Read... [03:48:07]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 FF 0F 43 [03:48:07]process_action close_receipt done [03:48:07]requested_data is exist [03:48:07]produce_requested_data [03:48:07]requested_item fm.sn is exist - process it [03:48:07]wFMCommunicate request_size=4 [03:48:07]MH_SAM_APDU [03:48:07]CAPDU: 80 11 00 00 [03:48:07]Write to MH i2c: E2 08 00 2B 04 80 11 00 00 00 00 00 00 A9 [03:48:07]Write i2c OK [03:48:07]MH_I2C_Read... [03:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:07]Read from MH i2c: E2 [03:48:07]MH_I2C_Read... [03:48:07]Read from MH i2c: E2 17 00 [03:48:07]MH_I2C_Read... [03:48:07]Read from MH i2c: E2 17 00 2B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FB [03:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [03:48:07]wFMCommunicate OK [03:48:07]requested_item fd.num is exist - process it [03:48:07]SAM_PROTO_GetFieldsCounters [03:48:07]wFMCommunicate request_size=4 [03:48:07]MH_SAM_APDU [03:48:07]CAPDU: 80 13 00 00 [03:48:07]Write to MH i2c: E2 08 00 2C 04 80 13 00 00 00 00 00 00 AC [03:48:07]Write i2c OK [03:48:07]MH_I2C_Read... [03:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:48:07]Read from MH i2c: E2 [03:48:07]MH_I2C_Read... [03:48:07]Read from MH i2c: E2 62 00 [03:48:07]MH_I2C_Read... [03:48:07]Read from MH i2c: E2 62 00 2C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [03:48: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 B1 F9 00 00 0E 04 04 00 76 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:48:07]wFMCommunicate OK [03:48:07]SAM_PROTO_GetFieldsCounters done [03:48:07]requested_item shift.num is exist - process it [03:48:07]requested_item shift.opened is exist - process it [03:48:07]req_shift_opened [03:48:07]FM_GetShiftState [03:48:07]SAM_PROTO_GetShiftState [03:48:07]wFMCommunicate request_size=4 [03:48:07]MH_SAM_APDU [03:48:07]CAPDU: 80 13 01 00 [03:48:07]Write to MH i2c: E2 08 00 2D 04 80 13 01 00 00 00 00 00 AE [03:48:07]Write i2c OK [03:48:07]MH_I2C_Read... [03:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:07]Read from MH i2c: E2 [03:48:07]MH_I2C_Read... [03:48:07]Read from MH i2c: E2 0E 00 [03:48:07]MH_I2C_Read... [03:48:07]Read from MH i2c: E2 0E 00 2D 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 4E [03:48:07]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [03:48:07]wFMCommunicate OK [03:48:07]SAM_PROTO_GetShiftState done [03:48:07]FM_GetShiftState done [03:48:07]req_shift_opened done [03:48:07]requested_item shift.open_date is exist - process it [03:48:07]req_shift_open_date [03:48:07]req_shift_open_date done [03:48:07]produce_requested_data done [03:48:07]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63921,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [03:48:07]process_action_free close_receipt [03:48:07]json_value_free [03:48:07]json_value_free done [03:48:07]process_json_proto returns [03:48:07]Send response to host [03:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63921,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [03:48:07]free response buf [03:48:07]execute_script done [03:48:07]execute_script returns [03:48:07]free content buf [03:48:07]Sock 7.Close socket [03:48:07]Sock 7.Thread stoped [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:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]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:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]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:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:31]accept exits with 9 [05:18:31]New connection [05:18:31]New thread 3066912100 created [05:18:31]Thread 3067055460 joined [05:18:31]Waiting for new connection... [05:18:31] Sock 9.Parse request [05:18:31]Sock 9.Check first char [05:18:31]Sock 9.First char is OK [05:18:31]request: POST /json_proto HTTP/1.0 [05:18:31]Method: POST [05:18:31]URL: /json_proto [05:18:31]Method is POST - this is cgi request [05:18:31]url: /json_proto [05:18:31]query_string will be loaded in cgi processing [05:18:31]execute_cgi json_proto POST (null) [05:18:31]execute_cgi path=json_proto method=POST [05:18:31]POST find Content-Length [05:18:31]Host: 172.17.60.69:8080 [05:18:31]Content-Length: 621 [05:18:31]Content-Type: application/json [05:18:31] [05:18:31]POST finish read [05:18:31]Found Content-Length = 621 [05:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73489", "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 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:18:31]execute_script... [05:18: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)73489", "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 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:18:31]POST & json_proto [05:18:31]process_json_proto [05:18:31]json parsed OK: [05:18:31]protocol is kg_v1.0 [05:18:31]action value=close_receipt [05:18:31]process_action close_receipt [05:18:31]cmd_close_receipt [05:18:31]MH_GetDate [05:18:31]Write to MH i2c: F0 00 00 2E 04 21 [05:18:31]Write i2c OK [05:18:31]MH_I2C_Read... [05:18:31]Read from MH i2c: F0 [05:18:31]MH_I2C_Read... [05:18:31]Read from MH i2c: F0 09 00 [05:18:31]MH_I2C_Read... [05:18:31]Read from MH i2c: F0 09 00 2E 04 00 A9 A3 5E 66 6A 96 4A 66 EA [05:18:31]GetLastDocTimeStamp 1717472884 [05:18:31]current date 1717478313 [05:18:31]FM_GetShiftState [05:18:31]SAM_PROTO_GetShiftState [05:18:31]wFMCommunicate request_size=4 [05:18:31]MH_SAM_APDU [05:18:31]CAPDU: 80 13 01 00 [05:18:31]Write to MH i2c: E2 08 00 2F 04 80 13 01 00 00 00 00 00 B0 [05:18:31]Write i2c OK [05:18:31]MH_I2C_Read... [05:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:31]Read from MH i2c: E2 [05:18:31]MH_I2C_Read... [05:18:31]Read from MH i2c: E2 0E 00 [05:18:31]MH_I2C_Read... [05:18:31]Read from MH i2c: E2 0E 00 2F 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 50 [05:18:31]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [05:18:31]wFMCommunicate OK [05:18:31]SAM_PROTO_GetShiftState done [05:18:31]FM_GetShiftState done [05:18:31]opened in 1717459574 [05:18:31]opened+sec_in_day 1717545974 [05:18:31]quantity*price = 13800 [05:18:31]sum+1 = 13801 [05:18:31]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 СНО: Общий режим Чек 7 04.06.2024 05:18 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63922 ФПД: 250126569952812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T051833&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63922&fm=250126569952812&tin=02508201610067®Number=0000000000092737&sum=13800 0 [05:18:32]StoreToDocumentArchive [05:18:32]shift 374 fd 63922 [05:18:32]save to /storage/0374/doc_00063922 [05:18:32]save last doc name /storage/0374/doc_00063922 to /storage/kkm_last_doc_name [05:18:32]save OK [05:18:32]Clear old archive folders... [05:18:32]ProcessDocumentItem done err = 0, tmpTLVsize=274 [05:18:32]tlvbuf is B6EC15F0 [05:18:32]SAM_PROTO_ClearQueue [05:18:32]wFMCommunicate request_size=4 [05:18:32]MH_SAM_APDU [05:18:32]CAPDU: 80 09 00 00 [05:18:32]Write to MH i2c: E2 08 00 3C 04 80 09 00 00 00 00 00 00 B2 [05:18:32]Write i2c OK [05:18:32]MH_I2C_Read... [05:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:18:32]Read from MH i2c: E2 [05:18:32]MH_I2C_Read... [05:18:32]Read from MH i2c: E2 03 00 [05:18:32]MH_I2C_Read... [05:18:32]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [05:18:32]RAPDU: 90 00 [05:18:32]wFMCommunicate OK [05:18:32]SAM_PROTO_ClearQueue done [05:18:32]KKMCreateOFDPacket [05:18:32]OFDProtocolAddRootSTLVToBuf [05:18:32]FM_MakeSignedData [05:18:32]FM_MakeSignedData [05:18:32]SAM_PROTO_SignData [05:18:32]wFMCommunicate request_size=4 [05:18:32]MH_SAM_APDU [05:18:32]CAPDU: 80 0D 01 02 [05:18:32]Write to MH i2c: E2 08 00 3D 04 80 0D 01 02 00 00 00 00 BA [05:18:32]Write i2c OK [05:18:32]MH_I2C_Read... [05:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:18:33]Read from MH i2c: E2 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 03 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [05:18:33]RAPDU: 90 00 [05:18:33]wFMCommunicate OK [05:18:33]wFMCommunicate request_size=255 [05:18:33]MH_SAM_APDU [05:18:33]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 07 00 00 00 F4 03 04 00 A9 A3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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:18:33]Write to MH i2c: E2 02 01 3E 04 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 07 00 00 00 F4 03 04 00 A9 A3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 88 [05:18:33]Write i2c OK [05:18:33]MH_I2C_Read... [05:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:33]Read from MH i2c: E2 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 03 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [05:18:33]RAPDU: 90 00 [05:18:33]wFMCommunicate OK [05:18:33]wFMCommunicate request_size=33 [05:18:33]MH_SAM_APDU [05:18:33]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B2 F9 00 00 35 04 06 00 E3 7D 21 59 D6 2C [05:18:33]Write to MH i2c: E2 24 00 3F 04 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B2 F9 00 00 35 04 06 00 E3 7D 21 59 D6 2C 00 00 D2 [05:18:33]Write i2c OK [05:18:33]MH_I2C_Read... [05:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:33]Read from MH i2c: E2 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 03 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [05:18:33]RAPDU: 90 00 [05:18:33]wFMCommunicate OK [05:18:33]wFMCommunicate request_size=4 [05:18:33]MH_SAM_APDU [05:18:33]CAPDU: 80 0D 03 02 [05:18:33]Write to MH i2c: E2 08 00 40 04 80 0D 03 02 00 00 00 00 BF [05:18:33]Write i2c OK [05:18:33]MH_I2C_Read... [05:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:18:33]Read from MH i2c: E2 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 0B 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 0B 00 40 04 00 46 46 C7 10 DC 46 9E D1 90 00 B4 [05:18:33]RAPDU: 46 46 C7 10 DC 46 9E D1 90 00 [05:18:33]wFMCommunicate OK [05:18:33]SAM_PROTO_SignData done [05:18:33]FM_MakeSignedData done [05:18:33]CreateOFDProtocolMessage [05:18:33]wFMCommunicate request_size=4 [05:18:33]MH_SAM_APDU [05:18:33]CAPDU: 80 11 00 00 [05:18:33]Write to MH i2c: E2 08 00 41 04 80 11 00 00 00 00 00 00 BF [05:18:33]Write i2c OK [05:18:33]MH_I2C_Read... [05:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:33]Read from MH i2c: E2 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 17 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: E2 17 00 41 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 11 [05:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:18:33]wFMCommunicate OK [05:18:33]CreateOFDProtocolMessage done [05:18:33]OFDSenderStorePacket 63922 [05:18:33]StoreOFDPacket docnum=63922 [05:18: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 26 01 00 00 FF 2A 1E 01 7D 1E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 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 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 07 00 00 00 F4 03 04 00 A9 A3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E3 7D 21 59 D6 2C 46 46 C7 10 DC 46 9E D1 [05:18:33]CheckFolder [05:18:33]dirname=/storage/ofd_packets [05:18:33]CheckFolder done [05:18:33]ProducePacketName [05:18:33]name=ofd_packets/00063922 [05:18:33]NVStorageSaveData ofd_packets/00063922 [05:18:33]File name is /storage/ofd_packets/00063922 [05:18:33]Write 324 bytes [05:18:33]NVStorageSaveData done [05:18:33]OFDSenderStorePacket done [05:18:33]KKMCreateOFDPacket done [05:18:33]NVStorageSaveData kkm_last_timestamp [05:18:33]File name is /storage/kkm_last_timestamp [05:18:33]Write 4 bytes [05:18:33]NVStorageSaveData done [05:18:33]ExternCall_PrintAddStr [05:18:33]wPrintStart [05:18:33]Write to MH i2c: 01 00 00 42 04 46 [05:18:33]Write i2c OK [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: 01 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: 01 07 00 [05:18:33]MH_I2C_Read... [05:18:33]Read from MH i2c: 01 07 00 42 04 00 00 00 00 00 FF 0F 5B [05:18:33]RasterBufferAndPrint [05:18:33]line Счет N : (3)73489 [05:18:33]line ИНН: 02508201610067 [05:18:33]line Контрольно-Кассовый Чек [05:18:33]line ПРОДАЖА [05:18:33]line Товар: 4640030091645 [05:18:33]line Сигареты ESSE Exchange M [05:18:33]line 1.000 * 138.00 [05:18:33]line = 138.00 [05:18:33]line НДС 12% НСП 1% [05:18:33]line > о реализуемом товаре [05:18:33]line ИТОГО: 138.00 [05:18:33]line НСП 1% : 1.22 [05:18:33]line НДС 12% : 14.65 [05:18:33]line Наличными: 138.00 [05:18:33]line Безнал.: 0.00 [05:18:33]line Место: АЗС № 117 "Партнер Нефть" [05:18:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [05:18:33]line СНО: Общий режим [05:18:33]line Чек 7 04.06.2024 05:18 [05:18:33]line Смена: 374 ФФД: 1.0 [05:18:33]line ЗНМ: 0300000031 [05:18:33]line РНМ: 0000000000092737 [05:18:33]line Версия ККМ: 001 [05:18:33]line ФМ: 0000000000875074 [05:18:33]line ФД: 63922 [05:18:33]line ФПД: 250126569952812 [05:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T051833&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63922&fm=250126569952812&tin=02508201610067®Number=0000000000092737&sum=13800 [05:18:33]line 0 [05:18:33]OFD Sender: Processing packet 63922 [packets to send 14, broken 13] [05:18:33]ProducePacketName [05:18:33]name=ofd_packets/00063922 [05:18:33]OFD Sender: To server: pG, [05:18:33]CommunicateWithHost lk.salyk.kg:30040 [05:18:33]ConnectInit lk.salyk.kg [05:18:33]written 0, free lines is 4095 [05:18:33]Connected sock=10 [05:18: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 26 01 00 00 FF 2A 1E 01 7D 1E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 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 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 07 00 00 00 F4 03 04 00 A9 A3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 E3 7D 21 59 D6 2C 46 46 C7 10 DC 46 9E D1 [05:18:34]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 78 47 00 12 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B2 F9 00 00 F4 03 04 00 78 4F 5E 66 B6 04 01 00 00 71 6D 06 E3 E8 D9 8C 52 [05:18:34]CommunicateWithHost err = 0 [05:18:34]CheckOFDResponse [05:18:34]1017 (14) - 77093643461234 [05:18:34]1041 (16) - 0000000000875074 [05:18:34]1040 (4) - 63922 [05:18:34]1012 (4) - 03.06.2024 23:19 [05:18:34]1206 (1) - 0 [05:18:34]OFD Sender: Remove packet 63922 [05:18:34]ProducePacketName [05:18:34]name=ofd_packets/00063922 [05:18:34]NVStorageDeleteData [05:18:34]Write to MH i2c: 01 00 00 6A 04 6E [05:18:34]Write i2c OK [05:18:34]MH_I2C_Read... [05:18:34]Read from MH i2c: 01 [05:18:34]MH_I2C_Read... [05:18:34]Read from MH i2c: 01 07 00 [05:18:34]MH_I2C_Read... [05:18:34]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 03 0D 85 [05:18:34]RasterBufferAndPrint [05:18:34]line [05:18:34]line [05:18:34]line [05:18:34]line [05:18:34]line [05:18:34]written 0, free lines is 3337 [05:18:34]MH_Cut [05:18:34]Write to MH i2c: D1 01 00 71 04 01 47 [05:18:34]Write i2c OK [05:18:34]MH_I2C_Read... [05:18:34]Read from MH i2c: D1 [05:18:34]MH_I2C_Read... [05:18:34]Read from MH i2c: D1 01 00 [05:18:34]MH_I2C_Read... [05:18:34]Read from MH i2c: D1 01 00 71 04 00 46 [05:18:34]Write to MH i2c: 01 00 00 72 04 76 [05:18:34]Write i2c OK [05:18:34]MH_I2C_Read... [05:18:34]OFD Sender: No OFD packet to send [05:18:34]*** Cut start [05:18:34]*** Partial cut [05:18:34]*** CUTSNS_PIN = 1 [05:18:35]*** CUTSNS_PIN = 0 [05:18:35]*** Brake cut motor [05:18:35]Read from MH i2c: 01 [05:18:35]MH_I2C_Read... [05:18:35]*** Stop cut motor [05:18:35]*** Cut end [05:18:35]Read from MH i2c: 01 07 00 [05:18:35]MH_I2C_Read... [05:18:35]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 FF 0F 8B [05:18:35]process_action close_receipt done [05:18:35]requested_data is exist [05:18:35]produce_requested_data [05:18:35]requested_item fm.sn is exist - process it [05:18:35]wFMCommunicate request_size=4 [05:18:35]MH_SAM_APDU [05:18:35]CAPDU: 80 11 00 00 [05:18:35]Write to MH i2c: E2 08 00 73 04 80 11 00 00 00 00 00 00 F1 [05:18:35]Write i2c OK [05:18:35]MH_I2C_Read... [05:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:35]Read from MH i2c: E2 [05:18:35]MH_I2C_Read... [05:18:35]Read from MH i2c: E2 17 00 [05:18:35]MH_I2C_Read... [05:18:35]Read from MH i2c: E2 17 00 73 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 43 [05:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:18:35]wFMCommunicate OK [05:18:35]requested_item fd.num is exist - process it [05:18:35]SAM_PROTO_GetFieldsCounters [05:18:35]wFMCommunicate request_size=4 [05:18:35]MH_SAM_APDU [05:18:35]CAPDU: 80 13 00 00 [05:18:35]Write to MH i2c: E2 08 00 74 04 80 13 00 00 00 00 00 00 F4 [05:18:35]Write i2c OK [05:18:35]MH_I2C_Read... [05:18:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:18:35]Read from MH i2c: E2 [05:18:35]MH_I2C_Read... [05:18:35]Read from MH i2c: E2 62 00 [05:18:35]MH_I2C_Read... [05:18:35]Read from MH i2c: E2 62 00 74 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 4E [05:18: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 B2 F9 00 00 0E 04 04 00 76 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 [05:18:35]wFMCommunicate OK [05:18:35]SAM_PROTO_GetFieldsCounters done [05:18:35]requested_item shift.num is exist - process it [05:18:35]requested_item shift.opened is exist - process it [05:18:35]req_shift_opened [05:18:35]FM_GetShiftState [05:18:35]SAM_PROTO_GetShiftState [05:18:35]wFMCommunicate request_size=4 [05:18:35]MH_SAM_APDU [05:18:35]CAPDU: 80 13 01 00 [05:18:35]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [05:18:35]Write i2c OK [05:18:35]MH_I2C_Read... [05:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:35]Read from MH i2c: E2 [05:18:35]MH_I2C_Read... [05:18:35]Read from MH i2c: E2 0E 00 [05:18:35]MH_I2C_Read... [05:18:35]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 96 [05:18:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [05:18:35]wFMCommunicate OK [05:18:35]SAM_PROTO_GetShiftState done [05:18:35]FM_GetShiftState done [05:18:35]req_shift_opened done [05:18:35]requested_item shift.open_date is exist - process it [05:18:35]req_shift_open_date [05:18:35]req_shift_open_date done [05:18:35]produce_requested_data done [05:18:35]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63922,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [05:18:35]process_action_free close_receipt [05:18:35]json_value_free [05:18:35]json_value_free done [05:18:35]process_json_proto returns [05:18:35]Send response to host [05:18:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63922,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [05:18:35]free response buf [05:18:35]execute_script done [05:18:35]execute_script returns [05:18:35]free content buf [05:18:35]Sock 9.Close socket [05:18:35]Sock 9.Thread stoped [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22: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:19]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:43]accept exits with 7 [05:40:43]New connection [05:40:43]New thread 3067055460 created [05:40:43]Thread 3066912100 joined [05:40:43]Waiting for new connection... [05:40:43] Sock 7.Parse request [05:40:43]Sock 7.Check first char [05:40:43]Sock 7.First char is OK [05:40:43]request: POST /json_proto HTTP/1.0 [05:40:43]Method: POST [05:40:43]URL: /json_proto [05:40:43]Method is POST - this is cgi request [05:40:43]url: /json_proto [05:40:43]query_string will be loaded in cgi processing [05:40:43]execute_cgi json_proto POST (null) [05:40:43]execute_cgi path=json_proto method=POST [05:40:43]POST find Content-Length [05:40:43]Host: 172.17.60.69:8080 [05:40:43]Content-Length: 632 [05:40:43]Content-Type: application/json [05:40:43] [05:40:43]POST finish read [05:40:43]Found Content-Length = 632 [05:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73490", "tax_sys" : 0, "items" : [ { "code": "4780022460292", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko green 1\u043A\u0433", "price" : 168.00, "quantity" : 1.000, "sum" : 168.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:43]execute_script... [05:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73490", "tax_sys" : 0, "items" : [ { "code": "4780022460292", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko green 1\u043A\u0433", "price" : 168.00, "quantity" : 1.000, "sum" : 168.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 168.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:43]POST & json_proto [05:40:43]process_json_proto [05:40:43]json parsed OK: [05:40:43]protocol is kg_v1.0 [05:40:43]action value=close_receipt [05:40:43]process_action close_receipt [05:40:43]cmd_close_receipt [05:40:43]MH_GetDate [05:40:43]Write to MH i2c: F0 00 00 76 04 69 [05:40:43]Write i2c OK [05:40:43]MH_I2C_Read... [05:40:43]Read from MH i2c: F0 [05:40:43]MH_I2C_Read... [05:40:43]Read from MH i2c: F0 09 00 [05:40:43]MH_I2C_Read... [05:40:43]Read from MH i2c: F0 09 00 76 04 00 DD A8 5E 66 6A 96 4A 66 6B [05:40:43]GetLastDocTimeStamp 1717478313 [05:40:43]current date 1717479645 [05:40:43]FM_GetShiftState [05:40:43]SAM_PROTO_GetShiftState [05:40:43]wFMCommunicate request_size=4 [05:40:43]MH_SAM_APDU [05:40:43]CAPDU: 80 13 01 00 [05:40:43]Write to MH i2c: E2 08 00 77 04 80 13 01 00 00 00 00 00 F8 [05:40:43]Write i2c OK [05:40:43]MH_I2C_Read... [05:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:43]Read from MH i2c: E2 [05:40:43]MH_I2C_Read... [05:40:43]Read from MH i2c: E2 0E 00 [05:40:43]MH_I2C_Read... [05:40:43]Read from MH i2c: E2 0E 00 77 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 98 [05:40:43]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [05:40:43]wFMCommunicate OK [05:40:43]SAM_PROTO_GetShiftState done [05:40:43]FM_GetShiftState done [05:40:43]opened in 1717459574 [05:40:43]opened+sec_in_day 1717545974 [05:40:43]quantity*price = 16800 [05:40:43]sum+1 = 16801 [05:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 168.00 НСП 1% : 1.49 НДС 12% : 17.84 Наличными: 168.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 8 04.06.2024 05:40 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63923 ФПД: 230209696383673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T054045&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63923&fm=230209696383673&tin=02508201610067®Number=0000000000092737&sum=16800 0 [05:40:44]StoreToDocumentArchive [05:40:44]shift 374 fd 63923 [05:40:44]save to /storage/0374/doc_00063923 [05:40:44]save last doc name /storage/0374/doc_00063923 to /storage/kkm_last_doc_name [05:40:44]save OK [05:40:44]Clear old archive folders... [05:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=277 [05:40:44]tlvbuf is 0129EDC0 [05:40:44]SAM_PROTO_ClearQueue [05:40:44]wFMCommunicate request_size=4 [05:40:44]MH_SAM_APDU [05:40:44]CAPDU: 80 09 00 00 [05:40:44]Write to MH i2c: E2 08 00 84 04 80 09 00 00 00 00 00 00 FA [05:40:44]Write i2c OK [05:40:44]MH_I2C_Read... [05:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:40:44]Read from MH i2c: E2 [05:40:44]MH_I2C_Read... [05:40:44]Read from MH i2c: E2 03 00 [05:40:44]MH_I2C_Read... [05:40:44]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [05:40:44]RAPDU: 90 00 [05:40:44]wFMCommunicate OK [05:40:44]SAM_PROTO_ClearQueue done [05:40:44]KKMCreateOFDPacket [05:40:44]OFDProtocolAddRootSTLVToBuf [05:40:44]FM_MakeSignedData [05:40:44]FM_MakeSignedData [05:40:44]SAM_PROTO_SignData [05:40:44]wFMCommunicate request_size=4 [05:40:44]MH_SAM_APDU [05:40:44]CAPDU: 80 0D 01 02 [05:40:44]Write to MH i2c: E2 08 00 85 04 80 0D 01 02 00 00 00 00 02 [05:40:44]Write i2c OK [05:40:44]MH_I2C_Read... [05:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:40:44]Read from MH i2c: E2 [05:40:44]MH_I2C_Read... [05:40:44]Read from MH i2c: E2 03 00 [05:40:44]MH_I2C_Read... [05:40:44]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [05:40:44]RAPDU: 90 00 [05:40:44]wFMCommunicate OK [05:40:44]wFMCommunicate request_size=255 [05:40:44]MH_SAM_APDU [05:40:44]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 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 DD A8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 [05:40:44]Write to MH i2c: E2 02 01 86 04 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 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 DD A8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 00 00 1B [05:40:45]Write i2c OK [05:40:45]MH_I2C_Read... [05:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:45]Read from MH i2c: E2 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: E2 03 00 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [05:40:45]RAPDU: 90 00 [05:40:45]wFMCommunicate OK [05:40:45]wFMCommunicate request_size=36 [05:40:45]MH_SAM_APDU [05:40:45]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B3 F9 00 00 35 04 06 00 D1 5F DF 2D 42 B9 [05:40:45]Write to MH i2c: E2 27 00 87 04 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B3 F9 00 00 35 04 06 00 D1 5F DF 2D 42 B9 00 00 0C [05:40:45]Write i2c OK [05:40:45]MH_I2C_Read... [05:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:45]Read from MH i2c: E2 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: E2 03 00 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [05:40:45]RAPDU: 90 00 [05:40:45]wFMCommunicate OK [05:40:45]wFMCommunicate request_size=4 [05:40:45]MH_SAM_APDU [05:40:45]CAPDU: 80 0D 03 02 [05:40:45]Write to MH i2c: E2 08 00 88 04 80 0D 03 02 00 00 00 00 07 [05:40:45]Write i2c OK [05:40:45]MH_I2C_Read... [05:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:40:45]Read from MH i2c: E2 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: E2 0B 00 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: E2 0B 00 88 04 00 33 01 DD DB 95 D2 2C 94 90 00 1B [05:40:45]RAPDU: 33 01 DD DB 95 D2 2C 94 90 00 [05:40:45]wFMCommunicate OK [05:40:45]SAM_PROTO_SignData done [05:40:45]FM_MakeSignedData done [05:40:45]CreateOFDProtocolMessage [05:40:45]wFMCommunicate request_size=4 [05:40:45]MH_SAM_APDU [05:40:45]CAPDU: 80 11 00 00 [05:40:45]Write to MH i2c: E2 08 00 89 04 80 11 00 00 00 00 00 00 07 [05:40:45]Write i2c OK [05:40:45]MH_I2C_Read... [05:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:45]Read from MH i2c: E2 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: E2 17 00 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: E2 17 00 89 04 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:40: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:40:45]wFMCommunicate OK [05:40:45]CreateOFDProtocolMessage done [05:40:45]OFDSenderStorePacket 63923 [05:40:45]StoreOFDPacket docnum=63923 [05:40: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 29 01 00 00 EC B8 21 01 50 2E 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 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 DD A8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 D1 5F DF 2D 42 B9 33 01 DD DB 95 D2 2C 94 [05:40:45]CheckFolder [05:40:45]dirname=/storage/ofd_packets [05:40:45]CheckFolder done [05:40:45]ProducePacketName [05:40:45]name=ofd_packets/00063923 [05:40:45]NVStorageSaveData ofd_packets/00063923 [05:40:45]File name is /storage/ofd_packets/00063923 [05:40:45]Write 327 bytes [05:40:45]NVStorageSaveData done [05:40:45]OFDSenderStorePacket done [05:40:45]KKMCreateOFDPacket done [05:40:45]NVStorageSaveData kkm_last_timestamp [05:40:45]File name is /storage/kkm_last_timestamp [05:40:45]Write 4 bytes [05:40:45]NVStorageSaveData done [05:40:45]ExternCall_PrintAddStr [05:40:45]wPrintStart [05:40:45]Write to MH i2c: 01 00 00 8A 04 8E [05:40:45]Write i2c OK [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: 01 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: 01 07 00 [05:40:45]MH_I2C_Read... [05:40:45]Read from MH i2c: 01 07 00 8A 04 00 00 00 00 00 FF 0F A3 [05:40:45]RasterBufferAndPrint [05:40:45]line Счет N : (3)73490 [05:40:45]line ИНН: 02508201610067 [05:40:45]line Контрольно-Кассовый Чек [05:40:45]line ПРОДАЖА [05:40:45]line Товар: 4780022460292 [05:40:45]line Антифриз Yumiko green 1кг [05:40:45]line 1.000 * 168.00 [05:40:45]line = 168.00 [05:40:45]line НДС 12% НСП 1% [05:40:45]line > о реализуемом товаре [05:40:45]line ИТОГО: 168.00 [05:40:45]line НСП 1% : 1.49 [05:40:45]line НДС 12% : 17.84 [05:40:45]line Наличными: 168.00 [05:40:45]line Безнал.: 0.00 [05:40:45]line Место: АЗС № 117 "Партнер Нефть" [05:40:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [05:40:45]line СНО: Общий режим [05:40:45]line Чек 8 04.06.2024 05:40 [05:40:45]line Смена: 374 ФФД: 1.0 [05:40:45]line ЗНМ: 0300000031 [05:40:45]line РНМ: 0000000000092737 [05:40:45]line Версия ККМ: 001 [05:40:45]line ФМ: 0000000000875074 [05:40:45]line ФД: 63923 [05:40:45]line ФПД: 230209696383673 [05:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T054045&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63923&fm=230209696383673&tin=02508201610067®Number=0000000000092737&sum=16800 [05:40:45]line 0 [05:40:45]OFD Sender: Processing packet 63923 [packets to send 14, broken 13] [05:40:45]ProducePacketName [05:40:45]name=ofd_packets/00063923 [05:40:45]OFD Sender: To server: pG, [05:40:45]CommunicateWithHost lk.salyk.kg:30040 [05:40:45]ConnectInit lk.salyk.kg [05:40:45]written 0, free lines is 4095 [05:40:45]Connected sock=10 [05:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 29 01 00 00 EC B8 21 01 50 2E 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 39 32 06 04 23 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 72 65 65 6E 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 41 00 00 00 00 13 04 06 00 A0 41 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 41 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 06 00 00 00 00 07 04 06 00 A0 41 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 DD A8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 D1 5F DF 2D 42 B9 33 01 DD DB 95 D2 2C 94 [05:40: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 7A AD 47 00 27 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B3 F9 00 00 F4 03 04 00 AC 54 5E 66 B6 04 01 00 00 F2 F4 4B 47 B2 52 EA E3 [05:40:46]CommunicateWithHost err = 0 [05:40:46]CheckOFDResponse [05:40:46]1017 (14) - 77093643461234 [05:40:46]1041 (16) - 0000000000875074 [05:40:46]1040 (4) - 63923 [05:40:46]1012 (4) - 03.06.2024 23:41 [05:40:46]1206 (1) - 0 [05:40:46]OFD Sender: Remove packet 63923 [05:40:46]ProducePacketName [05:40:46]name=ofd_packets/00063923 [05:40:46]NVStorageDeleteData [05:40:46]Write to MH i2c: 01 00 00 B2 04 B6 [05:40:46]Write i2c OK [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: 01 [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: 01 07 00 [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: 01 07 00 B2 04 00 00 00 00 00 FB 0C C4 [05:40:46]RasterBufferAndPrint [05:40:46]line [05:40:46]line [05:40:46]line [05:40:46]line [05:40:46]line [05:40:46]written 0, free lines is 3329 [05:40:46]MH_Cut [05:40:46]Write to MH i2c: D1 01 00 B9 04 01 8F [05:40:46]Write i2c OK [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: D1 [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: D1 01 00 [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: D1 01 00 B9 04 00 8E [05:40:46]Write to MH i2c: 01 00 00 BA 04 BE [05:40:46]Write i2c OK [05:40:46]MH_I2C_Read... [05:40:46]OFD Sender: No OFD packet to send [05:40:46]*** Cut start [05:40:46]*** Partial cut [05:40:46]*** CUTSNS_PIN = 1 [05:40:47]*** CUTSNS_PIN = 0 [05:40:47]*** Brake cut motor [05:40:47]Read from MH i2c: 01 [05:40:47]MH_I2C_Read... [05:40:47]*** Stop cut motor [05:40:47]*** Cut end [05:40:47]Read from MH i2c: 01 07 00 [05:40:47]MH_I2C_Read... [05:40:47]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 FF 0F D3 [05:40:47]process_action close_receipt done [05:40:47]requested_data is exist [05:40:47]produce_requested_data [05:40:47]requested_item fm.sn is exist - process it [05:40:47]wFMCommunicate request_size=4 [05:40:47]MH_SAM_APDU [05:40:47]CAPDU: 80 11 00 00 [05:40:47]Write to MH i2c: E2 08 00 BB 04 80 11 00 00 00 00 00 00 39 [05:40:47]Write i2c OK [05:40:47]MH_I2C_Read... [05:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:47]Read from MH i2c: E2 [05:40:47]MH_I2C_Read... [05:40:47]Read from MH i2c: E2 17 00 [05:40:47]MH_I2C_Read... [05:40:47]Read from MH i2c: E2 17 00 BB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8B [05:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [05:40:47]wFMCommunicate OK [05:40:47]requested_item fd.num is exist - process it [05:40:47]SAM_PROTO_GetFieldsCounters [05:40:47]wFMCommunicate request_size=4 [05:40:47]MH_SAM_APDU [05:40:47]CAPDU: 80 13 00 00 [05:40:47]Write to MH i2c: E2 08 00 BC 04 80 13 00 00 00 00 00 00 3C [05:40:47]Write i2c OK [05:40:47]MH_I2C_Read... [05:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:40:47]Read from MH i2c: E2 [05:40:47]MH_I2C_Read... [05:40:47]Read from MH i2c: E2 62 00 [05:40:47]MH_I2C_Read... [05:40:47]Read from MH i2c: E2 62 00 BC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 9A [05:40: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 B3 F9 00 00 0E 04 04 00 76 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 [05:40:47]wFMCommunicate OK [05:40:47]SAM_PROTO_GetFieldsCounters done [05:40:47]requested_item shift.num is exist - process it [05:40:47]requested_item shift.opened is exist - process it [05:40:47]req_shift_opened [05:40:47]FM_GetShiftState [05:40:47]SAM_PROTO_GetShiftState [05:40:47]wFMCommunicate request_size=4 [05:40:47]MH_SAM_APDU [05:40:47]CAPDU: 80 13 01 00 [05:40:47]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [05:40:47]Write i2c OK [05:40:47]MH_I2C_Read... [05:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:47]Read from MH i2c: E2 [05:40:47]MH_I2C_Read... [05:40:47]Read from MH i2c: E2 0E 00 [05:40:47]MH_I2C_Read... [05:40:47]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 DE [05:40:47]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [05:40:47]wFMCommunicate OK [05:40:47]SAM_PROTO_GetShiftState done [05:40:47]FM_GetShiftState done [05:40:47]req_shift_opened done [05:40:47]requested_item shift.open_date is exist - process it [05:40:47]req_shift_open_date [05:40:47]req_shift_open_date done [05:40:47]produce_requested_data done [05:40:47]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63923,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [05:40:47]process_action_free close_receipt [05:40:47]json_value_free [05:40:47]json_value_free done [05:40:47]process_json_proto returns [05:40:47]Send response to host [05:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63923,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [05:40:47]free response buf [05:40:47]execute_script done [05:40:47]execute_script returns [05:40:47]free content buf [05:40:47]Sock 7.Close socket [05:40:47]Sock 7.Thread stoped [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:37]accept exits with 9 [06:52:37]New connection [06:52:37]New thread 3066912100 created [06:52:37]Thread 3067055460 joined [06:52:37]Waiting for new connection... [06:52:37] Sock 9.Parse request [06:52:37]Sock 9.Check first char [06:52:37]Sock 9.First char is OK [06:52:37]request: POST /json_proto HTTP/1.0 [06:52:37]Method: POST [06:52:37]URL: /json_proto [06:52:37]Method is POST - this is cgi request [06:52:37]url: /json_proto [06:52:37]query_string will be loaded in cgi processing [06:52:37]execute_cgi json_proto POST (null) [06:52:37]execute_cgi path=json_proto method=POST [06:52:37]POST find Content-Length [06:52:37]Host: 172.17.60.69:8080 [06:52:37]Content-Length: 891 [06:52:37]Content-Type: application/json [06:52:37] [06:52:37]POST finish read [06:52:37]Found Content-Length = 891 [06:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73491", "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 }]} ,{ "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" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:37]execute_script... [06:52:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73491", "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 }]} ,{ "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" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:37]POST & json_proto [06:52:37]process_json_proto [06:52:37]json parsed OK: [06:52:37]protocol is kg_v1.0 [06:52:37]action value=close_receipt [06:52:37]process_action close_receipt [06:52:37]cmd_close_receipt [06:52:37]MH_GetDate [06:52:37]Write to MH i2c: F0 00 00 BE 04 B1 [06:52:37]Write i2c OK [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: F0 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: F0 09 00 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: F0 09 00 BE 04 00 B7 B9 5E 66 6A 96 4A 66 9E [06:52:37]GetLastDocTimeStamp 1717479645 [06:52:37]current date 1717483959 [06:52:37]FM_GetShiftState [06:52:37]SAM_PROTO_GetShiftState [06:52:37]wFMCommunicate request_size=4 [06:52:37]MH_SAM_APDU [06:52:37]CAPDU: 80 13 01 00 [06:52:37]Write to MH i2c: E2 08 00 BF 04 80 13 01 00 00 00 00 00 40 [06:52:37]Write i2c OK [06:52:37]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 0E 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 0E 00 BF 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 E0 [06:52:38]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [06:52:38]wFMCommunicate OK [06:52:38]SAM_PROTO_GetShiftState done [06:52:38]FM_GetShiftState done [06:52:38]opened in 1717459574 [06:52:38]opened+sec_in_day 1717545974 [06:52:38]quantity*price = 14000 [06:52:38]sum+1 = 14001 [06:52:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 235.00 НСП 1% : 2.08 НДС 12% : 24.96 Наличными: 235.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 9 04.06.2024 06:52 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63924 ФПД: 231304753571527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T065239&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63924&fm=231304753571527&tin=02508201610067®Number=0000000000092737&sum=23500 0 [06:52:39]StoreToDocumentArchive [06:52:39]shift 374 fd 63924 [06:52:39]save to /storage/0374/doc_00063924 [06:52:39]save last doc name /storage/0374/doc_00063924 to /storage/kkm_last_doc_name [06:52:39]save OK [06:52:39]Clear old archive folders... [06:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=396 [06:52:39]tlvbuf is 012A7DD0 [06:52:39]SAM_PROTO_ClearQueue [06:52:39]wFMCommunicate request_size=4 [06:52:39]MH_SAM_APDU [06:52:39]CAPDU: 80 09 00 00 [06:52:39]Write to MH i2c: E2 08 00 CC 04 80 09 00 00 00 00 00 00 42 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [06:52:39]RAPDU: 90 00 [06:52:39]wFMCommunicate OK [06:52:39]SAM_PROTO_ClearQueue done [06:52:39]KKMCreateOFDPacket [06:52:39]OFDProtocolAddRootSTLVToBuf [06:52:39]FM_MakeSignedData [06:52:39]FM_MakeSignedData [06:52:39]SAM_PROTO_SignData [06:52:39]wFMCommunicate request_size=4 [06:52:39]MH_SAM_APDU [06:52:39]CAPDU: 80 0D 01 02 [06:52:39]Write to MH i2c: E2 08 00 CD 04 80 0D 01 02 00 00 00 00 4A [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [06:52:39]RAPDU: 90 00 [06:52:39]wFMCommunicate OK [06:52:39]wFMCommunicate request_size=255 [06:52:39]MH_SAM_APDU [06:52:39]CAPDU: 80 0D 02 02 FA 03 00 8C 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 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 CC 5B 00 00 00 00 EB 03 26 00 EF [06:52:39]Write to MH i2c: E2 02 01 CE 04 80 0D 02 02 FA 00 03 00 8C 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 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 CC 5B 00 00 00 00 EB 03 26 00 EF 00 00 53 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [06:52:39]RAPDU: 90 00 [06:52:39]wFMCommunicate OK [06:52:39]wFMCommunicate request_size=155 [06:52:39]MH_SAM_APDU [06:52:39]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 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 B7 B9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 D2 5E D5 AB E6 C7 [06:52:39]Write to MH i2c: E2 9E 00 CF 04 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 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 B7 B9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 D2 5E D5 AB E6 C7 00 00 33 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [06:52:39]RAPDU: 90 00 [06:52:39]wFMCommunicate OK [06:52:39]wFMCommunicate request_size=4 [06:52:39]MH_SAM_APDU [06:52:39]CAPDU: 80 0D 03 02 [06:52:39]Write to MH i2c: E2 08 00 D0 04 80 0D 03 02 00 00 00 00 4F [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 0B 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 0B 00 D0 04 00 DF 5D 82 C6 43 ED 88 39 90 00 C5 [06:52:39]RAPDU: DF 5D 82 C6 43 ED 88 39 90 00 [06:52:39]wFMCommunicate OK [06:52:39]SAM_PROTO_SignData done [06:52:39]FM_MakeSignedData done [06:52:39]CreateOFDProtocolMessage [06:52:39]wFMCommunicate request_size=4 [06:52:39]MH_SAM_APDU [06:52:39]CAPDU: 80 11 00 00 [06:52:39]Write to MH i2c: E2 08 00 D1 04 80 11 00 00 00 00 00 00 4F [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 17 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 17 00 D1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A1 [06:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:52:39]wFMCommunicate OK [06:52:39]CreateOFDProtocolMessage done [06:52:39]OFDSenderStorePacket 63924 [06:52:39]StoreOFDPacket docnum=63924 [06:52: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 A0 01 00 00 42 18 98 01 3A 22 5A 03 01 00 03 00 8C 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 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 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 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 B7 B9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 D2 5E D5 AB E6 C7 DF 5D 82 C6 43 ED 88 39 [06:52:39]CheckFolder [06:52:39]dirname=/storage/ofd_packets [06:52:39]CheckFolder done [06:52:39]ProducePacketName [06:52:39]name=ofd_packets/00063924 [06:52:39]NVStorageSaveData ofd_packets/00063924 [06:52:39]File name is /storage/ofd_packets/00063924 [06:52:39]Write 446 bytes [06:52:39]NVStorageSaveData done [06:52:39]OFDSenderStorePacket done [06:52:39]KKMCreateOFDPacket done [06:52:39]NVStorageSaveData kkm_last_timestamp [06:52:39]File name is /storage/kkm_last_timestamp [06:52:39]Write 4 bytes [06:52:39]NVStorageSaveData done [06:52:39]ExternCall_PrintAddStr [06:52:39]wPrintStart [06:52:39]Write to MH i2c: 01 00 00 D2 04 D6 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 FF 0F EB [06:52:40]RasterBufferAndPrint [06:52:40]line Счет N : (3)73491 [06:52:40]line ИНН: 02508201610067 [06:52:40]line Контрольно-Кассовый Чек [06:52:40]line ПРОДАЖА [06:52:40]line Товар: 48747059 [06:52:40]line Сигареты Winston Legend Blue [06:52:40]line 1.000 * 140.00 [06:52:40]line = 140.00 [06:52:40]line НДС 12% НСП 1% [06:52:40]line > о реализуемом товаре [06:52:40]line Товар: 4700000480050 [06:52:40]line Напиток Nitro Energy эн green ж/б 0,45л [06:52:40]line 1.000 * 95.00 [06:52:40]line = 95.00 [06:52:40]line НДС 12% НСП 1% [06:52:40]line > о реализуемом товаре [06:52:40]line ИТОГО: 235.00 [06:52:40]line НСП 1% : 2.08 [06:52:40]line НДС 12% : 24.96 [06:52:40]line Наличными: 235.00 [06:52:40]line Безнал.: 0.00 [06:52:40]line Место: АЗС № 117 "Партнер Нефть" [06:52:40]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:52:40]line СНО: Общий режим [06:52:40]line Чек 9 04.06.2024 06:52 [06:52:40]line Смена: 374 ФФД: 1.0 [06:52:40]line ЗНМ: 0300000031 [06:52:40]line РНМ: 0000000000092737 [06:52:40]line Версия ККМ: 001 [06:52:40]line ФМ: 0000000000875074 [06:52:40]line ФД: 63924 [06:52:40]line ФПД: 231304753571527 [06:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T065239&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63924&fm=231304753571527&tin=02508201610067®Number=0000000000092737&sum=23500 [06:52:40]OFD Sender: Processing packet 63924 [packets to send 14, broken 13] [06:52:40]ProducePacketName [06:52:40]name=ofd_packets/00063924 [06:52:40]OFD Sender: To server: pG, [06:52:40]CommunicateWithHost lk.salyk.kg:30040 [06:52:40]ConnectInit lk.salyk.kg [06:52:40]line 0 [06:52:40]written 0, free lines is 4095 [06:52:40]Connected sock=10 [06:52: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 A0 01 00 00 42 18 98 01 3A 22 5A 03 01 00 03 00 8C 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 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 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 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 B7 B9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 D2 5E D5 AB E6 C7 DF 5D 82 C6 43 ED 88 39 [06:52: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 13 9B 47 00 40 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 B4 F9 00 00 F4 03 04 00 86 65 5E 66 B6 04 01 00 00 10 FD 0E BA 6B B1 23 D1 [06:52:40]CommunicateWithHost err = 0 [06:52:40]CheckOFDResponse [06:52:40]1017 (14) - 77093643461234 [06:52:40]1041 (16) - 0000000000875074 [06:52:40]1040 (4) - 63924 [06:52:40]1012 (4) - 04.06.2024 00:53 [06:52:40]1206 (1) - 0 [06:52:40]OFD Sender: Remove packet 63924 [06:52:40]ProducePacketName [06:52:40]name=ofd_packets/00063924 [06:52:40]NVStorageDeleteData [06:52:40]Write to MH i2c: 01 00 00 02 05 07 [06:52:40]Write i2c OK [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: 01 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: 01 07 00 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 7C 0C 96 [06:52:40]RasterBufferAndPrint [06:52:40]line [06:52:40]line [06:52:40]line [06:52:40]line [06:52:40]line [06:52:40]written 0, free lines is 3204 [06:52:40]MH_Cut [06:52:40]Write to MH i2c: D1 01 00 09 05 01 E0 [06:52:40]Write i2c OK [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: D1 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: D1 01 00 [06:52:40]MH_I2C_Read... [06:52:40]Read from MH i2c: D1 01 00 09 05 00 DF [06:52:40]Write to MH i2c: 01 00 00 0A 05 0F [06:52:40]Write i2c OK [06:52:40]MH_I2C_Read... [06:52:40]OFD Sender: No OFD packet to send [06:52:41]*** Cut start [06:52:41]*** Partial cut [06:52:41]*** CUTSNS_PIN = 1 [06:52:41]*** CUTSNS_PIN = 0 [06:52:41]*** Brake cut motor [06:52:42]Read from MH i2c: 01 [06:52:42]MH_I2C_Read... [06:52:42]*** Stop cut motor [06:52:42]Read from MH i2c: 01 07 00 [06:52:42]MH_I2C_Read... [06:52:42]*** Cut end [06:52:42]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 FF 0F 24 [06:52:42]process_action close_receipt done [06:52:42]requested_data is exist [06:52:42]produce_requested_data [06:52:42]requested_item fm.sn is exist - process it [06:52:42]wFMCommunicate request_size=4 [06:52:42]MH_SAM_APDU [06:52:42]CAPDU: 80 11 00 00 [06:52:42]Write to MH i2c: E2 08 00 0B 05 80 11 00 00 00 00 00 00 8A [06:52:42]Write i2c OK [06:52:42]MH_I2C_Read... [06:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:42]Read from MH i2c: E2 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 17 00 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 17 00 0B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DC [06:52: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:52:42]wFMCommunicate OK [06:52:42]requested_item fd.num is exist - process it [06:52:42]SAM_PROTO_GetFieldsCounters [06:52:42]wFMCommunicate request_size=4 [06:52:42]MH_SAM_APDU [06:52:42]CAPDU: 80 13 00 00 [06:52:42]Write to MH i2c: E2 08 00 0C 05 80 13 00 00 00 00 00 00 8D [06:52:42]Write i2c OK [06:52:42]MH_I2C_Read... [06:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:42]Read from MH i2c: E2 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 62 00 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 62 00 0C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 EF [06:52: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 B4 F9 00 00 0E 04 04 00 76 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 [06:52:42]wFMCommunicate OK [06:52:42]SAM_PROTO_GetFieldsCounters done [06:52:42]requested_item shift.num is exist - process it [06:52:42]requested_item shift.opened is exist - process it [06:52:42]req_shift_opened [06:52:42]FM_GetShiftState [06:52:42]SAM_PROTO_GetShiftState [06:52:42]wFMCommunicate request_size=4 [06:52:42]MH_SAM_APDU [06:52:42]CAPDU: 80 13 01 00 [06:52:42]Write to MH i2c: E2 08 00 0D 05 80 13 01 00 00 00 00 00 8F [06:52:42]Write i2c OK [06:52:42]MH_I2C_Read... [06:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:42]Read from MH i2c: E2 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 0E 00 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 0E 00 0D 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 2F [06:52:42]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [06:52:42]wFMCommunicate OK [06:52:42]SAM_PROTO_GetShiftState done [06:52:42]FM_GetShiftState done [06:52:42]req_shift_opened done [06:52:42]requested_item shift.open_date is exist - process it [06:52:42]req_shift_open_date [06:52:42]req_shift_open_date done [06:52:42]produce_requested_data done [06:52:42]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63924,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [06:52:42]process_action_free close_receipt [06:52:42]json_value_free [06:52:42]json_value_free done [06:52:42]process_json_proto returns [06:52:42]Send response to host [06:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63924,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [06:52:42]free response buf [06:52:42]execute_script done [06:52:42]execute_script returns [06:52:42]free content buf [06:52:42]Sock 9.Close socket [06:52:42]Sock 9.Thread stoped [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:23]accept exits with 7 [06:55:23]New connection [06:55:23]New thread 3067055460 created [06:55:23]Thread 3066912100 joined [06:55:23]Waiting for new connection... [06:55:23] Sock 7.Parse request [06:55:23]Sock 7.Check first char [06:55:23]Sock 7.First char is OK [06:55:23]request: POST /json_proto HTTP/1.0 [06:55:23]Method: POST [06:55:23]URL: /json_proto [06:55:23]Method is POST - this is cgi request [06:55:23]url: /json_proto [06:55:23]query_string will be loaded in cgi processing [06:55:23]execute_cgi json_proto POST (null) [06:55:23]execute_cgi path=json_proto method=POST [06:55:23]POST find Content-Length [06:55:23]Host: 172.17.60.69:8080 [06:55:23]Content-Length: 823 [06:55:23]Content-Type: application/json [06:55:23] [06:55:23]POST finish read [06:55:23]Found Content-Length = 823 [06:55:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73492", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [06:55:23]execute_script... [06:55:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73492", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [06:55:23]POST & json_proto [06:55:23]process_json_proto [06:55:23]json parsed OK: [06:55:23]protocol is kg_v1.0 [06:55:23]action value=close_receipt [06:55:23]process_action close_receipt [06:55:23]cmd_close_receipt [06:55:23]MH_GetDate [06:55:23]Write to MH i2c: F0 00 00 0E 05 02 [06:55:23]Write i2c OK [06:55:23]MH_I2C_Read... [06:55:23]Read from MH i2c: F0 [06:55:23]MH_I2C_Read... [06:55:23]Read from MH i2c: F0 09 00 [06:55:23]MH_I2C_Read... [06:55:23]Read from MH i2c: F0 09 00 0E 05 00 5D BA 5E 66 6A 96 4A 66 96 [06:55:23]GetLastDocTimeStamp 1717483959 [06:55:23]current date 1717484125 [06:55:23]FM_GetShiftState [06:55:23]SAM_PROTO_GetShiftState [06:55:23]wFMCommunicate request_size=4 [06:55:23]MH_SAM_APDU [06:55:23]CAPDU: 80 13 01 00 [06:55:23]Write to MH i2c: E2 08 00 0F 05 80 13 01 00 00 00 00 00 91 [06:55:23]Write i2c OK [06:55:23]MH_I2C_Read... [06:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:23]Read from MH i2c: E2 [06:55:23]MH_I2C_Read... [06:55:23]Read from MH i2c: E2 0E 00 [06:55:23]MH_I2C_Read... [06:55:23]Read from MH i2c: E2 0E 00 0F 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 31 [06:55:23]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [06:55:23]wFMCommunicate OK [06:55:23]SAM_PROTO_GetShiftState done [06:55:23]FM_GetShiftState done [06:55:23]opened in 1717459574 [06:55:23]opened+sec_in_day 1717545974 [06:55:23]quantity*price = 14000 [06:55:23]sum+1 = 14001 [06:55:23]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 СНО: Общий режим Чек 10 04.06.2024 06:55 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63925 ФПД: 77021580939513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T065525&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63925&fm=77021580939513&tin=02508201610067®Number=0000000000092737&sum=14000 0 [06:55:24]StoreToDocumentArchive [06:55:24]shift 374 fd 63925 [06:55:24]save to /storage/0374/doc_00063925 [06:55:24]save last doc name /storage/0374/doc_00063925 to /storage/kkm_last_doc_name [06:55:24]save OK [06:55:24]Clear old archive folders... [06:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=275 [06:55:24]tlvbuf is 012C8E30 [06:55:24]SAM_PROTO_ClearQueue [06:55:24]wFMCommunicate request_size=4 [06:55:24]MH_SAM_APDU [06:55:24]CAPDU: 80 09 00 00 [06:55:24]Write to MH i2c: E2 08 00 1C 05 80 09 00 00 00 00 00 00 93 [06:55:24]Write i2c OK [06:55:24]MH_I2C_Read... [06:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:55:24]Read from MH i2c: E2 [06:55:24]MH_I2C_Read... [06:55:24]Read from MH i2c: E2 03 00 [06:55:24]MH_I2C_Read... [06:55:24]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [06:55:24]RAPDU: 90 00 [06:55:24]wFMCommunicate OK [06:55:24]SAM_PROTO_ClearQueue done [06:55:24]KKMCreateOFDPacket [06:55:24]OFDProtocolAddRootSTLVToBuf [06:55:24]FM_MakeSignedData [06:55:24]FM_MakeSignedData [06:55:24]SAM_PROTO_SignData [06:55:24]wFMCommunicate request_size=4 [06:55:24]MH_SAM_APDU [06:55:24]CAPDU: 80 0D 01 02 [06:55:24]Write to MH i2c: E2 08 00 1D 05 80 0D 01 02 00 00 00 00 9B [06:55:24]Write i2c OK [06:55:24]MH_I2C_Read... [06:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:55:24]Read from MH i2c: E2 [06:55:24]MH_I2C_Read... [06:55:24]Read from MH i2c: E2 03 00 [06:55:24]MH_I2C_Read... [06:55:24]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [06:55:24]RAPDU: 90 00 [06:55:24]wFMCommunicate OK [06:55:24]wFMCommunicate request_size=255 [06:55:24]MH_SAM_APDU [06:55:24]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 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 0A 00 00 00 F4 03 04 00 5D BA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 [06:55:24]Write to MH i2c: E2 02 01 1E 05 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 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 0A 00 00 00 F4 03 04 00 5D BA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 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 8A [06:55:24]Write i2c OK [06:55:24]MH_I2C_Read... [06:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:25]Read from MH i2c: E2 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: E2 03 00 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [06:55:25]RAPDU: 90 00 [06:55:25]wFMCommunicate OK [06:55:25]wFMCommunicate request_size=34 [06:55:25]MH_SAM_APDU [06:55:25]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B5 F9 00 00 35 04 06 00 46 0C FB F8 D0 F9 [06:55:25]Write to MH i2c: E2 25 00 1F 05 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B5 F9 00 00 35 04 06 00 46 0C FB F8 D0 F9 00 00 1A [06:55:25]Write i2c OK [06:55:25]MH_I2C_Read... [06:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:25]Read from MH i2c: E2 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: E2 03 00 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [06:55:25]RAPDU: 90 00 [06:55:25]wFMCommunicate OK [06:55:25]wFMCommunicate request_size=4 [06:55:25]MH_SAM_APDU [06:55:25]CAPDU: 80 0D 03 02 [06:55:25]Write to MH i2c: E2 08 00 20 05 80 0D 03 02 00 00 00 00 A0 [06:55:25]Write i2c OK [06:55:25]MH_I2C_Read... [06:55:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:25]Read from MH i2c: E2 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: E2 0B 00 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: E2 0B 00 20 05 00 7A 22 DC 3C 04 D6 1B DE 90 00 28 [06:55:25]RAPDU: 7A 22 DC 3C 04 D6 1B DE 90 00 [06:55:25]wFMCommunicate OK [06:55:25]SAM_PROTO_SignData done [06:55:25]FM_MakeSignedData done [06:55:25]CreateOFDProtocolMessage [06:55:25]wFMCommunicate request_size=4 [06:55:25]MH_SAM_APDU [06:55:25]CAPDU: 80 11 00 00 [06:55:25]Write to MH i2c: E2 08 00 21 05 80 11 00 00 00 00 00 00 A0 [06:55:25]Write i2c OK [06:55:25]MH_I2C_Read... [06:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:25]Read from MH i2c: E2 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: E2 17 00 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: E2 17 00 21 05 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:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:55:25]wFMCommunicate OK [06:55:25]CreateOFDProtocolMessage done [06:55:25]OFDSenderStorePacket 63925 [06:55:25]StoreOFDPacket docnum=63925 [06:55: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 27 01 00 00 87 F6 1F 01 DB CA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 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 0A 00 00 00 F4 03 04 00 5D BA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 46 0C FB F8 D0 F9 7A 22 DC 3C 04 D6 1B DE [06:55:25]CheckFolder [06:55:25]dirname=/storage/ofd_packets [06:55:25]CheckFolder done [06:55:25]ProducePacketName [06:55:25]name=ofd_packets/00063925 [06:55:25]NVStorageSaveData ofd_packets/00063925 [06:55:25]File name is /storage/ofd_packets/00063925 [06:55:25]Write 325 bytes [06:55:25]NVStorageSaveData done [06:55:25]OFDSenderStorePacket done [06:55:25]KKMCreateOFDPacket done [06:55:25]NVStorageSaveData kkm_last_timestamp [06:55:25]File name is /storage/kkm_last_timestamp [06:55:25]Write 4 bytes [06:55:25]NVStorageSaveData done [06:55:25]ExternCall_PrintAddStr [06:55:25]wPrintStart [06:55:25]Write to MH i2c: 01 00 00 22 05 27 [06:55:25]Write i2c OK [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: 01 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: 01 07 00 [06:55:25]MH_I2C_Read... [06:55:25]Read from MH i2c: 01 07 00 22 05 00 00 00 00 00 FF 0F 3C [06:55:25]RasterBufferAndPrint [06:55:25]line Счет N : (3)73492 [06:55:25]line ИНН: 02508201610067 [06:55:25]line Контрольно-Кассовый Чек [06:55:25]line ПРОДАЖА [06:55:25]line Товар: 48743587 [06:55:25]line Сигареты Winston XStyle Silver [06:55:25]line 1.000 * 140.00 [06:55:25]line = 140.00 [06:55:25]line НДС 12% НСП 1% [06:55:25]line > о реализуемом товаре [06:55:25]line ИТОГО: 140.00 [06:55:25]line НСП 1% : 1.24 [06:55:25]line НДС 12% : 14.87 [06:55:25]line Наличными: 0.00 [06:55:25]line Безнал.: 140.00 [06:55:25]line Место: АЗС № 117 "Партнер Нефть" [06:55:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [06:55:25]line СНО: Общий режим [06:55:25]line Чек 10 04.06.2024 06:55 [06:55:25]line Смена: 374 ФФД: 1.0 [06:55:25]line ЗНМ: 0300000031 [06:55:25]line РНМ: 0000000000092737 [06:55:25]line Версия ККМ: 001 [06:55:25]line Платежная система: АКБ Кыргызстан [06:55:25]line ФМ: 0000000000875074 [06:55:25]line ФД: 63925 [06:55:25]line ФПД: 77021580939513 [06:55:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T065525&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63925&fm=77021580939513&tin=02508201610067®Number=0000000000092737&sum=14000 [06:55:25]line 0 [06:55:25]OFD Sender: Processing packet 63925 [packets to send 14, broken 13] [06:55:25]ProducePacketName [06:55:25]name=ofd_packets/00063925 [06:55:25]OFD Sender: To server: pG, [06:55:25]CommunicateWithHost lk.salyk.kg:30040 [06:55:25]ConnectInit lk.salyk.kg [06:55:25]written 0, free lines is 4095 [06:55:25]Connected sock=10 [06:55: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 27 01 00 00 87 F6 1F 01 DB CA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 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 0A 00 00 00 F4 03 04 00 5D BA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 46 0C FB F8 D0 F9 7A 22 DC 3C 04 D6 1B DE [06:55: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 D4 7D 47 00 65 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 B5 F9 00 00 F4 03 04 00 2C 66 5E 66 B6 04 01 00 00 03 27 F1 98 22 47 12 C6 [06:55:25]CommunicateWithHost err = 0 [06:55:25]CheckOFDResponse [06:55:25]1017 (14) - 77093643461234 [06:55:25]1041 (16) - 0000000000875074 [06:55:25]1040 (4) - 63925 [06:55:25]1012 (4) - 04.06.2024 00:56 [06:55:25]1206 (1) - 0 [06:55:25]OFD Sender: Remove packet 63925 [06:55:25]ProducePacketName [06:55:25]name=ofd_packets/00063925 [06:55:25]NVStorageDeleteData [06:55:26]Write to MH i2c: 01 00 00 4D 05 52 [06:55:26]Write i2c OK [06:55:26]MH_I2C_Read... [06:55:26]Read from MH i2c: 01 [06:55:26]MH_I2C_Read... [06:55:26]Read from MH i2c: 01 07 00 [06:55:26]MH_I2C_Read... [06:55:26]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 DA 0C 3F [06:55:26]RasterBufferAndPrint [06:55:26]line [06:55:26]line [06:55:26]line [06:55:26]line [06:55:26]line [06:55:26]written 0, free lines is 3294 [06:55:26]MH_Cut [06:55:26]Write to MH i2c: D1 01 00 54 05 01 2B [06:55:26]Write i2c OK [06:55:26]MH_I2C_Read... [06:55:26]Read from MH i2c: D1 [06:55:26]MH_I2C_Read... [06:55:26]Read from MH i2c: D1 01 00 [06:55:26]MH_I2C_Read... [06:55:26]Read from MH i2c: D1 01 00 54 05 00 2A [06:55:26]Write to MH i2c: 01 00 00 55 05 5A [06:55:26]Write i2c OK [06:55:26]MH_I2C_Read... [06:55:26]OFD Sender: No OFD packet to send [06:55:26]*** Cut start [06:55:26]*** Partial cut [06:55:26]*** CUTSNS_PIN = 1 [06:55:27]*** CUTSNS_PIN = 0 [06:55:27]*** Brake cut motor [06:55:27]Read from MH i2c: 01 [06:55:27]MH_I2C_Read... [06:55:27]*** Stop cut motor [06:55:27]*** Cut end [06:55:27]Read from MH i2c: 01 07 00 [06:55:27]MH_I2C_Read... [06:55:27]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 FF 0F 6F [06:55:27]process_action close_receipt done [06:55:27]requested_data is exist [06:55:27]produce_requested_data [06:55:27]requested_item fm.sn is exist - process it [06:55:27]wFMCommunicate request_size=4 [06:55:27]MH_SAM_APDU [06:55:27]CAPDU: 80 11 00 00 [06:55:27]Write to MH i2c: E2 08 00 56 05 80 11 00 00 00 00 00 00 D5 [06:55:27]Write i2c OK [06:55:27]MH_I2C_Read... [06:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:27]Read from MH i2c: E2 [06:55:27]MH_I2C_Read... [06:55:27]Read from MH i2c: E2 17 00 [06:55:27]MH_I2C_Read... [06:55:27]Read from MH i2c: E2 17 00 56 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 27 [06:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [06:55:27]wFMCommunicate OK [06:55:27]requested_item fd.num is exist - process it [06:55:27]SAM_PROTO_GetFieldsCounters [06:55:27]wFMCommunicate request_size=4 [06:55:27]MH_SAM_APDU [06:55:27]CAPDU: 80 13 00 00 [06:55:27]Write to MH i2c: E2 08 00 57 05 80 13 00 00 00 00 00 00 D8 [06:55:27]Write i2c OK [06:55:27]MH_I2C_Read... [06:55:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:55:27]Read from MH i2c: E2 [06:55:27]MH_I2C_Read... [06:55:27]Read from MH i2c: E2 62 00 [06:55:27]MH_I2C_Read... [06:55:27]Read from MH i2c: E2 62 00 57 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 3E [06:55: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 B5 F9 00 00 0E 04 04 00 76 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 [06:55:27]wFMCommunicate OK [06:55:27]SAM_PROTO_GetFieldsCounters done [06:55:27]requested_item shift.num is exist - process it [06:55:27]requested_item shift.opened is exist - process it [06:55:27]req_shift_opened [06:55:27]FM_GetShiftState [06:55:27]SAM_PROTO_GetShiftState [06:55:27]wFMCommunicate request_size=4 [06:55:27]MH_SAM_APDU [06:55:27]CAPDU: 80 13 01 00 [06:55:27]Write to MH i2c: E2 08 00 58 05 80 13 01 00 00 00 00 00 DA [06:55:27]Write i2c OK [06:55:27]MH_I2C_Read... [06:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:27]Read from MH i2c: E2 [06:55:27]MH_I2C_Read... [06:55:27]Read from MH i2c: E2 0E 00 [06:55:27]MH_I2C_Read... [06:55:27]Read from MH i2c: E2 0E 00 58 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7A [06:55:27]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [06:55:27]wFMCommunicate OK [06:55:27]SAM_PROTO_GetShiftState done [06:55:27]FM_GetShiftState done [06:55:27]req_shift_opened done [06:55:27]requested_item shift.open_date is exist - process it [06:55:27]req_shift_open_date [06:55:27]req_shift_open_date done [06:55:27]produce_requested_data done [06:55:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63925,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [06:55:27]process_action_free close_receipt [06:55:27]json_value_free [06:55:27]json_value_free done [06:55:27]process_json_proto returns [06:55:27]Send response to host [06:55:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63925,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [06:55:27]free response buf [06:55:27]execute_script done [06:55:27]execute_script returns [06:55:27]free content buf [06:55:27]Sock 7.Close socket [06:55:27]Sock 7.Thread stoped [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:31]accept exits with 9 [07:09:31]New connection [07:09:31]New thread 3066912100 created [07:09:31]Thread 3067055460 joined [07:09:31]Waiting for new connection... [07:09:31] Sock 9.Parse request [07:09:31]Sock 9.Check first char [07:09:31]Sock 9.First char is OK [07:09:31]request: POST /json_proto HTTP/1.0 [07:09:31]Method: POST [07:09:31]URL: /json_proto [07:09:31]Method is POST - this is cgi request [07:09:31]url: /json_proto [07:09:31]query_string will be loaded in cgi processing [07:09:31]execute_cgi json_proto POST (null) [07:09:31]execute_cgi path=json_proto method=POST [07:09:31]POST find Content-Length [07:09:31]Host: 172.17.60.69:8080 [07:09:31]Content-Length: 636 [07:09:31]Content-Type: application/json [07:09:31] [07:09:31]POST finish read [07:09:31]Found Content-Length = 636 [07:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73493", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:31]execute_script... [07:09:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73493", "tax_sys" : 0, "items" : [ { "code": "4700000160051", "name": "\u0412\u043E\u0434\u0430 \u042B\u0441\u0441\u044B\u043A \u0410\u0442\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:31]POST & json_proto [07:09:31]process_json_proto [07:09:31]json parsed OK: [07:09:31]protocol is kg_v1.0 [07:09:31]action value=close_receipt [07:09:31]process_action close_receipt [07:09:31]cmd_close_receipt [07:09:31]MH_GetDate [07:09:31]Write to MH i2c: F0 00 00 59 05 4D [07:09:31]Write i2c OK [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: F0 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: F0 09 00 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: F0 09 00 59 05 00 AD BD 5E 66 6A 96 4A 66 34 [07:09:31]GetLastDocTimeStamp 1717484125 [07:09:31]current date 1717484973 [07:09:31]FM_GetShiftState [07:09:31]SAM_PROTO_GetShiftState [07:09:31]wFMCommunicate request_size=4 [07:09:31]MH_SAM_APDU [07:09:31]CAPDU: 80 13 01 00 [07:09:31]Write to MH i2c: E2 08 00 5A 05 80 13 01 00 00 00 00 00 DC [07:09:31]Write i2c OK [07:09:31]MH_I2C_Read... [07:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:31]Read from MH i2c: E2 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: E2 0E 00 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: E2 0E 00 5A 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7C [07:09:31]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:09:31]wFMCommunicate OK [07:09:31]SAM_PROTO_GetShiftState done [07:09:31]FM_GetShiftState done [07:09:31]opened in 1717459574 [07:09:31]opened+sec_in_day 1717545974 [07:09:31]quantity*price = 5000 [07:09:31]sum+1 = 5001 [07:09:31]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 СНО: Общий режим Чек 11 04.06.2024 07:09 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63926 ФПД: 89996656184849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T070933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63926&fm=89996656184849&tin=02508201610067®Number=0000000000092737&sum=5000 0 [07:09:32]StoreToDocumentArchive [07:09:32]shift 374 fd 63926 [07:09:32]save to /storage/0374/doc_00063926 [07:09:32]save last doc name /storage/0374/doc_00063926 to /storage/kkm_last_doc_name [07:09:32]save OK [07:09:32]Clear old archive folders... [07:09:32]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:09:32]tlvbuf is 012A7760 [07:09:32]SAM_PROTO_ClearQueue [07:09:32]wFMCommunicate request_size=4 [07:09:32]MH_SAM_APDU [07:09:32]CAPDU: 80 09 00 00 [07:09:32]Write to MH i2c: E2 08 00 67 05 80 09 00 00 00 00 00 00 DE [07:09:32]Write i2c OK [07:09:32]MH_I2C_Read... [07:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:32]Read from MH i2c: E2 [07:09:32]MH_I2C_Read... [07:09:32]Read from MH i2c: E2 03 00 [07:09:32]MH_I2C_Read... [07:09:32]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [07:09:32]RAPDU: 90 00 [07:09:32]wFMCommunicate OK [07:09:32]SAM_PROTO_ClearQueue done [07:09:32]KKMCreateOFDPacket [07:09:32]OFDProtocolAddRootSTLVToBuf [07:09:32]FM_MakeSignedData [07:09:32]FM_MakeSignedData [07:09:32]SAM_PROTO_SignData [07:09:32]wFMCommunicate request_size=4 [07:09:32]MH_SAM_APDU [07:09:32]CAPDU: 80 0D 01 02 [07:09:32]Write to MH i2c: E2 08 00 68 05 80 0D 01 02 00 00 00 00 E6 [07:09:32]Write i2c OK [07:09:32]MH_I2C_Read... [07:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:32]Read from MH i2c: E2 [07:09:32]MH_I2C_Read... [07:09:32]Read from MH i2c: E2 03 00 [07:09:32]MH_I2C_Read... [07:09:32]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [07:09:32]RAPDU: 90 00 [07:09:32]wFMCommunicate OK [07:09:32]wFMCommunicate request_size=255 [07:09:32]MH_SAM_APDU [07:09:32]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 0B 00 00 00 F4 03 04 00 AD BD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [07:09:32]Write to MH i2c: E2 02 01 69 05 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 0B 00 00 00 F4 03 04 00 AD BD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 E6 [07:09:32]Write i2c OK [07:09:32]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [07:09:33]RAPDU: 90 00 [07:09:33]wFMCommunicate OK [07:09:33]wFMCommunicate request_size=31 [07:09:33]MH_SAM_APDU [07:09:33]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 B6 F9 00 00 35 04 06 00 51 D9 FA B9 0E 11 [07:09:33]Write to MH i2c: E2 22 00 6A 05 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 B6 F9 00 00 35 04 06 00 51 D9 FA B9 0E 11 00 00 BE [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [07:09:33]RAPDU: 90 00 [07:09:33]wFMCommunicate OK [07:09:33]wFMCommunicate request_size=4 [07:09:33]MH_SAM_APDU [07:09:33]CAPDU: 80 0D 03 02 [07:09:33]Write to MH i2c: E2 08 00 6B 05 80 0D 03 02 00 00 00 00 EB [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 0B 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 0B 00 6B 05 00 4E E0 05 AF 06 B9 20 7E 90 00 2B [07:09:33]RAPDU: 4E E0 05 AF 06 B9 20 7E 90 00 [07:09:33]wFMCommunicate OK [07:09:33]SAM_PROTO_SignData done [07:09:33]FM_MakeSignedData done [07:09:33]CreateOFDProtocolMessage [07:09:33]wFMCommunicate request_size=4 [07:09:33]MH_SAM_APDU [07:09:33]CAPDU: 80 11 00 00 [07:09:33]Write to MH i2c: E2 08 00 6C 05 80 11 00 00 00 00 00 00 EB [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:33]Read from MH i2c: E2 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 17 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: E2 17 00 6C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3D [07:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:09:33]wFMCommunicate OK [07:09:33]CreateOFDProtocolMessage done [07:09:33]OFDSenderStorePacket 63926 [07:09:33]StoreOFDPacket docnum=63926 [07:09: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 24 01 00 00 DA 61 1C 01 69 4C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 0B 00 00 00 F4 03 04 00 AD BD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 51 D9 FA B9 0E 11 4E E0 05 AF 06 B9 20 7E [07:09:33]CheckFolder [07:09:33]dirname=/storage/ofd_packets [07:09:33]CheckFolder done [07:09:33]ProducePacketName [07:09:33]name=ofd_packets/00063926 [07:09:33]NVStorageSaveData ofd_packets/00063926 [07:09:33]File name is /storage/ofd_packets/00063926 [07:09:33]Write 322 bytes [07:09:33]NVStorageSaveData done [07:09:33]OFDSenderStorePacket done [07:09:33]KKMCreateOFDPacket done [07:09:33]NVStorageSaveData kkm_last_timestamp [07:09:33]File name is /storage/kkm_last_timestamp [07:09:33]Write 4 bytes [07:09:33]NVStorageSaveData done [07:09:33]ExternCall_PrintAddStr [07:09:33]wPrintStart [07:09:33]Write to MH i2c: 01 00 00 6D 05 72 [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: 01 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: 01 07 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: 01 07 00 6D 05 00 00 00 00 00 FF 0F 87 [07:09:33]RasterBufferAndPrint [07:09:33]line Счет N : (3)73493 [07:09:33]line ИНН: 02508201610067 [07:09:33]line Контрольно-Кассовый Чек [07:09:33]line ПРОДАЖА [07:09:33]line Товар: 4700000160051 [07:09:33]line Вода Ыссык Ата 1л [07:09:33]line 1.000 * 50.00 [07:09:33]line = 50.00 [07:09:33]line НДС 12% НСП 1% [07:09:33]line > о реализуемом товаре [07:09:33]line ИТОГО: 50.00 [07:09:33]line НСП 1% : 0.44 [07:09:33]line НДС 12% : 5.31 [07:09:33]line Наличными: 50.00 [07:09:33]line Безнал.: 0.00 [07:09:33]line Место: АЗС № 117 "Партнер Нефть" [07:09:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:09:33]line СНО: Общий режим [07:09:33]line Чек 11 04.06.2024 07:09 [07:09:33]line Смена: 374 ФФД: 1.0 [07:09:33]line ЗНМ: 0300000031 [07:09:33]line РНМ: 0000000000092737 [07:09:33]line Версия ККМ: 001 [07:09:33]line ФМ: 0000000000875074 [07:09:33]line ФД: 63926 [07:09:33]line ФПД: 89996656184849 [07:09:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T070933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63926&fm=89996656184849&tin=02508201610067®Number=0000000000092737&sum=5000 [07:09:33]line 0 [07:09:33]OFD Sender: Processing packet 63926 [packets to send 14, broken 13] [07:09:33]ProducePacketName [07:09:33]name=ofd_packets/00063926 [07:09:33]OFD Sender: To server: pG, [07:09:33]CommunicateWithHost lk.salyk.kg:30040 [07:09:33]ConnectInit lk.salyk.kg [07:09:33]written 0, free lines is 4095 [07:09:33]Connected sock=10 [07:09:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 24 01 00 00 DA 61 1C 01 69 4C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 0B 00 00 00 F4 03 04 00 AD BD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 51 D9 FA B9 0E 11 4E E0 05 AF 06 B9 20 7E [07:09: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 87 06 47 00 7E 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B6 F9 00 00 F4 03 04 00 7C 69 5E 66 B6 04 01 00 00 D2 05 89 A7 B2 07 59 3F [07:09:33]CommunicateWithHost err = 0 [07:09:33]CheckOFDResponse [07:09:33]1017 (14) - 77093643461234 [07:09:33]1041 (16) - 0000000000875074 [07:09:33]1040 (4) - 63926 [07:09:33]1012 (4) - 04.06.2024 01:10 [07:09:33]1206 (1) - 0 [07:09:33]OFD Sender: Remove packet 63926 [07:09:33]ProducePacketName [07:09:33]name=ofd_packets/00063926 [07:09:33]NVStorageDeleteData [07:09:33]Write to MH i2c: 01 00 00 95 05 9A [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: 01 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: 01 07 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 ED 0C 9A [07:09:33]RasterBufferAndPrint [07:09:33]line [07:09:33]line [07:09:33]line [07:09:33]line [07:09:33]line [07:09:33]written 0, free lines is 3315 [07:09:33]MH_Cut [07:09:33]Write to MH i2c: D1 01 00 9C 05 01 73 [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: D1 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: D1 01 00 [07:09:33]MH_I2C_Read... [07:09:33]Read from MH i2c: D1 01 00 9C 05 00 72 [07:09:33]Write to MH i2c: 01 00 00 9D 05 A2 [07:09:33]Write i2c OK [07:09:33]MH_I2C_Read... [07:09:34]OFD Sender: No OFD packet to send [07:09:34]*** Cut start [07:09:34]*** Partial cut [07:09:34]*** CUTSNS_PIN = 1 [07:09:34]*** CUTSNS_PIN = 0 [07:09:35]*** Brake cut motor [07:09:35]Read from MH i2c: 01 [07:09:35]MH_I2C_Read... [07:09:35]*** Stop cut motor [07:09:35]*** Cut end [07:09:35]Read from MH i2c: 01 07 00 [07:09:35]MH_I2C_Read... [07:09:35]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 FF 0F B7 [07:09:35]process_action close_receipt done [07:09:35]requested_data is exist [07:09:35]produce_requested_data [07:09:35]requested_item fm.sn is exist - process it [07:09:35]wFMCommunicate request_size=4 [07:09:35]MH_SAM_APDU [07:09:35]CAPDU: 80 11 00 00 [07:09:35]Write to MH i2c: E2 08 00 9E 05 80 11 00 00 00 00 00 00 1D [07:09:35]Write i2c OK [07:09:35]MH_I2C_Read... [07:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:35]Read from MH i2c: E2 [07:09:35]MH_I2C_Read... [07:09:35]Read from MH i2c: E2 17 00 [07:09:35]MH_I2C_Read... [07:09:35]Read from MH i2c: E2 17 00 9E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6F [07:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:09:35]wFMCommunicate OK [07:09:35]requested_item fd.num is exist - process it [07:09:35]SAM_PROTO_GetFieldsCounters [07:09:35]wFMCommunicate request_size=4 [07:09:35]MH_SAM_APDU [07:09:35]CAPDU: 80 13 00 00 [07:09:35]Write to MH i2c: E2 08 00 9F 05 80 13 00 00 00 00 00 00 20 [07:09:35]Write i2c OK [07:09:35]MH_I2C_Read... [07:09:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:35]Read from MH i2c: E2 [07:09:35]MH_I2C_Read... [07:09:35]Read from MH i2c: E2 62 00 [07:09:35]MH_I2C_Read... [07:09:35]Read from MH i2c: E2 62 00 9F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 [07:09: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 B6 F9 00 00 0E 04 04 00 76 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 [07:09:35]wFMCommunicate OK [07:09:35]SAM_PROTO_GetFieldsCounters done [07:09:35]requested_item shift.num is exist - process it [07:09:35]requested_item shift.opened is exist - process it [07:09:35]req_shift_opened [07:09:35]FM_GetShiftState [07:09:35]SAM_PROTO_GetShiftState [07:09:35]wFMCommunicate request_size=4 [07:09:35]MH_SAM_APDU [07:09:35]CAPDU: 80 13 01 00 [07:09:35]Write to MH i2c: E2 08 00 A0 05 80 13 01 00 00 00 00 00 22 [07:09:35]Write i2c OK [07:09:35]MH_I2C_Read... [07:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:35]Read from MH i2c: E2 [07:09:35]MH_I2C_Read... [07:09:35]Read from MH i2c: E2 0E 00 [07:09:35]MH_I2C_Read... [07:09:35]Read from MH i2c: E2 0E 00 A0 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C2 [07:09:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:09:35]wFMCommunicate OK [07:09:35]SAM_PROTO_GetShiftState done [07:09:35]FM_GetShiftState done [07:09:35]req_shift_opened done [07:09:35]requested_item shift.open_date is exist - process it [07:09:35]req_shift_open_date [07:09:35]req_shift_open_date done [07:09:35]produce_requested_data done [07:09:35]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63926,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [07:09:35]process_action_free close_receipt [07:09:35]json_value_free [07:09:35]json_value_free done [07:09:35]process_json_proto returns [07:09:35]Send response to host [07:09:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63926,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [07:09:35]free response buf [07:09:35]execute_script done [07:09:35]execute_script returns [07:09:35]free content buf [07:09:35]Sock 9.Close socket [07:09:35]Sock 9.Thread stoped [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:17]accept exits with 7 [07:10:17]New connection [07:10:17]New thread 3067055460 created [07:10:17]Thread 3066912100 joined [07:10:17]Waiting for new connection... [07:10:17] Sock 7.Parse request [07:10:17]Sock 7.Check first char [07:10:17]Sock 7.First char is OK [07:10:17]request: POST /json_proto HTTP/1.0 [07:10:17]Method: POST [07:10:17]URL: /json_proto [07:10:17]Method is POST - this is cgi request [07:10:17]url: /json_proto [07:10:17]query_string will be loaded in cgi processing [07:10:17]execute_cgi json_proto POST (null) [07:10:17]execute_cgi path=json_proto method=POST [07:10:17]POST find Content-Length [07:10:17]Host: 172.17.60.69:8080 [07:10:17]Content-Length: 619 [07:10:17]Content-Type: application/json [07:10:17] [07:10:17]POST finish read [07:10:17]Found Content-Length = 619 [07:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73494", "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" ] } } [07:10:17]execute_script... [07:10: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)73494", "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" ] } } [07:10:17]POST & json_proto [07:10:17]process_json_proto [07:10:17]json parsed OK: [07:10:17]protocol is kg_v1.0 [07:10:17]action value=close_receipt [07:10:17]process_action close_receipt [07:10:17]cmd_close_receipt [07:10:17]MH_GetDate [07:10:17]Write to MH i2c: F0 00 00 A1 05 95 [07:10:17]Write i2c OK [07:10:17]MH_I2C_Read... [07:10:17]Read from MH i2c: F0 [07:10:17]MH_I2C_Read... [07:10:17]Read from MH i2c: F0 09 00 [07:10:17]MH_I2C_Read... [07:10:17]Read from MH i2c: F0 09 00 A1 05 00 DB BD 5E 66 6A 96 4A 66 AA [07:10:17]GetLastDocTimeStamp 1717484973 [07:10:17]current date 1717485019 [07:10:17]FM_GetShiftState [07:10:17]SAM_PROTO_GetShiftState [07:10:17]wFMCommunicate request_size=4 [07:10:17]MH_SAM_APDU [07:10:17]CAPDU: 80 13 01 00 [07:10:17]Write to MH i2c: E2 08 00 A2 05 80 13 01 00 00 00 00 00 24 [07:10:17]Write i2c OK [07:10:17]MH_I2C_Read... [07:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:17]Read from MH i2c: E2 [07:10:17]MH_I2C_Read... [07:10:17]Read from MH i2c: E2 0E 00 [07:10:17]MH_I2C_Read... [07:10:17]Read from MH i2c: E2 0E 00 A2 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C4 [07:10:17]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:10:17]wFMCommunicate OK [07:10:17]SAM_PROTO_GetShiftState done [07:10:17]FM_GetShiftState done [07:10:17]opened in 1717459574 [07:10:17]opened+sec_in_day 1717545974 [07:10:17]quantity*price = 13500 [07:10:17]sum+1 = 13501 [07:10:17]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 СНО: Общий режим Чек 12 04.06.2024 07:10 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63927 ФПД: 78158539521814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T071019&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63927&fm=78158539521814&tin=02508201610067®Number=0000000000092737&sum=13500 0 [07:10:18]StoreToDocumentArchive [07:10:18]shift 374 fd 63927 [07:10:18]save to /storage/0374/doc_00063927 [07:10:18]save last doc name /storage/0374/doc_00063927 to /storage/kkm_last_doc_name [07:10:18]save OK [07:10:18]Clear old archive folders... [07:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:10:18]tlvbuf is B6EC1400 [07:10:18]SAM_PROTO_ClearQueue [07:10:18]wFMCommunicate request_size=4 [07:10:18]MH_SAM_APDU [07:10:18]CAPDU: 80 09 00 00 [07:10:18]Write to MH i2c: E2 08 00 AF 05 80 09 00 00 00 00 00 00 26 [07:10:18]Write i2c OK [07:10:18]MH_I2C_Read... [07:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:19]Read from MH i2c: E2 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 03 00 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [07:10:19]RAPDU: 90 00 [07:10:19]wFMCommunicate OK [07:10:19]SAM_PROTO_ClearQueue done [07:10:19]KKMCreateOFDPacket [07:10:19]OFDProtocolAddRootSTLVToBuf [07:10:19]FM_MakeSignedData [07:10:19]FM_MakeSignedData [07:10:19]SAM_PROTO_SignData [07:10:19]wFMCommunicate request_size=4 [07:10:19]MH_SAM_APDU [07:10:19]CAPDU: 80 0D 01 02 [07:10:19]Write to MH i2c: E2 08 00 B0 05 80 0D 01 02 00 00 00 00 2E [07:10:19]Write i2c OK [07:10:19]MH_I2C_Read... [07:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:19]Read from MH i2c: E2 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 03 00 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [07:10:19]RAPDU: 90 00 [07:10:19]wFMCommunicate OK [07:10:19]wFMCommunicate request_size=255 [07:10:19]MH_SAM_APDU [07:10:19]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 0C 00 00 00 F4 03 04 00 DB BD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [07:10:19]Write to MH i2c: E2 02 01 B1 05 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 0C 00 00 00 F4 03 04 00 DB BD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 CB [07:10:19]Write i2c OK [07:10:19]MH_I2C_Read... [07:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:19]Read from MH i2c: E2 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 03 00 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [07:10:19]RAPDU: 90 00 [07:10:19]wFMCommunicate OK [07:10:19]wFMCommunicate request_size=31 [07:10:19]MH_SAM_APDU [07:10:19]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 B7 F9 00 00 35 04 06 00 47 15 B3 FB FF 16 [07:10:19]Write to MH i2c: E2 22 00 B2 05 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 B7 F9 00 00 35 04 06 00 47 15 B3 FB FF 16 00 00 2A [07:10:19]Write i2c OK [07:10:19]MH_I2C_Read... [07:10:19]OFD Sender: No OFD packet to send [07:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:19]Read from MH i2c: E2 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 03 00 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [07:10:19]RAPDU: 90 00 [07:10:19]wFMCommunicate OK [07:10:19]wFMCommunicate request_size=4 [07:10:19]MH_SAM_APDU [07:10:19]CAPDU: 80 0D 03 02 [07:10:19]Write to MH i2c: E2 08 00 B3 05 80 0D 03 02 00 00 00 00 33 [07:10:19]Write i2c OK [07:10:19]MH_I2C_Read... [07:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:19]Read from MH i2c: E2 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 0B 00 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 0B 00 B3 05 00 E4 6C 12 44 B3 69 17 21 90 00 2E [07:10:19]RAPDU: E4 6C 12 44 B3 69 17 21 90 00 [07:10:19]wFMCommunicate OK [07:10:19]SAM_PROTO_SignData done [07:10:19]FM_MakeSignedData done [07:10:19]CreateOFDProtocolMessage [07:10:19]wFMCommunicate request_size=4 [07:10:19]MH_SAM_APDU [07:10:19]CAPDU: 80 11 00 00 [07:10:19]Write to MH i2c: E2 08 00 B4 05 80 11 00 00 00 00 00 00 33 [07:10:19]Write i2c OK [07:10:19]MH_I2C_Read... [07:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:19]Read from MH i2c: E2 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 17 00 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: E2 17 00 B4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 85 [07:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:10:19]wFMCommunicate OK [07:10:19]CreateOFDProtocolMessage done [07:10:19]OFDSenderStorePacket 63927 [07:10:19]StoreOFDPacket docnum=63927 [07:10: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 24 01 00 00 F5 5A 1C 01 1C F6 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 0C 00 00 00 F4 03 04 00 DB BD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 47 15 B3 FB FF 16 E4 6C 12 44 B3 69 17 21 [07:10:19]CheckFolder [07:10:19]dirname=/storage/ofd_packets [07:10:19]CheckFolder done [07:10:19]ProducePacketName [07:10:19]name=ofd_packets/00063927 [07:10:19]NVStorageSaveData ofd_packets/00063927 [07:10:19]File name is /storage/ofd_packets/00063927 [07:10:19]Write 322 bytes [07:10:19]NVStorageSaveData done [07:10:19]OFDSenderStorePacket done [07:10:19]KKMCreateOFDPacket done [07:10:19]NVStorageSaveData kkm_last_timestamp [07:10:19]File name is /storage/kkm_last_timestamp [07:10:19]Write 4 bytes [07:10:19]NVStorageSaveData done [07:10:19]ExternCall_PrintAddStr [07:10:19]wPrintStart [07:10:19]Write to MH i2c: 01 00 00 B5 05 BA [07:10:19]Write i2c OK [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: 01 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: 01 07 00 [07:10:19]MH_I2C_Read... [07:10:19]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FF 0F CF [07:10:19]RasterBufferAndPrint [07:10:19]line Счет N : (3)73494 [07:10:19]line ИНН: 02508201610067 [07:10:19]line Контрольно-Кассовый Чек [07:10:19]line ПРОДАЖА [07:10:19]line Товар: 48745000 [07:10:19]line Сигареты Winston Purple Mix [07:10:19]line 1.000 * 135.00 [07:10:19]line = 135.00 [07:10:19]line НДС 12% НСП 1% [07:10:19]line > о реализуемом товаре [07:10:19]line ИТОГО: 135.00 [07:10:19]line НСП 1% : 1.19 [07:10:19]line НДС 12% : 14.34 [07:10:19]line Наличными: 135.00 [07:10:19]line Безнал.: 0.00 [07:10:19]line Место: АЗС № 117 "Партнер Нефть" [07:10:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:10:19]line СНО: Общий режим [07:10:19]line Чек 12 04.06.2024 07:10 [07:10:19]line Смена: 374 ФФД: 1.0 [07:10:19]line ЗНМ: 0300000031 [07:10:19]line РНМ: 0000000000092737 [07:10:19]line Версия ККМ: 001 [07:10:19]line ФМ: 0000000000875074 [07:10:19]line ФД: 63927 [07:10:19]line ФПД: 78158539521814 [07:10:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T071019&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63927&fm=78158539521814&tin=02508201610067®Number=0000000000092737&sum=13500 [07:10:19]line 0 [07:10:19]OFD Sender: Processing packet 63927 [packets to send 14, broken 13] [07:10:19]ProducePacketName [07:10:19]name=ofd_packets/00063927 [07:10:19]OFD Sender: To server: pG, [07:10:19]CommunicateWithHost lk.salyk.kg:30040 [07:10:19]ConnectInit lk.salyk.kg [07:10:19]written 0, free lines is 4095 [07:10:19]Connected sock=10 [07:10: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 24 01 00 00 F5 5A 1C 01 1C F6 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 0C 00 00 00 F4 03 04 00 DB BD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 47 15 B3 FB FF 16 E4 6C 12 44 B3 69 17 21 [07:10: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 42 47 00 D8 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B7 F9 00 00 F4 03 04 00 AA 69 5E 66 B6 04 01 00 00 64 37 E4 95 BA CD 35 FC [07:10:20]CommunicateWithHost err = 0 [07:10:20]CheckOFDResponse [07:10:20]1017 (14) - 77093643461234 [07:10:20]1041 (16) - 0000000000875074 [07:10:20]1040 (4) - 63927 [07:10:20]1012 (4) - 04.06.2024 01:11 [07:10:20]1206 (1) - 0 [07:10:20]OFD Sender: Remove packet 63927 [07:10:20]ProducePacketName [07:10:20]name=ofd_packets/00063927 [07:10:20]NVStorageDeleteData [07:10:20]Write to MH i2c: 01 00 00 DD 05 E2 [07:10:20]Write i2c OK [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: 01 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: 01 07 00 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 E8 0C DD [07:10:20]RasterBufferAndPrint [07:10:20]line [07:10:20]line [07:10:20]line [07:10:20]line [07:10:20]line [07:10:20]written 0, free lines is 3310 [07:10:20]MH_Cut [07:10:20]Write to MH i2c: D1 01 00 E4 05 01 BB [07:10:20]Write i2c OK [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: D1 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: D1 01 00 [07:10:20]MH_I2C_Read... [07:10:20]Read from MH i2c: D1 01 00 E4 05 00 BA [07:10:20]Write to MH i2c: 01 00 00 E5 05 EA [07:10:20]Write i2c OK [07:10:20]MH_I2C_Read... [07:10:20]OFD Sender: No OFD packet to send [07:10:21]*** Cut start [07:10:21]*** Partial cut [07:10:21]*** CUTSNS_PIN = 1 [07:10:21]*** CUTSNS_PIN = 0 [07:10:21]*** Brake cut motor [07:10:21]Read from MH i2c: 01 [07:10:21]MH_I2C_Read... [07:10:21]*** Stop cut motor [07:10:21]*** Cut end [07:10:21]Read from MH i2c: 01 07 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 FF 0F FF [07:10:21]process_action close_receipt done [07:10:21]requested_data is exist [07:10:21]produce_requested_data [07:10:21]requested_item fm.sn is exist - process it [07:10:21]wFMCommunicate request_size=4 [07:10:21]MH_SAM_APDU [07:10:21]CAPDU: 80 11 00 00 [07:10:21]Write to MH i2c: E2 08 00 E6 05 80 11 00 00 00 00 00 00 65 [07:10:21]Write i2c OK [07:10:21]MH_I2C_Read... [07:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:21]Read from MH i2c: E2 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 17 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 17 00 E6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B7 [07:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:10:21]wFMCommunicate OK [07:10:21]requested_item fd.num is exist - process it [07:10:21]SAM_PROTO_GetFieldsCounters [07:10:21]wFMCommunicate request_size=4 [07:10:21]MH_SAM_APDU [07:10:21]CAPDU: 80 13 00 00 [07:10:21]Write to MH i2c: E2 08 00 E7 05 80 13 00 00 00 00 00 00 68 [07:10:21]Write i2c OK [07:10:21]MH_I2C_Read... [07:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:21]Read from MH i2c: E2 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 62 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 62 00 E7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 D6 [07:10: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 B7 F9 00 00 0E 04 04 00 76 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 [07:10:21]wFMCommunicate OK [07:10:21]SAM_PROTO_GetFieldsCounters done [07:10:21]requested_item shift.num is exist - process it [07:10:21]requested_item shift.opened is exist - process it [07:10:21]req_shift_opened [07:10:21]FM_GetShiftState [07:10:21]SAM_PROTO_GetShiftState [07:10:21]wFMCommunicate request_size=4 [07:10:21]MH_SAM_APDU [07:10:21]CAPDU: 80 13 01 00 [07:10:21]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [07:10:21]Write i2c OK [07:10:21]MH_I2C_Read... [07:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:21]Read from MH i2c: E2 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 0E 00 [07:10:21]MH_I2C_Read... [07:10:21]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0A [07:10:21]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:10:21]wFMCommunicate OK [07:10:21]SAM_PROTO_GetShiftState done [07:10:21]FM_GetShiftState done [07:10:21]req_shift_opened done [07:10:21]requested_item shift.open_date is exist - process it [07:10:21]req_shift_open_date [07:10:21]req_shift_open_date done [07:10:21]produce_requested_data done [07:10:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63927,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [07:10:21]process_action_free close_receipt [07:10:21]json_value_free [07:10:21]json_value_free done [07:10:21]process_json_proto returns [07:10:21]Send response to host [07:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63927,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [07:10:21]free response buf [07:10:21]execute_script done [07:10:21]execute_script returns [07:10:21]free content buf [07:10:21]Sock 7.Close socket [07:10:21]Sock 7.Thread stoped [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:15]accept exits with 9 [07:52:15]New connection [07:52:15]New thread 3066912100 created [07:52:15]Thread 3067055460 joined [07:52:15]Waiting for new connection... [07:52:15] Sock 9.Parse request [07:52:15]Sock 9.Check first char [07:52:15]Sock 9.First char is OK [07:52:15]request: POST /json_proto HTTP/1.0 [07:52:15]Method: POST [07:52:15]URL: /json_proto [07:52:15]Method is POST - this is cgi request [07:52:15]url: /json_proto [07:52:15]query_string will be loaded in cgi processing [07:52:15]execute_cgi json_proto POST (null) [07:52:15]execute_cgi path=json_proto method=POST [07:52:15]POST find Content-Length [07:52:15]Host: 172.17.60.69:8080 [07:52:15]Content-Length: 865 [07:52:15]Content-Type: application/json [07:52:15] [07:52:15]POST finish read [07:52:15]Found Content-Length = 865 [07:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73495", "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": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 158.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:15]execute_script... [07:52: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)73495", "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": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 158.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:15]POST & json_proto [07:52:15]process_json_proto [07:52:15]json parsed OK: [07:52:15]protocol is kg_v1.0 [07:52:15]action value=close_receipt [07:52:15]process_action close_receipt [07:52:15]cmd_close_receipt [07:52:15]MH_GetDate [07:52:15]Write to MH i2c: F0 00 00 E9 05 DD [07:52:15]Write i2c OK [07:52:15]MH_I2C_Read... [07:52:15]Read from MH i2c: F0 [07:52:15]MH_I2C_Read... [07:52:15]Read from MH i2c: F0 09 00 [07:52:15]MH_I2C_Read... [07:52:15]Read from MH i2c: F0 09 00 E9 05 00 B1 C7 5E 66 6A 96 4A 66 D2 [07:52:15]GetLastDocTimeStamp 1717485019 [07:52:15]current date 1717487537 [07:52:15]FM_GetShiftState [07:52:15]SAM_PROTO_GetShiftState [07:52:15]wFMCommunicate request_size=4 [07:52:15]MH_SAM_APDU [07:52:15]CAPDU: 80 13 01 00 [07:52:15]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [07:52:15]Write i2c OK [07:52:15]MH_I2C_Read... [07:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:15]Read from MH i2c: E2 [07:52:15]MH_I2C_Read... [07:52:15]Read from MH i2c: E2 0E 00 [07:52:15]MH_I2C_Read... [07:52:15]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0C [07:52:15]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:52:15]wFMCommunicate OK [07:52:15]SAM_PROTO_GetShiftState done [07:52:15]FM_GetShiftState done [07:52:15]opened in 1717459574 [07:52:15]opened+sec_in_day 1717545974 [07:52:15]quantity*price = 11300 [07:52:15]sum+1 = 11301 [07:52:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46141538 Р/ж Orbit Bubblemint 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 158.00 НСП 1% : 1.40 НДС 12% : 16.78 Наличными: 158.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 13 04.06.2024 07:52 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63928 ФПД: 152987704907602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075217&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63928&fm=152987704907602&tin=02508201610067®Number=0000000000092737&sum=15800 0 [07:52:17]StoreToDocumentArchive [07:52:17]shift 374 fd 63928 [07:52:17]save to /storage/0374/doc_00063928 [07:52:17]save last doc name /storage/0374/doc_00063928 to /storage/kkm_last_doc_name [07:52:17]save OK [07:52:17]Clear old archive folders... [07:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=374 [07:52:17]tlvbuf is 0128F890 [07:52:17]SAM_PROTO_ClearQueue [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 09 00 00 [07:52:17]Write to MH i2c: E2 08 00 F7 05 80 09 00 00 00 00 00 00 6E [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [07:52:17]RAPDU: 90 00 [07:52:17]wFMCommunicate OK [07:52:17]SAM_PROTO_ClearQueue done [07:52:17]KKMCreateOFDPacket [07:52:17]OFDProtocolAddRootSTLVToBuf [07:52:17]FM_MakeSignedData [07:52:17]FM_MakeSignedData [07:52:17]SAM_PROTO_SignData [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 0D 01 02 [07:52:17]Write to MH i2c: E2 08 00 F8 05 80 0D 01 02 00 00 00 00 76 [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [07:52:17]RAPDU: 90 00 [07:52:17]wFMCommunicate OK [07:52:17]wFMCommunicate request_size=255 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 0D 02 02 FA 03 00 76 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 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 [07:52:17]Write to MH i2c: E2 02 01 F9 05 80 0D 02 02 FA 00 03 00 76 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 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 00 00 E0 [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [07:52:17]RAPDU: 90 00 [07:52:17]wFMCommunicate OK [07:52:17]wFMCommunicate request_size=133 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 8E 06 00 00 00 00 07 04 06 00 B8 3D 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 B1 C7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 8B 24 39 CE 57 52 [07:52:17]Write to MH i2c: E2 88 00 FA 05 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 8E 06 00 00 00 00 07 04 06 00 B8 3D 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 B1 C7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 8B 24 39 CE 57 52 00 00 01 [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [07:52:17]RAPDU: 90 00 [07:52:17]wFMCommunicate OK [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 0D 03 02 [07:52:17]Write to MH i2c: E2 08 00 FB 05 80 0D 03 02 00 00 00 00 7B [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 0B 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 0B 00 FB 05 00 7A E5 31 2D 3E A0 35 D8 90 00 24 [07:52:17]RAPDU: 7A E5 31 2D 3E A0 35 D8 90 00 [07:52:17]wFMCommunicate OK [07:52:17]SAM_PROTO_SignData done [07:52:17]FM_MakeSignedData done [07:52:17]CreateOFDProtocolMessage [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 11 00 00 [07:52:17]Write to MH i2c: E2 08 00 FC 05 80 11 00 00 00 00 00 00 7B [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 17 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 17 00 FC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CD [07:52: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:52:17]wFMCommunicate OK [07:52:17]CreateOFDProtocolMessage done [07:52:17]OFDSenderStorePacket 63928 [07:52:17]StoreOFDPacket docnum=63928 [07:52: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 8A 01 00 00 B8 38 82 01 56 F7 5A 03 01 00 03 00 76 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 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 06 00 00 00 00 07 04 06 00 B8 3D 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 B1 C7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 8B 24 39 CE 57 52 7A E5 31 2D 3E A0 35 D8 [07:52:17]CheckFolder [07:52:17]dirname=/storage/ofd_packets [07:52:17]CheckFolder done [07:52:17]ProducePacketName [07:52:17]name=ofd_packets/00063928 [07:52:17]NVStorageSaveData ofd_packets/00063928 [07:52:17]File name is /storage/ofd_packets/00063928 [07:52:17]Write 424 bytes [07:52:17]NVStorageSaveData done [07:52:17]OFDSenderStorePacket done [07:52:17]KKMCreateOFDPacket done [07:52:17]NVStorageSaveData kkm_last_timestamp [07:52:17]File name is /storage/kkm_last_timestamp [07:52:17]Write 4 bytes [07:52:17]NVStorageSaveData done [07:52:17]ExternCall_PrintAddStr [07:52:17]wPrintStart [07:52:17]Write to MH i2c: 01 00 00 FD 05 02 [07:52:17]OFD Sender: No OFD packet to send [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: 01 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: 01 07 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 FF 0F 17 [07:52:17]RasterBufferAndPrint [07:52:17]line Счет N : (3)73495 [07:52:17]line ИНН: 02508201610067 [07:52:17]line Контрольно-Кассовый Чек [07:52:17]line ПРОДАЖА [07:52:18]line Товар: 5449000054227 [07:52:18]line Напиток Кока-Кола 1л [07:52:18]line 1.000 * 113.00 [07:52:18]line = 113.00 [07:52:18]line НДС 12% НСП 1% [07:52:18]line > о реализуемом товаре [07:52:18]line Товар: 46141538 [07:52:18]line Р/ж Orbit Bubblemint 13,6г [07:52:18]line 1.000 * 45.00 [07:52:18]line = 45.00 [07:52:18]line НДС 12% НСП 1% [07:52:18]line > о реализуемом товаре [07:52:18]line ИТОГО: 158.00 [07:52:18]line НСП 1% : 1.40 [07:52:18]line НДС 12% : 16.78 [07:52:18]line Наличными: 158.00 [07:52:18]line Безнал.: 0.00 [07:52:18]line Место: АЗС № 117 "Партнер Нефть" [07:52:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:52:18]line СНО: Общий режим [07:52:18]line Чек 13 04.06.2024 07:52 [07:52:18]line Смена: 374 ФФД: 1.0 [07:52:18]line ЗНМ: 0300000031 [07:52:18]line РНМ: 0000000000092737 [07:52:18]line Версия ККМ: 001 [07:52:18]line ФМ: 0000000000875074 [07:52:18]line ФД: 63928 [07:52:18]line ФПД: 152987704907602 [07:52:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075217&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63928&fm=152987704907602&tin=02508201610067®Number=0000000000092737&sum=15800 [07:52:18]line 0 [07:52:18]OFD Sender: Processing packet 63928 [packets to send 14, broken 13] [07:52:18]ProducePacketName [07:52:18]name=ofd_packets/00063928 [07:52:18]OFD Sender: To server: pG, [07:52:18]CommunicateWithHost lk.salyk.kg:30040 [07:52:18]ConnectInit lk.salyk.kg [07:52:18]written 0, free lines is 4095 [07:52:18]Write to MH i2c: 01 00 00 2B 06 31 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 07 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 91 0C D5 [07:52:18]RasterBufferAndPrint [07:52:18]line [07:52:18]line [07:52:18]line [07:52:18]line [07:52:18]line [07:52:18]written 0, free lines is 3221 [07:52:18]MH_Cut [07:52:18]Write to MH i2c: D1 01 00 32 06 01 0A [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: D1 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: D1 01 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: D1 01 00 32 06 00 09 [07:52:18]Write to MH i2c: 01 00 00 33 06 39 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:19]*** Cut start [07:52:19]*** Partial cut [07:52:19]*** CUTSNS_PIN = 1 [07:52:19]*** CUTSNS_PIN = 0 [07:52:19]*** Brake cut motor [07:52:20]Read from MH i2c: 01 [07:52:20]MH_I2C_Read... [07:52:20]*** Stop cut motor [07:52:20]*** Cut end [07:52:20]Read from MH i2c: 01 07 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: 01 07 00 33 06 00 00 00 00 00 FF 0F 4E [07:52:20]process_action close_receipt done [07:52:20]requested_data is exist [07:52:20]produce_requested_data [07:52:20]requested_item fm.sn is exist - process it [07:52:20]wFMCommunicate request_size=4 [07:52:20]MH_SAM_APDU [07:52:20]CAPDU: 80 11 00 00 [07:52:20]Write to MH i2c: E2 08 00 34 06 80 11 00 00 00 00 00 00 B4 [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:20]Read from MH i2c: E2 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 17 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 17 00 34 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 06 [07:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:52:20]wFMCommunicate OK [07:52:20]requested_item fd.num is exist - process it [07:52:20]SAM_PROTO_GetFieldsCounters [07:52:20]wFMCommunicate request_size=4 [07:52:20]MH_SAM_APDU [07:52:20]CAPDU: 80 13 00 00 [07:52:20]Write to MH i2c: E2 08 00 35 06 80 13 00 00 00 00 00 00 B7 [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:20]Read from MH i2c: E2 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 62 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 62 00 35 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 29 [07:52:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 [07:52:20]wFMCommunicate OK [07:52:20]SAM_PROTO_GetFieldsCounters done [07:52:20]requested_item shift.num is exist - process it [07:52:20]requested_item shift.opened is exist - process it [07:52:20]req_shift_opened [07:52:20]FM_GetShiftState [07:52:20]SAM_PROTO_GetShiftState [07:52:20]wFMCommunicate request_size=4 [07:52:20]MH_SAM_APDU [07:52:20]CAPDU: 80 13 01 00 [07:52:20]Write to MH i2c: E2 08 00 36 06 80 13 01 00 00 00 00 00 B9 [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:20]Read from MH i2c: E2 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 0E 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 0E 00 36 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 59 [07:52:20]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:52:20]wFMCommunicate OK [07:52:20]SAM_PROTO_GetShiftState done [07:52:20]FM_GetShiftState done [07:52:20]req_shift_opened done [07:52:20]requested_item shift.open_date is exist - process it [07:52:20]req_shift_open_date [07:52:20]req_shift_open_date done [07:52:20]produce_requested_data done [07:52:20]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63928,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [07:52:20]process_action_free close_receipt [07:52:20]json_value_free [07:52:20]json_value_free done [07:52:20]process_json_proto returns [07:52:20]Send response to host [07:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63928,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [07:52:20]free response buf [07:52:20]execute_script done [07:52:20]execute_script returns [07:52:20]free content buf [07:52:20]Sock 9.Close socket [07:52:20]Sock 9.Thread stoped [07:54:27]ConnectInit Can't connect to host [07:54:27]CommunicateWithHost connect error [07:54:27]CommunicateWithHost err = -1 [07:54:27]OFD Sender: Server communicate error [07:54:32]OFD Sender: Processing packet 63928 [packets to send 14, broken 13] [07:54:32]ProducePacketName [07:54:32]name=ofd_packets/00063928 [07:54:32]OFD Sender: To server: pG, [07:54:32]CommunicateWithHost lk.salyk.kg:30040 [07:54:32]ConnectInit lk.salyk.kg [07:54:32]Connected sock=9 [07:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8A 01 00 00 B8 38 82 01 56 F7 5A 03 01 00 03 00 76 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 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 06 00 00 00 00 07 04 06 00 B8 3D 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 B1 C7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 8B 24 39 CE 57 52 7A E5 31 2D 3E A0 35 D8 [07:54: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 CF E8 47 00 30 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 B8 F9 00 00 F4 03 04 00 07 74 5E 66 B6 04 01 00 00 F5 4A C5 9E 30 4E 8F 3B [07:54:32]CommunicateWithHost err = 0 [07:54:32]CheckOFDResponse [07:54:32]1017 (14) - 77093643461234 [07:54:32]1041 (16) - 0000000000875074 [07:54:32]1040 (4) - 63928 [07:54:32]1012 (4) - 04.06.2024 01:55 [07:54:32]1206 (1) - 0 [07:54:32]OFD Sender: Remove packet 63928 [07:54:32]ProducePacketName [07:54:32]name=ofd_packets/00063928 [07:54:32]NVStorageDeleteData [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:48]accept exits with 7 [07:56:48]New connection [07:56:48]New thread 3067055460 created [07:56:48]Thread 3066912100 joined [07:56:48]Waiting for new connection... [07:56:48] Sock 7.Parse request [07:56:48]Sock 7.Check first char [07:56:48]Sock 7.First char is OK [07:56:48]request: POST /json_proto HTTP/1.0 [07:56:48]Method: POST [07:56:48]URL: /json_proto [07:56:48]Method is POST - this is cgi request [07:56:48]url: /json_proto [07:56:48]query_string will be loaded in cgi processing [07:56:48]execute_cgi json_proto POST (null) [07:56:48]execute_cgi path=json_proto method=POST [07:56:48]POST find Content-Length [07:56:48]Host: 172.17.60.69:8080 [07:56:48]Content-Length: 1449 [07:56:48]Content-Type: application/json [07:56:48] [07:56:48]POST finish read [07:56:48]Found Content-Length = 1449 [07:56:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73496", "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 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600823143036", "name": "\u0428\u043E\u043A \u0411\u0430\u0431\u0430\u0435\u0432\u0441\u043A\u0438\u0439 20 \u0433 \u0433\u043E\u0440\u044C\u043A\u0438\u0439", "price" : 39.00, "quantity" : 2.000, "sum" : 78.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 570.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:48]execute_script... [07:56: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)73496", "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 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600823143036", "name": "\u0428\u043E\u043A \u0411\u0430\u0431\u0430\u0435\u0432\u0441\u043A\u0438\u0439 20 \u0433 \u0433\u043E\u0440\u044C\u043A\u0438\u0439", "price" : 39.00, "quantity" : 2.000, "sum" : 78.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 570.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:48]POST & json_proto [07:56:48]process_json_proto [07:56:48]json parsed OK: [07:56:48]protocol is kg_v1.0 [07:56:48]action value=close_receipt [07:56:48]process_action close_receipt [07:56:48]cmd_close_receipt [07:56:48]MH_GetDate [07:56:48]Write to MH i2c: F0 00 00 37 06 2C [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: F0 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: F0 09 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: F0 09 00 37 06 00 C2 C8 5E 66 6A 96 4A 66 33 [07:56:48]GetLastDocTimeStamp 1717487537 [07:56:48]current date 1717487810 [07:56:48]FM_GetShiftState [07:56:48]SAM_PROTO_GetShiftState [07:56:48]wFMCommunicate request_size=4 [07:56:48]MH_SAM_APDU [07:56:48]CAPDU: 80 13 01 00 [07:56:48]Write to MH i2c: E2 08 00 38 06 80 13 01 00 00 00 00 00 BB [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:48]Read from MH i2c: E2 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: E2 0E 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: E2 0E 00 38 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 5B [07:56:48]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:56:48]wFMCommunicate OK [07:56:48]SAM_PROTO_GetShiftState done [07:56:48]FM_GetShiftState done [07:56:48]opened in 1717459574 [07:56:48]opened+sec_in_day 1717545974 [07:56:48]quantity*price = 11500 [07:56:48]sum+1 = 11501 [07:56:48]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 2.000 * 151.00 = 302.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600823143036 Шок Бабаевский 20 г горький 2.000 * 39.00 = 78.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 570.00 НСП 1% : 5.04 НДС 12% : 60.52 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 14 04.06.2024 07:56 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63929 ФПД: 218204035001668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075650&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63929&fm=218204035001668&tin=02508201610067®Number=0000000000092737&sum=57000 0 [07:56:49]StoreToDocumentArchive [07:56:49]shift 374 fd 63929 [07:56:49]save to /storage/0374/doc_00063929 [07:56:49]save last doc name /storage/0374/doc_00063929 to /storage/kkm_last_doc_name [07:56:49]save OK [07:56:49]Clear old archive folders... [07:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=616 [07:56:49]tlvbuf is 0128F400 [07:56:49]SAM_PROTO_ClearQueue [07:56:49]wFMCommunicate request_size=4 [07:56:49]MH_SAM_APDU [07:56:49]CAPDU: 80 09 00 00 [07:56:49]Write to MH i2c: E2 08 00 45 06 80 09 00 00 00 00 00 00 BD [07:56:49]Write i2c OK [07:56:49]MH_I2C_Read... [07:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:49]Read from MH i2c: E2 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 03 00 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [07:56:49]RAPDU: 90 00 [07:56:49]wFMCommunicate OK [07:56:49]SAM_PROTO_ClearQueue done [07:56:49]KKMCreateOFDPacket [07:56:49]OFDProtocolAddRootSTLVToBuf [07:56:49]FM_MakeSignedData [07:56:49]FM_MakeSignedData [07:56:49]SAM_PROTO_SignData [07:56:49]wFMCommunicate request_size=4 [07:56:49]MH_SAM_APDU [07:56:49]CAPDU: 80 0D 01 02 [07:56:49]Write to MH i2c: E2 08 00 46 06 80 0D 01 02 00 00 00 00 C5 [07:56:49]Write i2c OK [07:56:49]MH_I2C_Read... [07:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:49]Read from MH i2c: E2 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 03 00 [07:56:49]MH_I2C_Read... [07:56:49]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [07:56:49]RAPDU: 90 00 [07:56:49]wFMCommunicate OK [07:56:49]wFMCommunicate request_size=255 [07:56:49]MH_SAM_APDU [07:56:49]CAPDU: 80 0D 02 02 FA 03 00 68 02 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 [07:56:49]Write to MH i2c: E2 02 01 47 06 80 0D 02 02 FA 00 03 00 68 02 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 00 60 [07:56:49]Write i2c OK [07:56:49]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [07:56:50]RAPDU: 90 00 [07:56:50]wFMCommunicate OK [07:56:50]wFMCommunicate request_size=255 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 0D 02 02 FA 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 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 38 32 33 31 34 33 30 33 36 06 04 30 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 32 30 20 D0 B3 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 78 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [07:56:50]Write to MH i2c: E2 02 01 48 06 80 0D 02 02 FA 00 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 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 38 32 33 31 34 33 30 33 36 06 04 30 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 32 30 20 D0 B3 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 78 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 DF [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [07:56:50]RAPDU: 90 00 [07:56:50]wFMCommunicate OK [07:56:50]wFMCommunicate request_size=125 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 0D 02 02 78 00 A4 17 00 00 00 00 07 04 06 00 A8 DE 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 C2 C8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 C6 74 95 FE AD 44 [07:56:50]Write to MH i2c: E2 80 00 49 06 80 0D 02 02 78 00 00 A4 17 00 00 00 00 07 04 06 00 A8 DE 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 C2 C8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 C6 74 95 FE AD 44 00 00 79 [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [07:56:50]RAPDU: 90 00 [07:56:50]wFMCommunicate OK [07:56:50]wFMCommunicate request_size=4 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 0D 03 02 [07:56:50]Write to MH i2c: E2 08 00 4A 06 80 0D 03 02 00 00 00 00 CB [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 0B 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 0B 00 4A 06 00 53 73 DF DB 64 C2 E7 C9 90 00 22 [07:56:50]RAPDU: 53 73 DF DB 64 C2 E7 C9 90 00 [07:56:50]wFMCommunicate OK [07:56:50]SAM_PROTO_SignData done [07:56:50]FM_MakeSignedData done [07:56:50]CreateOFDProtocolMessage [07:56:50]wFMCommunicate request_size=4 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 11 00 00 [07:56:50]Write to MH i2c: E2 08 00 4B 06 80 11 00 00 00 00 00 00 CB [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 17 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 17 00 4B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1D [07:56:50]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:50]wFMCommunicate OK [07:56:50]CreateOFDProtocolMessage done [07:56:50]OFDSenderStorePacket 63929 [07:56:50]StoreOFDPacket docnum=63929 [07:56:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 7C 02 00 00 58 11 74 02 4D E9 5A 03 01 00 03 00 68 02 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 38 32 33 31 34 33 30 33 36 06 04 30 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 32 30 20 D0 B3 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 78 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 17 00 00 00 00 07 04 06 00 A8 DE 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 C2 C8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 C6 74 95 FE AD 44 53 73 DF DB 64 C2 E7 C9 [07:56:50]CheckFolder [07:56:50]dirname=/storage/ofd_packets [07:56:50]CheckFolder done [07:56:50]ProducePacketName [07:56:50]name=ofd_packets/00063929 [07:56:50]NVStorageSaveData ofd_packets/00063929 [07:56:50]File name is /storage/ofd_packets/00063929 [07:56:50]Write 666 bytes [07:56:50]NVStorageSaveData done [07:56:50]OFDSenderStorePacket done [07:56:50]KKMCreateOFDPacket done [07:56:50]NVStorageSaveData kkm_last_timestamp [07:56:50]File name is /storage/kkm_last_timestamp [07:56:50]Write 4 bytes [07:56:50]NVStorageSaveData done [07:56:50]ExternCall_PrintAddStr [07:56:50]wPrintStart [07:56:50]Write to MH i2c: 01 00 00 4C 06 52 [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: 01 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: 01 07 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: 01 07 00 4C 06 00 00 00 00 00 FF 0F 67 [07:56:50]RasterBufferAndPrint [07:56:50]line Счет N : (3)73496 [07:56:50]line ИНН: 02508201610067 [07:56:50]line Контрольно-Кассовый Чек [07:56:50]line ПРОДАЖА [07:56:50]line Товар: 2000036210013 [07:56:50]line Кофе Капучино (GABB TRADE) [07:56:50]line 1.000 * 115.00 [07:56:50]line = 115.00 [07:56:50]line НДС 12% НСП 1% [07:56:50]line > о реализуемом товаре [07:56:50]line Товар: 2000034730018 [07:56:50]line Кофе Американо (GABB TRADE) [07:56:50]line 1.000 * 75.00 [07:56:51]line = 75.00 [07:56:51]line НДС 12% НСП 1% [07:56:51]line > о реализуемом товаре [07:56:51]line Товар: 48741958 [07:56:51]line Сигареты Parliament Aqua Blue [07:56:51]line 2.000 * 151.00 [07:56:51]line = 302.00 [07:56:51]line НДС 12% НСП 1% [07:56:51]line > о реализуемом товаре [07:56:51]line Товар: 4600823143036 [07:56:51]line Шок Бабаевский 20 г горький [07:56:51]line 2.000 * 39.00 [07:56:51]line = 78.00 [07:56:51]line НДС 12% НСП 1% [07:56:51]line > о реализуемом товаре [07:56:51]line ИТОГО: 570.00 [07:56:51]line НСП 1% : 5.04 [07:56:51]line НДС 12% : 60.52 [07:56:51]line Наличными: 570.00 [07:56:51]line Безнал.: 0.00 [07:56:51]line Место: АЗС № 117 "Партнер Нефть" [07:56:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:56:51]line СНО: Общий режим [07:56:51]line Чек 14 04.06.2024 07:56 [07:56:51]line Смена: 374 ФФД: 1.0 [07:56:51]line ЗНМ: 0300000031 [07:56:51]line РНМ: 0000000000092737 [07:56:51]line Версия ККМ: 001 [07:56:51]line ФМ: 0000000000875074 [07:56:51]line ФД: 63929 [07:56:51]line ФПД: 218204035001668 [07:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075650&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63929&fm=218204035001668&tin=02508201610067®Number=0000000000092737&sum=57000 [07:56:51]line 0 [07:56:51]OFD Sender: Processing packet 63929 [packets to send 14, broken 13] [07:56:51]ProducePacketName [07:56:51]name=ofd_packets/00063929 [07:56:51]OFD Sender: To server: pG, [07:56:51]CommunicateWithHost lk.salyk.kg:30040 [07:56:51]ConnectInit lk.salyk.kg [07:56:51]written 0, free lines is 4095 [07:56:51]Connected sock=10 [07:56: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 7C 02 00 00 58 11 74 02 4D E9 5A 03 01 00 03 00 68 02 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 30 30 38 32 33 31 34 33 30 33 36 06 04 30 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 D1 81 D0 BA D0 B8 D0 B9 20 32 30 20 D0 B3 20 D0 B3 D0 BE D1 80 D1 8C D0 BA D0 B8 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 78 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 17 00 00 00 00 07 04 06 00 A8 DE 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 C2 C8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 C6 74 95 FE AD 44 53 73 DF DB 64 C2 E7 C9 [07:56: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 D4 E4 47 00 66 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 B9 F9 00 00 F4 03 04 00 91 74 5E 66 B6 04 01 00 00 24 26 AA E8 3D 4B 99 03 [07:56:51]CommunicateWithHost err = 0 [07:56:51]CheckOFDResponse [07:56:51]1017 (14) - 77093643461234 [07:56:51]1041 (16) - 0000000000875074 [07:56:51]1040 (4) - 63929 [07:56:51]1012 (4) - 04.06.2024 01:57 [07:56:51]1206 (1) - 0 [07:56:51]OFD Sender: Remove packet 63929 [07:56:51]ProducePacketName [07:56:51]name=ofd_packets/00063929 [07:56:51]NVStorageDeleteData [07:56:51]Write to MH i2c: 01 00 00 88 06 8E [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: 01 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: 01 07 00 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: 01 07 00 88 06 00 00 00 00 00 AE 0B 4E [07:56:51]RasterBufferAndPrint [07:56:51]line [07:56:51]line [07:56:51]line [07:56:51]line [07:56:51]line [07:56:51]written 0, free lines is 3000 [07:56:51]MH_Cut [07:56:51]Write to MH i2c: D1 01 00 8F 06 01 67 [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: D1 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: D1 01 00 [07:56:51]MH_I2C_Read... [07:56:51]Read from MH i2c: D1 01 00 8F 06 00 66 [07:56:51]Write to MH i2c: 01 00 00 90 06 96 [07:56:51]Write i2c OK [07:56:51]MH_I2C_Read... [07:56:51]OFD Sender: No OFD packet to send [07:56:52]*** Cut start [07:56:52]*** Partial cut [07:56:52]*** CUTSNS_PIN = 1 [07:56:52]*** CUTSNS_PIN = 0 [07:56:53]*** Brake cut motor [07:56:53]Read from MH i2c: 01 [07:56:53]MH_I2C_Read... [07:56:53]*** Stop cut motor [07:56:53]*** Cut end [07:56:53]Read from MH i2c: 01 07 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 FF 0F AB [07:56:53]process_action close_receipt done [07:56:53]requested_data is exist [07:56:53]produce_requested_data [07:56:53]requested_item fm.sn is exist - process it [07:56:53]wFMCommunicate request_size=4 [07:56:53]MH_SAM_APDU [07:56:53]CAPDU: 80 11 00 00 [07:56:53]Write to MH i2c: E2 08 00 91 06 80 11 00 00 00 00 00 00 11 [07:56:53]Write i2c OK [07:56:53]MH_I2C_Read... [07:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:53]Read from MH i2c: E2 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 17 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 17 00 91 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 63 [07:56:53]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:53]wFMCommunicate OK [07:56:53]requested_item fd.num is exist - process it [07:56:53]SAM_PROTO_GetFieldsCounters [07:56:53]wFMCommunicate request_size=4 [07:56:53]MH_SAM_APDU [07:56:53]CAPDU: 80 13 00 00 [07:56:53]Write to MH i2c: E2 08 00 92 06 80 13 00 00 00 00 00 00 14 [07:56:53]Write i2c OK [07:56:53]MH_I2C_Read... [07:56:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:53]Read from MH i2c: E2 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 62 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 62 00 92 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 8A [07:56: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 B9 F9 00 00 0E 04 04 00 76 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 [07:56:53]wFMCommunicate OK [07:56:53]SAM_PROTO_GetFieldsCounters done [07:56:53]requested_item shift.num is exist - process it [07:56:53]requested_item shift.opened is exist - process it [07:56:53]req_shift_opened [07:56:53]FM_GetShiftState [07:56:53]SAM_PROTO_GetShiftState [07:56:53]wFMCommunicate request_size=4 [07:56:53]MH_SAM_APDU [07:56:53]CAPDU: 80 13 01 00 [07:56:53]Write to MH i2c: E2 08 00 93 06 80 13 01 00 00 00 00 00 16 [07:56:53]Write i2c OK [07:56:53]MH_I2C_Read... [07:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:53]Read from MH i2c: E2 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 0E 00 [07:56:53]MH_I2C_Read... [07:56:53]Read from MH i2c: E2 0E 00 93 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B6 [07:56:53]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:56:53]wFMCommunicate OK [07:56:53]SAM_PROTO_GetShiftState done [07:56:53]FM_GetShiftState done [07:56:53]req_shift_opened done [07:56:53]requested_item shift.open_date is exist - process it [07:56:53]req_shift_open_date [07:56:53]req_shift_open_date done [07:56:53]produce_requested_data done [07:56:53]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63929,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [07:56:53]process_action_free close_receipt [07:56:53]json_value_free [07:56:53]json_value_free done [07:56:53]process_json_proto returns [07:56:53]Send response to host [07:56:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63929,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [07:56:53]free response buf [07:56:53]execute_script done [07:56:53]execute_script returns [07:56:53]free content buf [07:56:53]Sock 7.Close socket [07:56:53]Sock 7.Thread stoped [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:24]accept exits with 9 [07:57:24]New connection [07:57:24]New thread 3066912100 created [07:57:24]Thread 3067055460 joined [07:57:24]Waiting for new connection... [07:57:24] Sock 9.Parse request [07:57:24]Sock 9.Check first char [07:57:24]Sock 9.First char is OK [07:57:24]request: POST /json_proto HTTP/1.0 [07:57:24]Method: POST [07:57:24]URL: /json_proto [07:57:24]Method is POST - this is cgi request [07:57:24]url: /json_proto [07:57:24]query_string will be loaded in cgi processing [07:57:24]execute_cgi json_proto POST (null) [07:57:24]execute_cgi path=json_proto method=POST [07:57:24]POST find Content-Length [07:57:24]Host: 172.17.60.69:8080 [07:57:24]Content-Length: 627 [07:57:24]Content-Type: application/json [07:57:24] [07:57:24]POST finish read [07:57:24]Found Content-Length = 627 [07:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73497", "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" ] } } [07:57:24]execute_script... [07:57: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)73497", "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" ] } } [07:57:24]POST & json_proto [07:57:24]process_json_proto [07:57:24]json parsed OK: [07:57:24]protocol is kg_v1.0 [07:57:24]action value=close_receipt [07:57:24]process_action close_receipt [07:57:24]cmd_close_receipt [07:57:24]MH_GetDate [07:57:24]Write to MH i2c: F0 00 00 94 06 89 [07:57:24]Write i2c OK [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: F0 [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: F0 09 00 [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: F0 09 00 94 06 00 E6 C8 5E 66 6A 96 4A 66 B4 [07:57:24]GetLastDocTimeStamp 1717487810 [07:57:24]current date 1717487846 [07:57:24]FM_GetShiftState [07:57:24]SAM_PROTO_GetShiftState [07:57:24]wFMCommunicate request_size=4 [07:57:24]MH_SAM_APDU [07:57:24]CAPDU: 80 13 01 00 [07:57:24]Write to MH i2c: E2 08 00 95 06 80 13 01 00 00 00 00 00 18 [07:57:24]Write i2c OK [07:57:24]MH_I2C_Read... [07:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:24]Read from MH i2c: E2 [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: E2 0E 00 [07:57:24]MH_I2C_Read... [07:57:24]Read from MH i2c: E2 0E 00 95 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B8 [07:57:24]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:57:24]wFMCommunicate OK [07:57:24]SAM_PROTO_GetShiftState done [07:57:24]FM_GetShiftState done [07:57:24]opened in 1717459574 [07:57:24]opened+sec_in_day 1717545974 [07:57:24]quantity*price = 26000 [07:57:24]sum+1 = 26001 [07:57:24]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 СНО: Общий режим Чек 15 04.06.2024 07:57 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63930 ФПД: 262522287580280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075726&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63930&fm=262522287580280&tin=02508201610067®Number=0000000000092737&sum=26000 0 [07:57:25]StoreToDocumentArchive [07:57:25]shift 374 fd 63930 [07:57:25]save to /storage/0374/doc_00063930 [07:57:25]save last doc name /storage/0374/doc_00063930 to /storage/kkm_last_doc_name [07:57:25]save OK [07:57:25]Clear old archive folders... [07:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=276 [07:57:25]tlvbuf is 01298E50 [07:57:25]SAM_PROTO_ClearQueue [07:57:25]wFMCommunicate request_size=4 [07:57:25]MH_SAM_APDU [07:57:25]CAPDU: 80 09 00 00 [07:57:25]Write to MH i2c: E2 08 00 A2 06 80 09 00 00 00 00 00 00 1A [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:25]Read from MH i2c: E2 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 A2 06 00 90 00 1C [07:57:25]RAPDU: 90 00 [07:57:25]wFMCommunicate OK [07:57:25]SAM_PROTO_ClearQueue done [07:57:25]KKMCreateOFDPacket [07:57:25]OFDProtocolAddRootSTLVToBuf [07:57:25]FM_MakeSignedData [07:57:25]FM_MakeSignedData [07:57:25]SAM_PROTO_SignData [07:57:25]wFMCommunicate request_size=4 [07:57:25]MH_SAM_APDU [07:57:25]CAPDU: 80 0D 01 02 [07:57:25]Write to MH i2c: E2 08 00 A3 06 80 0D 01 02 00 00 00 00 22 [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:25]Read from MH i2c: E2 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 [07:57:25]MH_I2C_Read... [07:57:25]Read from MH i2c: E2 03 00 A3 06 00 90 00 1D [07:57:25]RAPDU: 90 00 [07:57:25]wFMCommunicate OK [07:57:25]wFMCommunicate request_size=255 [07:57:25]MH_SAM_APDU [07:57:25]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 0F 00 00 00 F4 03 04 00 E6 C8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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:57:25]Write to MH i2c: E2 02 01 A4 06 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 0F 00 00 00 F4 03 04 00 E6 C8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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 F2 [07:57:25]Write i2c OK [07:57:25]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 A4 06 00 90 00 1E [07:57:26]RAPDU: 90 00 [07:57:26]wFMCommunicate OK [07:57:26]wFMCommunicate request_size=35 [07:57:26]MH_SAM_APDU [07:57:26]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BA F9 00 00 35 04 06 00 EE C3 3B B2 64 78 [07:57:26]Write to MH i2c: E2 26 00 A5 06 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BA F9 00 00 35 04 06 00 EE C3 3B B2 64 78 00 00 44 [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 03 00 A5 06 00 90 00 1F [07:57:26]RAPDU: 90 00 [07:57:26]wFMCommunicate OK [07:57:26]wFMCommunicate request_size=4 [07:57:26]MH_SAM_APDU [07:57:26]CAPDU: 80 0D 03 02 [07:57:26]Write to MH i2c: E2 08 00 A6 06 80 0D 03 02 00 00 00 00 27 [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 0B 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 0B 00 A6 06 00 8E 22 78 8E 2B 5B 4A C8 90 00 76 [07:57:26]RAPDU: 8E 22 78 8E 2B 5B 4A C8 90 00 [07:57:26]wFMCommunicate OK [07:57:26]SAM_PROTO_SignData done [07:57:26]FM_MakeSignedData done [07:57:26]CreateOFDProtocolMessage [07:57:26]wFMCommunicate request_size=4 [07:57:26]MH_SAM_APDU [07:57:26]CAPDU: 80 11 00 00 [07:57:26]Write to MH i2c: E2 08 00 A7 06 80 11 00 00 00 00 00 00 27 [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:26]Read from MH i2c: E2 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 17 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: E2 17 00 A7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 79 [07:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:57:26]wFMCommunicate OK [07:57:26]CreateOFDProtocolMessage done [07:57:26]OFDSenderStorePacket 63930 [07:57:26]StoreOFDPacket docnum=63930 [07:57:26]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 7A 73 20 01 9A 4D 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 0F 00 00 00 F4 03 04 00 E6 C8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 EE C3 3B B2 64 78 8E 22 78 8E 2B 5B 4A C8 [07:57:26]CheckFolder [07:57:26]dirname=/storage/ofd_packets [07:57:26]CheckFolder done [07:57:26]ProducePacketName [07:57:26]name=ofd_packets/00063930 [07:57:26]NVStorageSaveData ofd_packets/00063930 [07:57:26]File name is /storage/ofd_packets/00063930 [07:57:26]Write 326 bytes [07:57:26]NVStorageSaveData done [07:57:26]OFDSenderStorePacket done [07:57:26]KKMCreateOFDPacket done [07:57:26]NVStorageSaveData kkm_last_timestamp [07:57:26]File name is /storage/kkm_last_timestamp [07:57:26]Write 4 bytes [07:57:26]NVStorageSaveData done [07:57:26]ExternCall_PrintAddStr [07:57:26]wPrintStart [07:57:26]Write to MH i2c: 01 00 00 A8 06 AE [07:57:26]Write i2c OK [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: 01 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: 01 07 00 [07:57:26]MH_I2C_Read... [07:57:26]Read from MH i2c: 01 07 00 A8 06 00 00 00 00 00 FF 0F C3 [07:57:26]RasterBufferAndPrint [07:57:26]line Счет N : (3)73497 [07:57:26]line ИНН: 02508201610067 [07:57:26]line Контрольно-Кассовый Чек [07:57:26]line ПРОДАЖА [07:57:26]line Товар: 2000036230011 [07:57:26]line Кофе Латте XL(GABB TRADE) [07:57:26]line 2.000 * 130.00 [07:57:26]line = 260.00 [07:57:26]line НДС 12% НСП 1% [07:57:26]line > о реализуемом товаре [07:57:26]line ИТОГО: 260.00 [07:57:26]line НСП 1% : 2.30 [07:57:26]line НДС 12% : 27.61 [07:57:26]line Наличными: 260.00 [07:57:26]line Безнал.: 0.00 [07:57:26]line Место: АЗС № 117 "Партнер Нефть" [07:57:26]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:57:26]line СНО: Общий режим [07:57:26]line Чек 15 04.06.2024 07:57 [07:57:26]line Смена: 374 ФФД: 1.0 [07:57:26]line ЗНМ: 0300000031 [07:57:26]line РНМ: 0000000000092737 [07:57:26]line Версия ККМ: 001 [07:57:26]line ФМ: 0000000000875074 [07:57:26]line ФД: 63930 [07:57:26]line ФПД: 262522287580280 [07:57:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075726&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63930&fm=262522287580280&tin=02508201610067®Number=0000000000092737&sum=26000 [07:57:26]OFD Sender: Processing packet 63930 [packets to send 14, broken 13] [07:57:26]ProducePacketName [07:57:26]name=ofd_packets/00063930 [07:57:26]OFD Sender: To server: pG, [07:57:26]CommunicateWithHost lk.salyk.kg:30040 [07:57:26]ConnectInit lk.salyk.kg [07:57:26]line 0 [07:57:26]written 0, free lines is 4095 [07:57:26]Connected sock=10 [07:57: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 28 01 00 00 7A 73 20 01 9A 4D 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 0F 00 00 00 F4 03 04 00 E6 C8 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 EE C3 3B B2 64 78 8E 22 78 8E 2B 5B 4A C8 [07:57: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 7B FC 47 00 E5 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BA F9 00 00 F4 03 04 00 B5 74 5E 66 B6 04 01 00 00 31 AA 35 63 B3 5A 0A C3 [07:57:26]CommunicateWithHost err = 0 [07:57:26]CheckOFDResponse [07:57:26]1017 (14) - 77093643461234 [07:57:26]1041 (16) - 0000000000875074 [07:57:26]1040 (4) - 63930 [07:57:26]1012 (4) - 04.06.2024 01:58 [07:57:26]1206 (1) - 0 [07:57:26]OFD Sender: Remove packet 63930 [07:57:26]ProducePacketName [07:57:26]name=ofd_packets/00063930 [07:57:26]NVStorageDeleteData [07:57:27]Write to MH i2c: 01 00 00 D0 06 D6 [07:57:27]Write i2c OK [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: 01 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: 01 07 00 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: 01 07 00 D0 06 00 00 00 00 00 0B 0D F5 [07:57:27]RasterBufferAndPrint [07:57:27]line [07:57:27]line [07:57:27]line [07:57:27]line [07:57:27]line [07:57:27]written 0, free lines is 3345 [07:57:27]MH_Cut [07:57:27]Write to MH i2c: D1 01 00 D7 06 01 AF [07:57:27]Write i2c OK [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: D1 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: D1 01 00 [07:57:27]MH_I2C_Read... [07:57:27]Read from MH i2c: D1 01 00 D7 06 00 AE [07:57:27]Write to MH i2c: 01 00 00 D8 06 DE [07:57:27]Write i2c OK [07:57:27]MH_I2C_Read... [07:57:27]OFD Sender: No OFD packet to send [07:57:27]*** Cut start [07:57:27]*** Partial cut [07:57:27]*** CUTSNS_PIN = 1 [07:57:27]*** CUTSNS_PIN = 0 [07:57:28]*** Brake cut motor [07:57:28]Read from MH i2c: 01 [07:57:28]MH_I2C_Read... [07:57:28]*** Stop cut motor [07:57:28]*** Cut end [07:57:28]Read from MH i2c: 01 07 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: 01 07 00 D8 06 00 00 00 00 00 FF 0F F3 [07:57:28]process_action close_receipt done [07:57:28]requested_data is exist [07:57:28]produce_requested_data [07:57:28]requested_item fm.sn is exist - process it [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 11 00 00 [07:57:28]Write to MH i2c: E2 08 00 D9 06 80 11 00 00 00 00 00 00 59 [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 17 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 17 00 D9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AB [07:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:57:28]wFMCommunicate OK [07:57:28]requested_item fd.num is exist - process it [07:57:28]SAM_PROTO_GetFieldsCounters [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 13 00 00 [07:57:28]Write to MH i2c: E2 08 00 DA 06 80 13 00 00 00 00 00 00 5C [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 62 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 62 00 DA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 D6 [07:57: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 BA F9 00 00 0E 04 04 00 76 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 [07:57:28]wFMCommunicate OK [07:57:28]SAM_PROTO_GetFieldsCounters done [07:57:28]requested_item shift.num is exist - process it [07:57:28]requested_item shift.opened is exist - process it [07:57:28]req_shift_opened [07:57:28]FM_GetShiftState [07:57:28]SAM_PROTO_GetShiftState [07:57:28]wFMCommunicate request_size=4 [07:57:28]MH_SAM_APDU [07:57:28]CAPDU: 80 13 01 00 [07:57:28]Write to MH i2c: E2 08 00 DB 06 80 13 01 00 00 00 00 00 5E [07:57:28]Write i2c OK [07:57:28]MH_I2C_Read... [07:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:28]Read from MH i2c: E2 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 0E 00 [07:57:28]MH_I2C_Read... [07:57:28]Read from MH i2c: E2 0E 00 DB 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 FE [07:57:28]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:57:28]wFMCommunicate OK [07:57:28]SAM_PROTO_GetShiftState done [07:57:28]FM_GetShiftState done [07:57:28]req_shift_opened done [07:57:28]requested_item shift.open_date is exist - process it [07:57:28]req_shift_open_date [07:57:28]req_shift_open_date done [07:57:28]produce_requested_data done [07:57:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63930,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [07:57:28]process_action_free close_receipt [07:57:28]json_value_free [07:57:28]json_value_free done [07:57:28]process_json_proto returns [07:57:28]Send response to host [07:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63930,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [07:57:28]free response buf [07:57:28]execute_script done [07:57:28]execute_script returns [07:57:28]free content buf [07:57:28]Sock 9.Close socket [07:57:28]Sock 9.Thread stoped [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:12]accept exits with 7 [07:59:12]New connection [07:59:12]New thread 3067055460 created [07:59:12]Thread 3066912100 joined [07:59:12]Waiting for new connection... [07:59:12] Sock 7.Parse request [07:59:12]Sock 7.Check first char [07:59:12]Sock 7.First char is OK [07:59:12]request: POST /json_proto HTTP/1.0 [07:59:12]Method: POST [07:59:12]URL: /json_proto [07:59:12]Method is POST - this is cgi request [07:59:12]url: /json_proto [07:59:12]query_string will be loaded in cgi processing [07:59:12]execute_cgi json_proto POST (null) [07:59:12]execute_cgi path=json_proto method=POST [07:59:12]POST find Content-Length [07:59:12]Host: 172.17.60.69:8080 [07:59:12]Content-Length: 643 [07:59:12]Content-Type: application/json [07:59:12] [07:59:12]POST finish read [07:59:12]Found Content-Length = 643 [07:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73498", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:12]execute_script... [07:59:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73498", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:12]POST & json_proto [07:59:12]process_json_proto [07:59:12]json parsed OK: [07:59:12]protocol is kg_v1.0 [07:59:12]action value=close_receipt [07:59:12]process_action close_receipt [07:59:12]cmd_close_receipt [07:59:12]MH_GetDate [07:59:12]Write to MH i2c: F0 00 00 DC 06 D1 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: F0 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: F0 09 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: F0 09 00 DC 06 00 52 C9 5E 66 6A 96 4A 66 69 [07:59:12]GetLastDocTimeStamp 1717487846 [07:59:12]current date 1717487954 [07:59:12]FM_GetShiftState [07:59:12]SAM_PROTO_GetShiftState [07:59:12]wFMCommunicate request_size=4 [07:59:12]MH_SAM_APDU [07:59:12]CAPDU: 80 13 01 00 [07:59:12]Write to MH i2c: E2 08 00 DD 06 80 13 01 00 00 00 00 00 60 [07:59:12]Write i2c OK [07:59:12]MH_I2C_Read... [07:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:12]Read from MH i2c: E2 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 [07:59:12]MH_I2C_Read... [07:59:12]Read from MH i2c: E2 0E 00 DD 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 00 [07:59:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:59:12]wFMCommunicate OK [07:59:12]SAM_PROTO_GetShiftState done [07:59:12]FM_GetShiftState done [07:59:12]opened in 1717459574 [07:59:12]opened+sec_in_day 1717545974 [07:59:12]quantity*price = 23000 [07:59:12]sum+1 = 23001 [07:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 16 04.06.2024 07:59 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63931 ФПД: 97418131947887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075914&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63931&fm=97418131947887&tin=02508201610067®Number=0000000000092737&sum=23000 0 [07:59:13]StoreToDocumentArchive [07:59:13]shift 374 fd 63931 [07:59:13]save to /storage/0374/doc_00063931 [07:59:13]save last doc name /storage/0374/doc_00063931 to /storage/kkm_last_doc_name [07:59:13]save OK [07:59:13]Clear old archive folders... [07:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=280 [07:59:13]tlvbuf is 012500B0 [07:59:13]SAM_PROTO_ClearQueue [07:59:13]wFMCommunicate request_size=4 [07:59:13]MH_SAM_APDU [07:59:13]CAPDU: 80 09 00 00 [07:59:13]Write to MH i2c: E2 08 00 EA 06 80 09 00 00 00 00 00 00 62 [07:59:13]Write i2c OK [07:59:13]MH_I2C_Read... [07:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:13]Read from MH i2c: E2 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 [07:59:13]MH_I2C_Read... [07:59:13]Read from MH i2c: E2 03 00 EA 06 00 90 00 64 [07:59:13]RAPDU: 90 00 [07:59:13]wFMCommunicate OK [07:59:13]SAM_PROTO_ClearQueue done [07:59:13]KKMCreateOFDPacket [07:59:13]OFDProtocolAddRootSTLVToBuf [07:59:13]FM_MakeSignedData [07:59:13]FM_MakeSignedData [07:59:13]SAM_PROTO_SignData [07:59:13]wFMCommunicate request_size=4 [07:59:13]MH_SAM_APDU [07:59:13]CAPDU: 80 0D 01 02 [07:59:13]Write to MH i2c: E2 08 00 EB 06 80 0D 01 02 00 00 00 00 6A [07:59:13]Write i2c OK [07:59:13]MH_I2C_Read... [07:59:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:14]Read from MH i2c: E2 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 EB 06 00 90 00 65 [07:59:14]RAPDU: 90 00 [07:59:14]wFMCommunicate OK [07:59:14]wFMCommunicate request_size=255 [07:59:14]MH_SAM_APDU [07:59:14]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 52 C9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [07:59:14]Write to MH i2c: E2 02 01 EC 06 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 52 C9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 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 79 [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:14]Read from MH i2c: E2 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 EC 06 00 90 00 66 [07:59:14]RAPDU: 90 00 [07:59:14]wFMCommunicate OK [07:59:14]wFMCommunicate request_size=39 [07:59:14]MH_SAM_APDU [07:59:14]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 BB F9 00 00 35 04 06 00 58 99 ED 26 41 6F [07:59:14]Write to MH i2c: E2 2A 00 ED 06 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 BB F9 00 00 35 04 06 00 58 99 ED 26 41 6F 00 00 8F [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:14]Read from MH i2c: E2 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 03 00 ED 06 00 90 00 67 [07:59:14]RAPDU: 90 00 [07:59:14]wFMCommunicate OK [07:59:14]wFMCommunicate request_size=4 [07:59:14]MH_SAM_APDU [07:59:14]CAPDU: 80 0D 03 02 [07:59:14]Write to MH i2c: E2 08 00 EE 06 80 0D 03 02 00 00 00 00 6F [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:14]Read from MH i2c: E2 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 0B 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 0B 00 EE 06 00 E6 74 CD 65 3B 69 83 BD 90 00 E0 [07:59:14]RAPDU: E6 74 CD 65 3B 69 83 BD 90 00 [07:59:14]wFMCommunicate OK [07:59:14]SAM_PROTO_SignData done [07:59:14]FM_MakeSignedData done [07:59:14]CreateOFDProtocolMessage [07:59:14]wFMCommunicate request_size=4 [07:59:14]MH_SAM_APDU [07:59:14]CAPDU: 80 11 00 00 [07:59:14]Write to MH i2c: E2 08 00 EF 06 80 11 00 00 00 00 00 00 6F [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:14]Read from MH i2c: E2 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 17 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: E2 17 00 EF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C1 [07:59: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:59:14]wFMCommunicate OK [07:59:14]CreateOFDProtocolMessage done [07:59:14]OFDSenderStorePacket 63931 [07:59:14]StoreOFDPacket docnum=63931 [07:59: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 2C 01 00 00 54 77 24 01 2E 77 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 52 C9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 58 99 ED 26 41 6F E6 74 CD 65 3B 69 83 BD [07:59:14]CheckFolder [07:59:14]dirname=/storage/ofd_packets [07:59:14]CheckFolder done [07:59:14]ProducePacketName [07:59:14]name=ofd_packets/00063931 [07:59:14]NVStorageSaveData ofd_packets/00063931 [07:59:14]File name is /storage/ofd_packets/00063931 [07:59:14]Write 330 bytes [07:59:14]NVStorageSaveData done [07:59:14]OFDSenderStorePacket done [07:59:14]KKMCreateOFDPacket done [07:59:14]NVStorageSaveData kkm_last_timestamp [07:59:14]File name is /storage/kkm_last_timestamp [07:59:14]Write 4 bytes [07:59:14]NVStorageSaveData done [07:59:14]ExternCall_PrintAddStr [07:59:14]wPrintStart [07:59:14]Write to MH i2c: 01 00 00 F0 06 F6 [07:59:14]Write i2c OK [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: 01 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: 01 07 00 [07:59:14]MH_I2C_Read... [07:59:14]Read from MH i2c: 01 07 00 F0 06 00 00 00 00 00 FF 0F 0B [07:59:14]RasterBufferAndPrint [07:59:14]line Счет N : (3)73498 [07:59:14]line ИНН: 02508201610067 [07:59:14]line Контрольно-Кассовый Чек [07:59:14]line ПРОДАЖА [07:59:14]line Товар: 2000036210013 [07:59:14]line Кофе Капучино (GABB TRADE) [07:59:14]line 2.000 * 115.00 [07:59:14]line = 230.00 [07:59:14]line НДС 12% НСП 1% [07:59:14]line > о реализуемом товаре [07:59:14]line ИТОГО: 230.00 [07:59:14]line НСП 1% : 2.03 [07:59:14]line НДС 12% : 24.42 [07:59:14]line Наличными: 230.00 [07:59:14]line Безнал.: 0.00 [07:59:14]line Место: АЗС № 117 "Партнер Нефть" [07:59:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [07:59:14]line СНО: Общий режим [07:59:14]line Чек 16 04.06.2024 07:59 [07:59:14]line Смена: 374 ФФД: 1.0 [07:59:14]line ЗНМ: 0300000031 [07:59:14]line РНМ: 0000000000092737 [07:59:14]line Версия ККМ: 001 [07:59:14]line ФМ: 0000000000875074 [07:59:14]line ФД: 63931 [07:59:14]line ФПД: 97418131947887 [07:59:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T075914&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63931&fm=97418131947887&tin=02508201610067®Number=0000000000092737&sum=23000 [07:59:14]line 0 [07:59:14]OFD Sender: Processing packet 63931 [packets to send 14, broken 13] [07:59:14]ProducePacketName [07:59:14]name=ofd_packets/00063931 [07:59:14]OFD Sender: To server: pG, [07:59:14]CommunicateWithHost lk.salyk.kg:30040 [07:59:14]ConnectInit lk.salyk.kg [07:59:14]written 0, free lines is 4095 [07:59:14]Connected sock=10 [07:59:14]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 54 77 24 01 2E 77 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 52 C9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 58 99 ED 26 41 6F E6 74 CD 65 3B 69 83 BD [07:59: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 15 37 47 00 1E 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 BB F9 00 00 F4 03 04 00 21 75 5E 66 B6 04 01 00 00 14 00 C3 5F 2D F5 CE 75 [07:59:15]CommunicateWithHost err = 0 [07:59:15]CheckOFDResponse [07:59:15]1017 (14) - 77093643461234 [07:59:15]1041 (16) - 0000000000875074 [07:59:15]1040 (4) - 63931 [07:59:15]1012 (4) - 04.06.2024 02:00 [07:59:15]1206 (1) - 0 [07:59:15]OFD Sender: Remove packet 63931 [07:59:15]ProducePacketName [07:59:15]name=ofd_packets/00063931 [07:59:15]NVStorageDeleteData [07:59:15]Write to MH i2c: 01 00 00 18 07 1F [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: 01 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: 01 07 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: 01 07 00 18 07 00 00 00 00 00 01 0D 34 [07:59:15]RasterBufferAndPrint [07:59:15]line [07:59:15]line [07:59:15]line [07:59:15]line [07:59:15]line [07:59:15]written 0, free lines is 3335 [07:59:15]MH_Cut [07:59:15]Write to MH i2c: D1 01 00 1F 07 01 F8 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: D1 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: D1 01 00 [07:59:15]MH_I2C_Read... [07:59:15]Read from MH i2c: D1 01 00 1F 07 00 F7 [07:59:15]Write to MH i2c: 01 00 00 20 07 27 [07:59:15]Write i2c OK [07:59:15]MH_I2C_Read... [07:59:15]OFD Sender: No OFD packet to send [07:59:16]*** Cut start [07:59:16]*** Partial cut [07:59:16]*** CUTSNS_PIN = 1 [07:59:16]*** CUTSNS_PIN = 0 [07:59:16]*** Brake cut motor [07:59:16]Read from MH i2c: 01 [07:59:16]MH_I2C_Read... [07:59:16]*** Stop cut motor [07:59:16]*** Cut end [07:59:16]Read from MH i2c: 01 07 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [07:59:16]process_action close_receipt done [07:59:16]requested_data is exist [07:59:16]produce_requested_data [07:59:16]requested_item fm.sn is exist - process it [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 11 00 00 [07:59:16]Write to MH i2c: E2 08 00 21 07 80 11 00 00 00 00 00 00 A2 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 17 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 17 00 21 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F4 [07:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [07:59:16]wFMCommunicate OK [07:59:16]requested_item fd.num is exist - process it [07:59:16]SAM_PROTO_GetFieldsCounters [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 13 00 00 [07:59:16]Write to MH i2c: E2 08 00 22 07 80 13 00 00 00 00 00 00 A5 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 62 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 62 00 22 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 23 [07:59:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 [07:59:16]wFMCommunicate OK [07:59:16]SAM_PROTO_GetFieldsCounters done [07:59:16]requested_item shift.num is exist - process it [07:59:16]requested_item shift.opened is exist - process it [07:59:16]req_shift_opened [07:59:16]FM_GetShiftState [07:59:16]SAM_PROTO_GetShiftState [07:59:16]wFMCommunicate request_size=4 [07:59:16]MH_SAM_APDU [07:59:16]CAPDU: 80 13 01 00 [07:59:16]Write to MH i2c: E2 08 00 23 07 80 13 01 00 00 00 00 00 A7 [07:59:16]Write i2c OK [07:59:16]MH_I2C_Read... [07:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:16]Read from MH i2c: E2 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 0E 00 [07:59:16]MH_I2C_Read... [07:59:16]Read from MH i2c: E2 0E 00 23 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 47 [07:59:16]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [07:59:16]wFMCommunicate OK [07:59:16]SAM_PROTO_GetShiftState done [07:59:16]FM_GetShiftState done [07:59:16]req_shift_opened done [07:59:16]requested_item shift.open_date is exist - process it [07:59:16]req_shift_open_date [07:59:16]req_shift_open_date done [07:59:16]produce_requested_data done [07:59:16]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63931,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [07:59:16]process_action_free close_receipt [07:59:16]json_value_free [07:59:16]json_value_free done [07:59:16]process_json_proto returns [07:59:16]Send response to host [07:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63931,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [07:59:16]free response buf [07:59:16]execute_script done [07:59:16]execute_script returns [07:59:16]free content buf [07:59:16]Sock 7.Close socket [07:59:16]Sock 7.Thread stoped [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:14]accept exits with 9 [08:03:14]New connection [08:03:14]New thread 3066912100 created [08:03:14]Thread 3067055460 joined [08:03:14]Waiting for new connection... [08:03:14] Sock 9.Parse request [08:03:14]Sock 9.Check first char [08:03:14]Sock 9.First char is OK [08:03:14]request: POST /json_proto HTTP/1.0 [08:03:14]Method: POST [08:03:14]URL: /json_proto [08:03:14]Method is POST - this is cgi request [08:03:14]url: /json_proto [08:03:14]query_string will be loaded in cgi processing [08:03:14]execute_cgi json_proto POST (null) [08:03:14]execute_cgi path=json_proto method=POST [08:03:14]POST find Content-Length [08:03:14]Host: 172.17.60.69:8080 [08:03:14]Content-Length: 1178 [08:03:14]Content-Type: application/json [08:03:14] [08:03:14]POST finish read [08:03:14]Found Content-Length = 1178 [08:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73499", "tax_sys" : 0, "items" : [ { "code": "46034595", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C Chupa \u043D/\u043F\u0430\u043B \u0444\u0440.\u043C\u0438\u043A\u0441,\u0441\u043E\u043A \u043A\u043E\u043B\u044B 12", "price" : 25.00, "quantity" : 1.000, "sum" : 25.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" : 2.000, "sum" : 250.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" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:14]execute_script... [08:03:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73499", "tax_sys" : 0, "items" : [ { "code": "46034595", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C Chupa \u043D/\u043F\u0430\u043B \u0444\u0440.\u043C\u0438\u043A\u0441,\u0441\u043E\u043A \u043A\u043E\u043B\u044B 12", "price" : 25.00, "quantity" : 1.000, "sum" : 25.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" : 2.000, "sum" : 250.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" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:14]POST & json_proto [08:03:14]process_json_proto [08:03:14]json parsed OK: [08:03:14]protocol is kg_v1.0 [08:03:14]action value=close_receipt [08:03:14]process_action close_receipt [08:03:14]cmd_close_receipt [08:03:14]MH_GetDate [08:03:14]Write to MH i2c: F0 00 00 24 07 1A [08:03:14]Write i2c OK [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: F0 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: F0 09 00 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: F0 09 00 24 07 00 44 CA 5E 66 6A 96 4A 66 A5 [08:03:14]GetLastDocTimeStamp 1717487954 [08:03:14]current date 1717488196 [08:03:14]FM_GetShiftState [08:03:14]SAM_PROTO_GetShiftState [08:03:14]wFMCommunicate request_size=4 [08:03:14]MH_SAM_APDU [08:03:14]CAPDU: 80 13 01 00 [08:03:14]Write to MH i2c: E2 08 00 25 07 80 13 01 00 00 00 00 00 A9 [08:03:14]Write i2c OK [08:03:14]MH_I2C_Read... [08:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:14]Read from MH i2c: E2 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: E2 0E 00 [08:03:14]MH_I2C_Read... [08:03:14]Read from MH i2c: E2 0E 00 25 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 49 [08:03:14]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:03:14]wFMCommunicate OK [08:03:14]SAM_PROTO_GetShiftState done [08:03:14]FM_GetShiftState done [08:03:14]opened in 1717459574 [08:03:14]opened+sec_in_day 1717545974 [08:03:14]quantity*price = 2500 [08:03:14]sum+1 = 2501 [08:03:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 125.00 = 250.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.43 НДС 12% : 29.20 Наличными: 0.00 Безнал.: 275.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 17 04.06.2024 08:03 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63932 ФПД: 76567558545285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080316&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63932&fm=76567558545285&tin=02508201610067®Number=0000000000092737&sum=27500 0 [08:03:16]StoreToDocumentArchive [08:03:16]shift 374 fd 63932 [08:03:16]save to /storage/0374/doc_00063932 [08:03:16]save last doc name /storage/0374/doc_00063932 to /storage/kkm_last_doc_name [08:03:16]save OK [08:03:16]Clear old archive folders... [08:03:16]ProcessDocumentItem done err = 0, tmpTLVsize=414 [08:03:16]tlvbuf is 012B77D0 [08:03:16]SAM_PROTO_ClearQueue [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 09 00 00 [08:03:16]Write to MH i2c: E2 08 00 32 07 80 09 00 00 00 00 00 00 AB [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [08:03:16]RAPDU: 90 00 [08:03:16]wFMCommunicate OK [08:03:16]SAM_PROTO_ClearQueue done [08:03:16]KKMCreateOFDPacket [08:03:16]OFDProtocolAddRootSTLVToBuf [08:03:16]FM_MakeSignedData [08:03:16]FM_MakeSignedData [08:03:16]SAM_PROTO_SignData [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 0D 01 02 [08:03:16]Write to MH i2c: E2 08 00 33 07 80 0D 01 02 00 00 00 00 B3 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [08:03:16]RAPDU: 90 00 [08:03:16]wFMCommunicate OK [08:03:16]wFMCommunicate request_size=255 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 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 [08:03:16]Write to MH i2c: E2 02 01 34 07 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 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 00 00 E5 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [08:03:16]RAPDU: 90 00 [08:03:16]wFMCommunicate OK [08:03:16]wFMCommunicate request_size=173 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 44 CA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 45 A3 46 20 DF 85 [08:03:16]Write to MH i2c: E2 B0 00 35 07 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 44 CA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 45 A3 46 20 DF 85 00 00 21 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [08:03:16]RAPDU: 90 00 [08:03:16]wFMCommunicate OK [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 0D 03 02 [08:03:16]Write to MH i2c: E2 08 00 36 07 80 0D 03 02 00 00 00 00 B8 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0B 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0B 00 36 07 00 01 B2 8F 96 C6 B9 75 DD 90 00 62 [08:03:16]RAPDU: 01 B2 8F 96 C6 B9 75 DD 90 00 [08:03:16]wFMCommunicate OK [08:03:16]SAM_PROTO_SignData done [08:03:16]FM_MakeSignedData done [08:03:16]CreateOFDProtocolMessage [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 11 00 00 [08:03:16]Write to MH i2c: E2 08 00 37 07 80 11 00 00 00 00 00 00 B8 [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 17 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 17 00 37 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0A [08:03:16]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:16]wFMCommunicate OK [08:03:16]CreateOFDProtocolMessage done [08:03:16]OFDSenderStorePacket 63932 [08:03:16]StoreOFDPacket docnum=63932 [08:03: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 B2 01 00 00 5D B5 AA 01 98 30 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 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 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 44 CA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 45 A3 46 20 DF 85 01 B2 8F 96 C6 B9 75 DD [08:03:16]CheckFolder [08:03:16]dirname=/storage/ofd_packets [08:03:16]CheckFolder done [08:03:16]ProducePacketName [08:03:17]name=ofd_packets/00063932 [08:03:17]NVStorageSaveData ofd_packets/00063932 [08:03:17]File name is /storage/ofd_packets/00063932 [08:03:17]Write 464 bytes [08:03:17]NVStorageSaveData done [08:03:17]OFDSenderStorePacket done [08:03:17]KKMCreateOFDPacket done [08:03:17]NVStorageSaveData kkm_last_timestamp [08:03:17]File name is /storage/kkm_last_timestamp [08:03:17]Write 4 bytes [08:03:17]NVStorageSaveData done [08:03:17]ExternCall_PrintAddStr [08:03:17]wPrintStart [08:03:17]Write to MH i2c: 01 00 00 38 07 3F [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 07 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 07 00 38 07 00 00 00 00 00 FF 0F 54 [08:03:17]RasterBufferAndPrint [08:03:17]line Счет N : (3)73499 [08:03:17]line ИНН: 02508201610067 [08:03:17]line Контрольно-Кассовый Чек [08:03:17]line ПРОДАЖА [08:03:17]line Товар: 46034595 [08:03:17]line Карамель Chupa н/пал фр.микс,сок колы 12 [08:03:17]line 1.000 * 25.00 [08:03:17]line = 25.00 [08:03:17]line НДС 12% НСП 1% [08:03:17]line > о реализуемом товаре [08:03:17]line Товар: 2000036220012 [08:03:17]line Кофе Капучино XL(GABB TRADE) [08:03:17]line 2.000 * 125.00 [08:03:17]line = 250.00 [08:03:17]line НДС 12% НСП 1% [08:03:17]line > о реализуемом товаре [08:03:17]line ИТОГО: 275.00 [08:03:17]line НСП 1% : 2.43 [08:03:17]line НДС 12% : 29.20 [08:03:17]line Наличными: 0.00 [08:03:17]line Безнал.: 275.00 [08:03:17]line Место: АЗС № 117 "Партнер Нефть" [08:03:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:03:17]line СНО: Общий режим [08:03:17]line Чек 17 04.06.2024 08:03 [08:03:17]line Смена: 374 ФФД: 1.0 [08:03:17]line ЗНМ: 0300000031 [08:03:17]line РНМ: 0000000000092737 [08:03:17]line Версия ККМ: 001 [08:03:17]line Платежная система: АКБ Кыргызстан [08:03:17]line ФМ: 0000000000875074 [08:03:17]line ФД: 63932 [08:03:17]line ФПД: 76567558545285 [08:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T080316&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63932&fm=76567558545285&tin=02508201610067®Number=0000000000092737&sum=27500 [08:03:17]line 0 [08:03:17]written 0, free lines is 4095 [08:03:17]OFD Sender: Processing packet 63932 [packets to send 14, broken 13] [08:03:17]ProducePacketName [08:03:17]name=ofd_packets/00063932 [08:03:17]OFD Sender: To server: pG, [08:03:17]CommunicateWithHost lk.salyk.kg:30040 [08:03:17]ConnectInit lk.salyk.kg [08:03:17]Connected sock=10 [08:03:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 B2 01 00 00 5D B5 AA 01 98 30 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 08 00 34 36 30 33 34 35 39 35 06 04 41 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 43 68 75 70 61 20 D0 BD 2F D0 BF D0 B0 D0 BB 20 D1 84 D1 80 2E D0 BC D0 B8 D0 BA D1 81 2C D1 81 D0 BE D0 BA 20 D0 BA D0 BE D0 BB D1 8B 20 31 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 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 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 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 6B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 44 CA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 45 A3 46 20 DF 85 01 B2 8F 96 C6 B9 75 DD [08:03: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 6A 87 47 00 0E 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BC F9 00 00 F4 03 04 00 13 76 5E 66 B6 04 01 00 00 5C AD 0C 92 9E 40 5A 9F [08:03:17]CommunicateWithHost err = 0 [08:03:17]CheckOFDResponse [08:03:17]1017 (14) - 77093643461234 [08:03:17]1041 (16) - 0000000000875074 [08:03:17]1040 (4) - 63932 [08:03:17]1012 (4) - 04.06.2024 02:04 [08:03:17]1206 (1) - 0 [08:03:17]OFD Sender: Remove packet 63932 [08:03:17]ProducePacketName [08:03:17]name=ofd_packets/00063932 [08:03:17]NVStorageDeleteData [08:03:17]Write to MH i2c: 01 00 00 6A 07 71 [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 07 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 59 0C DD [08:03:17]RasterBufferAndPrint [08:03:17]line [08:03:17]line [08:03:17]line [08:03:17]line [08:03:17]line [08:03:17]written 0, free lines is 3168 [08:03:17]MH_Cut [08:03:17]Write to MH i2c: D1 01 00 71 07 01 4A [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: D1 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: D1 01 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: D1 01 00 71 07 00 49 [08:03:17]Write to MH i2c: 01 00 00 72 07 79 [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]OFD Sender: No OFD packet to send [08:03:18]*** Cut start [08:03:18]*** Partial cut [08:03:18]*** CUTSNS_PIN = 1 [08:03:18]*** CUTSNS_PIN = 0 [08:03:18]*** Brake cut motor [08:03:19]Read from MH i2c: 01 [08:03:19]MH_I2C_Read... [08:03:19]*** Stop cut motor [08:03:19]*** Cut end [08:03:19]Read from MH i2c: 01 07 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 07 00 72 07 00 00 00 00 00 FF 0F 8E [08:03:19]process_action close_receipt done [08:03:19]requested_data is exist [08:03:19]produce_requested_data [08:03:19]requested_item fm.sn is exist - process it [08:03:19]wFMCommunicate request_size=4 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 11 00 00 [08:03:19]Write to MH i2c: E2 08 00 73 07 80 11 00 00 00 00 00 00 F4 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 17 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 17 00 73 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 46 [08:03:19]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:19]wFMCommunicate OK [08:03:19]requested_item fd.num is exist - process it [08:03:19]SAM_PROTO_GetFieldsCounters [08:03:19]wFMCommunicate request_size=4 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 13 00 00 [08:03:19]Write to MH i2c: E2 08 00 74 07 80 13 00 00 00 00 00 00 F7 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 62 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 62 00 74 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 79 [08:03:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 [08:03:19]wFMCommunicate OK [08:03:19]SAM_PROTO_GetFieldsCounters done [08:03:19]requested_item shift.num is exist - process it [08:03:19]requested_item shift.opened is exist - process it [08:03:19]req_shift_opened [08:03:19]FM_GetShiftState [08:03:19]SAM_PROTO_GetShiftState [08:03:19]wFMCommunicate request_size=4 [08:03:19]MH_SAM_APDU [08:03:19]CAPDU: 80 13 01 00 [08:03:19]Write to MH i2c: E2 08 00 75 07 80 13 01 00 00 00 00 00 F9 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 [08:03:19]MH_I2C_Read... [08:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:19]Read from MH i2c: E2 0E 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: E2 0E 00 75 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 99 [08:03:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:03:19]wFMCommunicate OK [08:03:19]SAM_PROTO_GetShiftState done [08:03:19]FM_GetShiftState done [08:03:19]req_shift_opened done [08:03:19]requested_item shift.open_date is exist - process it [08:03:19]req_shift_open_date [08:03:19]req_shift_open_date done [08:03:19]produce_requested_data done [08:03:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63932,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:03:19]process_action_free close_receipt [08:03:19]json_value_free [08:03:19]json_value_free done [08:03:19]process_json_proto returns [08:03:19]Send response to host [08:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63932,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:03:19]free response buf [08:03:19]execute_script done [08:03:19]execute_script returns [08:03:19]free content buf [08:03:19]Sock 9.Close socket [08:03:19]Sock 9.Thread stoped [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:42]accept exits with 7 [08:13:42]New connection [08:13:42]New thread 3067055460 created [08:13:42]Thread 3066912100 joined [08:13:42]Waiting for new connection... [08:13:42] Sock 7.Parse request [08:13:42]Sock 7.Check first char [08:13:42]Sock 7.First char is OK [08:13:42]request: POST /json_proto HTTP/1.0 [08:13:42]Method: POST [08:13:42]URL: /json_proto [08:13:42]Method is POST - this is cgi request [08:13:42]url: /json_proto [08:13:42]query_string will be loaded in cgi processing [08:13:42]execute_cgi json_proto POST (null) [08:13:42]execute_cgi path=json_proto method=POST [08:13:42]POST find Content-Length [08:13:42]Host: 172.17.60.69:8080 [08:13:42]Content-Length: 2492 [08:13:42]Content-Type: application/json [08:13:42] [08:13:42]POST finish read [08:13:42]Found Content-Length = 2492 [08:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73500", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "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 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 10.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 4.000, "sum" : 212.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" : 671.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:42]execute_script... [08:13: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)73500", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "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 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010087", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Lets Go \u0437\u0435\u043B \u0447\u0430\u0439 \u044F\u0431\u043B-\u0433\u0440 \u041F\u042D\u0422 1,2\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 10.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 4.000, "sum" : 212.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" : 671.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:43]POST & json_proto [08:13:43]process_json_proto [08:13:43]json parsed OK: [08:13:43]protocol is kg_v1.0 [08:13:43]action value=close_receipt [08:13:43]process_action close_receipt [08:13:43]cmd_close_receipt [08:13:43]MH_GetDate [08:13:43]Write to MH i2c: F0 00 00 76 07 6C [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: F0 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: F0 09 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: F0 09 00 76 07 00 B9 CC 5E 66 6A 96 4A 66 6E [08:13:43]GetLastDocTimeStamp 1717488196 [08:13:43]current date 1717488825 [08:13:43]FM_GetShiftState [08:13:43]SAM_PROTO_GetShiftState [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 13 01 00 [08:13:43]Write to MH i2c: E2 08 00 77 07 80 13 01 00 00 00 00 00 FB [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 77 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 9B [08:13:43]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:13:43]wFMCommunicate OK [08:13:43]SAM_PROTO_GetShiftState done [08:13:43]FM_GetShiftState done [08:13:43]opened in 1717459574 [08:13:43]opened+sec_in_day 1717545974 [08:13:43]quantity*price = 8500 [08:13:43]sum+1 = 8501 [08:13:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010087 Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 10.000 * 7.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235333 Пряники Яшкино с вареной сгущенкой 350г 1.000 * 149.00 = 149.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000151200112 АКЦИЯ Слойка треугольная курица 110г 4.000 * 53.00 = 212.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 671.00 НСП 1% : 5.94 НДС 12% : 71.25 Наличными: 0.00 Безнал.: 671.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 18 04.06.2024 08:13 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63933 ФПД: 135953110777349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081345&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63933&fm=135953110777349&tin=02508201610067®Number=0000000000092737&sum=67100 0 [08:13:44]StoreToDocumentArchive [08:13:44]shift 374 fd 63933 [08:13:44]save to /storage/0374/doc_00063933 [08:13:44]save last doc name /storage/0374/doc_00063933 to /storage/kkm_last_doc_name [08:13:44]save OK [08:13:44]Clear old archive folders... [08:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=931 [08:13:44]tlvbuf is 0129AF90 [08:13:44]SAM_PROTO_ClearQueue [08:13:44]wFMCommunicate request_size=4 [08:13:44]MH_SAM_APDU [08:13:44]CAPDU: 80 09 00 00 [08:13:44]Write to MH i2c: E2 08 00 84 07 80 09 00 00 00 00 00 00 FD [08:13:44]Write i2c OK [08:13:44]MH_I2C_Read... [08:13:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:44]Read from MH i2c: E2 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: E2 03 00 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [08:13:44]RAPDU: 90 00 [08:13:44]wFMCommunicate OK [08:13:44]SAM_PROTO_ClearQueue done [08:13:44]KKMCreateOFDPacket [08:13:44]OFDProtocolAddRootSTLVToBuf [08:13:44]FM_MakeSignedData [08:13:44]FM_MakeSignedData [08:13:44]SAM_PROTO_SignData [08:13:44]wFMCommunicate request_size=4 [08:13:44]MH_SAM_APDU [08:13:44]CAPDU: 80 0D 01 02 [08:13:44]Write to MH i2c: E2 08 00 85 07 80 0D 01 02 00 00 00 00 05 [08:13:44]Write i2c OK [08:13:44]MH_I2C_Read... [08:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:44]Read from MH i2c: E2 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: E2 03 00 [08:13:44]MH_I2C_Read... [08:13:44]Read from MH i2c: E2 03 00 85 07 00 90 00 00 [08:13:44]RAPDU: 90 00 [08:13:44]wFMCommunicate OK [08:13:44]wFMCommunicate request_size=255 [08:13:44]MH_SAM_APDU [08:13:44]CAPDU: 80 0D 02 02 FA 03 00 A3 03 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 [08:13:44]Write to MH i2c: E2 02 01 86 07 80 0D 02 02 FA 00 03 00 A3 03 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 7F [08:13:44]Write i2c OK [08:13:44]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 86 07 00 90 00 01 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=255 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 02 02 FA 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 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 8A 00 8A 04 0D 00 34 [08:13:45]Write to MH i2c: E2 02 01 87 07 80 0D 02 02 FA 00 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 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 8A 00 8A 04 0D 00 34 00 00 67 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 87 07 00 90 00 02 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=255 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 02 02 FA 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 D0 [08:13:45]Write to MH i2c: E2 02 01 88 07 80 0D 02 02 FA 00 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 D0 00 00 B2 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 88 07 00 90 00 03 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=190 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 02 02 B9 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 06 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B9 CC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 7B A6 0C DF BE 05 [08:13:45]Write to MH i2c: E2 C1 00 89 07 80 0D 02 02 B9 00 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 06 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B9 CC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 7B A6 0C DF BE 05 00 00 A7 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 89 07 00 90 00 04 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 03 02 [08:13:45]Write to MH i2c: E2 08 00 8A 07 80 0D 03 02 00 00 00 00 0C [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 0B 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 0B 00 8A 07 00 8E DA 98 BA FA 12 46 60 90 00 79 [08:13:45]RAPDU: 8E DA 98 BA FA 12 46 60 90 00 [08:13:45]wFMCommunicate OK [08:13:45]SAM_PROTO_SignData done [08:13:45]FM_MakeSignedData done [08:13:45]CreateOFDProtocolMessage [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 11 00 00 [08:13:45]Write to MH i2c: E2 08 00 8B 07 80 11 00 00 00 00 00 00 0C [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 17 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 17 00 8B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5E [08:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:13:45]wFMCommunicate OK [08:13:45]CreateOFDProtocolMessage done [08:13:45]OFDSenderStorePacket 63933 [08:13:45]StoreOFDPacket docnum=63933 [08:13: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 B7 03 00 00 4C D7 AF 03 04 D0 5A 03 01 00 03 00 A3 03 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 06 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B9 CC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 7B A6 0C DF BE 05 8E DA 98 BA FA 12 46 60 [08:13:45]CheckFolder [08:13:45]dirname=/storage/ofd_packets [08:13:45]CheckFolder done [08:13:45]ProducePacketName [08:13:45]name=ofd_packets/00063933 [08:13:45]NVStorageSaveData ofd_packets/00063933 [08:13:45]File name is /storage/ofd_packets/00063933 [08:13:45]Write 981 bytes [08:13:45]NVStorageSaveData done [08:13:45]OFDSenderStorePacket done [08:13:45]KKMCreateOFDPacket done [08:13:46]NVStorageSaveData kkm_last_timestamp [08:13:46]File name is /storage/kkm_last_timestamp [08:13:46]Write 4 bytes [08:13:46]NVStorageSaveData done [08:13:46]ExternCall_PrintAddStr [08:13:46]wPrintStart [08:13:46]Write to MH i2c: 01 00 00 8C 07 93 [08:13:46]OFD Sender: Processing packet 63933 [packets to send 14, broken 13] [08:13:46]ProducePacketName [08:13:46]name=ofd_packets/00063933 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 07 00 [08:13:46]MH_I2C_Read... [08:13:46]OFD Sender: To server: pG, [08:13:46]CommunicateWithHost lk.salyk.kg:30040 [08:13:46]ConnectInit lk.salyk.kg [08:13:46]Read from MH i2c: 01 07 00 8C 07 00 00 00 00 00 FF 0F A8 [08:13:46]RasterBufferAndPrint [08:13:46]line Счет N : (3)73500 [08:13:46]line ИНН: 02508201610067 [08:13:46]line Контрольно-Кассовый Чек [08:13:46]line ПРОДАЖА [08:13:46]line Товар: 4870001571030 [08:13:46]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [08:13:46]line 1.000 * 85.00 [08:13:46]line = 85.00 [08:13:46]line НДС 12% НСП 1% [08:13:46]line > о реализуемом товаре [08:13:46]line Товар: 4700003010087 [08:13:46]line Чай хол Lets Go зел чай ябл-гр ПЭТ 1,2л [08:13:46]line 1.000 * 95.00 [08:13:46]line = 95.00 [08:13:46]line НДС 12% НСП 1% [08:13:46]line > о реализуемом товаре [08:13:46]line Товар: 2000053020015 [08:13:46]line Бумажные стаканы 250мл 1шт [08:13:46]line 10.000 * 7.00 [08:13:46]line = 70.00 [08:13:46]line НДС 12% НСП 1% [08:13:46]line > о реализуемом товаре [08:13:46]line Товар: 4700000160204 [08:13:46]line Вода Легенда 1,5л [08:13:46]line 1.000 * 60.00 [08:13:46]line = 60.00 [08:13:46]line НДС 12% НСП 1% [08:13:46]line > о реализуемом товаре [08:13:46]line Товар: 4607015235333 [08:13:46]line Пряники Яшкино с вареной сгущенкой 350г [08:13:46]line 1.000 * 149.00 [08:13:46]line = 149.00 [08:13:46]line НДС 12% НСП 1% [08:13:46]line > о реализуемом товаре [08:13:46]line Товар: 2000151200112 [08:13:46]line АКЦИЯ Слойка треугольная курица 110г [08:13:46]line 4.000 * 53.00 [08:13:46]line = 212.00 [08:13:46]line НДС 12% НСП 1% [08:13:46]line > о реализуемом товаре [08:13:46]line ИТОГО: 671.00 [08:13:46]line НСП 1% : 5.94 [08:13:46]line НДС 12% : 71.25 [08:13:46]line Наличными: 0.00 [08:13:46]line Безнал.: 671.00 [08:13:46]line Место: АЗС № 117 "Партнер Нефть" [08:13:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:13:46]line СНО: Общий режим [08:13:46]line Чек 18 04.06.2024 08:13 [08:13:46]line Смена: 374 ФФД: 1.0 [08:13:46]line ЗНМ: 0300000031 [08:13:46]line РНМ: 0000000000092737 [08:13:46]line Версия ККМ: 001 [08:13:46]line Платежная система: АКБ Кыргызстан [08:13:46]line ФМ: 0000000000875074 [08:13:46]line ФД: 63933 [08:13:46]line ФПД: 135953110777349 [08:13:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081345&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63933&fm=135953110777349&tin=02508201610067®Number=0000000000092737&sum=67100 [08:13:46]line 0 [08:13:46]written 0, free lines is 4095 [08:13:46]Connected sock=10 [08:13: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 B7 03 00 00 4C D7 AF 03 04 D0 5A 03 01 00 03 00 A3 03 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 80 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 38 37 06 04 3C 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 73 20 47 6F 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D1 8F D0 B1 D0 BB 2D D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 31 2C 32 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 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 10 27 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 A0 0F 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 06 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 B9 CC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 7B A6 0C DF BE 05 8E DA 98 BA FA 12 46 60 [08:13: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 CC 3A 47 00 C2 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 BD F9 00 00 F4 03 04 00 89 78 5E 66 B6 04 01 00 00 3A A8 CD AC D1 E3 38 18 [08:13:46]CommunicateWithHost err = 0 [08:13:46]CheckOFDResponse [08:13:46]1017 (14) - 77093643461234 [08:13:46]1041 (16) - 0000000000875074 [08:13:46]1040 (4) - 63933 [08:13:46]1012 (4) - 04.06.2024 02:14 [08:13:46]1206 (1) - 0 [08:13:46]OFD Sender: Remove packet 63933 [08:13:46]ProducePacketName [08:13:46]name=ofd_packets/00063933 [08:13:46]NVStorageDeleteData [08:13:47]Write to MH i2c: 01 00 00 D9 07 E0 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 07 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 AD 0A 9E [08:13:47]RasterBufferAndPrint [08:13:47]line [08:13:47]line [08:13:47]line [08:13:47]line [08:13:47]line [08:13:47]written 0, free lines is 2746 [08:13:47]MH_Cut [08:13:47]Write to MH i2c: D1 01 00 E0 07 01 B9 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: D1 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: D1 01 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: D1 01 00 E0 07 00 B8 [08:13:47]Write to MH i2c: 01 00 00 E1 07 E8 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]OFD Sender: No OFD packet to send [08:13:48]*** Cut start [08:13:48]*** Partial cut [08:13:48]*** CUTSNS_PIN = 1 [08:13:48]*** CUTSNS_PIN = 0 [08:13:48]*** Brake cut motor [08:13:48]Read from MH i2c: 01 [08:13:48]MH_I2C_Read... [08:13:48]*** Stop cut motor [08:13:48]*** Cut end [08:13:48]Read from MH i2c: 01 07 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: 01 07 00 E1 07 00 00 00 00 00 FF 0F FD [08:13:48]process_action close_receipt done [08:13:48]requested_data is exist [08:13:48]produce_requested_data [08:13:48]requested_item fm.sn is exist - process it [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 11 00 00 [08:13:48]Write to MH i2c: E2 08 00 E2 07 80 11 00 00 00 00 00 00 63 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 17 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 17 00 E2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B5 [08:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:13:48]wFMCommunicate OK [08:13:48]requested_item fd.num is exist - process it [08:13:48]SAM_PROTO_GetFieldsCounters [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 13 00 00 [08:13:48]Write to MH i2c: E2 08 00 E3 07 80 13 00 00 00 00 00 00 66 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:49]Read from MH i2c: E2 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 62 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 62 00 E3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 EC [08:13: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 BD F9 00 00 0E 04 04 00 76 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 [08:13:49]wFMCommunicate OK [08:13:49]SAM_PROTO_GetFieldsCounters done [08:13:49]requested_item shift.num is exist - process it [08:13:49]requested_item shift.opened is exist - process it [08:13:49]req_shift_opened [08:13:49]FM_GetShiftState [08:13:49]SAM_PROTO_GetShiftState [08:13:49]wFMCommunicate request_size=4 [08:13:49]MH_SAM_APDU [08:13:49]CAPDU: 80 13 01 00 [08:13:49]Write to MH i2c: E2 08 00 E4 07 80 13 01 00 00 00 00 00 68 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:49]Read from MH i2c: E2 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 0E 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 0E 00 E4 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 08 [08:13:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:13:49]wFMCommunicate OK [08:13:49]SAM_PROTO_GetShiftState done [08:13:49]FM_GetShiftState done [08:13:49]req_shift_opened done [08:13:49]requested_item shift.open_date is exist - process it [08:13:49]req_shift_open_date [08:13:49]req_shift_open_date done [08:13:49]produce_requested_data done [08:13:49]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63933,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:13:49]process_action_free close_receipt [08:13:49]json_value_free [08:13:49]json_value_free done [08:13:49]process_json_proto returns [08:13:49]Send response to host [08:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63933,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:13:49]free response buf [08:13:49]execute_script done [08:13:49]execute_script returns [08:13:49]free content buf [08:13:49]Sock 7.Close socket [08:13:49]Sock 7.Thread stoped [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:06]accept exits with 9 [08:14:06]New connection [08:14:06]New thread 3066912100 created [08:14:06]Thread 3067055460 joined [08:14:06]Waiting for new connection... [08:14:06] Sock 9.Parse request [08:14:06]Sock 9.Check first char [08:14:06]Sock 9.First char is OK [08:14:06]request: POST /json_proto HTTP/1.0 [08:14:06]Method: POST [08:14:06]URL: /json_proto [08:14:06]Method is POST - this is cgi request [08:14:06]url: /json_proto [08:14:06]query_string will be loaded in cgi processing [08:14:06]execute_cgi json_proto POST (null) [08:14:06]execute_cgi path=json_proto method=POST [08:14:06]POST find Content-Length [08:14:06]Host: 172.17.60.69:8080 [08:14:06]Content-Length: 677 [08:14:06]Content-Type: application/json [08:14:06] [08:14:06]POST finish read [08:14:06]Found Content-Length = 677 [08:14:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544316", "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" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:06]execute_script... [08:14:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544316", "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" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:06]POST & json_proto [08:14:06]process_json_proto [08:14:06]json parsed OK: [08:14:06]protocol is kg_v1.0 [08:14:06]action value=close_receipt [08:14:06]process_action close_receipt [08:14:06]cmd_close_receipt [08:14:06]MH_GetDate [08:14:06]Write to MH i2c: F0 00 00 E5 07 DB [08:14:06]Write i2c OK [08:14:06]MH_I2C_Read... [08:14:06]Read from MH i2c: F0 [08:14:06]MH_I2C_Read... [08:14:06]Read from MH i2c: F0 09 00 [08:14:06]MH_I2C_Read... [08:14:06]Read from MH i2c: F0 09 00 E5 07 00 D0 CC 5E 66 6A 96 4A 66 F4 [08:14:06]GetLastDocTimeStamp 1717488825 [08:14:06]current date 1717488848 [08:14:06]FM_GetShiftState [08:14:06]SAM_PROTO_GetShiftState [08:14:06]wFMCommunicate request_size=4 [08:14:06]MH_SAM_APDU [08:14:06]CAPDU: 80 13 01 00 [08:14:06]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [08:14:06]Write i2c OK [08:14:06]MH_I2C_Read... [08:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:06]Read from MH i2c: E2 [08:14:06]MH_I2C_Read... [08:14:06]Read from MH i2c: E2 0E 00 [08:14:06]MH_I2C_Read... [08:14:06]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0A [08:14:06]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:14:06]wFMCommunicate OK [08:14:06]SAM_PROTO_GetShiftState done [08:14:06]FM_GetShiftState done [08:14:06]opened in 1717459574 [08:14:06]opened+sec_in_day 1717545974 [08:14:06]quantity*price = 50041 [08:14:06]sum+1 = 50042 [08:14:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 19 04.06.2024 08:14 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63934 ФПД: 262812194789404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081408&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63934&fm=262812194789404&tin=02508201610067®Number=0000000000092737&sum=50000 [08:14:07]StoreToDocumentArchive [08:14:07]shift 374 fd 63934 [08:14:07]save to /storage/0374/doc_00063934 [08:14:07]save last doc name /storage/0374/doc_00063934 to /storage/kkm_last_doc_name [08:14:07]save OK [08:14:07]Clear old archive folders... [08:14:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:07]tlvbuf is 012C7BB0 [08:14:07]SAM_PROTO_ClearQueue [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 09 00 00 [08:14:07]Write to MH i2c: E2 08 00 F3 07 80 09 00 00 00 00 00 00 6C [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:07]Read from MH i2c: E2 03 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [08:14:07]RAPDU: 90 00 [08:14:07]wFMCommunicate OK [08:14:07]SAM_PROTO_ClearQueue done [08:14:07]KKMCreateOFDPacket [08:14:07]OFDProtocolAddRootSTLVToBuf [08:14:07]FM_MakeSignedData [08:14:07]FM_MakeSignedData [08:14:07]SAM_PROTO_SignData [08:14:07]wFMCommunicate request_size=4 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 0D 01 02 [08:14:07]Write to MH i2c: E2 08 00 F4 07 80 0D 01 02 00 00 00 00 74 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 [08:14:07]MH_I2C_Read... [08:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:07]Read from MH i2c: E2 03 00 [08:14:07]MH_I2C_Read... [08:14:07]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [08:14:07]RAPDU: 90 00 [08:14:07]wFMCommunicate OK [08:14:07]wFMCommunicate request_size=255 [08:14:07]MH_SAM_APDU [08:14:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D0 CC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 EF [08:14:07]Write to MH i2c: E2 02 01 F5 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D0 CC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 EF 00 00 95 [08:14:07]Write i2c OK [08:14:07]MH_I2C_Read... [08:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:08]Read from MH i2c: E2 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 03 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 03 00 F5 07 00 90 00 70 [08:14:08]RAPDU: 90 00 [08:14:08]wFMCommunicate OK [08:14:08]wFMCommunicate request_size=10 [08:14:08]MH_SAM_APDU [08:14:08]CAPDU: 80 0D 02 02 05 06 BB 83 58 1C [08:14:08]Write to MH i2c: E2 0D 00 F6 07 80 0D 02 02 05 00 06 BB 83 58 1C 00 00 39 [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:08]Read from MH i2c: E2 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 03 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 03 00 F6 07 00 90 00 71 [08:14:08]RAPDU: 90 00 [08:14:08]wFMCommunicate OK [08:14:08]wFMCommunicate request_size=4 [08:14:08]MH_SAM_APDU [08:14:08]CAPDU: 80 0D 03 02 [08:14:08]Write to MH i2c: E2 08 00 F7 07 80 0D 03 02 00 00 00 00 79 [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:08]Read from MH i2c: E2 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 0B 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 0B 00 F7 07 00 10 67 C1 85 BD E0 DF E7 90 00 9A [08:14:08]RAPDU: 10 67 C1 85 BD E0 DF E7 90 00 [08:14:08]wFMCommunicate OK [08:14:08]SAM_PROTO_SignData done [08:14:08]FM_MakeSignedData done [08:14:08]CreateOFDProtocolMessage [08:14:08]wFMCommunicate request_size=4 [08:14:08]MH_SAM_APDU [08:14:08]CAPDU: 80 11 00 00 [08:14:08]Write to MH i2c: E2 08 00 F8 07 80 11 00 00 00 00 00 00 79 [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:08]Read from MH i2c: E2 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 17 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: E2 17 00 F8 07 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:14: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:14:08]wFMCommunicate OK [08:14:08]CreateOFDProtocolMessage done [08:14:08]OFDSenderStorePacket 63934 [08:14:08]StoreOFDPacket docnum=63934 [08:14: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 0F 01 00 00 91 BA 07 01 27 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D0 CC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 EF 06 BB 83 58 1C 10 67 C1 85 BD E0 DF E7 [08:14:08]CheckFolder [08:14:08]dirname=/storage/ofd_packets [08:14:08]CheckFolder done [08:14:08]ProducePacketName [08:14:08]name=ofd_packets/00063934 [08:14:08]NVStorageSaveData ofd_packets/00063934 [08:14:08]File name is /storage/ofd_packets/00063934 [08:14:08]Write 301 bytes [08:14:08]NVStorageSaveData done [08:14:08]OFDSenderStorePacket done [08:14:08]KKMCreateOFDPacket done [08:14:08]NVStorageSaveData kkm_last_timestamp [08:14:08]File name is /storage/kkm_last_timestamp [08:14:08]Write 4 bytes [08:14:08]NVStorageSaveData done [08:14:08]ExternCall_PrintAddStr [08:14:08]wPrintStart [08:14:08]Write to MH i2c: 01 00 00 F9 07 00 [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: 01 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: 01 07 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 FF 0F 15 [08:14:08]RasterBufferAndPrint [08:14:08]line Счет N : (1)544316 [08:14:08]line ИНН: 02508201610067 [08:14:08]line Контрольно-Кассовый Чек [08:14:08]line ПРОДАЖА [08:14:08]line ТРК (МРК, ГНК) : 42 [08:14:08]line Товар: 2710124130 [08:14:08]line Аи-92-К-5 [08:14:08]line 7.480 * 66.90 [08:14:08]line = 500.41 [08:14:08]line НДС 12% НСП 1% [08:14:08]line > о реализуемом товаре [08:14:08]line ОКРУГЛЕНИЕ: -0.41 [08:14:08]line ИТОГО: 500.00 [08:14:08]line Внесено: 500.00 [08:14:08]line СДАЧА: 0.00 [08:14:08]line НСП 1% : 4.43 [08:14:08]line НДС 12% : 53.14 [08:14:08]line Наличными: 500.00 [08:14:08]line Безнал.: 0.00 [08:14:08]line Место: АЗС № 117 "Партнер Нефть" [08:14:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:14:08]line СНО: Общий режим [08:14:08]line Чек 19 04.06.2024 08:14 [08:14:08]line Смена: 374 ФФД: 1.0 [08:14:08]line ЗНМ: 0300000031 [08:14:08]line РНМ: 0000000000092737 [08:14:08]line Версия ККМ: 001 [08:14:08]line ФМ: 0000000000875074 [08:14:08]line ФД: 63934 [08:14:08]line ФПД: 262812194789404 [08:14:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081408&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63934&fm=262812194789404&tin=02508201610067®Number=0000000000092737&sum=50000 [08:14:08]OFD Sender: Processing packet 63934 [packets to send 14, broken 13] [08:14:08]ProducePacketName [08:14:08]name=ofd_packets/00063934 [08:14:08]OFD Sender: To server: pG, [08:14:08]CommunicateWithHost lk.salyk.kg:30040 [08:14:08]ConnectInit lk.salyk.kg [08:14:08]written 0, free lines is 4095 [08:14:08]Connected sock=10 [08:14: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 0F 01 00 00 91 BA 07 01 27 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D0 CC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 EF 06 BB 83 58 1C 10 67 C1 85 BD E0 DF E7 [08:14: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 80 9B 47 00 7C 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 BE F9 00 00 F4 03 04 00 9F 78 5E 66 B6 04 01 00 00 FC B2 AB 07 23 79 D3 86 [08:14:08]CommunicateWithHost err = 0 [08:14:08]CheckOFDResponse [08:14:08]1017 (14) - 77093643461234 [08:14:08]1041 (16) - 0000000000875074 [08:14:08]1040 (4) - 63934 [08:14:08]1012 (4) - 04.06.2024 02:14 [08:14:08]1206 (1) - 0 [08:14:08]OFD Sender: Remove packet 63934 [08:14:08]ProducePacketName [08:14:08]name=ofd_packets/00063934 [08:14:08]NVStorageDeleteData [08:14:08]Write to MH i2c: 01 00 00 24 08 2C [08:14:09]Write i2c OK [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: 01 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: 01 07 00 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: 01 07 00 24 08 00 00 00 00 00 D9 0C 18 [08:14:09]RasterBufferAndPrint [08:14:09]line [08:14:09]line [08:14:09]line [08:14:09]line [08:14:09]line [08:14:09]written 0, free lines is 3296 [08:14:09]MH_Cut [08:14:09]Write to MH i2c: D1 01 00 2B 08 01 05 [08:14:09]Write i2c OK [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: D1 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: D1 01 00 [08:14:09]MH_I2C_Read... [08:14:09]Read from MH i2c: D1 01 00 2B 08 00 04 [08:14:09]Write to MH i2c: 01 00 00 2C 08 34 [08:14:09]Write i2c OK [08:14:09]MH_I2C_Read... [08:14:09]OFD Sender: No OFD packet to send [08:14:09]*** Cut start [08:14:09]*** Partial cut [08:14:09]*** CUTSNS_PIN = 1 [08:14:09]*** CUTSNS_PIN = 0 [08:14:10]*** Brake cut motor [08:14:10]Read from MH i2c: 01 [08:14:10]MH_I2C_Read... [08:14:10]*** Stop cut motor [08:14:10]*** Cut end [08:14:10]Read from MH i2c: 01 07 00 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 FF 0F 49 [08:14:10]process_action close_receipt done [08:14:10]requested_data is exist [08:14:10]produce_requested_data [08:14:10]requested_item fm.sn is exist - process it [08:14:10]wFMCommunicate request_size=4 [08:14:10]MH_SAM_APDU [08:14:10]CAPDU: 80 11 00 00 [08:14:10]Write to MH i2c: E2 08 00 2D 08 80 11 00 00 00 00 00 00 AF [08:14:10]Write i2c OK [08:14:10]MH_I2C_Read... [08:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:10]Read from MH i2c: E2 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: E2 17 00 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: E2 17 00 2D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 01 [08:14: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:14:10]wFMCommunicate OK [08:14:10]requested_item fd.num is exist - process it [08:14:10]SAM_PROTO_GetFieldsCounters [08:14:10]wFMCommunicate request_size=4 [08:14:10]MH_SAM_APDU [08:14:10]CAPDU: 80 13 00 00 [08:14:10]Write to MH i2c: E2 08 00 2E 08 80 13 00 00 00 00 00 00 B2 [08:14:10]Write i2c OK [08:14:10]MH_I2C_Read... [08:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:10]Read from MH i2c: E2 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: E2 62 00 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: E2 62 00 2E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 3C [08:14: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 BE F9 00 00 0E 04 04 00 76 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 [08:14:10]wFMCommunicate OK [08:14:10]SAM_PROTO_GetFieldsCounters done [08:14:10]requested_item shift.num is exist - process it [08:14:10]requested_item shift.opened is exist - process it [08:14:10]req_shift_opened [08:14:10]FM_GetShiftState [08:14:10]SAM_PROTO_GetShiftState [08:14:10]wFMCommunicate request_size=4 [08:14:10]MH_SAM_APDU [08:14:10]CAPDU: 80 13 01 00 [08:14:10]Write to MH i2c: E2 08 00 2F 08 80 13 01 00 00 00 00 00 B4 [08:14:10]Write i2c OK [08:14:10]MH_I2C_Read... [08:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:10]Read from MH i2c: E2 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: E2 0E 00 [08:14:10]MH_I2C_Read... [08:14:10]Read from MH i2c: E2 0E 00 2F 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 54 [08:14:10]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:14:10]wFMCommunicate OK [08:14:10]SAM_PROTO_GetShiftState done [08:14:10]FM_GetShiftState done [08:14:10]req_shift_opened done [08:14:10]requested_item shift.open_date is exist - process it [08:14:10]req_shift_open_date [08:14:10]req_shift_open_date done [08:14:10]produce_requested_data done [08:14:10]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63934,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:14:10]process_action_free close_receipt [08:14:10]json_value_free [08:14:10]json_value_free done [08:14:10]process_json_proto returns [08:14:10]Send response to host [08:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63934,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:14:10]free response buf [08:14:10]execute_script done [08:14:10]execute_script returns [08:14:10]free content buf [08:14:10]Sock 9.Close socket [08:14:10]Sock 9.Thread stoped [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]accept exits with 7 [08:14:54]New connection [08:14:54]New thread 3067055460 created [08:14:54]Thread 3066912100 joined [08:14:54]Waiting for new connection... [08:14:54] Sock 7.Parse request [08:14:54]Sock 7.Check first char [08:14:54]Sock 7.First char is OK [08:14:54]request: POST /json_proto HTTP/1.0 [08:14:54]Method: POST [08:14:54]URL: /json_proto [08:14:54]Method is POST - this is cgi request [08:14:54]url: /json_proto [08:14:54]query_string will be loaded in cgi processing [08:14:54]execute_cgi json_proto POST (null) [08:14:54]execute_cgi path=json_proto method=POST [08:14:54]POST find Content-Length [08:14:54]Host: 172.17.60.69:8080 [08:14:54]Content-Length: 674 [08:14:54]Content-Type: application/json [08:14:54] [08:14:54]POST finish read [08:14:54]Found Content-Length = 674 [08:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "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" ] } } [08:14:54]execute_script... [08:14:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "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" ] } } [08:14:54]POST & json_proto [08:14:54]process_json_proto [08:14:54]json parsed OK: [08:14:54]protocol is kg_v1.0 [08:14:54]action value=close_receipt [08:14:54]process_action close_receipt [08:14:54]cmd_close_receipt [08:14:54]MH_GetDate [08:14:54]Write to MH i2c: F0 00 00 30 08 27 [08:14:54]Write i2c OK [08:14:54]MH_I2C_Read... [08:14:54]Read from MH i2c: F0 [08:14:54]MH_I2C_Read... [08:14:54]Read from MH i2c: F0 09 00 [08:14:54]MH_I2C_Read... [08:14:54]Read from MH i2c: F0 09 00 30 08 00 00 CD 5E 66 6A 96 4A 66 71 [08:14:54]GetLastDocTimeStamp 1717488848 [08:14:54]current date 1717488896 [08:14:54]FM_GetShiftState [08:14:54]SAM_PROTO_GetShiftState [08:14:54]wFMCommunicate request_size=4 [08:14:54]MH_SAM_APDU [08:14:54]CAPDU: 80 13 01 00 [08:14:54]Write to MH i2c: E2 08 00 31 08 80 13 01 00 00 00 00 00 B6 [08:14:54]Write i2c OK [08:14:54]MH_I2C_Read... [08:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:54]Read from MH i2c: E2 [08:14:54]MH_I2C_Read... [08:14:54]Read from MH i2c: E2 0E 00 [08:14:54]MH_I2C_Read... [08:14:54]Read from MH i2c: E2 0E 00 31 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 56 [08:14:54]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:14:54]wFMCommunicate OK [08:14:54]SAM_PROTO_GetShiftState done [08:14:54]FM_GetShiftState done [08:14:54]opened in 1717459574 [08:14:54]opened+sec_in_day 1717545974 [08:14:54]quantity*price = 60069 [08:14:54]sum+1 = 60071 [08:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 20 04.06.2024 08:14 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63935 ФПД: 125988992889257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081456&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63935&fm=125988992889257&tin=02508201610067®Number=0000000000092737&sum=60000 [08:14:55]StoreToDocumentArchive [08:14:55]shift 374 fd 63935 [08:14:55]save to /storage/0374/doc_00063935 [08:14:55]save last doc name /storage/0374/doc_00063935 to /storage/kkm_last_doc_name [08:14:55]save OK [08:14:55]Clear old archive folders... [08:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:14:55]tlvbuf is 012B88E0 [08:14:55]SAM_PROTO_ClearQueue [08:14:55]wFMCommunicate request_size=4 [08:14:55]MH_SAM_APDU [08:14:55]CAPDU: 80 09 00 00 [08:14:55]Write to MH i2c: E2 08 00 3E 08 80 09 00 00 00 00 00 00 B8 [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 [08:14:55]MH_I2C_Read... [08:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:55]Read from MH i2c: E2 03 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [08:14:55]RAPDU: 90 00 [08:14:55]wFMCommunicate OK [08:14:55]SAM_PROTO_ClearQueue done [08:14:55]KKMCreateOFDPacket [08:14:55]OFDProtocolAddRootSTLVToBuf [08:14:55]FM_MakeSignedData [08:14:55]FM_MakeSignedData [08:14:55]SAM_PROTO_SignData [08:14:55]wFMCommunicate request_size=4 [08:14:55]MH_SAM_APDU [08:14:55]CAPDU: 80 0D 01 02 [08:14:55]Write to MH i2c: E2 08 00 3F 08 80 0D 01 02 00 00 00 00 C0 [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:55]Read from MH i2c: E2 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 03 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [08:14:55]RAPDU: 90 00 [08:14:55]wFMCommunicate OK [08:14:55]wFMCommunicate request_size=255 [08:14:55]MH_SAM_APDU [08:14:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 14 00 00 00 F4 03 04 00 00 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 72 96 19 2A [08:14:55]Write to MH i2c: E2 02 01 40 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 14 00 00 00 F4 03 04 00 00 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 72 96 19 2A 00 00 61 [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:55]Read from MH i2c: E2 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 03 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 03 00 40 08 00 90 00 BC [08:14:55]RAPDU: 90 00 [08:14:55]wFMCommunicate OK [08:14:55]wFMCommunicate request_size=7 [08:14:55]MH_SAM_APDU [08:14:55]CAPDU: 80 0D 02 02 02 B1 A9 [08:14:55]Write to MH i2c: E2 0A 00 41 08 80 0D 02 02 02 00 B1 A9 00 00 21 [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:55]Read from MH i2c: E2 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 03 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 03 00 41 08 00 90 00 BD [08:14:55]RAPDU: 90 00 [08:14:55]wFMCommunicate OK [08:14:55]wFMCommunicate request_size=4 [08:14:55]MH_SAM_APDU [08:14:55]CAPDU: 80 0D 03 02 [08:14:55]Write to MH i2c: E2 08 00 42 08 80 0D 03 02 00 00 00 00 C5 [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:55]Read from MH i2c: E2 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 0B 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 0B 00 42 08 00 F4 C8 63 8D 24 BC A9 AB 90 00 A6 [08:14:55]RAPDU: F4 C8 63 8D 24 BC A9 AB 90 00 [08:14:55]wFMCommunicate OK [08:14:55]SAM_PROTO_SignData done [08:14:55]FM_MakeSignedData done [08:14:55]CreateOFDProtocolMessage [08:14:55]wFMCommunicate request_size=4 [08:14:55]MH_SAM_APDU [08:14:55]CAPDU: 80 11 00 00 [08:14:55]Write to MH i2c: E2 08 00 43 08 80 11 00 00 00 00 00 00 C5 [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:55]Read from MH i2c: E2 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 17 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: E2 17 00 43 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 17 [08:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:14:55]wFMCommunicate OK [08:14:55]CreateOFDProtocolMessage done [08:14:55]OFDSenderStorePacket 63935 [08:14:55]StoreOFDPacket docnum=63935 [08:14: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 0C 01 00 00 BC 19 04 01 D7 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 14 00 00 00 F4 03 04 00 00 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 72 96 19 2A B1 A9 F4 C8 63 8D 24 BC A9 AB [08:14:55]CheckFolder [08:14:55]dirname=/storage/ofd_packets [08:14:55]CheckFolder done [08:14:55]ProducePacketName [08:14:55]name=ofd_packets/00063935 [08:14:55]NVStorageSaveData ofd_packets/00063935 [08:14:55]File name is /storage/ofd_packets/00063935 [08:14:55]Write 298 bytes [08:14:55]NVStorageSaveData done [08:14:55]OFDSenderStorePacket done [08:14:55]KKMCreateOFDPacket done [08:14:55]NVStorageSaveData kkm_last_timestamp [08:14:55]File name is /storage/kkm_last_timestamp [08:14:55]Write 4 bytes [08:14:55]NVStorageSaveData done [08:14:55]ExternCall_PrintAddStr [08:14:55]wPrintStart [08:14:55]Write to MH i2c: 01 00 00 44 08 4C [08:14:55]Write i2c OK [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: 01 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: 01 07 00 [08:14:55]MH_I2C_Read... [08:14:55]Read from MH i2c: 01 07 00 44 08 00 00 00 00 00 FF 0F 61 [08:14:55]RasterBufferAndPrint [08:14:55]line Счет N : (1)544317 [08:14:55]line ИНН: 02508201610067 [08:14:55]line Контрольно-Кассовый Чек [08:14:55]line ПРОДАЖА [08:14:55]line ТРК (МРК, ГНК) : 11 [08:14:55]line Товар: 2710194210 [08:14:55]line ДТ-К-5 [08:14:55]line 8.240 * 72.90 [08:14:55]line = 600.70 [08:14:55]line НДС 12% НСП 1% [08:14:55]line > о реализуемом товаре [08:14:55]line ОКРУГЛЕНИЕ: -0.70 [08:14:55]line ИТОГО: 600.00 [08:14:55]line Внесено: 600.00 [08:14:55]line СДАЧА: 0.00 [08:14:55]line НСП 1% : 5.32 [08:14:55]line НДС 12% : 63.79 [08:14:55]line Наличными: 600.00 [08:14:55]line Безнал.: 0.00 [08:14:55]line Место: АЗС № 117 "Партнер Нефть" [08:14:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:14:55]line СНО: Общий режим [08:14:55]line Чек 20 04.06.2024 08:14 [08:14:55]line Смена: 374 ФФД: 1.0 [08:14:55]line ЗНМ: 0300000031 [08:14:55]line РНМ: 0000000000092737 [08:14:55]line Версия ККМ: 001 [08:14:55]line ФМ: 0000000000875074 [08:14:55]line ФД: 63935 [08:14:56]line ФПД: 125988992889257 [08:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081456&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63935&fm=125988992889257&tin=02508201610067®Number=0000000000092737&sum=60000 [08:14:56]OFD Sender: Processing packet 63935 [packets to send 14, broken 13] [08:14:56]ProducePacketName [08:14:56]name=ofd_packets/00063935 [08:14:56]OFD Sender: To server: pG, [08:14:56]CommunicateWithHost lk.salyk.kg:30040 [08:14:56]ConnectInit lk.salyk.kg [08:14:56]written 0, free lines is 4095 [08:14:56]Connected sock=10 [08:14: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 0C 01 00 00 BC 19 04 01 D7 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 14 00 00 00 F4 03 04 00 00 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 72 96 19 2A B1 A9 F4 C8 63 8D 24 BC A9 AB [08:14: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 0E 6B 47 00 BA F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 BF F9 00 00 F4 03 04 00 CE 78 5E 66 B6 04 01 00 00 57 66 D5 8A 44 8B FE 34 [08:14:56]CommunicateWithHost err = 0 [08:14:56]CheckOFDResponse [08:14:56]1017 (14) - 77093643461234 [08:14:56]1041 (16) - 0000000000875074 [08:14:56]1040 (4) - 63935 [08:14:56]1012 (4) - 04.06.2024 02:15 [08:14:56]1206 (1) - 0 [08:14:56]OFD Sender: Remove packet 63935 [08:14:56]ProducePacketName [08:14:56]name=ofd_packets/00063935 [08:14:56]NVStorageDeleteData [08:14:56]Write to MH i2c: 01 00 00 6F 08 77 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: 01 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: 01 07 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: 01 07 00 6F 08 00 00 00 00 00 E4 0C 6E [08:14:56]RasterBufferAndPrint [08:14:56]line [08:14:56]line [08:14:56]line [08:14:56]line [08:14:56]line [08:14:56]written 0, free lines is 3306 [08:14:56]MH_Cut [08:14:56]Write to MH i2c: D1 01 00 76 08 01 50 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: D1 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: D1 01 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: D1 01 00 76 08 00 4F [08:14:56]Write to MH i2c: 01 00 00 77 08 7F [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]OFD Sender: No OFD packet to send [08:14:57]*** Cut start [08:14:57]*** Partial cut [08:14:57]*** CUTSNS_PIN = 1 [08:14:57]*** CUTSNS_PIN = 0 [08:14:57]*** Brake cut motor [08:14:58]Read from MH i2c: 01 [08:14:58]*** Stop cut motor [08:14:58]*** Cut end [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 07 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 FF 0F 94 [08:14:58]process_action close_receipt done [08:14:58]requested_data is exist [08:14:58]produce_requested_data [08:14:58]requested_item fm.sn is exist - process it [08:14:58]wFMCommunicate request_size=4 [08:14:58]MH_SAM_APDU [08:14:58]CAPDU: 80 11 00 00 [08:14:58]Write to MH i2c: E2 08 00 78 08 80 11 00 00 00 00 00 00 FA [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:58]Read from MH i2c: E2 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 17 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 17 00 78 08 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:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:14:58]wFMCommunicate OK [08:14:58]requested_item fd.num is exist - process it [08:14:58]SAM_PROTO_GetFieldsCounters [08:14:58]wFMCommunicate request_size=4 [08:14:58]MH_SAM_APDU [08:14:58]CAPDU: 80 13 00 00 [08:14:58]Write to MH i2c: E2 08 00 79 08 80 13 00 00 00 00 00 00 FD [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:58]Read from MH i2c: E2 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 62 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 62 00 79 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 8B [08:14:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 [08:14:58]wFMCommunicate OK [08:14:58]SAM_PROTO_GetFieldsCounters done [08:14:58]requested_item shift.num is exist - process it [08:14:58]requested_item shift.opened is exist - process it [08:14:58]req_shift_opened [08:14:58]FM_GetShiftState [08:14:58]SAM_PROTO_GetShiftState [08:14:58]wFMCommunicate request_size=4 [08:14:58]MH_SAM_APDU [08:14:58]CAPDU: 80 13 01 00 [08:14:58]Write to MH i2c: E2 08 00 7A 08 80 13 01 00 00 00 00 00 FF [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:58]Read from MH i2c: E2 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 0E 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 0E 00 7A 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 9F [08:14:58]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:14:58]wFMCommunicate OK [08:14:58]SAM_PROTO_GetShiftState done [08:14:58]FM_GetShiftState done [08:14:58]req_shift_opened done [08:14:58]requested_item shift.open_date is exist - process it [08:14:58]req_shift_open_date [08:14:58]req_shift_open_date done [08:14:58]produce_requested_data done [08:14:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63935,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:14:58]process_action_free close_receipt [08:14:58]json_value_free [08:14:58]json_value_free done [08:14:58]process_json_proto returns [08:14:58]Send response to host [08:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63935,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:14:58]free response buf [08:14:58]execute_script done [08:14:58]execute_script returns [08:14:58]free content buf [08:14:58]Sock 7.Close socket [08:14:58]Sock 7.Thread stoped [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:18]accept exits with 9 [08:15:18]New connection [08:15:18]New thread 3066912100 created [08:15:18]Thread 3067055460 joined [08:15:18]Waiting for new connection... [08:15:18] Sock 9.Parse request [08:15:18]Sock 9.Check first char [08:15:18]Sock 9.First char is OK [08:15:18]request: POST /json_proto HTTP/1.0 [08:15:18]Method: POST [08:15:18]URL: /json_proto [08:15:18]Method is POST - this is cgi request [08:15:18]url: /json_proto [08:15:18]query_string will be loaded in cgi processing [08:15:18]execute_cgi json_proto POST (null) [08:15:18]execute_cgi path=json_proto method=POST [08:15:18]POST find Content-Length [08:15:18]Host: 172.17.60.69:8080 [08:15:18]Content-Length: 619 [08:15:18]Content-Type: application/json [08:15:18] [08:15:18]POST finish read [08:15:18]Found Content-Length = 619 [08:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73501", "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" ] } } [08:15:18]execute_script... [08:15: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)73501", "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" ] } } [08:15:18]POST & json_proto [08:15:18]process_json_proto [08:15:18]json parsed OK: [08:15:18]protocol is kg_v1.0 [08:15:18]action value=close_receipt [08:15:18]process_action close_receipt [08:15:18]cmd_close_receipt [08:15:18]MH_GetDate [08:15:18]Write to MH i2c: F0 00 00 7B 08 72 [08:15:18]Write i2c OK [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: F0 [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: F0 09 00 [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: F0 09 00 7B 08 00 18 CD 5E 66 6A 96 4A 66 D4 [08:15:18]GetLastDocTimeStamp 1717488896 [08:15:18]current date 1717488920 [08:15:18]FM_GetShiftState [08:15:18]SAM_PROTO_GetShiftState [08:15:18]wFMCommunicate request_size=4 [08:15:18]MH_SAM_APDU [08:15:18]CAPDU: 80 13 01 00 [08:15:18]Write to MH i2c: E2 08 00 7C 08 80 13 01 00 00 00 00 00 01 [08:15:18]Write i2c OK [08:15:18]MH_I2C_Read... [08:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:18]Read from MH i2c: E2 [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: E2 0E 00 [08:15:18]MH_I2C_Read... [08:15:18]Read from MH i2c: E2 0E 00 7C 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A1 [08:15:18]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:15:18]wFMCommunicate OK [08:15:18]SAM_PROTO_GetShiftState done [08:15:18]FM_GetShiftState done [08:15:18]opened in 1717459574 [08:15:18]opened+sec_in_day 1717545974 [08:15:18]quantity*price = 13500 [08:15:18]sum+1 = 13501 [08:15:18]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 СНО: Общий режим Чек 21 04.06.2024 08:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63936 ФПД: 9100307481686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081520&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63936&fm=9100307481686&tin=02508201610067®Number=0000000000092737&sum=13500 0 [08:15:19]StoreToDocumentArchive [08:15:19]shift 374 fd 63936 [08:15:19]save to /storage/0374/doc_00063936 [08:15:19]save last doc name /storage/0374/doc_00063936 to /storage/kkm_last_doc_name [08:15:19]save OK [08:15:19]Clear old archive folders... [08:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:15:19]tlvbuf is 012C1CE0 [08:15:19]SAM_PROTO_ClearQueue [08:15:19]wFMCommunicate request_size=4 [08:15:19]MH_SAM_APDU [08:15:19]CAPDU: 80 09 00 00 [08:15:19]Write to MH i2c: E2 08 00 89 08 80 09 00 00 00 00 00 00 03 [08:15:19]Write i2c OK [08:15:19]MH_I2C_Read... [08:15:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:20]Read from MH i2c: E2 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 03 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 03 00 89 08 00 90 00 05 [08:15:20]RAPDU: 90 00 [08:15:20]wFMCommunicate OK [08:15:20]SAM_PROTO_ClearQueue done [08:15:20]KKMCreateOFDPacket [08:15:20]OFDProtocolAddRootSTLVToBuf [08:15:20]FM_MakeSignedData [08:15:20]FM_MakeSignedData [08:15:20]SAM_PROTO_SignData [08:15:20]wFMCommunicate request_size=4 [08:15:20]MH_SAM_APDU [08:15:20]CAPDU: 80 0D 01 02 [08:15:20]Write to MH i2c: E2 08 00 8A 08 80 0D 01 02 00 00 00 00 0B [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:20]Read from MH i2c: E2 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 03 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 03 00 8A 08 00 90 00 06 [08:15:20]RAPDU: 90 00 [08:15:20]wFMCommunicate OK [08:15:20]wFMCommunicate request_size=255 [08:15:20]MH_SAM_APDU [08:15:20]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 15 00 00 00 F4 03 04 00 18 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [08:15:20]Write to MH i2c: E2 02 01 8B 08 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 15 00 00 00 F4 03 04 00 18 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 FE [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:20]Read from MH i2c: E2 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 03 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 03 00 8B 08 00 90 00 07 [08:15:20]RAPDU: 90 00 [08:15:20]wFMCommunicate OK [08:15:20]wFMCommunicate request_size=31 [08:15:20]MH_SAM_APDU [08:15:20]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 C0 F9 00 00 35 04 06 00 08 46 D4 98 44 56 [08:15:20]Write to MH i2c: E2 22 00 8C 08 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 C0 F9 00 00 35 04 06 00 08 46 D4 98 44 56 00 00 45 [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:20]Read from MH i2c: E2 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 03 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 03 00 8C 08 00 90 00 08 [08:15:20]RAPDU: 90 00 [08:15:20]wFMCommunicate OK [08:15:20]wFMCommunicate request_size=4 [08:15:20]MH_SAM_APDU [08:15:20]CAPDU: 80 0D 03 02 [08:15:20]Write to MH i2c: E2 08 00 8D 08 80 0D 03 02 00 00 00 00 10 [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:20]Read from MH i2c: E2 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 0B 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 0B 00 8D 08 00 2D 27 7C C0 49 5D 19 F3 90 00 53 [08:15:20]RAPDU: 2D 27 7C C0 49 5D 19 F3 90 00 [08:15:20]wFMCommunicate OK [08:15:20]SAM_PROTO_SignData done [08:15:20]FM_MakeSignedData done [08:15:20]CreateOFDProtocolMessage [08:15:20]wFMCommunicate request_size=4 [08:15:20]MH_SAM_APDU [08:15:20]CAPDU: 80 11 00 00 [08:15:20]Write to MH i2c: E2 08 00 8E 08 80 11 00 00 00 00 00 00 10 [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:20]Read from MH i2c: E2 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 17 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: E2 17 00 8E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 62 [08:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:15:20]wFMCommunicate OK [08:15:20]CreateOFDProtocolMessage done [08:15:20]OFDSenderStorePacket 63936 [08:15:20]StoreOFDPacket docnum=63936 [08:15: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 24 01 00 00 1C 98 1C 01 50 0D 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 15 00 00 00 F4 03 04 00 18 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 08 46 D4 98 44 56 2D 27 7C C0 49 5D 19 F3 [08:15:20]CheckFolder [08:15:20]dirname=/storage/ofd_packets [08:15:20]CheckFolder done [08:15:20]ProducePacketName [08:15:20]name=ofd_packets/00063936 [08:15:20]NVStorageSaveData ofd_packets/00063936 [08:15:20]File name is /storage/ofd_packets/00063936 [08:15:20]Write 322 bytes [08:15:20]NVStorageSaveData done [08:15:20]OFDSenderStorePacket done [08:15:20]KKMCreateOFDPacket done [08:15:20]NVStorageSaveData kkm_last_timestamp [08:15:20]File name is /storage/kkm_last_timestamp [08:15:20]Write 4 bytes [08:15:20]NVStorageSaveData done [08:15:20]ExternCall_PrintAddStr [08:15:20]wPrintStart [08:15:20]Write to MH i2c: 01 00 00 8F 08 97 [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: 01 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: 01 07 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 FF 0F AC [08:15:20]RasterBufferAndPrint [08:15:20]line Счет N : (3)73501 [08:15:20]line ИНН: 02508201610067 [08:15:20]line Контрольно-Кассовый Чек [08:15:20]line ПРОДАЖА [08:15:20]line Товар: 48745000 [08:15:20]line Сигареты Winston Purple Mix [08:15:20]line 1.000 * 135.00 [08:15:20]line = 135.00 [08:15:20]line НДС 12% НСП 1% [08:15:20]line > о реализуемом товаре [08:15:20]line ИТОГО: 135.00 [08:15:20]line НСП 1% : 1.19 [08:15:20]line НДС 12% : 14.34 [08:15:20]line Наличными: 135.00 [08:15:20]line Безнал.: 0.00 [08:15:20]line Место: АЗС № 117 "Партнер Нефть" [08:15:20]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:15:20]line СНО: Общий режим [08:15:20]line Чек 21 04.06.2024 08:15 [08:15:20]line Смена: 374 ФФД: 1.0 [08:15:20]line ЗНМ: 0300000031 [08:15:20]line РНМ: 0000000000092737 [08:15:20]line Версия ККМ: 001 [08:15:20]line ФМ: 0000000000875074 [08:15:20]line ФД: 63936 [08:15:20]line ФПД: 9100307481686 [08:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081520&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63936&fm=9100307481686&tin=02508201610067®Number=0000000000092737&sum=13500 [08:15:20]line 0 [08:15:20]OFD Sender: Processing packet 63936 [packets to send 14, broken 13] [08:15:20]ProducePacketName [08:15:20]name=ofd_packets/00063936 [08:15:20]OFD Sender: To server: pG, [08:15:20]CommunicateWithHost lk.salyk.kg:30040 [08:15:20]ConnectInit lk.salyk.kg [08:15:20]written 0, free lines is 4095 [08:15:20]Connected sock=7 [08:15: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 24 01 00 00 1C 98 1C 01 50 0D 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 15 00 00 00 F4 03 04 00 18 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 08 46 D4 98 44 56 2D 27 7C C0 49 5D 19 F3 [08:15: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 CF E4 47 00 2B 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C0 F9 00 00 F4 03 04 00 E7 78 5E 66 B6 04 01 00 00 43 DB 12 F3 51 F8 9D 82 [08:15:21]CommunicateWithHost err = 0 [08:15:21]CheckOFDResponse [08:15:21]1017 (14) - 77093643461234 [08:15:21]1041 (16) - 0000000000875074 [08:15:21]1040 (4) - 63936 [08:15:21]1012 (4) - 04.06.2024 02:16 [08:15:21]1206 (1) - 0 [08:15:21]OFD Sender: Remove packet 63936 [08:15:21]ProducePacketName [08:15:21]name=ofd_packets/00063936 [08:15:21]NVStorageDeleteData [08:15:21]Write to MH i2c: 01 00 00 B7 08 BF [08:15:21]Write i2c OK [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: 01 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: 01 07 00 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: 01 07 00 B7 08 00 00 00 00 00 00 0D D3 [08:15:21]RasterBufferAndPrint [08:15:21]line [08:15:21]line [08:15:21]line [08:15:21]line [08:15:21]line [08:15:21]written 0, free lines is 3334 [08:15:21]MH_Cut [08:15:21]Write to MH i2c: D1 01 00 BE 08 01 98 [08:15:21]Write i2c OK [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: D1 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: D1 01 00 [08:15:21]MH_I2C_Read... [08:15:21]Read from MH i2c: D1 01 00 BE 08 00 97 [08:15:21]Write to MH i2c: 01 00 00 BF 08 C7 [08:15:21]Write i2c OK [08:15:21]MH_I2C_Read... [08:15:21]OFD Sender: No OFD packet to send [08:15:22]*** Cut start [08:15:22]*** Partial cut [08:15:22]*** CUTSNS_PIN = 1 [08:15:22]*** CUTSNS_PIN = 0 [08:15:22]*** Brake cut motor [08:15:22]Read from MH i2c: 01 [08:15:22]MH_I2C_Read... [08:15:22]*** Stop cut motor [08:15:22]*** Cut end [08:15:22]Read from MH i2c: 01 07 00 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: 01 07 00 BF 08 00 00 00 00 00 FF 0F DC [08:15:22]process_action close_receipt done [08:15:22]requested_data is exist [08:15:22]produce_requested_data [08:15:22]requested_item fm.sn is exist - process it [08:15:22]wFMCommunicate request_size=4 [08:15:22]MH_SAM_APDU [08:15:22]CAPDU: 80 11 00 00 [08:15:22]Write to MH i2c: E2 08 00 C0 08 80 11 00 00 00 00 00 00 42 [08:15:22]Write i2c OK [08:15:22]MH_I2C_Read... [08:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:22]Read from MH i2c: E2 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: E2 17 00 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: E2 17 00 C0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 94 [08:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:15:22]wFMCommunicate OK [08:15:22]requested_item fd.num is exist - process it [08:15:22]SAM_PROTO_GetFieldsCounters [08:15:22]wFMCommunicate request_size=4 [08:15:22]MH_SAM_APDU [08:15:22]CAPDU: 80 13 00 00 [08:15:22]Write to MH i2c: E2 08 00 C1 08 80 13 00 00 00 00 00 00 45 [08:15:22]Write i2c OK [08:15:22]MH_I2C_Read... [08:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:22]Read from MH i2c: E2 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: E2 62 00 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: E2 62 00 C1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 D7 [08:15: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 C0 F9 00 00 0E 04 04 00 76 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 [08:15:22]wFMCommunicate OK [08:15:22]SAM_PROTO_GetFieldsCounters done [08:15:22]requested_item shift.num is exist - process it [08:15:22]requested_item shift.opened is exist - process it [08:15:22]req_shift_opened [08:15:22]FM_GetShiftState [08:15:22]SAM_PROTO_GetShiftState [08:15:22]wFMCommunicate request_size=4 [08:15:22]MH_SAM_APDU [08:15:22]CAPDU: 80 13 01 00 [08:15:22]Write to MH i2c: E2 08 00 C2 08 80 13 01 00 00 00 00 00 47 [08:15:22]Write i2c OK [08:15:22]MH_I2C_Read... [08:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:22]Read from MH i2c: E2 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: E2 0E 00 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: E2 0E 00 C2 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 E7 [08:15:22]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:15:22]wFMCommunicate OK [08:15:22]SAM_PROTO_GetShiftState done [08:15:22]FM_GetShiftState done [08:15:22]req_shift_opened done [08:15:22]requested_item shift.open_date is exist - process it [08:15:22]req_shift_open_date [08:15:22]req_shift_open_date done [08:15:22]produce_requested_data done [08:15:22]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63936,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:15:22]process_action_free close_receipt [08:15:22]json_value_free [08:15:22]json_value_free done [08:15:22]process_json_proto returns [08:15:22]Send response to host [08:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63936,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:15:22]free response buf [08:15:22]execute_script done [08:15:22]execute_script returns [08:15:22]free content buf [08:15:22]Sock 9.Close socket [08:15:22]Sock 9.Thread stoped [08:15:26]OFD Sender: No OFD packet to send [08:15:31]accept exits with 10 [08:15:31]New connection [08:15:31]New thread 3067055460 created [08:15:31]Thread 3066912100 joined [08:15:31]Waiting for new connection... [08:15:31] Sock 10.Parse request [08:15:31]Sock 10.Check first char [08:15:31]Sock 10.First char is OK [08:15:31]request: POST /json_proto HTTP/1.0 [08:15:31]Method: POST [08:15:31]URL: /json_proto [08:15:31]Method is POST - this is cgi request [08:15:31]url: /json_proto [08:15:31]query_string will be loaded in cgi processing [08:15:31]execute_cgi json_proto POST (null) [08:15:31]execute_cgi path=json_proto method=POST [08:15:31]POST find Content-Length [08:15:31]Host: 172.17.60.69:8080 [08:15:31]Content-Length: 682 [08:15:31]Content-Type: application/json [08:15:31] [08:15:31]POST finish read [08:15:31]Found Content-Length = 682 [08:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544321", "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" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:31]execute_script... [08:15:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544321", "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" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:31]POST & json_proto [08:15:31]process_json_proto [08:15:31]json parsed OK: [08:15:31]protocol is kg_v1.0 [08:15:31]action value=close_receipt [08:15:31]process_action close_receipt [08:15:31]cmd_close_receipt [08:15:31]MH_GetDate [08:15:31]Write to MH i2c: F0 00 00 C3 08 BA [08:15:31]Write i2c OK [08:15:31]MH_I2C_Read... [08:15:31]Read from MH i2c: F0 [08:15:31]MH_I2C_Read... [08:15:31]Read from MH i2c: F0 09 00 [08:15:31]MH_I2C_Read... [08:15:31]Read from MH i2c: F0 09 00 C3 08 00 25 CD 5E 66 6A 96 4A 66 29 [08:15:31]GetLastDocTimeStamp 1717488920 [08:15:31]current date 1717488933 [08:15:31]FM_GetShiftState [08:15:31]SAM_PROTO_GetShiftState [08:15:31]wFMCommunicate request_size=4 [08:15:31]MH_SAM_APDU [08:15:31]CAPDU: 80 13 01 00 [08:15:31]Write to MH i2c: E2 08 00 C4 08 80 13 01 00 00 00 00 00 49 [08:15:31]Write i2c OK [08:15:31]MH_I2C_Read... [08:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:31]Read from MH i2c: E2 [08:15:31]MH_I2C_Read... [08:15:31]Read from MH i2c: E2 0E 00 [08:15:31]MH_I2C_Read... [08:15:31]Read from MH i2c: E2 0E 00 C4 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 E9 [08:15:31]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:15:31]wFMCommunicate OK [08:15:31]SAM_PROTO_GetShiftState done [08:15:31]FM_GetShiftState done [08:15:31]opened in 1717459574 [08:15:31]opened+sec_in_day 1717545974 [08:15:31]quantity*price = 120018 [08:15:31]sum+1 = 120020 [08:15:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 22 04.06.2024 08:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63937 ФПД: 137430220454675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081533&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63937&fm=137430220454675&tin=02508201610067®Number=0000000000092737&sum=120000 [08:15:32]StoreToDocumentArchive [08:15:32]shift 374 fd 63937 [08:15:32]save to /storage/0374/doc_00063937 [08:15:32]save last doc name /storage/0374/doc_00063937 to /storage/kkm_last_doc_name [08:15:32]save OK [08:15:32]Clear old archive folders... [08:15:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:32]tlvbuf is 012C60E0 [08:15:32]SAM_PROTO_ClearQueue [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 09 00 00 [08:15:32]Write to MH i2c: E2 08 00 D1 08 80 09 00 00 00 00 00 00 4B [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]SAM_PROTO_ClearQueue done [08:15:32]KKMCreateOFDPacket [08:15:32]OFDProtocolAddRootSTLVToBuf [08:15:32]FM_MakeSignedData [08:15:32]FM_MakeSignedData [08:15:32]SAM_PROTO_SignData [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 01 02 [08:15:32]Write to MH i2c: E2 08 00 D2 08 80 0D 01 02 00 00 00 00 53 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]wFMCommunicate request_size=255 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 25 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 7C [08:15:32]Write to MH i2c: E2 02 01 D3 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 25 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 7C 00 00 64 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]wFMCommunicate request_size=10 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 02 02 05 FD F7 78 BB 13 [08:15:32]Write to MH i2c: E2 0D 00 D4 08 80 0D 02 02 05 00 FD F7 78 BB 13 00 00 9A [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 03 02 [08:15:32]Write to MH i2c: E2 08 00 D5 08 80 0D 03 02 00 00 00 00 58 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:33]Read from MH i2c: E2 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: E2 0B 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: E2 0B 00 D5 08 00 9C 2F D9 BC 03 83 B3 0A 90 00 FC [08:15:33]RAPDU: 9C 2F D9 BC 03 83 B3 0A 90 00 [08:15:33]wFMCommunicate OK [08:15:33]SAM_PROTO_SignData done [08:15:33]FM_MakeSignedData done [08:15:33]CreateOFDProtocolMessage [08:15:33]wFMCommunicate request_size=4 [08:15:33]MH_SAM_APDU [08:15:33]CAPDU: 80 11 00 00 [08:15:33]Write to MH i2c: E2 08 00 D6 08 80 11 00 00 00 00 00 00 58 [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:33]Read from MH i2c: E2 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: E2 17 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: E2 17 00 D6 08 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:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:15:33]wFMCommunicate OK [08:15:33]CreateOFDProtocolMessage done [08:15:33]OFDSenderStorePacket 63937 [08:15:33]StoreOFDPacket docnum=63937 [08:15: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 0F 01 00 00 78 78 07 01 D7 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 25 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 7C FD F7 78 BB 13 9C 2F D9 BC 03 83 B3 0A [08:15:33]CheckFolder [08:15:33]dirname=/storage/ofd_packets [08:15:33]CheckFolder done [08:15:33]ProducePacketName [08:15:33]name=ofd_packets/00063937 [08:15:33]NVStorageSaveData ofd_packets/00063937 [08:15:33]File name is /storage/ofd_packets/00063937 [08:15:33]Write 301 bytes [08:15:33]NVStorageSaveData done [08:15:33]OFDSenderStorePacket done [08:15:33]KKMCreateOFDPacket done [08:15:33]NVStorageSaveData kkm_last_timestamp [08:15:33]File name is /storage/kkm_last_timestamp [08:15:33]Write 4 bytes [08:15:33]NVStorageSaveData done [08:15:33]ExternCall_PrintAddStr [08:15:33]wPrintStart [08:15:33]Write to MH i2c: 01 00 00 D7 08 DF [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 07 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 FF 0F F4 [08:15:33]RasterBufferAndPrint [08:15:33]line Счет N : (1)544321 [08:15:33]line ИНН: 02508201610067 [08:15:33]line Контрольно-Кассовый Чек [08:15:33]line ПРОДАЖА [08:15:33]line ТРК (МРК, ГНК) : 42 [08:15:33]line Товар: 2710124130 [08:15:33]line Аи-92-К-5 [08:15:33]line 17.940 * 66.90 [08:15:33]line = 1200.19 [08:15:33]line НДС 12% НСП 1% [08:15:33]line > о реализуемом товаре [08:15:33]line ОКРУГЛЕНИЕ: -0.19 [08:15:33]line ИТОГО: 1200.00 [08:15:33]line Внесено: 1200.00 [08:15:33]line СДАЧА: 0.00 [08:15:33]line НСП 1% : 10.62 [08:15:33]line НДС 12% : 127.45 [08:15:33]line Наличными: 1200.00 [08:15:33]line Безнал.: 0.00 [08:15:33]line Место: АЗС № 117 "Партнер Нефть" [08:15:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:15:33]line СНО: Общий режим [08:15:33]line Чек 22 04.06.2024 08:15 [08:15:33]line Смена: 374 ФФД: 1.0 [08:15:33]line ЗНМ: 0300000031 [08:15:33]line РНМ: 0000000000092737 [08:15:33]line Версия ККМ: 001 [08:15:33]line ФМ: 0000000000875074 [08:15:33]line ФД: 63937 [08:15:33]line ФПД: 137430220454675 [08:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081533&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63937&fm=137430220454675&tin=02508201610067®Number=0000000000092737&sum=120000 [08:15:33]written 0, free lines is 4095 [08:15:33]OFD Sender: Processing packet 63937 [packets to send 14, broken 13] [08:15:33]ProducePacketName [08:15:33]name=ofd_packets/00063937 [08:15:33]OFD Sender: To server: pG, [08:15:33]CommunicateWithHost lk.salyk.kg:30040 [08:15:33]ConnectInit lk.salyk.kg [08:15:33]Connected sock=9 [08:15: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 0F 01 00 00 78 78 07 01 D7 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 25 CD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 7C FD F7 78 BB 13 9C 2F D9 BC 03 83 B3 0A [08:15: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 D8 14 47 00 4E F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C1 F9 00 00 F4 03 04 00 F3 78 5E 66 B6 04 01 00 00 B0 46 EC 6B 0C 36 AC 14 [08:15:33]CommunicateWithHost err = 0 [08:15:33]CheckOFDResponse [08:15:33]1017 (14) - 77093643461234 [08:15:33]1041 (16) - 0000000000875074 [08:15:33]1040 (4) - 63937 [08:15:33]1012 (4) - 04.06.2024 02:16 [08:15:33]1206 (1) - 0 [08:15:33]OFD Sender: Remove packet 63937 [08:15:33]ProducePacketName [08:15:33]name=ofd_packets/00063937 [08:15:33]NVStorageDeleteData [08:15:33]Write to MH i2c: 01 00 00 02 09 0B [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 07 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 07 00 02 09 00 00 00 00 00 EF 0C 0D [08:15:33]RasterBufferAndPrint [08:15:33]line [08:15:33]line [08:15:33]line [08:15:33]line [08:15:33]line [08:15:33]written 0, free lines is 3320 [08:15:33]MH_Cut [08:15:33]Write to MH i2c: D1 01 00 09 09 01 E4 [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: D1 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: D1 01 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: D1 01 00 09 09 00 E3 [08:15:33]Write to MH i2c: 01 00 00 0A 09 13 [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:34]OFD Sender: No OFD packet to send [08:15:34]*** Cut start [08:15:34]*** Partial cut [08:15:34]*** CUTSNS_PIN = 1 [08:15:34]*** CUTSNS_PIN = 0 [08:15:34]*** Brake cut motor [08:15:34]Read from MH i2c: 01 [08:15:34]MH_I2C_Read... [08:15:34]*** Stop cut motor [08:15:34]*** Cut end [08:15:34]Read from MH i2c: 01 07 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: 01 07 00 0A 09 00 00 00 00 00 FF 0F 28 [08:15:34]process_action close_receipt done [08:15:34]requested_data is exist [08:15:34]produce_requested_data [08:15:34]requested_item fm.sn is exist - process it [08:15:34]wFMCommunicate request_size=4 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 11 00 00 [08:15:34]Write to MH i2c: E2 08 00 0B 09 80 11 00 00 00 00 00 00 8E [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:35]Read from MH i2c: E2 [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: E2 17 00 [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: E2 17 00 0B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E0 [08:15: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:15:35]wFMCommunicate OK [08:15:35]requested_item fd.num is exist - process it [08:15:35]SAM_PROTO_GetFieldsCounters [08:15:35]wFMCommunicate request_size=4 [08:15:35]MH_SAM_APDU [08:15:35]CAPDU: 80 13 00 00 [08:15:35]Write to MH i2c: E2 08 00 0C 09 80 13 00 00 00 00 00 00 91 [08:15:35]Write i2c OK [08:15:35]MH_I2C_Read... [08:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:35]Read from MH i2c: E2 [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: E2 62 00 [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: E2 62 00 0C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 27 [08:15: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 C1 F9 00 00 0E 04 04 00 76 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 [08:15:35]wFMCommunicate OK [08:15:35]SAM_PROTO_GetFieldsCounters done [08:15:35]requested_item shift.num is exist - process it [08:15:35]requested_item shift.opened is exist - process it [08:15:35]req_shift_opened [08:15:35]FM_GetShiftState [08:15:35]SAM_PROTO_GetShiftState [08:15:35]wFMCommunicate request_size=4 [08:15:35]MH_SAM_APDU [08:15:35]CAPDU: 80 13 01 00 [08:15:35]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [08:15:35]Write i2c OK [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: E2 [08:15:35]MH_I2C_Read... [08:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:35]Read from MH i2c: E2 0E 00 [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 33 [08:15:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:15:35]wFMCommunicate OK [08:15:35]SAM_PROTO_GetShiftState done [08:15:35]FM_GetShiftState done [08:15:35]req_shift_opened done [08:15:35]requested_item shift.open_date is exist - process it [08:15:35]req_shift_open_date [08:15:35]req_shift_open_date done [08:15:35]produce_requested_data done [08:15:35]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63937,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:15:35]process_action_free close_receipt [08:15:35]json_value_free [08:15:35]json_value_free done [08:15:35]process_json_proto returns [08:15:35]Send response to host [08:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63937,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:15:35]free response buf [08:15:35]execute_script done [08:15:35]execute_script returns [08:15:35]free content buf [08:15:35]Sock 10.Close socket [08:15:35]Sock 10.Thread stoped [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:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:41]accept exits with 7 [08:19:41]New connection [08:19:41]New thread 3066912100 created [08:19:41]Thread 3067055460 joined [08:19:41]Waiting for new connection... [08:19:41] Sock 7.Parse request [08:19:41]Sock 7.Check first char [08:19:41]Sock 7.First char is OK [08:19:41]request: POST /json_proto HTTP/1.0 [08:19:41]Method: POST [08:19:41]URL: /json_proto [08:19:41]Method is POST - this is cgi request [08:19:41]url: /json_proto [08:19:41]query_string will be loaded in cgi processing [08:19:41]execute_cgi json_proto POST (null) [08:19:41]execute_cgi path=json_proto method=POST [08:19:41]POST find Content-Length [08:19:41]Host: 172.17.60.69:8080 [08:19:41]Content-Length: 653 [08:19:41]Content-Type: application/json [08:19:41] [08:19:41]POST finish read [08:19:41]Found Content-Length = 653 [08:19:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73502", "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" ] } } [08:19:41]execute_script... [08:19: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)73502", "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" ] } } [08:19:41]POST & json_proto [08:19:41]process_json_proto [08:19:41]json parsed OK: [08:19:41]protocol is kg_v1.0 [08:19:41]action value=close_receipt [08:19:41]process_action close_receipt [08:19:41]cmd_close_receipt [08:19:41]MH_GetDate [08:19:41]Write to MH i2c: F0 00 00 0E 09 06 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: F0 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: F0 09 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: F0 09 00 0E 09 00 1F CE 5E 66 6A 96 4A 66 70 [08:19:41]GetLastDocTimeStamp 1717488933 [08:19:41]current date 1717489183 [08:19:41]FM_GetShiftState [08:19:41]SAM_PROTO_GetShiftState [08:19:41]wFMCommunicate request_size=4 [08:19:41]MH_SAM_APDU [08:19:41]CAPDU: 80 13 01 00 [08:19:41]Write to MH i2c: E2 08 00 0F 09 80 13 01 00 00 00 00 00 95 [08:19:41]Write i2c OK [08:19:41]MH_I2C_Read... [08:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:41]Read from MH i2c: E2 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 0E 00 [08:19:41]MH_I2C_Read... [08:19:41]Read from MH i2c: E2 0E 00 0F 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 35 [08:19:41]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:19:41]wFMCommunicate OK [08:19:41]SAM_PROTO_GetShiftState done [08:19:41]FM_GetShiftState done [08:19:41]opened in 1717459574 [08:19:41]opened+sec_in_day 1717545974 [08:19:41]quantity*price = 9500 [08:19:41]sum+1 = 9501 [08:19:41]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 СНО: Общий режим Чек 23 04.06.2024 08:19 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63938 ФПД: 99834812665854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081943&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63938&fm=99834812665854&tin=02508201610067®Number=0000000000092737&sum=9500 0 [08:19:42]StoreToDocumentArchive [08:19:42]shift 374 fd 63938 [08:19:42]save to /storage/0374/doc_00063938 [08:19:42]save last doc name /storage/0374/doc_00063938 to /storage/kkm_last_doc_name [08:19:42]save OK [08:19:42]Clear old archive folders... [08:19:42]ProcessDocumentItem done err = 0, tmpTLVsize=293 [08:19:42]tlvbuf is 012B9550 [08:19:42]SAM_PROTO_ClearQueue [08:19:42]wFMCommunicate request_size=4 [08:19:42]MH_SAM_APDU [08:19:42]CAPDU: 80 09 00 00 [08:19:42]Write to MH i2c: E2 08 00 1C 09 80 09 00 00 00 00 00 00 97 [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:42]Read from MH i2c: E2 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 03 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [08:19:42]RAPDU: 90 00 [08:19:42]wFMCommunicate OK [08:19:42]SAM_PROTO_ClearQueue done [08:19:42]KKMCreateOFDPacket [08:19:42]OFDProtocolAddRootSTLVToBuf [08:19:42]FM_MakeSignedData [08:19:42]FM_MakeSignedData [08:19:42]SAM_PROTO_SignData [08:19:42]wFMCommunicate request_size=4 [08:19:42]MH_SAM_APDU [08:19:42]CAPDU: 80 0D 01 02 [08:19:42]Write to MH i2c: E2 08 00 1D 09 80 0D 01 02 00 00 00 00 9F [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:42]Read from MH i2c: E2 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 03 00 [08:19:42]MH_I2C_Read... [08:19:42]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [08:19:42]RAPDU: 90 00 [08:19:42]wFMCommunicate OK [08:19:42]wFMCommunicate request_size=255 [08:19:42]MH_SAM_APDU [08:19:42]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 17 00 00 00 F4 03 04 00 1F CE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [08:19:42]Write to MH i2c: E2 02 01 1E 09 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 17 00 00 00 F4 03 04 00 1F CE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 7E [08:19:42]Write i2c OK [08:19:42]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [08:19:43]RAPDU: 90 00 [08:19:43]wFMCommunicate OK [08:19:43]wFMCommunicate request_size=52 [08:19:43]MH_SAM_APDU [08:19:43]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 C2 F9 00 00 35 04 06 00 5A CC 9A 8B 8F FE [08:19:43]Write to MH i2c: E2 37 00 1F 09 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 C2 F9 00 00 35 04 06 00 5A CC 9A 8B 8F FE 00 00 FA [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 03 00 1F 09 00 90 00 9C [08:19:43]RAPDU: 90 00 [08:19:43]wFMCommunicate OK [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 0D 03 02 [08:19:43]Write to MH i2c: E2 08 00 20 09 80 0D 03 02 00 00 00 00 A4 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0B 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 0B 00 20 09 00 15 7A 65 53 03 9E 73 02 90 00 02 [08:19:43]RAPDU: 15 7A 65 53 03 9E 73 02 90 00 [08:19:43]wFMCommunicate OK [08:19:43]SAM_PROTO_SignData done [08:19:43]FM_MakeSignedData done [08:19:43]CreateOFDProtocolMessage [08:19:43]wFMCommunicate request_size=4 [08:19:43]MH_SAM_APDU [08:19:43]CAPDU: 80 11 00 00 [08:19:43]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:43]Read from MH i2c: E2 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 17 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: E2 17 00 21 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F6 [08:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:19:43]wFMCommunicate OK [08:19:43]CreateOFDProtocolMessage done [08:19:43]OFDSenderStorePacket 63938 [08:19:43]StoreOFDPacket docnum=63938 [08:19:43]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 97 89 31 01 E1 7A 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 17 00 00 00 F4 03 04 00 1F CE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 5A CC 9A 8B 8F FE 15 7A 65 53 03 9E 73 02 [08:19:43]CheckFolder [08:19:43]dirname=/storage/ofd_packets [08:19:43]CheckFolder done [08:19:43]ProducePacketName [08:19:43]name=ofd_packets/00063938 [08:19:43]NVStorageSaveData ofd_packets/00063938 [08:19:43]File name is /storage/ofd_packets/00063938 [08:19:43]Write 343 bytes [08:19:43]NVStorageSaveData done [08:19:43]OFDSenderStorePacket done [08:19:43]KKMCreateOFDPacket done [08:19:43]NVStorageSaveData kkm_last_timestamp [08:19:43]File name is /storage/kkm_last_timestamp [08:19:43]Write 4 bytes [08:19:43]NVStorageSaveData done [08:19:43]ExternCall_PrintAddStr [08:19:43]wPrintStart [08:19:43]Write to MH i2c: 01 00 00 22 09 2B [08:19:43]Write i2c OK [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: 01 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: 01 07 00 [08:19:43]MH_I2C_Read... [08:19:43]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FF 0F 40 [08:19:43]RasterBufferAndPrint [08:19:43]line Счет N : (3)73502 [08:19:43]line ИНН: 02508201610067 [08:19:43]line Контрольно-Кассовый Чек [08:19:43]line ПРОДАЖА [08:19:43]line Товар: 4700000480050 [08:19:43]line Напиток Nitro Energy эн green ж/б 0,45л [08:19:43]line 1.000 * 95.00 [08:19:43]line = 95.00 [08:19:43]line НДС 12% НСП 1% [08:19:43]line > о реализуемом товаре [08:19:43]line ИТОГО: 95.00 [08:19:43]line НСП 1% : 0.84 [08:19:43]line НДС 12% : 10.09 [08:19:43]line Наличными: 95.00 [08:19:43]line Безнал.: 0.00 [08:19:43]line Место: АЗС № 117 "Партнер Нефть" [08:19:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:19:43]line СНО: Общий режим [08:19:43]line Чек 23 04.06.2024 08:19 [08:19:43]line Смена: 374 ФФД: 1.0 [08:19:43]line ЗНМ: 0300000031 [08:19:43]line РНМ: 0000000000092737 [08:19:43]line Версия ККМ: 001 [08:19:43]line ФМ: 0000000000875074 [08:19:43]line ФД: 63938 [08:19:43]line ФПД: 99834812665854 [08:19:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T081943&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63938&fm=99834812665854&tin=02508201610067®Number=0000000000092737&sum=9500 [08:19:43]line 0 [08:19:43]OFD Sender: Processing packet 63938 [packets to send 14, broken 13] [08:19:43]ProducePacketName [08:19:43]name=ofd_packets/00063938 [08:19:43]OFD Sender: To server: pG, [08:19:43]CommunicateWithHost lk.salyk.kg:30040 [08:19:43]ConnectInit lk.salyk.kg [08:19:43]written 0, free lines is 4095 [08:19:43]Connected sock=10 [08:19: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 39 01 00 00 97 89 31 01 E1 7A 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 17 00 00 00 F4 03 04 00 1F CE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 5A CC 9A 8B 8F FE 15 7A 65 53 03 9E 73 02 [08:19:44]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 4B 17 47 00 C0 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C2 F9 00 00 F4 03 04 00 EE 79 5E 66 B6 04 01 00 00 6A 16 C7 93 92 1A C8 83 [08:19:44]CommunicateWithHost err = 0 [08:19:44]CheckOFDResponse [08:19:44]1017 (14) - 77093643461234 [08:19:44]1041 (16) - 0000000000875074 [08:19:44]1040 (4) - 63938 [08:19:44]1012 (4) - 04.06.2024 02:20 [08:19:44]1206 (1) - 0 [08:19:44]OFD Sender: Remove packet 63938 [08:19:44]ProducePacketName [08:19:44]name=ofd_packets/00063938 [08:19:44]NVStorageDeleteData [08:19:44]Write to MH i2c: 01 00 00 4B 09 54 [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: 01 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: 01 07 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 DD 0C 44 [08:19:44]RasterBufferAndPrint [08:19:44]line [08:19:44]line [08:19:44]line [08:19:44]line [08:19:44]line [08:19:44]written 0, free lines is 3298 [08:19:44]MH_Cut [08:19:44]Write to MH i2c: D1 01 00 52 09 01 2D [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: D1 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: D1 01 00 [08:19:44]MH_I2C_Read... [08:19:44]Read from MH i2c: D1 01 00 52 09 00 2C [08:19:44]Write to MH i2c: 01 00 00 53 09 5C [08:19:44]Write i2c OK [08:19:44]MH_I2C_Read... [08:19:44]OFD Sender: No OFD packet to send [08:19:44]*** Cut start [08:19:44]*** Partial cut [08:19:44]*** CUTSNS_PIN = 1 [08:19:45]*** CUTSNS_PIN = 0 [08:19:45]*** Brake cut motor [08:19:45]Read from MH i2c: 01 [08:19:45]MH_I2C_Read... [08:19:45]*** Stop cut motor [08:19:45]*** Cut end [08:19:45]Read from MH i2c: 01 07 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 FF 0F 71 [08:19:45]process_action close_receipt done [08:19:45]requested_data is exist [08:19:45]produce_requested_data [08:19:45]requested_item fm.sn is exist - process it [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 11 00 00 [08:19:45]Write to MH i2c: E2 08 00 54 09 80 11 00 00 00 00 00 00 D7 [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 17 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 17 00 54 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 29 [08:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:19:45]wFMCommunicate OK [08:19:45]requested_item fd.num is exist - process it [08:19:45]SAM_PROTO_GetFieldsCounters [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 13 00 00 [08:19:45]Write to MH i2c: E2 08 00 55 09 80 13 00 00 00 00 00 00 DA [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 62 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 62 00 55 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 74 [08:19:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 [08:19:45]wFMCommunicate OK [08:19:45]SAM_PROTO_GetFieldsCounters done [08:19:45]requested_item shift.num is exist - process it [08:19:45]requested_item shift.opened is exist - process it [08:19:45]req_shift_opened [08:19:45]FM_GetShiftState [08:19:45]SAM_PROTO_GetShiftState [08:19:45]wFMCommunicate request_size=4 [08:19:45]MH_SAM_APDU [08:19:45]CAPDU: 80 13 01 00 [08:19:45]Write to MH i2c: E2 08 00 56 09 80 13 01 00 00 00 00 00 DC [08:19:45]Write i2c OK [08:19:45]MH_I2C_Read... [08:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:45]Read from MH i2c: E2 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 0E 00 [08:19:45]MH_I2C_Read... [08:19:45]Read from MH i2c: E2 0E 00 56 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7C [08:19:45]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:19:45]wFMCommunicate OK [08:19:45]SAM_PROTO_GetShiftState done [08:19:45]FM_GetShiftState done [08:19:45]req_shift_opened done [08:19:45]requested_item shift.open_date is exist - process it [08:19:45]req_shift_open_date [08:19:45]req_shift_open_date done [08:19:45]produce_requested_data done [08:19:45]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63938,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:19:45]process_action_free close_receipt [08:19:45]json_value_free [08:19:45]json_value_free done [08:19:45]process_json_proto returns [08:19:45]Send response to host [08:19:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63938,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:19:45]free response buf [08:19:45]execute_script done [08:19:45]execute_script returns [08:19:45]free content buf [08:19:45]Sock 7.Close socket [08:19:45]Sock 7.Thread stoped [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:43]accept exits with 9 [08:20:43]New connection [08:20:43]New thread 3067055460 created [08:20:43]Thread 3066912100 joined [08:20:43]Waiting for new connection... [08:20:43] Sock 9.Parse request [08:20:43]Sock 9.Check first char [08:20:43]Sock 9.First char is OK [08:20:43]request: POST /json_proto HTTP/1.0 [08:20:43]Method: POST [08:20:43]URL: /json_proto [08:20:43]Method is POST - this is cgi request [08:20:43]url: /json_proto [08:20:43]query_string will be loaded in cgi processing [08:20:43]execute_cgi json_proto POST (null) [08:20:43]execute_cgi path=json_proto method=POST [08:20:43]POST find Content-Length [08:20:43]Host: 172.17.60.69:8080 [08:20:43]Content-Length: 886 [08:20:43]Content-Type: application/json [08:20:43] [08:20:43]POST finish read [08:20:43]Found Content-Length = 886 [08:20:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73503", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:43]execute_script... [08:20: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)73503", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:43]POST & json_proto [08:20:43]process_json_proto [08:20:43]json parsed OK: [08:20:43]protocol is kg_v1.0 [08:20:43]action value=close_receipt [08:20:43]process_action close_receipt [08:20:43]cmd_close_receipt [08:20:43]MH_GetDate [08:20:43]Write to MH i2c: F0 00 00 57 09 4F [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: F0 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: F0 09 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: F0 09 00 57 09 00 5D CE 5E 66 6A 96 4A 66 F7 [08:20:43]GetLastDocTimeStamp 1717489183 [08:20:43]current date 1717489245 [08:20:43]FM_GetShiftState [08:20:43]SAM_PROTO_GetShiftState [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 13 01 00 [08:20:43]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 0E 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7E [08:20:43]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:20:43]wFMCommunicate OK [08:20:43]SAM_PROTO_GetShiftState done [08:20:43]FM_GetShiftState done [08:20:43]opened in 1717459574 [08:20:43]opened+sec_in_day 1717545974 [08:20:43]quantity*price = 15000 [08:20:43]sum+1 = 15001 [08:20:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 24 04.06.2024 08:20 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63939 ФПД: 46721880678157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T082045&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63939&fm=46721880678157&tin=02508201610067®Number=0000000000092737&sum=15000 0 [08:20:44]StoreToDocumentArchive [08:20:44]shift 374 fd 63939 [08:20:44]save to /storage/0374/doc_00063939 [08:20:44]save last doc name /storage/0374/doc_00063939 to /storage/kkm_last_doc_name [08:20:44]save OK [08:20:44]Clear old archive folders... [08:20:44]ProcessDocumentItem done err = 0, tmpTLVsize=295 [08:20:44]tlvbuf is 012A9200 [08:20:44]SAM_PROTO_ClearQueue [08:20:44]wFMCommunicate request_size=4 [08:20:44]MH_SAM_APDU [08:20:44]CAPDU: 80 09 00 00 [08:20:44]Write to MH i2c: E2 08 00 65 09 80 09 00 00 00 00 00 00 E0 [08:20:44]Write i2c OK [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 [08:20:44]MH_I2C_Read... [08:20:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:44]Read from MH i2c: E2 03 00 [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [08:20:44]RAPDU: 90 00 [08:20:44]wFMCommunicate OK [08:20:44]SAM_PROTO_ClearQueue done [08:20:44]KKMCreateOFDPacket [08:20:44]OFDProtocolAddRootSTLVToBuf [08:20:44]FM_MakeSignedData [08:20:44]FM_MakeSignedData [08:20:44]SAM_PROTO_SignData [08:20:44]wFMCommunicate request_size=4 [08:20:44]MH_SAM_APDU [08:20:44]CAPDU: 80 0D 01 02 [08:20:44]Write to MH i2c: E2 08 00 66 09 80 0D 01 02 00 00 00 00 E8 [08:20:44]Write i2c OK [08:20:44]MH_I2C_Read... [08:20:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:44]Read from MH i2c: E2 [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 03 00 [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [08:20:44]RAPDU: 90 00 [08:20:44]wFMCommunicate OK [08:20:44]wFMCommunicate request_size=255 [08:20:44]MH_SAM_APDU [08:20:44]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 5D CE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [08:20:44]Write to MH i2c: E2 02 01 67 09 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 5D CE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 35 [08:20:44]Write i2c OK [08:20:44]MH_I2C_Read... [08:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:45]Read from MH i2c: E2 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 03 00 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [08:20:45]RAPDU: 90 00 [08:20:45]wFMCommunicate OK [08:20:45]wFMCommunicate request_size=54 [08:20:45]MH_SAM_APDU [08:20:45]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 2A 7E 49 19 DF 0D [08:20:45]Write to MH i2c: E2 39 00 68 09 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 2A 7E 49 19 DF 0D 00 00 C6 [08:20:45]Write i2c OK [08:20:45]MH_I2C_Read... [08:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:45]Read from MH i2c: E2 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 03 00 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [08:20:45]RAPDU: 90 00 [08:20:45]wFMCommunicate OK [08:20:45]wFMCommunicate request_size=4 [08:20:45]MH_SAM_APDU [08:20:45]CAPDU: 80 0D 03 02 [08:20:45]Write to MH i2c: E2 08 00 69 09 80 0D 03 02 00 00 00 00 ED [08:20:45]Write i2c OK [08:20:45]MH_I2C_Read... [08:20:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:45]Read from MH i2c: E2 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 0B 00 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 0B 00 69 09 00 2D 1A CC F6 BE E6 90 8E 90 00 B9 [08:20:45]RAPDU: 2D 1A CC F6 BE E6 90 8E 90 00 [08:20:45]wFMCommunicate OK [08:20:45]SAM_PROTO_SignData done [08:20:45]FM_MakeSignedData done [08:20:45]CreateOFDProtocolMessage [08:20:45]wFMCommunicate request_size=4 [08:20:45]MH_SAM_APDU [08:20:45]CAPDU: 80 11 00 00 [08:20:45]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [08:20:45]Write i2c OK [08:20:45]MH_I2C_Read... [08:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:45]Read from MH i2c: E2 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 17 00 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3F [08:20:45]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:45]wFMCommunicate OK [08:20:45]CreateOFDProtocolMessage done [08:20:45]OFDSenderStorePacket 63939 [08:20:45]StoreOFDPacket docnum=63939 [08:20: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 3B 01 00 00 03 EF 33 01 28 C7 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 5D CE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 2A 7E 49 19 DF 0D 2D 1A CC F6 BE E6 90 8E [08:20:45]CheckFolder [08:20:45]dirname=/storage/ofd_packets [08:20:45]CheckFolder done [08:20:45]ProducePacketName [08:20:45]name=ofd_packets/00063939 [08:20:45]NVStorageSaveData ofd_packets/00063939 [08:20:45]File name is /storage/ofd_packets/00063939 [08:20:45]Write 345 bytes [08:20:45]NVStorageSaveData done [08:20:45]OFDSenderStorePacket done [08:20:45]KKMCreateOFDPacket done [08:20:45]NVStorageSaveData kkm_last_timestamp [08:20:45]File name is /storage/kkm_last_timestamp [08:20:45]Write 4 bytes [08:20:45]NVStorageSaveData done [08:20:45]ExternCall_PrintAddStr [08:20:45]wPrintStart [08:20:45]Write to MH i2c: 01 00 00 6B 09 74 [08:20:45]Write i2c OK [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: 01 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: 01 07 00 [08:20:45]MH_I2C_Read... [08:20:45]Read from MH i2c: 01 07 00 6B 09 00 00 00 00 00 FF 0F 89 [08:20:45]RasterBufferAndPrint [08:20:45]line Счет N : (3)73503 [08:20:45]line ИНН: 02508201610067 [08:20:45]line Контрольно-Кассовый Чек [08:20:45]line ПРОДАЖА [08:20:45]line Товар: 5449000027450 [08:20:45]line Напиток FuzeTea чай манго,ром 0,5л [08:20:45]line 2.000 * 75.00 [08:20:45]line = 150.00 [08:20:45]line НДС 12% НСП 1% [08:20:45]line > о реализуемом товаре [08:20:45]line ИТОГО: 150.00 [08:20:45]line НСП 1% : 1.33 [08:20:45]line НДС 12% : 15.93 [08:20:45]line Наличными: 0.00 [08:20:45]line Безнал.: 150.00 [08:20:45]line Место: АЗС № 117 "Партнер Нефть" [08:20:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:20:45]line СНО: Общий режим [08:20:45]line Чек 24 04.06.2024 08:20 [08:20:45]line Смена: 374 ФФД: 1.0 [08:20:45]line ЗНМ: 0300000031 [08:20:45]line РНМ: 0000000000092737 [08:20:45]line Версия ККМ: 001 [08:20:45]line Платежная система: АКБ Кыргызстан [08:20:45]line ФМ: 0000000000875074 [08:20:45]line ФД: 63939 [08:20:45]line ФПД: 46721880678157 [08:20:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T082045&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63939&fm=46721880678157&tin=02508201610067®Number=0000000000092737&sum=15000 [08:20:45]line 0 [08:20:45]OFD Sender: Processing packet 63939 [packets to send 14, broken 13] [08:20:45]ProducePacketName [08:20:45]name=ofd_packets/00063939 [08:20:45]OFD Sender: To server: pG, [08:20:45]CommunicateWithHost lk.salyk.kg:30040 [08:20:45]ConnectInit lk.salyk.kg [08:20:45]written 0, free lines is 4095 [08:20:45]Connected sock=10 [08:20: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 3B 01 00 00 03 EF 33 01 28 C7 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 5D CE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 2A 7E 49 19 DF 0D 2D 1A CC F6 BE E6 90 8E [08:20: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 3F 1B 47 00 7B 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C3 F9 00 00 F4 03 04 00 2C 7A 5E 66 B6 04 01 00 00 1D 29 42 7E 5A 7E DA F4 [08:20:46]CommunicateWithHost err = 0 [08:20:46]CheckOFDResponse [08:20:46]1017 (14) - 77093643461234 [08:20:46]1041 (16) - 0000000000875074 [08:20:46]1040 (4) - 63939 [08:20:46]1012 (4) - 04.06.2024 02:21 [08:20:46]1206 (1) - 0 [08:20:46]OFD Sender: Remove packet 63939 [08:20:46]ProducePacketName [08:20:46]name=ofd_packets/00063939 [08:20:46]NVStorageDeleteData [08:20:46]Write to MH i2c: 01 00 00 96 09 9F [08:20:46]Write i2c OK [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: 01 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: 01 07 00 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 C7 0C 79 [08:20:46]RasterBufferAndPrint [08:20:46]line [08:20:46]line [08:20:46]line [08:20:46]line [08:20:46]line [08:20:46]written 0, free lines is 3277 [08:20:46]MH_Cut [08:20:46]Write to MH i2c: D1 01 00 9D 09 01 78 [08:20:46]Write i2c OK [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: D1 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: D1 01 00 [08:20:46]MH_I2C_Read... [08:20:46]Read from MH i2c: D1 01 00 9D 09 00 77 [08:20:46]Write to MH i2c: 01 00 00 9E 09 A7 [08:20:46]Write i2c OK [08:20:46]MH_I2C_Read... [08:20:46]OFD Sender: No OFD packet to send [08:20:47]*** Cut start [08:20:47]*** Partial cut [08:20:47]*** CUTSNS_PIN = 1 [08:20:47]*** CUTSNS_PIN = 0 [08:20:47]*** Brake cut motor [08:20:47]Read from MH i2c: 01 [08:20:47]MH_I2C_Read... [08:20:47]*** Stop cut motor [08:20:47]*** Cut end [08:20:47]Read from MH i2c: 01 07 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: 01 07 00 9E 09 00 00 00 00 00 FF 0F BC [08:20:47]process_action close_receipt done [08:20:47]requested_data is exist [08:20:47]produce_requested_data [08:20:47]requested_item fm.sn is exist - process it [08:20:47]wFMCommunicate request_size=4 [08:20:47]MH_SAM_APDU [08:20:47]CAPDU: 80 11 00 00 [08:20:47]Write to MH i2c: E2 08 00 9F 09 80 11 00 00 00 00 00 00 22 [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 17 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 17 00 9F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 74 [08:20: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:20:47]wFMCommunicate OK [08:20:47]requested_item fd.num is exist - process it [08:20:47]SAM_PROTO_GetFieldsCounters [08:20:47]wFMCommunicate request_size=4 [08:20:47]MH_SAM_APDU [08:20:47]CAPDU: 80 13 00 00 [08:20:47]Write to MH i2c: E2 08 00 A0 09 80 13 00 00 00 00 00 00 25 [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 62 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 62 00 A0 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 C3 [08:20: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 C3 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:47]wFMCommunicate OK [08:20:47]SAM_PROTO_GetFieldsCounters done [08:20:47]requested_item shift.num is exist - process it [08:20:47]requested_item shift.opened is exist - process it [08:20:47]req_shift_opened [08:20:47]FM_GetShiftState [08:20:47]SAM_PROTO_GetShiftState [08:20:47]wFMCommunicate request_size=4 [08:20:47]MH_SAM_APDU [08:20:47]CAPDU: 80 13 01 00 [08:20:47]Write to MH i2c: E2 08 00 A1 09 80 13 01 00 00 00 00 00 27 [08:20:47]Write i2c OK [08:20:47]MH_I2C_Read... [08:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:47]Read from MH i2c: E2 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 0E 00 [08:20:47]MH_I2C_Read... [08:20:47]Read from MH i2c: E2 0E 00 A1 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C7 [08:20:47]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:20:47]wFMCommunicate OK [08:20:47]SAM_PROTO_GetShiftState done [08:20:47]FM_GetShiftState done [08:20:47]req_shift_opened done [08:20:47]requested_item shift.open_date is exist - process it [08:20:47]req_shift_open_date [08:20:47]req_shift_open_date done [08:20:47]produce_requested_data done [08:20:47]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63939,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:20:47]process_action_free close_receipt [08:20:47]json_value_free [08:20:47]json_value_free done [08:20:47]process_json_proto returns [08:20:47]Send response to host [08:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63939,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:20:47]free response buf [08:20:47]execute_script done [08:20:47]execute_script returns [08:20:47]free content buf [08:20:47]Sock 9.Close socket [08:20:47]Sock 9.Thread stoped [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:17]accept exits with 7 [08:30:17]New connection [08:30:17]New thread 3066912100 created [08:30:17]Thread 3067055460 joined [08:30:17]Waiting for new connection... [08:30:17] Sock 7.Parse request [08:30:17]Sock 7.Check first char [08:30:17]Sock 7.First char is OK [08:30:17]request: POST /json_proto HTTP/1.0 [08:30:17]Method: POST [08:30:17]URL: /json_proto [08:30:17]Method is POST - this is cgi request [08:30:17]url: /json_proto [08:30:17]query_string will be loaded in cgi processing [08:30:17]execute_cgi json_proto POST (null) [08:30:17]execute_cgi path=json_proto method=POST [08:30:17]POST find Content-Length [08:30:17]Host: 172.17.60.69:8080 [08:30:17]Content-Length: 681 [08:30:17]Content-Type: application/json [08:30:17] [08:30:17]POST finish read [08:30:17]Found Content-Length = 681 [08:30:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 17.200, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:17]execute_script... [08:30:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 17.200, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:17]POST & json_proto [08:30:17]process_json_proto [08:30:17]json parsed OK: [08:30:17]protocol is kg_v1.0 [08:30:17]action value=close_receipt [08:30:17]process_action close_receipt [08:30:17]cmd_close_receipt [08:30:17]MH_GetDate [08:30:17]Write to MH i2c: F0 00 00 A2 09 9A [08:30:17]Write i2c OK [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: F0 [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: F0 09 00 [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: F0 09 00 A2 09 00 9B D0 5E 66 6A 96 4A 66 82 [08:30:17]GetLastDocTimeStamp 1717489245 [08:30:17]current date 1717489819 [08:30:17]FM_GetShiftState [08:30:17]SAM_PROTO_GetShiftState [08:30:17]wFMCommunicate request_size=4 [08:30:17]MH_SAM_APDU [08:30:17]CAPDU: 80 13 01 00 [08:30:17]Write to MH i2c: E2 08 00 A3 09 80 13 01 00 00 00 00 00 29 [08:30:17]Write i2c OK [08:30:17]MH_I2C_Read... [08:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:17]Read from MH i2c: E2 [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: E2 0E 00 [08:30:17]MH_I2C_Read... [08:30:17]Read from MH i2c: E2 0E 00 A3 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C9 [08:30:17]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:30:17]wFMCommunicate OK [08:30:17]SAM_PROTO_GetShiftState done [08:30:17]FM_GetShiftState done [08:30:17]opened in 1717459574 [08:30:17]opened+sec_in_day 1717545974 [08:30:17]quantity*price = 60028 [08:30:17]sum+1 = 60029 [08:30:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 25 04.06.2024 08:30 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63940 ФПД: 208048407220610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083019&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63940&fm=208048407220610&tin=02508201610067®Number=0000000000092737&sum=60000 [08:30:18]StoreToDocumentArchive [08:30:18]shift 374 fd 63940 [08:30:18]save to /storage/0374/doc_00063940 [08:30:18]save last doc name /storage/0374/doc_00063940 to /storage/kkm_last_doc_name [08:30:18]save OK [08:30:18]Clear old archive folders... [08:30:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:30:18]tlvbuf is 012A8B40 [08:30:18]SAM_PROTO_ClearQueue [08:30:18]wFMCommunicate request_size=4 [08:30:18]MH_SAM_APDU [08:30:18]CAPDU: 80 09 00 00 [08:30:18]Write to MH i2c: E2 08 00 B0 09 80 09 00 00 00 00 00 00 2B [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:18]Read from MH i2c: E2 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 03 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [08:30:18]RAPDU: 90 00 [08:30:18]wFMCommunicate OK [08:30:18]SAM_PROTO_ClearQueue done [08:30:18]KKMCreateOFDPacket [08:30:18]OFDProtocolAddRootSTLVToBuf [08:30:18]FM_MakeSignedData [08:30:18]FM_MakeSignedData [08:30:18]SAM_PROTO_SignData [08:30:18]wFMCommunicate request_size=4 [08:30:18]MH_SAM_APDU [08:30:18]CAPDU: 80 0D 01 02 [08:30:18]Write to MH i2c: E2 08 00 B1 09 80 0D 01 02 00 00 00 00 33 [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:18]Read from MH i2c: E2 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 03 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [08:30:18]RAPDU: 90 00 [08:30:18]wFMCommunicate OK [08:30:18]wFMCommunicate request_size=255 [08:30:18]MH_SAM_APDU [08:30:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 43 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9B D0 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 BD 38 [08:30:18]Write to MH i2c: E2 02 01 B2 09 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 43 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9B D0 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 BD 38 00 00 87 [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:18]Read from MH i2c: E2 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 03 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [08:30:18]RAPDU: 90 00 [08:30:18]wFMCommunicate OK [08:30:18]wFMCommunicate request_size=9 [08:30:18]MH_SAM_APDU [08:30:18]CAPDU: 80 0D 02 02 04 0B 68 91 82 [08:30:18]Write to MH i2c: E2 0C 00 B3 09 80 0D 02 02 04 00 0B 68 91 82 00 00 C4 [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:18]Read from MH i2c: E2 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 03 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [08:30:18]RAPDU: 90 00 [08:30:18]wFMCommunicate OK [08:30:18]wFMCommunicate request_size=4 [08:30:18]MH_SAM_APDU [08:30:18]CAPDU: 80 0D 03 02 [08:30:18]Write to MH i2c: E2 08 00 B4 09 80 0D 03 02 00 00 00 00 38 [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:18]Read from MH i2c: E2 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 0B 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 0B 00 B4 09 00 D8 B3 DE 2A 80 EB 2D 41 90 00 A5 [08:30:18]RAPDU: D8 B3 DE 2A 80 EB 2D 41 90 00 [08:30:18]wFMCommunicate OK [08:30:18]SAM_PROTO_SignData done [08:30:18]FM_MakeSignedData done [08:30:18]CreateOFDProtocolMessage [08:30:18]wFMCommunicate request_size=4 [08:30:18]MH_SAM_APDU [08:30:18]CAPDU: 80 11 00 00 [08:30:18]Write to MH i2c: E2 08 00 B5 09 80 11 00 00 00 00 00 00 38 [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:18]Read from MH i2c: E2 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 17 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 17 00 B5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8A [08:30: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:30:18]wFMCommunicate OK [08:30:18]CreateOFDProtocolMessage done [08:30:18]OFDSenderStorePacket 63940 [08:30:18]StoreOFDPacket docnum=63940 [08:30: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 0E 01 00 00 99 38 06 01 1D 67 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 43 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9B D0 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 BD 38 0B 68 91 82 D8 B3 DE 2A 80 EB 2D 41 [08:30:18]CheckFolder [08:30:18]dirname=/storage/ofd_packets [08:30:18]CheckFolder done [08:30:18]ProducePacketName [08:30:18]name=ofd_packets/00063940 [08:30:18]NVStorageSaveData ofd_packets/00063940 [08:30:18]File name is /storage/ofd_packets/00063940 [08:30:18]Write 300 bytes [08:30:18]NVStorageSaveData done [08:30:18]OFDSenderStorePacket done [08:30:18]KKMCreateOFDPacket done [08:30:18]NVStorageSaveData kkm_last_timestamp [08:30:18]File name is /storage/kkm_last_timestamp [08:30:18]Write 4 bytes [08:30:18]NVStorageSaveData done [08:30:18]ExternCall_PrintAddStr [08:30:18]wPrintStart [08:30:18]Write to MH i2c: 01 00 00 B6 09 BF [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: 01 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: 01 07 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 FF 0F D4 [08:30:18]RasterBufferAndPrint [08:30:18]line Счет N : (1)544340 [08:30:18]line ИНН: 02508201610067 [08:30:18]line Контрольно-Кассовый Чек [08:30:18]line ПРОДАЖА [08:30:18]line ТРК (МРК, ГНК) : 71 [08:30:18]line Товар: 2711190000 [08:30:18]line ГАЗ-К-5 [08:30:18]line 17.200 * 34.90 [08:30:18]line = 600.28 [08:30:18]line НДС 12% НСП 1% [08:30:18]line > о реализуемом товаре [08:30:18]line ОКРУГЛЕНИЕ: -0.28 [08:30:18]line ИТОГО: 600.00 [08:30:18]line Внесено: 600.00 [08:30:18]line СДАЧА: 0.00 [08:30:18]line НСП 1% : 5.31 [08:30:18]line НДС 12% : 63.75 [08:30:18]line Наличными: 600.00 [08:30:18]line Безнал.: 0.00 [08:30:18]line Место: АЗС № 117 "Партнер Нефть" [08:30:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:30:18]line СНО: Общий режим [08:30:18]line Чек 25 04.06.2024 08:30 [08:30:19]line Смена: 374 ФФД: 1.0 [08:30:19]line ЗНМ: 0300000031 [08:30:19]line РНМ: 0000000000092737 [08:30:19]line Версия ККМ: 001 [08:30:19]line ФМ: 0000000000875074 [08:30:19]line ФД: 63940 [08:30:19]line ФПД: 208048407220610 [08:30:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083019&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63940&fm=208048407220610&tin=02508201610067®Number=0000000000092737&sum=60000 [08:30:19]OFD Sender: Processing packet 63940 [packets to send 14, broken 13] [08:30:19]ProducePacketName [08:30:19]name=ofd_packets/00063940 [08:30:19]OFD Sender: To server: pG, [08:30:19]CommunicateWithHost lk.salyk.kg:30040 [08:30:19]ConnectInit lk.salyk.kg [08:30:19]written 0, free lines is 4095 [08:30:19]Connected sock=10 [08:30: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 0E 01 00 00 99 38 06 01 1D 67 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 43 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 9B D0 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 BD 38 0B 68 91 82 D8 B3 DE 2A 80 EB 2D 41 [08:30: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 8F 13 47 00 3D 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 C4 F9 00 00 F4 03 04 00 69 7C 5E 66 B6 04 01 00 00 FE 5B F5 CE 87 68 9F AD [08:30:19]CommunicateWithHost err = 0 [08:30:19]CheckOFDResponse [08:30:19]1017 (14) - 77093643461234 [08:30:19]1041 (16) - 0000000000875074 [08:30:19]1040 (4) - 63940 [08:30:19]1012 (4) - 04.06.2024 02:31 [08:30:19]1206 (1) - 0 [08:30:19]OFD Sender: Remove packet 63940 [08:30:19]ProducePacketName [08:30:19]name=ofd_packets/00063940 [08:30:19]NVStorageDeleteData [08:30:19]Write to MH i2c: 01 00 00 E1 09 EA [08:30:19]Write i2c OK [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: 01 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: 01 07 00 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: 01 07 00 E1 09 00 00 00 00 00 E2 0C DF [08:30:19]RasterBufferAndPrint [08:30:19]line [08:30:19]line [08:30:19]line [08:30:19]line [08:30:19]line [08:30:19]written 0, free lines is 3304 [08:30:19]MH_Cut [08:30:19]Write to MH i2c: D1 01 00 E8 09 01 C3 [08:30:19]Write i2c OK [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: D1 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: D1 01 00 [08:30:19]MH_I2C_Read... [08:30:19]Read from MH i2c: D1 01 00 E8 09 00 C2 [08:30:19]Write to MH i2c: 01 00 00 E9 09 F2 [08:30:19]Write i2c OK [08:30:19]MH_I2C_Read... [08:30:19]OFD Sender: No OFD packet to send [08:30:20]*** Cut start [08:30:20]*** Partial cut [08:30:20]*** CUTSNS_PIN = 1 [08:30:20]*** CUTSNS_PIN = 0 [08:30:20]*** Brake cut motor [08:30:20]Read from MH i2c: 01 [08:30:20]MH_I2C_Read... [08:30:20]*** Stop cut motor [08:30:20]*** Cut end [08:30:20]Read from MH i2c: 01 07 00 [08:30:20]MH_I2C_Read... [08:30:20]Read from MH i2c: 01 07 00 E9 09 00 00 00 00 00 FF 0F 07 [08:30:20]process_action close_receipt done [08:30:20]requested_data is exist [08:30:20]produce_requested_data [08:30:20]requested_item fm.sn is exist - process it [08:30:20]wFMCommunicate request_size=4 [08:30:20]MH_SAM_APDU [08:30:20]CAPDU: 80 11 00 00 [08:30:20]Write to MH i2c: E2 08 00 EA 09 80 11 00 00 00 00 00 00 6D [08:30:20]Write i2c OK [08:30:20]MH_I2C_Read... [08:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:20]Read from MH i2c: E2 [08:30:20]MH_I2C_Read... [08:30:20]Read from MH i2c: E2 17 00 [08:30:20]MH_I2C_Read... [08:30:20]Read from MH i2c: E2 17 00 EA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BF [08:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:30:20]wFMCommunicate OK [08:30:20]requested_item fd.num is exist - process it [08:30:20]SAM_PROTO_GetFieldsCounters [08:30:20]wFMCommunicate request_size=4 [08:30:20]MH_SAM_APDU [08:30:20]CAPDU: 80 13 00 00 [08:30:20]Write to MH i2c: E2 08 00 EB 09 80 13 00 00 00 00 00 00 70 [08:30:20]Write i2c OK [08:30:20]MH_I2C_Read... [08:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:21]Read from MH i2c: E2 [08:30:21]MH_I2C_Read... [08:30:21]Read from MH i2c: E2 62 00 [08:30:21]MH_I2C_Read... [08:30:21]Read from MH i2c: E2 62 00 EB 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 12 [08:30: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 C4 F9 00 00 0E 04 04 00 76 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 [08:30:21]wFMCommunicate OK [08:30:21]SAM_PROTO_GetFieldsCounters done [08:30:21]requested_item shift.num is exist - process it [08:30:21]requested_item shift.opened is exist - process it [08:30:21]req_shift_opened [08:30:21]FM_GetShiftState [08:30:21]SAM_PROTO_GetShiftState [08:30:21]wFMCommunicate request_size=4 [08:30:21]MH_SAM_APDU [08:30:21]CAPDU: 80 13 01 00 [08:30:21]Write to MH i2c: E2 08 00 EC 09 80 13 01 00 00 00 00 00 72 [08:30:21]Write i2c OK [08:30:21]MH_I2C_Read... [08:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:21]Read from MH i2c: E2 [08:30:21]MH_I2C_Read... [08:30:21]Read from MH i2c: E2 0E 00 [08:30:21]MH_I2C_Read... [08:30:21]Read from MH i2c: E2 0E 00 EC 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 12 [08:30:21]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:30:21]wFMCommunicate OK [08:30:21]SAM_PROTO_GetShiftState done [08:30:21]FM_GetShiftState done [08:30:21]req_shift_opened done [08:30:21]requested_item shift.open_date is exist - process it [08:30:21]req_shift_open_date [08:30:21]req_shift_open_date done [08:30:21]produce_requested_data done [08:30:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63940,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:30:21]process_action_free close_receipt [08:30:21]json_value_free [08:30:21]json_value_free done [08:30:21]process_json_proto returns [08:30:21]Send response to host [08:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63940,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:30:21]free response buf [08:30:21]execute_script done [08:30:21]execute_script returns [08:30:21]free content buf [08:30:21]Sock 7.Close socket [08:30:21]Sock 7.Thread stoped [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:48]accept exits with 9 [08:37:48]New connection [08:37:48]New thread 3067055460 created [08:37:48]Thread 3066912100 joined [08:37:48]Waiting for new connection... [08:37:48] Sock 9.Parse request [08:37:48]Sock 9.Check first char [08:37:48]Sock 9.First char is OK [08:37:48]request: POST /json_proto HTTP/1.0 [08:37:48]Method: POST [08:37:48]URL: /json_proto [08:37:48]Method is POST - this is cgi request [08:37:48]url: /json_proto [08:37:48]query_string will be loaded in cgi processing [08:37:48]execute_cgi json_proto POST (null) [08:37:48]execute_cgi path=json_proto method=POST [08:37:48]POST find Content-Length [08:37:48]Host: 172.17.60.69:8080 [08:37:48]Content-Length: 714 [08:37:48]Content-Type: application/json [08:37:48] [08:37:48]POST finish read [08:37:48]Found Content-Length = 714 [08:37:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73504", "tax_sys" : 0, "items" : [ { "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:48]execute_script... [08:37:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73504", "tax_sys" : 0, "items" : [ { "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:48]POST & json_proto [08:37:48]process_json_proto [08:37:48]json parsed OK: [08:37:48]protocol is kg_v1.0 [08:37:48]action value=close_receipt [08:37:48]process_action close_receipt [08:37:48]cmd_close_receipt [08:37:48]MH_GetDate [08:37:48]Write to MH i2c: F0 00 00 ED 09 E5 [08:37:48]Write i2c OK [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: F0 [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: F0 09 00 [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: F0 09 00 ED 09 00 5E D2 5E 66 6A 96 4A 66 92 [08:37:48]GetLastDocTimeStamp 1717489819 [08:37:48]current date 1717490270 [08:37:48]FM_GetShiftState [08:37:48]SAM_PROTO_GetShiftState [08:37:48]wFMCommunicate request_size=4 [08:37:48]MH_SAM_APDU [08:37:48]CAPDU: 80 13 01 00 [08:37:48]Write to MH i2c: E2 08 00 EE 09 80 13 01 00 00 00 00 00 74 [08:37:48]Write i2c OK [08:37:48]MH_I2C_Read... [08:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:48]Read from MH i2c: E2 [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: E2 0E 00 [08:37:48]MH_I2C_Read... [08:37:48]Read from MH i2c: E2 0E 00 EE 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 14 [08:37:48]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:37:48]wFMCommunicate OK [08:37:48]SAM_PROTO_GetShiftState done [08:37:48]FM_GetShiftState done [08:37:48]opened in 1717459574 [08:37:48]opened+sec_in_day 1717545974 [08:37:48]quantity*price = 9000 [08:37:48]sum+1 = 9001 [08:37:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 26 04.06.2024 08:37 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63941 ФПД: 273302319605355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083750&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63941&fm=273302319605355&tin=02508201610067®Number=0000000000092737&sum=9000 0 [08:37:49]StoreToDocumentArchive [08:37:49]shift 374 fd 63941 [08:37:49]save to /storage/0374/doc_00063941 [08:37:49]save last doc name /storage/0374/doc_00063941 to /storage/kkm_last_doc_name [08:37:49]save OK [08:37:49]Clear old archive folders... [08:37:49]ProcessDocumentItem done err = 0, tmpTLVsize=306 [08:37:49]tlvbuf is 012BDC20 [08:37:49]SAM_PROTO_ClearQueue [08:37:49]wFMCommunicate request_size=4 [08:37:49]MH_SAM_APDU [08:37:49]CAPDU: 80 09 00 00 [08:37:49]Write to MH i2c: E2 08 00 FB 09 80 09 00 00 00 00 00 00 76 [08:37:49]Write i2c OK [08:37:49]MH_I2C_Read... [08:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:50]Read from MH i2c: E2 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 03 00 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 03 00 FB 09 00 90 00 78 [08:37:50]RAPDU: 90 00 [08:37:50]wFMCommunicate OK [08:37:50]SAM_PROTO_ClearQueue done [08:37:50]KKMCreateOFDPacket [08:37:50]OFDProtocolAddRootSTLVToBuf [08:37:50]FM_MakeSignedData [08:37:50]FM_MakeSignedData [08:37:50]SAM_PROTO_SignData [08:37:50]wFMCommunicate request_size=4 [08:37:50]MH_SAM_APDU [08:37:50]CAPDU: 80 0D 01 02 [08:37:50]Write to MH i2c: E2 08 00 FC 09 80 0D 01 02 00 00 00 00 7E [08:37:50]Write i2c OK [08:37:50]MH_I2C_Read... [08:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:50]Read from MH i2c: E2 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 03 00 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [08:37:50]RAPDU: 90 00 [08:37:50]wFMCommunicate OK [08:37:50]wFMCommunicate request_size=255 [08:37:50]MH_SAM_APDU [08:37:50]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 5E D2 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 [08:37:50]Write to MH i2c: E2 02 01 FD 09 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 5E D2 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 00 B8 [08:37:50]Write i2c OK [08:37:50]MH_I2C_Read... [08:37:50]OFD Sender: No OFD packet to send [08:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:50]Read from MH i2c: E2 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 03 00 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [08:37:50]RAPDU: 90 00 [08:37:50]wFMCommunicate OK [08:37:50]wFMCommunicate request_size=65 [08:37:50]MH_SAM_APDU [08:37:50]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 C5 F9 00 00 35 04 06 00 F8 91 27 AD 26 6B [08:37:50]Write to MH i2c: E2 44 00 FE 09 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 C5 F9 00 00 35 04 06 00 F8 91 27 AD 26 6B 00 00 7E [08:37:50]Write i2c OK [08:37:50]MH_I2C_Read... [08:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:50]Read from MH i2c: E2 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 03 00 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [08:37:50]RAPDU: 90 00 [08:37:50]wFMCommunicate OK [08:37:50]wFMCommunicate request_size=4 [08:37:50]MH_SAM_APDU [08:37:50]CAPDU: 80 0D 03 02 [08:37:50]Write to MH i2c: E2 08 00 FF 09 80 0D 03 02 00 00 00 00 83 [08:37:50]Write i2c OK [08:37:50]MH_I2C_Read... [08:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:50]Read from MH i2c: E2 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 0B 00 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 0B 00 FF 09 00 9E AC ED D7 84 C0 C7 E9 90 00 86 [08:37:50]RAPDU: 9E AC ED D7 84 C0 C7 E9 90 00 [08:37:50]wFMCommunicate OK [08:37:50]SAM_PROTO_SignData done [08:37:50]FM_MakeSignedData done [08:37:50]CreateOFDProtocolMessage [08:37:50]wFMCommunicate request_size=4 [08:37:50]MH_SAM_APDU [08:37:50]CAPDU: 80 11 00 00 [08:37:50]Write to MH i2c: E2 08 00 00 0A 80 11 00 00 00 00 00 00 84 [08:37:50]Write i2c OK [08:37:50]MH_I2C_Read... [08:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:50]Read from MH i2c: E2 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 17 00 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: E2 17 00 00 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [08:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:37:50]wFMCommunicate OK [08:37:50]CreateOFDProtocolMessage done [08:37:50]OFDSenderStorePacket 63941 [08:37:50]StoreOFDPacket docnum=63941 [08:37:50]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 6D F0 3E 01 7E 85 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 5E D2 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 F8 91 27 AD 26 6B 9E AC ED D7 84 C0 C7 E9 [08:37:50]CheckFolder [08:37:50]dirname=/storage/ofd_packets [08:37:50]CheckFolder done [08:37:50]ProducePacketName [08:37:50]name=ofd_packets/00063941 [08:37:50]NVStorageSaveData ofd_packets/00063941 [08:37:50]File name is /storage/ofd_packets/00063941 [08:37:50]Write 356 bytes [08:37:50]NVStorageSaveData done [08:37:50]OFDSenderStorePacket done [08:37:50]KKMCreateOFDPacket done [08:37:50]NVStorageSaveData kkm_last_timestamp [08:37:50]File name is /storage/kkm_last_timestamp [08:37:50]Write 4 bytes [08:37:50]NVStorageSaveData done [08:37:50]ExternCall_PrintAddStr [08:37:50]wPrintStart [08:37:50]Write to MH i2c: 01 00 00 01 0A 0B [08:37:50]Write i2c OK [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: 01 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: 01 07 00 [08:37:50]MH_I2C_Read... [08:37:50]Read from MH i2c: 01 07 00 01 0A 00 00 00 00 00 FF 0F 20 [08:37:50]RasterBufferAndPrint [08:37:50]line Счет N : (3)73504 [08:37:50]line ИНН: 02508201610067 [08:37:50]line Контрольно-Кассовый Чек [08:37:50]line ПРОДАЖА [08:37:50]line Товар: 5449000088680 [08:37:50]line Холодный чай Fuse манго, ананас 0,33 ж/б [08:37:50]line 1.000 * 90.00 [08:37:50]line = 90.00 [08:37:50]line НДС 12% НСП 1% [08:37:50]line > о реализуемом товаре [08:37:50]line ИТОГО: 90.00 [08:37:50]line НСП 1% : 0.80 [08:37:50]line НДС 12% : 9.56 [08:37:50]line Наличными: 90.00 [08:37:50]line Безнал.: 0.00 [08:37:50]line Место: АЗС № 117 "Партнер Нефть" [08:37:50]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:37:50]line СНО: Общий режим [08:37:50]line Чек 26 04.06.2024 08:37 [08:37:50]line Смена: 374 ФФД: 1.0 [08:37:50]line ЗНМ: 0300000031 [08:37:50]line РНМ: 0000000000092737 [08:37:50]line Версия ККМ: 001 [08:37:50]line ФМ: 0000000000875074 [08:37:50]line ФД: 63941 [08:37:50]line ФПД: 273302319605355 [08:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T083750&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63941&fm=273302319605355&tin=02508201610067®Number=0000000000092737&sum=9000 [08:37:50]line 0 [08:37:50]OFD Sender: Processing packet 63941 [packets to send 14, broken 13] [08:37:50]ProducePacketName [08:37:50]name=ofd_packets/00063941 [08:37:50]OFD Sender: To server: pG, [08:37:50]CommunicateWithHost lk.salyk.kg:30040 [08:37:50]ConnectInit lk.salyk.kg [08:37:50]written 0, free lines is 4095 [08:37:50]Connected sock=10 [08:37: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 46 01 00 00 6D F0 3E 01 7E 85 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 5E D2 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 F8 91 27 AD 26 6B 9E AC ED D7 84 C0 C7 E9 [08:37: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 A7 C4 47 00 C0 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C5 F9 00 00 F4 03 04 00 2D 7E 5E 66 B6 04 01 00 00 AF F3 25 99 23 EE 64 A0 [08:37:51]CommunicateWithHost err = 0 [08:37:51]CheckOFDResponse [08:37:51]1017 (14) - 77093643461234 [08:37:51]1041 (16) - 0000000000875074 [08:37:51]1040 (4) - 63941 [08:37:51]1012 (4) - 04.06.2024 02:38 [08:37:51]1206 (1) - 0 [08:37:51]OFD Sender: Remove packet 63941 [08:37:51]ProducePacketName [08:37:51]name=ofd_packets/00063941 [08:37:51]NVStorageDeleteData [08:37:51]Write to MH i2c: 01 00 00 2A 0A 34 [08:37:51]Write i2c OK [08:37:51]MH_I2C_Read... [08:37:51]Read from MH i2c: 01 [08:37:51]MH_I2C_Read... [08:37:51]Read from MH i2c: 01 07 00 [08:37:51]MH_I2C_Read... [08:37:51]Read from MH i2c: 01 07 00 2A 0A 00 00 00 00 00 DE 0C 25 [08:37:51]RasterBufferAndPrint [08:37:51]line [08:37:51]line [08:37:51]line [08:37:51]line [08:37:51]line [08:37:51]written 0, free lines is 3300 [08:37:51]MH_Cut [08:37:51]Write to MH i2c: D1 01 00 31 0A 01 0D [08:37:51]Write i2c OK [08:37:51]MH_I2C_Read... [08:37:51]Read from MH i2c: D1 [08:37:51]MH_I2C_Read... [08:37:51]Read from MH i2c: D1 01 00 [08:37:51]MH_I2C_Read... [08:37:51]Read from MH i2c: D1 01 00 31 0A 00 0C [08:37:51]Write to MH i2c: 01 00 00 32 0A 3C [08:37:51]Write i2c OK [08:37:51]MH_I2C_Read... [08:37:51]OFD Sender: No OFD packet to send [08:37:52]*** Cut start [08:37:52]*** Partial cut [08:37:52]*** CUTSNS_PIN = 1 [08:37:52]*** CUTSNS_PIN = 0 [08:37:52]*** Brake cut motor [08:37:52]Read from MH i2c: 01 [08:37:52]MH_I2C_Read... [08:37:52]*** Stop cut motor [08:37:52]*** Cut end [08:37:52]Read from MH i2c: 01 07 00 [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: 01 07 00 32 0A 00 00 00 00 00 FF 0F 51 [08:37:52]process_action close_receipt done [08:37:52]requested_data is exist [08:37:52]produce_requested_data [08:37:52]requested_item fm.sn is exist - process it [08:37:52]wFMCommunicate request_size=4 [08:37:52]MH_SAM_APDU [08:37:52]CAPDU: 80 11 00 00 [08:37:52]Write to MH i2c: E2 08 00 33 0A 80 11 00 00 00 00 00 00 B7 [08:37:52]Write i2c OK [08:37:52]MH_I2C_Read... [08:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:52]Read from MH i2c: E2 [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: E2 17 00 [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: E2 17 00 33 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 09 [08:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:37:52]wFMCommunicate OK [08:37:52]requested_item fd.num is exist - process it [08:37:52]SAM_PROTO_GetFieldsCounters [08:37:52]wFMCommunicate request_size=4 [08:37:52]MH_SAM_APDU [08:37:52]CAPDU: 80 13 00 00 [08:37:52]Write to MH i2c: E2 08 00 34 0A 80 13 00 00 00 00 00 00 BA [08:37:52]Write i2c OK [08:37:52]MH_I2C_Read... [08:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:52]Read from MH i2c: E2 [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: E2 62 00 [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: E2 62 00 34 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 60 [08:37: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 C5 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:52]wFMCommunicate OK [08:37:52]SAM_PROTO_GetFieldsCounters done [08:37:52]requested_item shift.num is exist - process it [08:37:52]requested_item shift.opened is exist - process it [08:37:52]req_shift_opened [08:37:52]FM_GetShiftState [08:37:52]SAM_PROTO_GetShiftState [08:37:52]wFMCommunicate request_size=4 [08:37:52]MH_SAM_APDU [08:37:52]CAPDU: 80 13 01 00 [08:37:52]Write to MH i2c: E2 08 00 35 0A 80 13 01 00 00 00 00 00 BC [08:37:52]Write i2c OK [08:37:52]MH_I2C_Read... [08:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:53]Read from MH i2c: E2 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 0E 00 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 0E 00 35 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 5C [08:37:53]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:37:53]wFMCommunicate OK [08:37:53]SAM_PROTO_GetShiftState done [08:37:53]FM_GetShiftState done [08:37:53]req_shift_opened done [08:37:53]requested_item shift.open_date is exist - process it [08:37:53]req_shift_open_date [08:37:53]req_shift_open_date done [08:37:53]produce_requested_data done [08:37:53]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63941,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:37:53]process_action_free close_receipt [08:37:53]json_value_free [08:37:53]json_value_free done [08:37:53]process_json_proto returns [08:37:53]Send response to host [08:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63941,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:37:53]free response buf [08:37:53]execute_script done [08:37:53]execute_script returns [08:37:53]free content buf [08:37:53]Sock 9.Close socket [08:37:53]Sock 9.Thread stoped [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:45]accept exits with 7 [08:41:45]New connection [08:41:45]New thread 3066912100 created [08:41:45]Thread 3067055460 joined [08:41:45]Waiting for new connection... [08:41:45] Sock 7.Parse request [08:41:45]Sock 7.Check first char [08:41:45]Sock 7.First char is OK [08:41:45]request: POST /json_proto HTTP/1.0 [08:41:45]Method: POST [08:41:45]URL: /json_proto [08:41:45]Method is POST - this is cgi request [08:41:45]url: /json_proto [08:41:45]query_string will be loaded in cgi processing [08:41:45]execute_cgi json_proto POST (null) [08:41:45]execute_cgi path=json_proto method=POST [08:41:45]POST find Content-Length [08:41:45]Host: 172.17.60.69:8080 [08:41:45]Content-Length: 843 [08:41:45]Content-Type: application/json [08:41:45] [08:41:45]POST finish read [08:41:45]Found Content-Length = 843 [08:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544349", "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" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1800.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:45]execute_script... [08:41:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544349", "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" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1800.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:45]POST & json_proto [08:41:45]process_json_proto [08:41:45]json parsed OK: [08:41:45]protocol is kg_v1.0 [08:41:45]action value=close_receipt [08:41:45]process_action close_receipt [08:41:45]cmd_close_receipt [08:41:45]MH_GetDate [08:41:45]Write to MH i2c: F0 00 00 36 0A 2F [08:41:45]Write i2c OK [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: F0 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: F0 09 00 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: F0 09 00 36 0A 00 4B D3 5E 66 6A 96 4A 66 CA [08:41:45]GetLastDocTimeStamp 1717490270 [08:41:45]current date 1717490507 [08:41:45]FM_GetShiftState [08:41:45]SAM_PROTO_GetShiftState [08:41:45]wFMCommunicate request_size=4 [08:41:45]MH_SAM_APDU [08:41:45]CAPDU: 80 13 01 00 [08:41:45]Write to MH i2c: E2 08 00 37 0A 80 13 01 00 00 00 00 00 BE [08:41:45]Write i2c OK [08:41:45]MH_I2C_Read... [08:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:45]Read from MH i2c: E2 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: E2 0E 00 [08:41:45]MH_I2C_Read... [08:41:45]Read from MH i2c: E2 0E 00 37 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 5E [08:41:45]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:41:45]wFMCommunicate OK [08:41:45]SAM_PROTO_GetShiftState done [08:41:45]FM_GetShiftState done [08:41:45]opened in 1717459574 [08:41:45]opened+sec_in_day 1717545974 [08:41:45]quantity*price = 180027 [08:41:45]sum+1 = 180029 [08:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.28 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 0.00 Безнал.: 1800.28 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 27 04.06.2024 08:41 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63942 ФПД: 58924434331557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T084147&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63942&fm=58924434331557&tin=02508201610067®Number=0000000000092737&sum=180028 [08:41:46]StoreToDocumentArchive [08:41:46]shift 374 fd 63942 [08:41:46]save to /storage/0374/doc_00063942 [08:41:46]save last doc name /storage/0374/doc_00063942 to /storage/kkm_last_doc_name [08:41:46]save OK [08:41:46]Clear old archive folders... [08:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:46]tlvbuf is 012A7A70 [08:41:46]SAM_PROTO_ClearQueue [08:41:46]wFMCommunicate request_size=4 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 09 00 00 [08:41:46]Write to MH i2c: E2 08 00 44 0A 80 09 00 00 00 00 00 00 C0 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [08:41:46]RAPDU: 90 00 [08:41:46]wFMCommunicate OK [08:41:46]SAM_PROTO_ClearQueue done [08:41:46]KKMCreateOFDPacket [08:41:46]OFDProtocolAddRootSTLVToBuf [08:41:46]FM_MakeSignedData [08:41:46]FM_MakeSignedData [08:41:46]SAM_PROTO_SignData [08:41:46]wFMCommunicate request_size=4 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 0D 01 02 [08:41:46]Write to MH i2c: E2 08 00 45 0A 80 0D 01 02 00 00 00 00 C8 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]OFD Sender: No OFD packet to send [08:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [08:41:46]RAPDU: 90 00 [08:41:46]wFMCommunicate OK [08:41:46]wFMCommunicate request_size=255 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4B D3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 35 [08:41:46]Write to MH i2c: E2 02 01 46 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4B D3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 35 00 00 2D [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 46 0A 00 90 00 C4 [08:41:47]RAPDU: 90 00 [08:41:47]wFMCommunicate OK [08:41:47]wFMCommunicate request_size=10 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 0D 02 02 05 97 69 FA 17 A5 [08:41:47]Write to MH i2c: E2 0D 00 47 0A 80 0D 02 02 05 00 97 69 FA 17 A5 00 00 8B [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [08:41:47]RAPDU: 90 00 [08:41:47]wFMCommunicate OK [08:41:47]wFMCommunicate request_size=4 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 0D 03 02 [08:41:47]Write to MH i2c: E2 08 00 48 0A 80 0D 03 02 00 00 00 00 CD [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 0B 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 0B 00 48 0A 00 75 03 15 B8 94 60 4A 95 90 00 E6 [08:41:47]RAPDU: 75 03 15 B8 94 60 4A 95 90 00 [08:41:47]wFMCommunicate OK [08:41:47]SAM_PROTO_SignData done [08:41:47]FM_MakeSignedData done [08:41:47]CreateOFDProtocolMessage [08:41:47]wFMCommunicate request_size=4 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 11 00 00 [08:41:47]Write to MH i2c: E2 08 00 49 0A 80 11 00 00 00 00 00 00 CD [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 17 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 17 00 49 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1F [08:41: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:41:47]wFMCommunicate OK [08:41:47]CreateOFDProtocolMessage done [08:41:47]OFDSenderStorePacket 63942 [08:41:47]StoreOFDPacket docnum=63942 [08:41:47]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 2B 42 07 01 5E 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4B D3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 35 97 69 FA 17 A5 75 03 15 B8 94 60 4A 95 [08:41:47]CheckFolder [08:41:47]dirname=/storage/ofd_packets [08:41:47]CheckFolder done [08:41:47]ProducePacketName [08:41:47]name=ofd_packets/00063942 [08:41:47]NVStorageSaveData ofd_packets/00063942 [08:41:47]File name is /storage/ofd_packets/00063942 [08:41:47]Write 301 bytes [08:41:47]NVStorageSaveData done [08:41:47]OFDSenderStorePacket done [08:41:47]KKMCreateOFDPacket done [08:41:47]NVStorageSaveData kkm_last_timestamp [08:41:47]File name is /storage/kkm_last_timestamp [08:41:47]Write 4 bytes [08:41:47]NVStorageSaveData done [08:41:47]ExternCall_PrintAddStr [08:41:47]wPrintStart [08:41:47]Write to MH i2c: 01 00 00 4A 0A 54 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 07 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 FF 0F 69 [08:41:47]RasterBufferAndPrint [08:41:47]line Счет N : (1)544349 [08:41:47]line ИНН: 02508201610067 [08:41:47]line Контрольно-Кассовый Чек [08:41:47]line ПРОДАЖА [08:41:47]line ТРК (МРК, ГНК) : 22 [08:41:47]line Товар: 2710124130 [08:41:47]line Аи-92-К-5 [08:41:47]line 26.910 * 66.90 [08:41:47]line = 1800.28 [08:41:47]line НДС 12% НСП 1% [08:41:47]line > о реализуемом товаре [08:41:47]line ИТОГО: 1800.28 [08:41:47]line НСП 1% : 15.93 [08:41:47]line НДС 12% : 191.18 [08:41:47]line Наличными: 0.00 [08:41:47]line Безнал.: 1800.28 [08:41:47]line Место: АЗС № 117 "Партнер Нефть" [08:41:47]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:41:47]line СНО: Общий режим [08:41:47]line Чек 27 04.06.2024 08:41 [08:41:47]line Смена: 374 ФФД: 1.0 [08:41:47]line ЗНМ: 0300000031 [08:41:47]line РНМ: 0000000000092737 [08:41:47]line Версия ККМ: 001 [08:41:47]line Платежная система: АКБ Кыргызстан [08:41:47]line ФМ: 0000000000875074 [08:41:47]line ФД: 63942 [08:41:47]line ФПД: 58924434331557 [08:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T084147&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63942&fm=58924434331557&tin=02508201610067®Number=0000000000092737&sum=180028 [08:41:47]OFD Sender: Processing packet 63942 [packets to send 14, broken 13] [08:41:47]ProducePacketName [08:41:47]name=ofd_packets/00063942 [08:41:47]OFD Sender: To server: pG, [08:41:47]CommunicateWithHost lk.salyk.kg:30040 [08:41:47]ConnectInit lk.salyk.kg [08:41:47]written 0, free lines is 4095 [08:41:47]Connected sock=10 [08:41: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 0F 01 00 00 2B 42 07 01 5E 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 4B D3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 35 97 69 FA 17 A5 75 03 15 B8 94 60 4A 95 [08:41: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 D3 6E 47 00 9E 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C6 F9 00 00 F4 03 04 00 1A 7F 5E 66 B6 04 01 00 00 99 F5 EE 70 A1 5D E0 DF [08:41:47]CommunicateWithHost err = 0 [08:41:47]CheckOFDResponse [08:41:47]1017 (14) - 77093643461234 [08:41:47]1041 (16) - 0000000000875074 [08:41:47]1040 (4) - 63942 [08:41:47]1012 (4) - 04.06.2024 02:42 [08:41:47]1206 (1) - 0 [08:41:47]OFD Sender: Remove packet 63942 [08:41:47]ProducePacketName [08:41:47]name=ofd_packets/00063942 [08:41:47]NVStorageDeleteData [08:41:48]Write to MH i2c: 01 00 00 74 0A 7E [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: 01 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: 01 07 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: 01 07 00 74 0A 00 00 00 00 00 F4 0C 85 [08:41:48]RasterBufferAndPrint [08:41:48]line [08:41:48]line [08:41:48]line [08:41:48]line [08:41:48]line [08:41:48]written 0, free lines is 3323 [08:41:48]MH_Cut [08:41:48]Write to MH i2c: D1 01 00 7B 0A 01 57 [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: D1 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: D1 01 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: D1 01 00 7B 0A 00 56 [08:41:48]Write to MH i2c: 01 00 00 7C 0A 86 [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]OFD Sender: No OFD packet to send [08:41:48]*** Cut start [08:41:48]*** Partial cut [08:41:48]*** CUTSNS_PIN = 1 [08:41:48]*** CUTSNS_PIN = 0 [08:41:49]*** Brake cut motor [08:41:49]Read from MH i2c: 01 [08:41:49]MH_I2C_Read... [08:41:49]*** Stop cut motor [08:41:49]*** Cut end [08:41:49]Read from MH i2c: 01 07 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: 01 07 00 7C 0A 00 00 00 00 00 FF 0F 9B [08:41:49]process_action close_receipt done [08:41:49]requested_data is exist [08:41:49]produce_requested_data [08:41:49]requested_item fm.sn is exist - process it [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 11 00 00 [08:41:49]Write to MH i2c: E2 08 00 7D 0A 80 11 00 00 00 00 00 00 01 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 17 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 17 00 7D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 53 [08:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:41:49]wFMCommunicate OK [08:41:49]requested_item fd.num is exist - process it [08:41:49]SAM_PROTO_GetFieldsCounters [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 13 00 00 [08:41:49]Write to MH i2c: E2 08 00 7E 0A 80 13 00 00 00 00 00 00 04 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 62 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 62 00 7E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 AE [08:41: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 C6 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:49]wFMCommunicate OK [08:41:49]SAM_PROTO_GetFieldsCounters done [08:41:49]requested_item shift.num is exist - process it [08:41:49]requested_item shift.opened is exist - process it [08:41:49]req_shift_opened [08:41:49]FM_GetShiftState [08:41:49]SAM_PROTO_GetShiftState [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 13 01 00 [08:41:49]Write to MH i2c: E2 08 00 7F 0A 80 13 01 00 00 00 00 00 06 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 0E 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 0E 00 7F 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A6 [08:41:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:41:49]wFMCommunicate OK [08:41:49]SAM_PROTO_GetShiftState done [08:41:49]FM_GetShiftState done [08:41:49]req_shift_opened done [08:41:49]requested_item shift.open_date is exist - process it [08:41:49]req_shift_open_date [08:41:49]req_shift_open_date done [08:41:49]produce_requested_data done [08:41:49]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63942,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:41:49]process_action_free close_receipt [08:41:49]json_value_free [08:41:49]json_value_free done [08:41:49]process_json_proto returns [08:41:49]Send response to host [08:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63942,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:41:49]free response buf [08:41:49]execute_script done [08:41:49]execute_script returns [08:41:49]free content buf [08:41:49]Sock 7.Close socket [08:41:49]Sock 7.Thread stoped [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:04]accept exits with 9 [08:47:04]New connection [08:47:04]New thread 3067055460 created [08:47:04]Thread 3066912100 joined [08:47:04]Waiting for new connection... [08:47:04] Sock 9.Parse request [08:47:04]Sock 9.Check first char [08:47:04]Sock 9.First char is OK [08:47:04]request: POST /json_proto HTTP/1.0 [08:47:04]Method: POST [08:47:04]URL: /json_proto [08:47:04]Method is POST - this is cgi request [08:47:04]url: /json_proto [08:47:04]query_string will be loaded in cgi processing [08:47:04]execute_cgi json_proto POST (null) [08:47:04]execute_cgi path=json_proto method=POST [08:47:04]POST find Content-Length [08:47:04]Host: 172.17.60.69:8080 [08:47:04]Content-Length: 215 [08:47:04]Content-Type: application/json [08:47:04] [08:47:04]POST finish read [08:47:04]Found Content-Length = 215 [08:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:04]execute_script... [08:47:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:04]POST & json_proto [08:47:04]process_json_proto [08:47:04]json parsed OK: [08:47:04]protocol is kg_v1.0 [08:47:04]action value=get_value [08:47:04]process_action get_value [08:47:04]cmd_get_value [08:47:04]process_action get_value done [08:47:04]requested_data is exist [08:47:04]produce_requested_data [08:47:04]requested_item kkm.sn is exist - process it [08:47:04]requested_item kkm.ver is exist - process it [08:47:04]requested_item fm.sn is exist - process it [08:47:04]wFMCommunicate request_size=4 [08:47:04]MH_SAM_APDU [08:47:04]CAPDU: 80 11 00 00 [08:47:04]Write to MH i2c: E2 08 00 80 0A 80 11 00 00 00 00 00 00 04 [08:47:04]Write i2c OK [08:47:04]MH_I2C_Read... [08:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:05]Read from MH i2c: E2 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 17 00 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 17 00 80 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 56 [08:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:47:05]wFMCommunicate OK [08:47:05]requested_item fd.num is exist - process it [08:47:05]SAM_PROTO_GetFieldsCounters [08:47:05]wFMCommunicate request_size=4 [08:47:05]MH_SAM_APDU [08:47:05]CAPDU: 80 13 00 00 [08:47:05]Write to MH i2c: E2 08 00 81 0A 80 13 00 00 00 00 00 00 07 [08:47:05]Write i2c OK [08:47:05]MH_I2C_Read... [08:47:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:05]Read from MH i2c: E2 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 62 00 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 62 00 81 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 B1 [08:47: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 C6 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:05]wFMCommunicate OK [08:47:05]SAM_PROTO_GetFieldsCounters done [08:47:05]requested_item shift.num is exist - process it [08:47:05]requested_item shift.opened is exist - process it [08:47:05]req_shift_opened [08:47:05]FM_GetShiftState [08:47:05]SAM_PROTO_GetShiftState [08:47:05]wFMCommunicate request_size=4 [08:47:05]MH_SAM_APDU [08:47:05]CAPDU: 80 13 01 00 [08:47:05]Write to MH i2c: E2 08 00 82 0A 80 13 01 00 00 00 00 00 09 [08:47:05]Write i2c OK [08:47:05]MH_I2C_Read... [08:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:05]Read from MH i2c: E2 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 0E 00 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 0E 00 82 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A9 [08:47:05]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:47:05]wFMCommunicate OK [08:47:05]SAM_PROTO_GetShiftState done [08:47:05]FM_GetShiftState done [08:47:05]req_shift_opened done [08:47:05]requested_item shift.open_date is exist - process it [08:47:05]req_shift_open_date [08:47:05]req_shift_open_date done [08:47:05]produce_requested_data done [08:47:05]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63942,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:47:05]process_action_free get_value [08:47:05]json_value_free [08:47:05]json_value_free done [08:47:05]process_json_proto returns [08:47:05]Send response to host [08:47:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":63942,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:47:05]free response buf [08:47:05]execute_script done [08:47:05]execute_script returns [08:47:05]free content buf [08:47:05]Sock 9.Close socket [08:47:05]Sock 9.Thread stoped [08:47:05]accept exits with 7 [08:47:05]New connection [08:47:05]New thread 3066912100 created [08:47:05]Thread 3067055460 joined [08:47:05]Waiting for new connection... [08:47:05] Sock 7.Parse request [08:47:05]Sock 7.Check first char [08:47:05]Sock 7.First char is OK [08:47:05]request: POST /json_proto HTTP/1.0 [08:47:05]Method: POST [08:47:05]URL: /json_proto [08:47:05]Method is POST - this is cgi request [08:47:05]url: /json_proto [08:47:05]query_string will be loaded in cgi processing [08:47:05]execute_cgi json_proto POST (null) [08:47:05]execute_cgi path=json_proto method=POST [08:47:05]POST find Content-Length [08:47:05]Host: 172.17.60.69:8080 [08:47:05]Content-Length: 331 [08:47:05]Content-Type: application/json [08:47:05] [08:47:05]POST finish read [08:47:05]Found Content-Length = 331 [08:47:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:47:05]execute_script... [08:47:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:47:05]POST & json_proto [08:47:05]process_json_proto [08:47:05]json parsed OK: [08:47:05]protocol is kg_v1.0 [08:47:05]action value=get_value [08:47:05]process_action get_value [08:47:05]cmd_get_value [08:47:05]process_action get_value done [08:47:05]requested_data is exist [08:47:05]produce_requested_data [08:47:05]requested_item fm.sale.total is exist - process it [08:47:05]SAM_PROTO_GetFMData [08:47:05]wFMCommunicate request_size=4 [08:47:05]MH_SAM_APDU [08:47:05]CAPDU: 80 13 03 00 [08:47:05]Write to MH i2c: E2 08 00 83 0A 80 13 03 00 00 00 00 00 0C [08:47:05]Write i2c OK [08:47:05]MH_I2C_Read... [08:47:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:47:05]Read from MH i2c: E2 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 FD 00 [08:47:05]MH_I2C_Read... [08:47:05]Read from MH i2c: E2 FD 00 83 0A 00 C5 04 85 04 C1 04 6E 04 04 00 DA F6 00 00 69 04 A1 00 6F 04 04 00 7A F4 00 00 B1 04 04 00 15 1E D2 76 70 04 04 00 BA 94 0E 66 72 04 04 00 5B 89 C3 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 0E A9 9E 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 0F 25 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 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 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 84 3C 5F EF 03 09 90 00 C6 [08:47:05]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DA F6 00 00 69 04 A1 00 6F 04 04 00 7A F4 00 00 B1 04 04 00 15 1E D2 76 70 04 04 00 BA 94 0E 66 72 04 04 00 5B 89 C3 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 0E A9 9E 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 0F 25 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 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 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 84 3C 5F EF 03 09 90 00 [08:47:05]wFMCommunicate OK [08:47:05]wFMCommunicate request_size=4 [08:47:05]MH_SAM_APDU [08:47:05]CAPDU: 80 17 00 00 [08:47:05]Write to MH i2c: E2 08 00 84 0A 80 17 00 00 00 00 00 00 0E [08:47:05]Write i2c OK [08:47:05]MH_I2C_Read... [08:47:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:06]Read from MH i2c: E2 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 FD 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 FD 00 84 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 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 34 [08:47:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 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:47:06]wFMCommunicate OK [08:47:06]wFMCommunicate request_size=4 [08:47:06]MH_SAM_APDU [08:47:06]CAPDU: 80 17 00 00 [08:47:06]Write to MH i2c: E2 08 00 85 0A 80 17 00 00 00 00 00 00 0F [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:06]Read from MH i2c: E2 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 FD 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 FD 00 85 0A 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 21 [08:47:06]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [08:47:06]wFMCommunicate OK [08:47:06]wFMCommunicate request_size=4 [08:47:06]MH_SAM_APDU [08:47:06]CAPDU: 80 17 00 00 [08:47:06]Write to MH i2c: E2 08 00 86 0A 80 17 00 00 00 00 00 00 10 [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:06]Read from MH i2c: E2 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 FD 00 [08:47:06]MH_I2C_Read... [08:47:06]Read from MH i2c: E2 FD 00 86 0A 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 9C [08:47:06]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [08:47:06]wFMCommunicate OK [08:47:06]wFMCommunicate request_size=4 [08:47:06]MH_SAM_APDU [08:47:06]CAPDU: 80 17 00 00 [08:47:06]Write to MH i2c: E2 08 00 87 0A 80 17 00 00 00 00 00 00 11 [08:47:06]Write i2c OK [08:47:06]MH_I2C_Read... [08:47:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:47:07]Read from MH i2c: E2 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: E2 E2 00 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: E2 E2 00 87 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EF [08:47:07]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:47:07]wFMCommunicate OK [08:47:07]SAM_PROTO_GetFMData done [08:47:07]requested_item fm.sale_refund.total is exist - process it [08:47:07]requested_item fm.buy.total is exist - process it [08:47:07]requested_item shift.sale.total is exist - process it [08:47:07]SAM_PROTO_GetShiftData [08:47:07]wFMCommunicate request_size=4 [08:47:07]MH_SAM_APDU [08:47:07]CAPDU: 80 13 02 00 [08:47:07]Write to MH i2c: E2 08 00 88 0A 80 13 02 00 00 00 00 00 10 [08:47:07]Write i2c OK [08:47:07]MH_I2C_Read... [08:47:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:47:07]Read from MH i2c: E2 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: E2 FD 00 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: E2 FD 00 88 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 64 1D 0E 70 04 03 00 24 DD 08 72 04 03 00 40 40 05 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 C8 7F 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 FA 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 85 [08:47:07]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 64 1D 0E 70 04 03 00 24 DD 08 72 04 03 00 40 40 05 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 C8 7F 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 FA 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:47:07]wFMCommunicate OK [08:47:07]wFMCommunicate request_size=4 [08:47:07]MH_SAM_APDU [08:47:07]CAPDU: 80 17 00 00 [08:47:07]Write to MH i2c: E2 08 00 89 0A 80 17 00 00 00 00 00 00 13 [08:47:07]Write i2c OK [08:47:07]MH_I2C_Read... [08:47:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:07]Read from MH i2c: E2 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: E2 FD 00 [08:47:07]MH_I2C_Read... [08:47:07]Read from MH i2c: E2 FD 00 89 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 35 [08:47:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:47:07]wFMCommunicate OK [08:47:07]wFMCommunicate request_size=4 [08:47:07]MH_SAM_APDU [08:47:07]CAPDU: 80 17 00 00 [08:47:07]Write to MH i2c: E2 08 00 8A 0A 80 17 00 00 00 00 00 00 14 [08:47:07]Write i2c OK [08:47:07]MH_I2C_Read... [08:47:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:08]Read from MH i2c: E2 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 FD 00 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 FD 00 8A 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 CB [08:47:08]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:47:08]wFMCommunicate OK [08:47:08]wFMCommunicate request_size=4 [08:47:08]MH_SAM_APDU [08:47:08]CAPDU: 80 17 00 00 [08:47:08]Write to MH i2c: E2 08 00 8B 0A 80 17 00 00 00 00 00 00 15 [08:47:08]Write i2c OK [08:47:08]MH_I2C_Read... [08:47:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:08]Read from MH i2c: E2 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 FD 00 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 FD 00 8B 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 87 [08:47:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:47:08]wFMCommunicate OK [08:47:08]wFMCommunicate request_size=4 [08:47:08]MH_SAM_APDU [08:47:08]CAPDU: 80 17 00 00 [08:47:08]Write to MH i2c: E2 08 00 8C 0A 80 17 00 00 00 00 00 00 16 [08:47:08]Write i2c OK [08:47:08]MH_I2C_Read... [08:47:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:47:08]Read from MH i2c: E2 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 CB 00 [08:47:08]MH_I2C_Read... [08:47:08]Read from MH i2c: E2 CB 00 8C 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FF [08:47:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:47:08]wFMCommunicate OK [08:47:08]SAM_PROTO_GetShiftData done [08:47:08]requested_item shift.sale.total_cash is exist - process it [08:47:08]requested_item shift.sale_refund.total is exist - process it [08:47:08]requested_item shift.sale_refund.total_cash is exist - process it [08:47:08]requested_item shift.buy.total is exist - process it [08:47:08]requested_item shift.buy.total_cash is exist - process it [08:47:08]produce_requested_data done [08:47:08]produce_requested_data return {"fm.sale.total":19934817.49,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":9250.28,"shift.sale.total_cash":5809.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:47:08]process_action_free get_value [08:47:08]json_value_free [08:47:08]json_value_free done [08:47:08]process_json_proto returns [08:47:08]Send response to host [08:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19934817.49,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":9250.28,"shift.sale.total_cash":5809.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:47:08]free response buf [08:47:08]execute_script done [08:47:08]execute_script returns [08:47:08]free content buf [08:47:08]Sock 7.Close socket [08:47:08]Sock 7.Thread stoped [08:47:08]OFD Sender: No OFD packet to send [08:47:08]accept exits with 9 [08:47:08]New connection [08:47:08]New thread 3067055460 created [08:47:08]Thread 3066912100 joined [08:47:08]Waiting for new connection... [08:47:08] Sock 9.Parse request [08:47:08]Sock 9.Check first char [08:47:08]Sock 9.First char is OK [08:47:08]request: POST /json_proto HTTP/1.0 [08:47:08]Method: POST [08:47:08]URL: /json_proto [08:47:08]Method is POST - this is cgi request [08:47:08]url: /json_proto [08:47:08]query_string will be loaded in cgi processing [08:47:08]execute_cgi json_proto POST (null) [08:47:08]execute_cgi path=json_proto method=POST [08:47:08]POST find Content-Length [08:47:08]Host: 172.17.60.69:8080 [08:47:08]Content-Length: 331 [08:47:08]Content-Type: application/json [08:47:08] [08:47:08]POST finish read [08:47:08]Found Content-Length = 331 [08:47: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:47:08]execute_script... [08:47: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:47:08]POST & json_proto [08:47:08]process_json_proto [08:47:08]json parsed OK: [08:47:08]protocol is kg_v1.0 [08:47:08]action value=get_value [08:47:08]process_action get_value [08:47:08]cmd_get_value [08:47:08]process_action get_value done [08:47:08]requested_data is exist [08:47:08]produce_requested_data [08:47:08]requested_item fm.sale.total is exist - process it [08:47:08]SAM_PROTO_GetFMData [08:47:08]wFMCommunicate request_size=4 [08:47:08]MH_SAM_APDU [08:47:08]CAPDU: 80 13 03 00 [08:47:08]Write to MH i2c: E2 08 00 8D 0A 80 13 03 00 00 00 00 00 16 [08:47:08]Write i2c OK [08:47:08]MH_I2C_Read... [08:47:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:47:09]Read from MH i2c: E2 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: E2 FD 00 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: E2 FD 00 8D 0A 00 C5 04 85 04 C1 04 6E 04 04 00 DA F6 00 00 69 04 A1 00 6F 04 04 00 7A F4 00 00 B1 04 04 00 15 1E D2 76 70 04 04 00 BA 94 0E 66 72 04 04 00 5B 89 C3 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 0E A9 9E 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 0F 25 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 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 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 84 3C 5F EF 03 09 90 00 D0 [08:47:09]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DA F6 00 00 69 04 A1 00 6F 04 04 00 7A F4 00 00 B1 04 04 00 15 1E D2 76 70 04 04 00 BA 94 0E 66 72 04 04 00 5B 89 C3 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 0E A9 9E 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 0F 25 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 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 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 84 3C 5F EF 03 09 90 00 [08:47:09]wFMCommunicate OK [08:47:09]wFMCommunicate request_size=4 [08:47:09]MH_SAM_APDU [08:47:09]CAPDU: 80 17 00 00 [08:47:09]Write to MH i2c: E2 08 00 8E 0A 80 17 00 00 00 00 00 00 18 [08:47:09]Write i2c OK [08:47:09]MH_I2C_Read... [08:47:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:09]Read from MH i2c: E2 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: E2 FD 00 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: E2 FD 00 8E 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 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 3E [08:47: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 7A EF 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:47:09]wFMCommunicate OK [08:47:09]wFMCommunicate request_size=4 [08:47:09]MH_SAM_APDU [08:47:09]CAPDU: 80 17 00 00 [08:47:09]Write to MH i2c: E2 08 00 8F 0A 80 17 00 00 00 00 00 00 19 [08:47:09]Write i2c OK [08:47:09]MH_I2C_Read... [08:47:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:09]Read from MH i2c: E2 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: E2 FD 00 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: E2 FD 00 8F 0A 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 2B [08:47:10]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:47:10]wFMCommunicate OK [08:47:10]wFMCommunicate request_size=4 [08:47:10]MH_SAM_APDU [08:47:10]CAPDU: 80 17 00 00 [08:47:10]Write to MH i2c: E2 08 00 90 0A 80 17 00 00 00 00 00 00 1A [08:47:10]Write i2c OK [08:47:10]MH_I2C_Read... [08:47:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:10]Read from MH i2c: E2 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: E2 FD 00 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: E2 FD 00 90 0A 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 A6 [08:47: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:47:10]wFMCommunicate OK [08:47:10]wFMCommunicate request_size=4 [08:47:10]MH_SAM_APDU [08:47:10]CAPDU: 80 17 00 00 [08:47:10]Write to MH i2c: E2 08 00 91 0A 80 17 00 00 00 00 00 00 1B [08:47:10]Write i2c OK [08:47:10]MH_I2C_Read... [08:47:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:47:10]Read from MH i2c: E2 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: E2 E2 00 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: E2 E2 00 91 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F9 [08:47: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:47:10]wFMCommunicate OK [08:47:10]SAM_PROTO_GetFMData done [08:47:10]requested_item fm.sale_refund.total is exist - process it [08:47:10]requested_item fm.buy.total is exist - process it [08:47:10]requested_item shift.sale.total is exist - process it [08:47:10]SAM_PROTO_GetShiftData [08:47:10]wFMCommunicate request_size=4 [08:47:10]MH_SAM_APDU [08:47:10]CAPDU: 80 13 02 00 [08:47:10]Write to MH i2c: E2 08 00 92 0A 80 13 02 00 00 00 00 00 1A [08:47:10]Write i2c OK [08:47:10]MH_I2C_Read... [08:47:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:47:11]Read from MH i2c: E2 [08:47:11]MH_I2C_Read... [08:47:11]Read from MH i2c: E2 FD 00 [08:47:11]MH_I2C_Read... [08:47:11]Read from MH i2c: E2 FD 00 92 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 64 1D 0E 70 04 03 00 24 DD 08 72 04 03 00 40 40 05 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 C8 7F 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 FA 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 8F [08:47:11]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 64 1D 0E 70 04 03 00 24 DD 08 72 04 03 00 40 40 05 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 C8 7F 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 FA 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:47:11]wFMCommunicate OK [08:47:11]wFMCommunicate request_size=4 [08:47:11]MH_SAM_APDU [08:47:11]CAPDU: 80 17 00 00 [08:47:11]Write to MH i2c: E2 08 00 93 0A 80 17 00 00 00 00 00 00 1D [08:47:11]Write i2c OK [08:47:11]MH_I2C_Read... [08:47:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:11]Read from MH i2c: E2 [08:47:11]MH_I2C_Read... [08:47:11]Read from MH i2c: E2 FD 00 [08:47:11]MH_I2C_Read... [08:47:11]Read from MH i2c: E2 FD 00 93 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 3F [08:47:11]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:47:11]wFMCommunicate OK [08:47:11]wFMCommunicate request_size=4 [08:47:11]MH_SAM_APDU [08:47:11]CAPDU: 80 17 00 00 [08:47:11]Write to MH i2c: E2 08 00 94 0A 80 17 00 00 00 00 00 00 1E [08:47:11]Write i2c OK [08:47:11]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 FD 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 FD 00 94 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 D5 [08:47:12]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:47:12]wFMCommunicate OK [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 17 00 00 [08:47:12]Write to MH i2c: E2 08 00 95 0A 80 17 00 00 00 00 00 00 1F [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 FD 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 FD 00 95 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 91 [08:47:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:47:12]wFMCommunicate OK [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 17 00 00 [08:47:12]Write to MH i2c: E2 08 00 96 0A 80 17 00 00 00 00 00 00 20 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 CB 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 CB 00 96 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 09 [08:47:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:47:12]wFMCommunicate OK [08:47:12]SAM_PROTO_GetShiftData done [08:47:12]requested_item shift.sale.total_cash is exist - process it [08:47:12]requested_item shift.sale_refund.total is exist - process it [08:47:12]requested_item shift.sale_refund.total_cash is exist - process it [08:47:12]requested_item shift.buy.total is exist - process it [08:47:12]requested_item shift.buy.total_cash is exist - process it [08:47:12]produce_requested_data done [08:47:12]produce_requested_data return {"fm.sale.total":19934817.49,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":9250.28,"shift.sale.total_cash":5809.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [08:47:12]process_action_free get_value [08:47:12]json_value_free [08:47:12]json_value_free done [08:47:12]process_json_proto returns [08:47:12]Send response to host [08:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19934817.49,"fm.sale_refund.total":587681.00,"fm.buy.total":0.00,"shift.sale.total":9250.28,"shift.sale.total_cash":5809.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [08:47:12]free response buf [08:47:12]execute_script done [08:47:13]execute_script returns [08:47:13]free content buf [08:47:13]Sock 9.Close socket [08:47:13]Sock 9.Thread stoped [08:47:13]accept exits with 7 [08:47:13]New connection [08:47:13]New thread 3066912100 created [08:47:13]Thread 3067055460 joined [08:47:13]Waiting for new connection... [08:47:13] Sock 7.Parse request [08:47:13]Sock 7.Check first char [08:47:13]Sock 7.First char is OK [08:47:13]request: POST /json_proto HTTP/1.0 [08:47:13]Method: POST [08:47:13]URL: /json_proto [08:47:13]Method is POST - this is cgi request [08:47:13]url: /json_proto [08:47:13]query_string will be loaded in cgi processing [08:47:13]execute_cgi json_proto POST (null) [08:47:13]execute_cgi path=json_proto method=POST [08:47:13]POST find Content-Length [08:47:13]Host: 172.17.60.69:8080 [08:47:13]Content-Length: 245 [08:47:13]Content-Type: application/json [08:47:13] [08:47:13]POST finish read [08:47:13]Found Content-Length = 245 [08:47:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0438\u043A\u0441\u0430\u0439 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:13]execute_script... [08:47:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0438\u043A\u0441\u0430\u0439 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:13]POST & json_proto [08:47:13]process_json_proto [08:47:13]json parsed OK: [08:47:13]protocol is kg_v1.0 [08:47:13]action value=x_report [08:47:13]process_action x_report [08:47:13]cmd_x_report [08:47:13]MH_GetDate [08:47:13]Write to MH i2c: F0 00 00 97 0A 90 [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: F0 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: F0 09 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: F0 09 00 97 0A 00 93 D4 5E 66 6A 96 4A 66 74 [08:47:13]GetLastDocTimeStamp 1717490507 [08:47:13]current date 1717490835 [08:47:13]FM_GetShiftState [08:47:13]SAM_PROTO_GetShiftState [08:47:13]wFMCommunicate request_size=4 [08:47:13]MH_SAM_APDU [08:47:13]CAPDU: 80 13 01 00 [08:47:13]Write to MH i2c: E2 08 00 98 0A 80 13 01 00 00 00 00 00 1F [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:13]Read from MH i2c: E2 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 0E 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 0E 00 98 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 BF [08:47:13]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:47:13]wFMCommunicate OK [08:47:13]SAM_PROTO_GetShiftState done [08:47:13]FM_GetShiftState done [08:47:13]KKMCreateXReportDocument [08:47:13]Load OK [08:47:13]Malloc new data [08:47:13]MH_GetDate [08:47:13]Write to MH i2c: F0 00 00 99 0A 92 [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: F0 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: F0 09 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: F0 09 00 99 0A 00 93 D4 5E 66 6A 96 4A 66 76 [08:47:13]Malloc new data [08:47:13]Malloc new data [08:47:13]wFMCommunicate request_size=4 [08:47:13]MH_SAM_APDU [08:47:13]CAPDU: 80 11 00 00 [08:47:13]Write to MH i2c: E2 08 00 9A 0A 80 11 00 00 00 00 00 00 1E [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:13]Read from MH i2c: E2 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 17 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 17 00 9A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 70 [08:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:47:13]wFMCommunicate OK [08:47:13]SAM_PROTO_GetFieldsCounters [08:47:13]wFMCommunicate request_size=4 [08:47:13]MH_SAM_APDU [08:47:13]CAPDU: 80 13 00 00 [08:47:13]Write to MH i2c: E2 08 00 9B 0A 80 13 00 00 00 00 00 00 21 [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:13]Read from MH i2c: E2 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 62 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 62 00 9B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 CB [08:47: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 C6 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:13]wFMCommunicate OK [08:47:13]SAM_PROTO_GetFieldsCounters done [08:47:13]Malloc new data [08:47:13]Malloc new data [08:47:13]Malloc new data [08:47:13]KKMCreateXReportDocument OK [08:47:13]KKMSetXReportData OK [08:47:13]KKMPrepareXReportFMData [08:47:13]SAM_PROTO_GetShiftData [08:47:13]wFMCommunicate request_size=4 [08:47:13]MH_SAM_APDU [08:47:13]CAPDU: 80 13 02 00 [08:47:13]Write to MH i2c: E2 08 00 9C 0A 80 13 02 00 00 00 00 00 24 [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:47:13]Read from MH i2c: E2 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 FD 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: E2 FD 00 9C 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 64 1D 0E 70 04 03 00 24 DD 08 72 04 03 00 40 40 05 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 C8 7F 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 FA 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 99 [08:47:14]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 64 1D 0E 70 04 03 00 24 DD 08 72 04 03 00 40 40 05 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 C8 7F 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 OFD Sender: No OFD packet to send [08:47:14]03 01 00 01 F7 03 02 00 FA 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [08:47:14]wFMCommunicate OK [08:47:14]wFMCommunicate request_size=4 [08:47:14]MH_SAM_APDU [08:47:14]CAPDU: 80 17 00 00 [08:47:14]Write to MH i2c: E2 08 00 9D 0A 80 17 00 00 00 00 00 00 27 [08:47:14]Write i2c OK [08:47:14]MH_I2C_Read... [08:47:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:14]Read from MH i2c: E2 [08:47:14]MH_I2C_Read... [08:47:14]Read from MH i2c: E2 FD 00 [08:47:14]MH_I2C_Read... [08:47:14]Read from MH i2c: E2 FD 00 9D 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 49 [08:47:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [08:47:14]wFMCommunicate OK [08:47:14]wFMCommunicate request_size=4 [08:47:14]MH_SAM_APDU [08:47:14]CAPDU: 80 17 00 00 [08:47:14]Write to MH i2c: E2 08 00 9E 0A 80 17 00 00 00 00 00 00 28 [08:47:14]Write i2c OK [08:47:14]MH_I2C_Read... [08:47:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:14]Read from MH i2c: E2 [08:47:14]MH_I2C_Read... [08:47:14]Read from MH i2c: E2 FD 00 [08:47:14]MH_I2C_Read... [08:47:14]Read from MH i2c: E2 FD 00 9E 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 DF [08:47:15]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [08:47:15]wFMCommunicate OK [08:47:15]wFMCommunicate request_size=4 [08:47:15]MH_SAM_APDU [08:47:15]CAPDU: 80 17 00 00 [08:47:15]Write to MH i2c: E2 08 00 9F 0A 80 17 00 00 00 00 00 00 29 [08:47:15]Write i2c OK [08:47:15]MH_I2C_Read... [08:47:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:15]Read from MH i2c: E2 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 FD 00 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 FD 00 9F 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 9B [08:47:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [08:47:15]wFMCommunicate OK [08:47:15]wFMCommunicate request_size=4 [08:47:15]MH_SAM_APDU [08:47:15]CAPDU: 80 17 00 00 [08:47:15]Write to MH i2c: E2 08 00 A0 0A 80 17 00 00 00 00 00 00 2A [08:47:15]Write i2c OK [08:47:15]MH_I2C_Read... [08:47:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [08:47:15]Read from MH i2c: E2 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 CB 00 [08:47:15]MH_I2C_Read... [08:47:15]Read from MH i2c: E2 CB 00 A0 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 13 [08:47:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [08:47:15]wFMCommunicate OK [08:47:15]SAM_PROTO_GetShiftData done [08:47:15]1194 (1194) - счетчики итогов смены [08:47:15] 1134 (4) - 27 - количество чеков со всеми признаками расчетов [08:47:15] 1129 (155) - счетчики операций «приход» [08:47:15] 1135 (4) - 27 - количество чеков по признаку расчетов [08:47:15] 1201 (3) - 9250.28 - общая итоговая сумма в чеках [08:47:15] 1136 (3) - 5809.00 - итоговая сумма в чеках наличными [08:47:15] 1138 (3) - 3441.28 - итоговая сумма в чеках безналичными [08:47:15] 1024 (122) - суммы налогов [08:47:15] 1006 (9) - суммы НДС [08:47:15] 1010 (1) - 0% - код ставки НДС [08:47:15] 1011 (0) - 0.00 - сумма НДС по ставке [08:47:15] 1006 (12) - суммы НДС [08:47:15] 1010 (1) - 12% - код ставки НДС [08:47:15] 1011 (3) - 982.48 - сумма НДС по ставке [08:47:15] 1007 (9) - суммы НСП [08:47:15] 1014 (1) - 0% - код ставки НСП [08:47:15] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:15] 1007 (11) - суммы НСП [08:47:15] 1014 (1) - 1% - код ставки НСП [08:47:15] 1015 (2) - 81.86 - сумма НСП по ставке [08:47:15] 1007 (9) - суммы НСП [08:47:15] 1014 (1) - 2% - код ставки НСП [08:47:15] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:15] 1007 (9) - суммы НСП [08:47:15] 1014 (1) - 3% - код ставки НСП [08:47:15] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:15] 1007 (9) - суммы НСП [08:47:15] 1014 (1) - 5% - код ставки НСП [08:47:15] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:15] 1007 (9) - суммы НСП [08:47:15] 1014 (1) - 0,50% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 1,50% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1130 (141) - счетчики операций «возврат прихода» [08:47:16] 1135 (4) - 0 - количество чеков по признаку расчетов [08:47:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:47:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:47:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:47:16] 1024 (117) - суммы налогов [08:47:16] 1006 (9) - суммы НДС [08:47:16] 1010 (1) - 0% - код ставки НДС [08:47:16] 1011 (0) - 0.00 - сумма НДС по ставке [08:47:16] 1006 (9) - суммы НДС [08:47:16] 1010 (1) - 12% - код ставки НДС [08:47:16] 1011 (0) - 0.00 - сумма НДС по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 0% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 1% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 2% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 3% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 5% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 0,50% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 1,50% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1131 (141) - счетчики операций «расход» [08:47:16] 1135 (4) - 0 - количество чеков по признаку расчетов [08:47:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:47:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:47:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:47:16] 1024 (117) - суммы налогов [08:47:16] 1006 (9) - суммы НДС [08:47:16] 1010 (1) - 0% - код ставки НДС [08:47:16] 1011 (0) - 0.00 - сумма НДС по ставке [08:47:16] 1006 (9) - суммы НДС [08:47:16] 1010 (1) - 12% - код ставки НДС [08:47:16] 1011 (0) - 0.00 - сумма НДС по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 0% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 1% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 2% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 3% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 5% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 0,50% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 1,50% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1132 (141) - счетчики операций «возврат расхода» [08:47:16] 1135 (4) - 0 - количество чеков по признаку расчетов [08:47:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [08:47:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [08:47:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [08:47:16] 1024 (117) - суммы налогов [08:47:16] 1006 (9) - суммы НДС [08:47:16] 1010 (1) - 0% - код ставки НДС [08:47:16] 1011 (0) - 0.00 - сумма НДС по ставке [08:47:16] 1006 (9) - суммы НДС [08:47:16] 1010 (1) - 12% - код ставки НДС [08:47:16] 1011 (0) - 0.00 - сумма НДС по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 0% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 1% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 2% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 3% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 5% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 0,50% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1007 (9) - суммы НСП [08:47:16] 1014 (1) - 1,50% - код ставки НСП [08:47:16] 1015 (0) - 0.00 - сумма НСП по ставке [08:47:16] 1133 (588) - - счетчики коррекции - не используются [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1194 (04AA) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1134 (046E) [08:47:16]Malloc new data [08:47:16]Processing tag 1129 (0469) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1135 (046F) [08:47:16]Malloc new data [08:47:16]Processing tag 1201 (04B1) [08:47:16]Malloc new data [08:47:16]Processing tag 1136 (0470) [08:47:16]Malloc new data [08:47:16]Processing tag 1138 (0472) [08:47:16]Malloc new data [08:47:16]Processing tag 1024 (0400) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1006 (03EE) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1010 (03F2) [08:47:16]Malloc new data [08:47:16]Processing tag 1011 (03F3) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1006 (03EE) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1010 (03F2) [08:47:16]Malloc new data [08:47:16]Processing tag 1011 (03F3) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]SetTLVBufToDocument err=0 [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1130 (046A) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1135 (046F) [08:47:16]Malloc new data [08:47:16]Processing tag 1201 (04B1) [08:47:16]Malloc new data [08:47:16]Processing tag 1136 (0470) [08:47:16]Malloc new data [08:47:16]Processing tag 1138 (0472) [08:47:16]Malloc new data [08:47:16]Processing tag 1024 (0400) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1006 (03EE) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1010 (03F2) [08:47:16]Malloc new data [08:47:16]Processing tag 1011 (03F3) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1006 (03EE) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1010 (03F2) [08:47:16]Malloc new data [08:47:16]Processing tag 1011 (03F3) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]SetTLVBufToDocument err=0 [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1131 (046B) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1135 (046F) [08:47:16]Malloc new data [08:47:16]Processing tag 1201 (04B1) [08:47:16]Malloc new data [08:47:16]Processing tag 1136 (0470) [08:47:16]Malloc new data [08:47:16]Processing tag 1138 (0472) [08:47:16]Malloc new data [08:47:16]Processing tag 1024 (0400) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1006 (03EE) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1010 (03F2) [08:47:16]Malloc new data [08:47:16]Processing tag 1011 (03F3) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1006 (03EE) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1010 (03F2) [08:47:16]Malloc new data [08:47:16]Processing tag 1011 (03F3) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:16]Processing tag 1007 (03EF) [08:47:16]Load OK [08:47:16]SetTLVBufToDocument [08:47:16]Processing tag 1014 (03F6) [08:47:16]Malloc new data [08:47:16]Processing tag 1015 (03F7) [08:47:16]Malloc new data [08:47:16]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1007 (03EF) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1014 (03F6) [08:47:17]Malloc new data [08:47:17]Processing tag 1015 (03F7) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1007 (03EF) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1014 (03F6) [08:47:17]Malloc new data [08:47:17]Processing tag 1015 (03F7) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]SetTLVBufToDocument err=0 [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1132 (046C) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1135 (046F) [08:47:17]Malloc new data [08:47:17]Processing tag 1201 (04B1) [08:47:17]Malloc new data [08:47:17]Processing tag 1136 (0470) [08:47:17]Malloc new data [08:47:17]Processing tag 1138 (0472) [08:47:17]Malloc new data [08:47:17]Processing tag 1024 (0400) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1006 (03EE) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1010 (03F2) [08:47:17]Malloc new data [08:47:17]Processing tag 1011 (03F3) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1006 (03EE) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1010 (03F2) [08:47:17]Malloc new data [08:47:17]Processing tag 1011 (03F3) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1007 (03EF) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1014 (03F6) [08:47:17]Malloc new data [08:47:17]Processing tag 1015 (03F7) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1007 (03EF) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1014 (03F6) [08:47:17]Malloc new data [08:47:17]Processing tag 1015 (03F7) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1007 (03EF) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1014 (03F6) [08:47:17]Malloc new data [08:47:17]Processing tag 1015 (03F7) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1007 (03EF) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1014 (03F6) [08:47:17]Malloc new data [08:47:17]Processing tag 1015 (03F7) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1007 (03EF) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1014 (03F6) [08:47:17]Malloc new data [08:47:17]Processing tag 1015 (03F7) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1007 (03EF) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1014 (03F6) [08:47:17]Malloc new data [08:47:17]Processing tag 1015 (03F7) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1007 (03EF) [08:47:17]Load OK [08:47:17]SetTLVBufToDocument [08:47:17]Processing tag 1014 (03F6) [08:47:17]Malloc new data [08:47:17]Processing tag 1015 (03F7) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]SetTLVBufToDocument err=0 [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Processing tag 1133 (046D) [08:47:17]Malloc new data [08:47:17]SetTLVBufToDocument err=0 [08:47:17]SetTLVBufToDocument err=0 [08:47:17]Malloc new data [08:47:17]SAM_PROTO_GetFMData [08:47:17]wFMCommunicate request_size=4 [08:47:17]MH_SAM_APDU [08:47:17]CAPDU: 80 13 03 00 [08:47:17]Write to MH i2c: E2 08 00 A1 0A 80 13 03 00 00 00 00 00 2A [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:47:17]Read from MH i2c: E2 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 FD 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 FD 00 A1 0A 00 C5 04 85 04 C1 04 6E 04 04 00 DA F6 00 00 69 04 A1 00 6F 04 04 00 7A F4 00 00 B1 04 04 00 15 1E D2 76 70 04 04 00 BA 94 0E 66 72 04 04 00 5B 89 C3 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 0E A9 9E 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 0F 25 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 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 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 84 3C 5F EF 03 09 90 00 E4 [08:47:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 DA F6 00 00 69 04 A1 00 6F 04 04 00 7A F4 00 00 B1 04 04 00 15 1E D2 76 70 04 04 00 BA 94 0E 66 72 04 04 00 5B 89 C3 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 0E A9 9E 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 0F 25 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 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 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 84 3C 5F EF 03 09 90 00 [08:47:17]wFMCommunicate OK [08:47:17]wFMCommunicate request_size=4 [08:47:17]MH_SAM_APDU [08:47:17]CAPDU: 80 17 00 00 [08:47:17]Write to MH i2c: E2 08 00 A2 0A 80 17 00 00 00 00 00 00 2C [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 FD 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 FD 00 A2 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 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 52 [08:47:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7A EF 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:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 17 00 00 [08:47:18]Write to MH i2c: E2 08 00 A3 0A 80 17 00 00 00 00 00 00 2D [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 FD 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 FD 00 A3 0A 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 3F [08:47:18]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:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 17 00 00 [08:47:18]Write to MH i2c: E2 08 00 A4 0A 80 17 00 00 00 00 00 00 2E [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 FD 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 FD 00 A4 0A 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 BA [08:47:19]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 OFD Sender: No OFD packet to send [08:47:19]09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 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:47:19]wFMCommunicate OK [08:47:19]wFMCommunicate request_size=4 [08:47:19]MH_SAM_APDU [08:47:19]CAPDU: 80 17 00 00 [08:47:19]Write to MH i2c: E2 08 00 A5 0A 80 17 00 00 00 00 00 00 2F [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 E2 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 E2 00 A5 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0D [08:47:19]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:47:19]wFMCommunicate OK [08:47:19]SAM_PROTO_GetFMData done [08:47:19]FM_GetFMData:85 04 C1 04 6E 04 04 00 DA F6 00 00 69 04 A1 00 6F 04 04 00 7A F4 00 00 B1 04 04 00 15 1E D2 76 70 04 04 00 BA 94 0E 66 72 04 04 00 5B 89 C3 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 0E A9 9E 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 0F 25 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 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 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 84 3C 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 7A EF 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:47:20]oper:6F 04 04 00 7A F4 00 00 B1 04 04 00 15 1E D2 76 70 04 04 00 BA 94 0E 66 72 04 04 00 5B 89 C3 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 0E A9 9E 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 0F 25 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:47:20]total:15 1E D2 76 [08:47:20]Malloc new data [08:47:20]oper:6F 04 04 00 60 02 00 00 B1 04 04 00 E4 BA 80 03 70 04 04 00 60 5F 65 03 72 04 03 00 84 5B 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 84 3C 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 7A EF 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:47:20]total:E4 BA 80 03 [08:47:20]Malloc new data [08:47:20]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:47:20]total: [08:47:20]Malloc new data [08:47:20]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:47:20]total: [08:47:20]Malloc new data [08:47:20]KKMPrepareXReportFMData err=0 [08:47:20]Х отчет ИНН: 02508201610067 Кассир: Сиксай К. 04.06.2024 08:47 Смена: 266 РНМ: 0000000000092737 ЗНМ: 0300000031 СНО: Общий режим Всего чеков: 27 ИТОГИ ПРИХОД Чеков: 27 Общий итог: 9250.28 Итого наличными: 5809.00 Итого безнал.: 3441.28 НДС 0% : 0.00 НДС 12% : 982.48 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 81.86 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 5809.00 НС Приход: 19934817.49 НС Возвр.Прихода: 587681.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875074 [08:47:20]StoreToDocumentArchive [08:47:20]MH_GetDate [08:47:20]Write to MH i2c: F0 00 00 A6 0A 9F [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: F0 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: F0 09 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: F0 09 00 A6 0A 00 9B D4 5E 66 6A 96 4A 66 8B [08:47:21]shift 266 fd 1717490843 [08:47:21]Create dir for shift 0266 [08:47:21]save to /storage/0266/doc_1717490843 [08:47:21]save last doc name /storage/0266/doc_1717490843 to /storage/kkm_last_doc_name [08:47:21]save OK [08:47:21]Clear old archive folders... [08:47:21]NVStorageSaveData kkm_last_timestamp [08:47:21]File name is /storage/kkm_last_timestamp [08:47:21]Write 4 bytes [08:47:21]NVStorageSaveData done [08:47:21]ExternCall_PrintAddStr [08:47:21]wPrintStart [08:47:21]Write to MH i2c: 01 00 00 A7 0A B1 [08:47:21]Write i2c OK [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: 01 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: 01 07 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: 01 07 00 A7 0A 00 00 00 00 00 FF 0F C6 [08:47:21]RasterBufferAndPrint [08:47:21]line Х отчет [08:47:21]line ИНН: 02508201610067 [08:47:21]line Кассир: Сиксай К. [08:47:21]line 04.06.2024 08:47 [08:47:21]line Смена: 266 [08:47:21]line РНМ: 0000000000092737 [08:47:21]line ЗНМ: 0300000031 [08:47:21]line СНО: Общий режим [08:47:21]line Всего чеков: 27 [08:47:21]line ИТОГИ ПРИХОД [08:47:21]line Чеков: 27 [08:47:21]line Общий итог: 9250.28 [08:47:21]line Итого наличными: 5809.00 [08:47:21]line Итого безнал.: 3441.28 [08:47:21]line НДС 0% : 0.00 [08:47:21]line НДС 12% : 982.48 [08:47:21]line НСП 0% : 0.00 [08:47:21]line НСП 1,50% : 0.00 [08:47:21]line НСП 0,50% : 0.00 [08:47:21]line НСП 5% : 0.00 [08:47:21]line НСП 3% : 0.00 [08:47:21]line НСП 2% : 0.00 [08:47:21]line НСП 1% : 81.86 [08:47:21]line ИТОГИ ВОЗВРАТ ПРИХОДА [08:47:21]line Чеков: 0 [08:47:21]line Общий итог: 0.00 [08:47:21]line Итого наличными: 0.00 [08:47:21]line Итого безнал.: 0.00 [08:47:21]line НДС 0% : 0.00 [08:47:21]line НДС 12% : 0.00 [08:47:21]line НСП 0% : 0.00 [08:47:21]line НСП 1,50% : 0.00 [08:47:21]line НСП 0,50% : 0.00 [08:47:21]line НСП 5% : 0.00 [08:47:21]line НСП 3% : 0.00 [08:47:21]line НСП 2% : 0.00 [08:47:21]line НСП 1% : 0.00 [08:47:21]line ИТОГИ РАСХОД [08:47:21]line Чеков: 0 [08:47:21]line Общий итог: 0.00 [08:47:21]line Итого наличными: 0.00 [08:47:21]line Итого безнал.: 0.00 [08:47:21]line НДС 0% : 0.00 [08:47:21]line НДС 12% : 0.00 [08:47:21]line НСП 0% : 0.00 [08:47:21]line НСП 1,50% : 0.00 [08:47:21]line НСП 0,50% : 0.00 [08:47:21]line НСП 5% : 0.00 [08:47:21]line НСП 3% : 0.00 [08:47:21]line НСП 2% : 0.00 [08:47:21]line НСП 1% : 0.00 [08:47:21]line ИТОГИ ВОЗВРАТ РАСХОДА [08:47:21]line Чеков: 0 [08:47:21]line Общий итог: 0.00 [08:47:21]line Итого наличными: 0.00 [08:47:21]line Итого безнал.: 0.00 [08:47:21]line НДС 0% : 0.00 [08:47:21]line НДС 12% : 0.00 [08:47:21]line НСП 0% : 0.00 [08:47:21]line НСП 1,50% : 0.00 [08:47:21]line НСП 0,50% : 0.00 [08:47:21]line НСП 5% : 0.00 [08:47:21]line НСП 3% : 0.00 [08:47:21]line НСП 2% : 0.00 [08:47:21]line НСП 1% : 0.00 [08:47:21]line Сумма внесений: 0.00 [08:47:21]line Сумма выплат: 0.00 [08:47:21]line Нал. в кассе: 5809.00 [08:47:21]line НС Приход: 19934817.49 [08:47:21]line НС Возвр.Прихода: 587681.00 [08:47:21]line НС Расход: 0.00 [08:47:21]line НС Возвр.Расхода: 0.00 [08:47:21]line ФМ: 0000000000875074 [08:47:21]written 0, free lines is 4095 [08:47:21]Write to MH i2c: 01 00 00 F2 0A FC [08:47:21]Write i2c OK [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: 01 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: 01 07 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 99 0A A6 [08:47:21]RasterBufferAndPrint [08:47:21]line [08:47:21]line [08:47:21]line [08:47:21]line [08:47:21]line [08:47:21]written 0, free lines is 2743 [08:47:21]MH_Cut [08:47:21]Write to MH i2c: D1 01 00 F9 0A 01 D5 [08:47:21]Write i2c OK [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: D1 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: D1 01 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: D1 01 00 F9 0A 00 D4 [08:47:21]Write to MH i2c: 01 00 00 FA 0A 04 [08:47:21]Write i2c OK [08:47:21]MH_I2C_Read... [08:47:22]*** Cut start [08:47:22]*** Partial cut [08:47:22]*** CUTSNS_PIN = 1 [08:47:22]*** CUTSNS_PIN = 0 [08:47:23]*** Brake cut motor [08:47:23]Read from MH i2c: 01 [08:47:23]MH_I2C_Read... [08:47:23]*** Stop cut motor [08:47:23]*** Cut end [08:47:23]Read from MH i2c: 01 07 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 FF 0F 19 [08:47:23]process_action x_report done [08:47:23]requested_data is exist [08:47:23]produce_requested_data [08:47:23]requested_item fd.num is exist - process it [08:47:23]SAM_PROTO_GetFieldsCounters [08:47:23]wFMCommunicate request_size=4 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 13 00 00 [08:47:23]Write to MH i2c: E2 08 00 FB 0A 80 13 00 00 00 00 00 00 81 [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 62 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 62 00 FB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 2B [08:47: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 C6 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:23]wFMCommunicate OK [08:47:23]SAM_PROTO_GetFieldsCounters done [08:47:23]requested_item shift.num is exist - process it [08:47:23]requested_item shift.opened is exist - process it [08:47:23]req_shift_opened [08:47:23]FM_GetShiftState [08:47:23]SAM_PROTO_GetShiftState [08:47:23]wFMCommunicate request_size=4 [08:47:23]MH_SAM_APDU [08:47:23]CAPDU: 80 13 01 00 [08:47:23]Write to MH i2c: E2 08 00 FC 0A 80 13 01 00 00 00 00 00 83 [08:47:23]Write i2c OK [08:47:23]MH_I2C_Read... [08:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:23]Read from MH i2c: E2 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 0E 00 [08:47:23]MH_I2C_Read... [08:47:23]Read from MH i2c: E2 0E 00 FC 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 23 [08:47:23]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:47:23]wFMCommunicate OK [08:47:23]SAM_PROTO_GetShiftState done [08:47:23]FM_GetShiftState done [08:47:23]req_shift_opened done [08:47:23]requested_item shift.open_date is exist - process it [08:47:23]req_shift_open_date [08:47:23]req_shift_open_date done [08:47:23]produce_requested_data done [08:47:23]produce_requested_data return {"fd.num":63942,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:47:23]process_action_free x_report [08:47:23]json_value_free [08:47:23]json_value_free done [08:47:23]process_json_proto returns [08:47:23]Send response to host [08:47:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":63942,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:47:23]free response buf [08:47:23]execute_script done [08:47:23]execute_script returns [08:47:23]free content buf [08:47:23]Sock 7.Close socket [08:47:23]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:33]accept exits with 9 [08:54:33]New connection [08:54:33]New thread 3067055460 created [08:54:33]Thread 3066912100 joined [08:54:33]Waiting for new connection... [08:54:33] Sock 9.Parse request [08:54:33]Sock 9.Check first char [08:54:33]Sock 9.First char is OK [08:54:33]request: POST /json_proto HTTP/1.0 [08:54:33]Method: POST [08:54:33]URL: /json_proto [08:54:33]Method is POST - this is cgi request [08:54:33]url: /json_proto [08:54:33]query_string will be loaded in cgi processing [08:54:33]execute_cgi json_proto POST (null) [08:54:33]execute_cgi path=json_proto method=POST [08:54:33]POST find Content-Length [08:54:33]Host: 172.17.60.69:8080 [08:54:33]Content-Length: 820 [08:54:33]Content-Type: application/json [08:54:33] [08:54:33]POST finish read [08:54:33]Found Content-Length = 820 [08:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73505", "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 }]} ], "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" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:33]execute_script... [08:54: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)73505", "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 }]} ], "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" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:33]POST & json_proto [08:54:33]process_json_proto [08:54:33]json parsed OK: [08:54:33]protocol is kg_v1.0 [08:54:33]action value=close_receipt [08:54:33]process_action close_receipt [08:54:33]cmd_close_receipt [08:54:33]MH_GetDate [08:54:33]Write to MH i2c: F0 00 00 FD 0A F6 [08:54:33]Write i2c OK [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: F0 [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: F0 09 00 [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: F0 09 00 FD 0A 00 4B D6 5E 66 6A 96 4A 66 94 [08:54:33]GetLastDocTimeStamp 1717490835 [08:54:33]current date 1717491275 [08:54:33]FM_GetShiftState [08:54:33]SAM_PROTO_GetShiftState [08:54:33]wFMCommunicate request_size=4 [08:54:33]MH_SAM_APDU [08:54:33]CAPDU: 80 13 01 00 [08:54:33]Write to MH i2c: E2 08 00 FE 0A 80 13 01 00 00 00 00 00 85 [08:54:33]Write i2c OK [08:54:33]MH_I2C_Read... [08:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:33]Read from MH i2c: E2 [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: E2 0E 00 [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: E2 0E 00 FE 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 25 [08:54:33]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:54:33]wFMCommunicate OK [08:54:33]SAM_PROTO_GetShiftState done [08:54:33]FM_GetShiftState done [08:54:33]opened in 1717459574 [08:54:33]opened+sec_in_day 1717545974 [08:54:33]quantity*price = 13800 [08:54:33]sum+1 = 13801 [08:54:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 28 04.06.2024 08:54 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63943 ФПД: 206650113883397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085435&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63943&fm=206650113883397&tin=02508201610067®Number=0000000000092737&sum=13800 0 [08:54:34]StoreToDocumentArchive [08:54:34]shift 374 fd 63943 [08:54:34]save to /storage/0374/doc_00063943 [08:54:34]save last doc name /storage/0374/doc_00063943 to /storage/kkm_last_doc_name [08:54:34]save OK [08:54:34]Clear old archive folders... [08:54:34]Remove dir /storage/0266 [08:54:34]opendir ok [08:54:34]file . [08:54:34]file .. [08:54:34]file doc_1717490843 [08:54:34]remove file /storage/0266/doc_1717490843 [08:54:34]remove dir /storage/0266 [08:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:54:34]tlvbuf is 012BA390 [08:54:34]SAM_PROTO_ClearQueue [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 09 00 00 [08:54:34]Write to MH i2c: E2 08 00 0B 0B 80 09 00 00 00 00 00 00 88 [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 0B 0B 00 90 00 8A [08:54:34]RAPDU: 90 00 [08:54:34]wFMCommunicate OK [08:54:34]SAM_PROTO_ClearQueue done [08:54:34]KKMCreateOFDPacket [08:54:34]OFDProtocolAddRootSTLVToBuf [08:54:34]FM_MakeSignedData [08:54:34]FM_MakeSignedData [08:54:34]SAM_PROTO_SignData [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 0D 01 02 [08:54:34]Write to MH i2c: E2 08 00 0C 0B 80 0D 01 02 00 00 00 00 90 [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [08:54:34]RAPDU: 90 00 [08:54:34]wFMCommunicate OK [08:54:34]wFMCommunicate request_size=255 [08:54:34]MH_SAM_APDU [08:54:34]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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4B D6 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [08:54:34]Write to MH i2c: E2 02 01 0D 0B 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4B D6 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [08:54:35]RAPDU: 90 00 [08:54:35]wFMCommunicate OK [08:54:35]wFMCommunicate request_size=31 [08:54:35]MH_SAM_APDU [08:54:35]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 C7 F9 00 00 35 04 06 00 BB F2 7A A1 7D 05 [08:54:35]Write to MH i2c: E2 22 00 0E 0B 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 C7 F9 00 00 35 04 06 00 BB F2 7A A1 7D 05 00 00 C7 [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [08:54:35]RAPDU: 90 00 [08:54:35]wFMCommunicate OK [08:54:35]wFMCommunicate request_size=4 [08:54:35]MH_SAM_APDU [08:54:35]CAPDU: 80 0D 03 02 [08:54:35]Write to MH i2c: E2 08 00 0F 0B 80 0D 03 02 00 00 00 00 95 [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 0B 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 0B 00 0F 0B 00 FC E0 B0 4B 44 30 5A F7 90 00 32 [08:54:35]RAPDU: FC E0 B0 4B 44 30 5A F7 90 00 [08:54:35]wFMCommunicate OK [08:54:35]SAM_PROTO_SignData done [08:54:35]FM_MakeSignedData done [08:54:35]CreateOFDProtocolMessage [08:54:35]wFMCommunicate request_size=4 [08:54:35]MH_SAM_APDU [08:54:35]CAPDU: 80 11 00 00 [08:54:35]Write to MH i2c: E2 08 00 10 0B 80 11 00 00 00 00 00 00 95 [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:35]Read from MH i2c: E2 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 17 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: E2 17 00 10 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E7 [08:54: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:54:35]wFMCommunicate OK [08:54:35]CreateOFDProtocolMessage done [08:54:35]OFDSenderStorePacket 63943 [08:54:35]StoreOFDPacket docnum=63943 [08:54: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 24 01 00 00 CA 47 1C 01 0F 2D 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4B D6 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 BB F2 7A A1 7D 05 FC E0 B0 4B 44 30 5A F7 [08:54:35]CheckFolder [08:54:35]dirname=/storage/ofd_packets [08:54:35]CheckFolder done [08:54:35]ProducePacketName [08:54:35]name=ofd_packets/00063943 [08:54:35]NVStorageSaveData ofd_packets/00063943 [08:54:35]File name is /storage/ofd_packets/00063943 [08:54:35]Write 322 bytes [08:54:35]NVStorageSaveData done [08:54:35]OFDSenderStorePacket done [08:54:35]KKMCreateOFDPacket done [08:54:35]NVStorageSaveData kkm_last_timestamp [08:54:35]File name is /storage/kkm_last_timestamp [08:54:35]Write 4 bytes [08:54:35]NVStorageSaveData done [08:54:35]ExternCall_PrintAddStr [08:54:35]wPrintStart [08:54:35]Write to MH i2c: 01 00 00 11 0B 1C [08:54:35]Write i2c OK [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: 01 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: 01 07 00 [08:54:35]MH_I2C_Read... [08:54:35]Read from MH i2c: 01 07 00 11 0B 00 00 00 00 00 FF 0F 31 [08:54:35]RasterBufferAndPrint [08:54:35]line Счет N : (3)73505 [08:54:35]line ИНН: 02508201610067 [08:54:35]line Контрольно-Кассовый Чек [08:54:35]line ПРОДАЖА [08:54:35]line Товар: 4640030091607 [08:54:35]line Сигареты ESSE Exchange [08:54:35]line 1.000 * 138.00 [08:54:35]line = 138.00 [08:54:35]line НДС 12% НСП 1% [08:54:35]line > о реализуемом товаре [08:54:35]line ИТОГО: 138.00 [08:54:35]line НСП 1% : 1.22 [08:54:35]line НДС 12% : 14.65 [08:54:35]line Наличными: 0.00 [08:54:35]line Безнал.: 138.00 [08:54:35]line Место: АЗС № 117 "Партнер Нефть" [08:54:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:54:35]line СНО: Общий режим [08:54:35]line Чек 28 04.06.2024 08:54 [08:54:35]line Смена: 374 ФФД: 1.0 [08:54:35]line ЗНМ: 0300000031 [08:54:35]line РНМ: 0000000000092737 [08:54:35]line Версия ККМ: 001 [08:54:35]line Платежная система: АКБ Кыргызстан [08:54:35]line ФМ: 0000000000875074 [08:54:35]line ФД: 63943 [08:54:35]line ФПД: 206650113883397 [08:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085435&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63943&fm=206650113883397&tin=02508201610067®Number=0000000000092737&sum=13800 [08:54:35]line 0 [08:54:35]OFD Sender: Processing packet 63943 [packets to send 14, broken 13] [08:54:35]ProducePacketName [08:54:35]name=ofd_packets/00063943 [08:54:35]OFD Sender: To server: pG, [08:54:35]CommunicateWithHost lk.salyk.kg:30040 [08:54:35]ConnectInit lk.salyk.kg [08:54:35]written 0, free lines is 4095 [08:54:35]Connected sock=10 [08:54: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 24 01 00 00 CA 47 1C 01 0F 2D 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 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4B D6 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 BB F2 7A A1 7D 05 FC E0 B0 4B 44 30 5A F7 [08:54: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 4B 50 47 00 EB 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 C7 F9 00 00 F4 03 04 00 1A 82 5E 66 B6 04 01 00 00 B7 38 0D B5 5C 54 74 21 [08:54:36]CommunicateWithHost err = 0 [08:54:36]CheckOFDResponse [08:54:36]1017 (14) - 77093643461234 [08:54:36]1041 (16) - 0000000000875074 [08:54:36]1040 (4) - 63943 [08:54:36]1012 (4) - 04.06.2024 02:55 [08:54:36]1206 (1) - 0 [08:54:36]OFD Sender: Remove packet 63943 [08:54:36]ProducePacketName [08:54:36]name=ofd_packets/00063943 [08:54:36]NVStorageDeleteData [08:54:36]Write to MH i2c: 01 00 00 3B 0B 46 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: 01 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: 01 07 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 E3 0C 3C [08:54:36]RasterBufferAndPrint [08:54:36]line [08:54:36]line [08:54:36]line [08:54:36]line [08:54:36]line [08:54:36]written 0, free lines is 3305 [08:54:36]MH_Cut [08:54:36]Write to MH i2c: D1 01 00 42 0B 01 1F [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: D1 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: D1 01 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: D1 01 00 42 0B 00 1E [08:54:36]Write to MH i2c: 01 00 00 43 0B 4E [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]OFD Sender: No OFD packet to send [08:54:36]*** Cut start [08:54:36]*** Partial cut [08:54:36]*** CUTSNS_PIN = 1 [08:54:37]*** CUTSNS_PIN = 0 [08:54:37]*** Brake cut motor [08:54:37]Read from MH i2c: 01 [08:54:37]MH_I2C_Read... [08:54:37]*** Stop cut motor [08:54:37]*** Cut end [08:54:37]Read from MH i2c: 01 07 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 07 00 43 0B 00 00 00 00 00 FF 0F 63 [08:54:37]process_action close_receipt done [08:54:37]requested_data is exist [08:54:37]produce_requested_data [08:54:37]requested_item fm.sn is exist - process it [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 11 00 00 [08:54:37]Write to MH i2c: E2 08 00 44 0B 80 11 00 00 00 00 00 00 C9 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 17 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 17 00 44 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1B [08:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [08:54:37]wFMCommunicate OK [08:54:37]requested_item fd.num is exist - process it [08:54:37]SAM_PROTO_GetFieldsCounters [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 13 00 00 [08:54:37]Write to MH i2c: E2 08 00 45 0B 80 13 00 00 00 00 00 00 CC [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 62 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 62 00 45 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 7A [08:54:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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:54:37]wFMCommunicate OK [08:54:37]SAM_PROTO_GetFieldsCounters done [08:54:37]requested_item shift.num is exist - process it [08:54:37]requested_item shift.opened is exist - process it [08:54:37]req_shift_opened [08:54:37]FM_GetShiftState [08:54:37]SAM_PROTO_GetShiftState [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 13 01 00 [08:54:37]Write to MH i2c: E2 08 00 46 0B 80 13 01 00 00 00 00 00 CE [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 0E 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 0E 00 46 0B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6E [08:54:37]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:54:37]wFMCommunicate OK [08:54:37]SAM_PROTO_GetShiftState done [08:54:37]FM_GetShiftState done [08:54:37]req_shift_opened done [08:54:37]requested_item shift.open_date is exist - process it [08:54:37]req_shift_open_date [08:54:37]req_shift_open_date done [08:54:37]produce_requested_data done [08:54:37]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63943,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:54:37]process_action_free close_receipt [08:54:37]json_value_free [08:54:37]json_value_free done [08:54:37]process_json_proto returns [08:54:37]Send response to host [08:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63943,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:54:37]free response buf [08:54:37]execute_script done [08:54:37]execute_script returns [08:54:37]free content buf [08:54:37]Sock 9.Close socket [08:54:37]Sock 9.Thread stoped [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:23]accept exits with 7 [08:55:23]New connection [08:55:23]New thread 3066912100 created [08:55:23]Thread 3067055460 joined [08:55:23]Waiting for new connection... [08:55:23] Sock 7.Parse request [08:55:23]Sock 7.Check first char [08:55:23]Sock 7.First char is OK [08:55:23]request: POST /json_proto HTTP/1.0 [08:55:23]Method: POST [08:55:23]URL: /json_proto [08:55:23]Method is POST - this is cgi request [08:55:23]url: /json_proto [08:55:23]query_string will be loaded in cgi processing [08:55:23]execute_cgi json_proto POST (null) [08:55:23]execute_cgi path=json_proto method=POST [08:55:23]POST find Content-Length [08:55:23]Host: 172.17.60.69:8080 [08:55:23]Content-Length: 643 [08:55:23]Content-Type: application/json [08:55:23] [08:55:23]POST finish read [08:55:23]Found Content-Length = 643 [08:55:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73506", "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" ] } } [08:55:23]execute_script... [08:55:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73506", "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" ] } } [08:55:23]POST & json_proto [08:55:23]process_json_proto [08:55:23]json parsed OK: [08:55:23]protocol is kg_v1.0 [08:55:23]action value=close_receipt [08:55:23]process_action close_receipt [08:55:23]cmd_close_receipt [08:55:23]MH_GetDate [08:55:23]Write to MH i2c: F0 00 00 47 0B 41 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: F0 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: F0 09 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: F0 09 00 47 0B 00 7D D6 5E 66 6A 96 4A 66 11 [08:55:23]GetLastDocTimeStamp 1717491275 [08:55:23]current date 1717491325 [08:55:23]FM_GetShiftState [08:55:23]SAM_PROTO_GetShiftState [08:55:23]wFMCommunicate request_size=4 [08:55:23]MH_SAM_APDU [08:55:23]CAPDU: 80 13 01 00 [08:55:23]Write to MH i2c: E2 08 00 48 0B 80 13 01 00 00 00 00 00 D0 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:23]Read from MH i2c: E2 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 0E 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: E2 0E 00 48 0B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 70 [08:55:23]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:55:23]wFMCommunicate OK [08:55:23]SAM_PROTO_GetShiftState done [08:55:23]FM_GetShiftState done [08:55:23]opened in 1717459574 [08:55:23]opened+sec_in_day 1717545974 [08:55:23]quantity*price = 11500 [08:55:23]sum+1 = 11501 [08:55:23]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 СНО: Общий режим Чек 29 04.06.2024 08:55 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63944 ФПД: 62447434534430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085525&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63944&fm=62447434534430&tin=02508201610067®Number=0000000000092737&sum=11500 0 [08:55:24]StoreToDocumentArchive [08:55:24]shift 374 fd 63944 [08:55:24]save to /storage/0374/doc_00063944 [08:55:24]save last doc name /storage/0374/doc_00063944 to /storage/kkm_last_doc_name [08:55:24]save OK [08:55:24]Clear old archive folders... [08:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:55:24]tlvbuf is 012A8110 [08:55:24]SAM_PROTO_ClearQueue [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 09 00 00 [08:55:24]Write to MH i2c: E2 08 00 55 0B 80 09 00 00 00 00 00 00 D2 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [08:55:24]RAPDU: 90 00 [08:55:24]wFMCommunicate OK [08:55:24]SAM_PROTO_ClearQueue done [08:55:24]KKMCreateOFDPacket [08:55:24]OFDProtocolAddRootSTLVToBuf [08:55:24]FM_MakeSignedData [08:55:24]FM_MakeSignedData [08:55:24]SAM_PROTO_SignData [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 0D 01 02 [08:55:24]Write to MH i2c: E2 08 00 56 0B 80 0D 01 02 00 00 00 00 DA [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [08:55:24]RAPDU: 90 00 [08:55:24]wFMCommunicate OK [08:55:24]wFMCommunicate request_size=255 [08:55:24]MH_SAM_APDU [08:55:24]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 1D 00 00 00 F4 03 04 00 7D D6 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [08:55:24]Write to MH i2c: E2 02 01 57 0B 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 1D 00 00 00 F4 03 04 00 7D D6 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 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 C8 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:25]Read from MH i2c: E2 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 03 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 03 00 57 0B 00 90 00 D6 [08:55:25]RAPDU: 90 00 [08:55:25]wFMCommunicate OK [08:55:25]wFMCommunicate request_size=39 [08:55:25]MH_SAM_APDU [08:55: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 C8 F9 00 00 35 04 06 00 38 CB AD 27 0E 1E [08:55:25]Write to MH i2c: E2 2A 00 58 0B 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 C8 F9 00 00 35 04 06 00 38 CB AD 27 0E 1E 00 00 5B [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:25]Read from MH i2c: E2 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 03 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 03 00 58 0B 00 90 00 D7 [08:55:25]RAPDU: 90 00 [08:55:25]wFMCommunicate OK [08:55:25]wFMCommunicate request_size=4 [08:55:25]MH_SAM_APDU [08:55:25]CAPDU: 80 0D 03 02 [08:55:25]Write to MH i2c: E2 08 00 59 0B 80 0D 03 02 00 00 00 00 DF [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:25]Read from MH i2c: E2 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 0B 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 0B 00 59 0B 00 BD E7 7C AF 44 74 EA C7 90 00 18 [08:55:25]RAPDU: BD E7 7C AF 44 74 EA C7 90 00 [08:55:25]wFMCommunicate OK [08:55:25]SAM_PROTO_SignData done [08:55:25]FM_MakeSignedData done [08:55:25]CreateOFDProtocolMessage [08:55:25]wFMCommunicate request_size=4 [08:55:25]MH_SAM_APDU [08:55:25]CAPDU: 80 11 00 00 [08:55:25]Write to MH i2c: E2 08 00 5A 0B 80 11 00 00 00 00 00 00 DF [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:25]Read from MH i2c: E2 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 17 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: E2 17 00 5A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 31 [08:55: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:55:25]wFMCommunicate OK [08:55:25]CreateOFDProtocolMessage done [08:55:25]OFDSenderStorePacket 63944 [08:55:25]StoreOFDPacket docnum=63944 [08:55: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 E3 AC 24 01 0C 11 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 1D 00 00 00 F4 03 04 00 7D D6 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 38 CB AD 27 0E 1E BD E7 7C AF 44 74 EA C7 [08:55:25]CheckFolder [08:55:25]dirname=/storage/ofd_packets [08:55:25]CheckFolder done [08:55:25]ProducePacketName [08:55:25]name=ofd_packets/00063944 [08:55:25]NVStorageSaveData ofd_packets/00063944 [08:55:25]File name is /storage/ofd_packets/00063944 [08:55:25]Write 330 bytes [08:55:25]NVStorageSaveData done [08:55:25]OFDSenderStorePacket done [08:55:25]KKMCreateOFDPacket done [08:55:25]NVStorageSaveData kkm_last_timestamp [08:55:25]File name is /storage/kkm_last_timestamp [08:55:25]Write 4 bytes [08:55:25]NVStorageSaveData done [08:55:25]ExternCall_PrintAddStr [08:55:25]wPrintStart [08:55:25]Write to MH i2c: 01 00 00 5B 0B 66 [08:55:25]Write i2c OK [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: 01 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: 01 07 00 [08:55:25]MH_I2C_Read... [08:55:25]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 FF 0F 7B [08:55:25]RasterBufferAndPrint [08:55:25]line Счет N : (3)73506 [08:55:25]line ИНН: 02508201610067 [08:55:25]line Контрольно-Кассовый Чек [08:55:25]line ПРОДАЖА [08:55:25]line Товар: 2000036210013 [08:55:25]line Кофе Капучино (GABB TRADE) [08:55:25]line 1.000 * 115.00 [08:55:25]line = 115.00 [08:55:25]line НДС 12% НСП 1% [08:55:25]line > о реализуемом товаре [08:55:25]line ИТОГО: 115.00 [08:55:25]line НСП 1% : 1.02 [08:55:25]line НДС 12% : 12.21 [08:55:25]line Наличными: 115.00 [08:55:25]line Безнал.: 0.00 [08:55:25]line Место: АЗС № 117 "Партнер Нефть" [08:55:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:55:25]line СНО: Общий режим [08:55:25]line Чек 29 04.06.2024 08:55 [08:55:25]line Смена: 374 ФФД: 1.0 [08:55:25]line ЗНМ: 0300000031 [08:55:25]line РНМ: 0000000000092737 [08:55:25]line Версия ККМ: 001 [08:55:25]line ФМ: 0000000000875074 [08:55:25]line ФД: 63944 [08:55:25]line ФПД: 62447434534430 [08:55:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085525&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63944&fm=62447434534430&tin=02508201610067®Number=0000000000092737&sum=11500 [08:55:25]line 0 [08:55:25]OFD Sender: Processing packet 63944 [packets to send 14, broken 13] [08:55:25]ProducePacketName [08:55:25]name=ofd_packets/00063944 [08:55:25]OFD Sender: To server: pG, [08:55:25]CommunicateWithHost lk.salyk.kg:30040 [08:55:25]ConnectInit lk.salyk.kg [08:55:25]written 0, free lines is 4095 [08:55:25]Connected sock=10 [08:55: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 2C 01 00 00 E3 AC 24 01 0C 11 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 1D 00 00 00 F4 03 04 00 7D D6 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 38 CB AD 27 0E 1E BD E7 7C AF 44 74 EA C7 [08:55: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 83 29 47 00 33 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C8 F9 00 00 F4 03 04 00 4C 82 5E 66 B6 04 01 00 00 CE 01 7E 7B BD AA 21 31 [08:55:26]CommunicateWithHost err = 0 [08:55:26]CheckOFDResponse [08:55:26]1017 (14) - 77093643461234 [08:55:26]1041 (16) - 0000000000875074 [08:55:26]1040 (4) - 63944 [08:55:26]1012 (4) - 04.06.2024 02:56 [08:55:26]1206 (1) - 0 [08:55:26]OFD Sender: Remove packet 63944 [08:55:26]ProducePacketName [08:55:26]name=ofd_packets/00063944 [08:55:26]NVStorageDeleteData [08:55:26]Write to MH i2c: 01 00 00 83 0B 8E [08:55:26]Write i2c OK [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: 01 [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: 01 07 00 [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: 01 07 00 83 0B 00 00 00 00 00 00 0D A2 [08:55:26]RasterBufferAndPrint [08:55:26]line [08:55:26]line [08:55:26]line [08:55:26]line [08:55:26]line [08:55:26]written 0, free lines is 3334 [08:55:26]MH_Cut [08:55:26]Write to MH i2c: D1 01 00 8A 0B 01 67 [08:55:26]Write i2c OK [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: D1 [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: D1 01 00 [08:55:26]MH_I2C_Read... [08:55:26]Read from MH i2c: D1 01 00 8A 0B 00 66 [08:55:26]Write to MH i2c: 01 00 00 8B 0B 96 [08:55:26]Write i2c OK [08:55:26]MH_I2C_Read... [08:55:26]OFD Sender: No OFD packet to send [08:55:26]*** Cut start [08:55:26]*** Partial cut [08:55:26]*** CUTSNS_PIN = 1 [08:55:26]*** CUTSNS_PIN = 0 [08:55:27]*** Brake cut motor [08:55:27]Read from MH i2c: 01 [08:55:27]MH_I2C_Read... [08:55:27]*** Stop cut motor [08:55:27]*** Cut end [08:55:27]Read from MH i2c: 01 07 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: 01 07 00 8B 0B 00 00 00 00 00 FF 0F AB [08:55:27]process_action close_receipt done [08:55:27]requested_data is exist [08:55:27]produce_requested_data [08:55:27]requested_item fm.sn is exist - process it [08:55:27]wFMCommunicate request_size=4 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 11 00 00 [08:55:27]Write to MH i2c: E2 08 00 8C 0B 80 11 00 00 00 00 00 00 11 [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:27]Read from MH i2c: E2 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 17 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 17 00 8C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 63 [08:55: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:55:27]wFMCommunicate OK [08:55:27]requested_item fd.num is exist - process it [08:55:27]SAM_PROTO_GetFieldsCounters [08:55:27]wFMCommunicate request_size=4 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 13 00 00 [08:55:27]Write to MH i2c: E2 08 00 8D 0B 80 13 00 00 00 00 00 00 14 [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:27]Read from MH i2c: E2 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 62 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 62 00 8D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 C6 [08:55: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 C8 F9 00 00 0E 04 04 00 76 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:55:27]wFMCommunicate OK [08:55:27]SAM_PROTO_GetFieldsCounters done [08:55:27]requested_item shift.num is exist - process it [08:55:27]requested_item shift.opened is exist - process it [08:55:27]req_shift_opened [08:55:27]FM_GetShiftState [08:55:27]SAM_PROTO_GetShiftState [08:55:27]wFMCommunicate request_size=4 [08:55:27]MH_SAM_APDU [08:55:27]CAPDU: 80 13 01 00 [08:55:27]Write to MH i2c: E2 08 00 8E 0B 80 13 01 00 00 00 00 00 16 [08:55:27]Write i2c OK [08:55:27]MH_I2C_Read... [08:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:27]Read from MH i2c: E2 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 0E 00 [08:55:27]MH_I2C_Read... [08:55:27]Read from MH i2c: E2 0E 00 8E 0B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B6 [08:55:27]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:55:27]wFMCommunicate OK [08:55:27]SAM_PROTO_GetShiftState done [08:55:27]FM_GetShiftState done [08:55:27]req_shift_opened done [08:55:27]requested_item shift.open_date is exist - process it [08:55:27]req_shift_open_date [08:55:27]req_shift_open_date done [08:55:27]produce_requested_data done [08:55:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63944,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:55:27]process_action_free close_receipt [08:55:27]json_value_free [08:55:27]json_value_free done [08:55:27]process_json_proto returns [08:55:27]Send response to host [08:55:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63944,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:55:27]free response buf [08:55:27]execute_script done [08:55:27]execute_script returns [08:55:27]free content buf [08:55:27]Sock 7.Close socket [08:55:27]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:06]accept exits with 9 [08:58:06]New connection [08:58:06]New thread 3067055460 created [08:58:06]Thread 3066912100 joined [08:58:06]Waiting for new connection... [08:58:06] Sock 9.Parse request [08:58:06]Sock 9.Check first char [08:58:06]Sock 9.First char is OK [08:58:06]request: POST /json_proto HTTP/1.0 [08:58:06]Method: POST [08:58:06]URL: /json_proto [08:58:06]Method is POST - this is cgi request [08:58:06]url: /json_proto [08:58:06]query_string will be loaded in cgi processing [08:58:06]execute_cgi json_proto POST (null) [08:58:06]execute_cgi path=json_proto method=POST [08:58:06]POST find Content-Length [08:58:06]Host: 172.17.60.69:8080 [08:58:06]Content-Length: 708 [08:58:06]Content-Type: application/json [08:58:06] [08:58:06]POST finish read [08:58:06]Found Content-Length = 708 [08:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73507", "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" ] } } [08:58:06]execute_script... [08:58:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73507", "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" ] } } [08:58:06]POST & json_proto [08:58:06]process_json_proto [08:58:06]json parsed OK: [08:58:06]protocol is kg_v1.0 [08:58:06]action value=close_receipt [08:58:06]process_action close_receipt [08:58:06]cmd_close_receipt [08:58:06]MH_GetDate [08:58:06]Write to MH i2c: F0 00 00 8F 0B 89 [08:58:06]Write i2c OK [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: F0 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: F0 09 00 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: F0 09 00 8F 0B 00 20 D7 5E 66 6A 96 4A 66 FD [08:58:06]GetLastDocTimeStamp 1717491325 [08:58:06]current date 1717491488 [08:58:06]FM_GetShiftState [08:58:06]SAM_PROTO_GetShiftState [08:58:06]wFMCommunicate request_size=4 [08:58:06]MH_SAM_APDU [08:58:06]CAPDU: 80 13 01 00 [08:58:06]Write to MH i2c: E2 08 00 90 0B 80 13 01 00 00 00 00 00 18 [08:58:06]Write i2c OK [08:58:06]MH_I2C_Read... [08:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:06]Read from MH i2c: E2 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 0E 00 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 0E 00 90 0B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B8 [08:58:06]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:58:06]wFMCommunicate OK [08:58:06]SAM_PROTO_GetShiftState done [08:58:06]FM_GetShiftState done [08:58:06]opened in 1717459574 [08:58:06]opened+sec_in_day 1717545974 [08:58:06]quantity*price = 9500 [08:58:06]sum+1 = 9501 [08:58:06]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 СНО: Общий режим Чек 30 04.06.2024 08:58 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63945 ФПД: 48435289428242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085808&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63945&fm=48435289428242&tin=02508201610067®Number=0000000000092737&sum=9500 0 [08:58:07]StoreToDocumentArchive [08:58:07]shift 374 fd 63945 [08:58:07]save to /storage/0374/doc_00063945 [08:58:07]save last doc name /storage/0374/doc_00063945 to /storage/kkm_last_doc_name [08:58:07]save OK [08:58:07]Clear old archive folders... [08:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=304 [08:58:07]tlvbuf is 012348A0 [08:58:07]SAM_PROTO_ClearQueue [08:58:07]wFMCommunicate request_size=4 [08:58:07]MH_SAM_APDU [08:58:07]CAPDU: 80 09 00 00 [08:58:07]Write to MH i2c: E2 08 00 9D 0B 80 09 00 00 00 00 00 00 1A [08:58:07]Write i2c OK [08:58:07]MH_I2C_Read... [08:58:07]Read from MH i2c: E2 [08:58:07]MH_I2C_Read... [08:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:07]Read from MH i2c: E2 03 00 [08:58:07]MH_I2C_Read... [08:58:07]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [08:58:07]RAPDU: 90 00 [08:58:07]wFMCommunicate OK [08:58:07]SAM_PROTO_ClearQueue done [08:58:07]KKMCreateOFDPacket [08:58:07]OFDProtocolAddRootSTLVToBuf [08:58:07]FM_MakeSignedData [08:58:07]FM_MakeSignedData [08:58:07]SAM_PROTO_SignData [08:58:07]wFMCommunicate request_size=4 [08:58:07]MH_SAM_APDU [08:58:07]CAPDU: 80 0D 01 02 [08:58:07]Write to MH i2c: E2 08 00 9E 0B 80 0D 01 02 00 00 00 00 22 [08:58:07]Write i2c OK [08:58:07]MH_I2C_Read... [08:58:07]Read from MH i2c: E2 [08:58:07]MH_I2C_Read... [08:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:07]Read from MH i2c: E2 03 00 [08:58:07]MH_I2C_Read... [08:58:07]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [08:58:07]RAPDU: 90 00 [08:58:07]wFMCommunicate OK [08:58:07]wFMCommunicate request_size=255 [08:58:07]MH_SAM_APDU [08:58:07]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 1E 00 00 00 F4 03 04 00 20 D7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 [08:58:07]Write to MH i2c: E2 02 01 9F 0B 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 1E 00 00 00 F4 03 04 00 20 D7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 00 00 B8 [08:58:07]Write i2c OK [08:58:07]MH_I2C_Read... [08:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:08]Read from MH i2c: E2 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: E2 03 00 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [08:58:08]RAPDU: 90 00 [08:58:08]wFMCommunicate OK [08:58:08]wFMCommunicate request_size=63 [08:58:08]MH_SAM_APDU [08:58:08]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 C9 F9 00 00 35 04 06 00 2C 0D 38 38 91 12 [08:58:08]Write to MH i2c: E2 42 00 A0 0B 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 C9 F9 00 00 35 04 06 00 2C 0D 38 38 91 12 00 00 7F [08:58:08]Write i2c OK [08:58:08]MH_I2C_Read... [08:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:08]Read from MH i2c: E2 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: E2 03 00 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [08:58:08]RAPDU: 90 00 [08:58:08]wFMCommunicate OK [08:58:08]wFMCommunicate request_size=4 [08:58:08]MH_SAM_APDU [08:58:08]CAPDU: 80 0D 03 02 [08:58:08]Write to MH i2c: E2 08 00 A1 0B 80 0D 03 02 00 00 00 00 27 [08:58:08]Write i2c OK [08:58:08]MH_I2C_Read... [08:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:08]Read from MH i2c: E2 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: E2 0B 00 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: E2 0B 00 A1 0B 00 AB 76 92 CD 89 76 EB DF 90 00 71 [08:58:08]RAPDU: AB 76 92 CD 89 76 EB DF 90 00 [08:58:08]wFMCommunicate OK [08:58:08]SAM_PROTO_SignData done [08:58:08]FM_MakeSignedData done [08:58:08]CreateOFDProtocolMessage [08:58:08]wFMCommunicate request_size=4 [08:58:08]MH_SAM_APDU [08:58:08]CAPDU: 80 11 00 00 [08:58:08]Write to MH i2c: E2 08 00 A2 0B 80 11 00 00 00 00 00 00 27 [08:58:08]Write i2c OK [08:58:08]MH_I2C_Read... [08:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:08]Read from MH i2c: E2 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: E2 17 00 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: E2 17 00 A2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 79 [08: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 [08:58:08]wFMCommunicate OK [08:58:08]CreateOFDProtocolMessage done [08:58:08]OFDSenderStorePacket 63945 [08:58:08]StoreOFDPacket docnum=63945 [08:58: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 44 01 00 00 4F B0 3C 01 92 9C 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 1E 00 00 00 F4 03 04 00 20 D7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 2C 0D 38 38 91 12 AB 76 92 CD 89 76 EB DF [08:58:08]CheckFolder [08:58:08]dirname=/storage/ofd_packets [08:58:08]CheckFolder done [08:58:08]ProducePacketName [08:58:08]name=ofd_packets/00063945 [08:58:08]NVStorageSaveData ofd_packets/00063945 [08:58:08]File name is /storage/ofd_packets/00063945 [08:58:08]Write 354 bytes [08:58:08]NVStorageSaveData done [08:58:08]OFDSenderStorePacket done [08:58:08]KKMCreateOFDPacket done [08:58:08]NVStorageSaveData kkm_last_timestamp [08:58:08]File name is /storage/kkm_last_timestamp [08:58:08]Write 4 bytes [08:58:08]NVStorageSaveData done [08:58:08]ExternCall_PrintAddStr [08:58:08]wPrintStart [08:58:08]Write to MH i2c: 01 00 00 A3 0B AE [08:58:08]Write i2c OK [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: 01 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: 01 07 00 [08:58:08]MH_I2C_Read... [08:58:08]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 FF 0F C3 [08:58:08]RasterBufferAndPrint [08:58:08]line Счет N : (3)73507 [08:58:08]line ИНН: 02508201610067 [08:58:08]line Контрольно-Кассовый Чек [08:58:08]line ПРОДАЖА [08:58:08]line Товар: 4700000480302 [08:58:08]line Напиток энерг Nitro манго-клуб 0.45 ж/б [08:58:08]line 1.000 * 95.00 [08:58:08]line = 95.00 [08:58:08]line НДС 12% НСП 1% [08:58:08]line > о реализуемом товаре [08:58:08]line ИТОГО: 95.00 [08:58:08]line НСП 1% : 0.84 [08:58:08]line НДС 12% : 10.09 [08:58:08]line Наличными: 95.00 [08:58:08]line Безнал.: 0.00 [08:58:08]line Место: АЗС № 117 "Партнер Нефть" [08:58:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [08:58:08]line СНО: Общий режим [08:58:08]line Чек 30 04.06.2024 08:58 [08:58:08]line Смена: 374 ФФД: 1.0 [08:58:08]line ЗНМ: 0300000031 [08:58:08]line РНМ: 0000000000092737 [08:58:08]line Версия ККМ: 001 [08:58:08]line ФМ: 0000000000875074 [08:58:08]line ФД: 63945 [08:58:08]line ФПД: 48435289428242 [08:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T085808&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63945&fm=48435289428242&tin=02508201610067®Number=0000000000092737&sum=9500 [08:58:08]line 0 [08:58:08]OFD Sender: Processing packet 63945 [packets to send 14, broken 13] [08:58:08]ProducePacketName [08:58:08]name=ofd_packets/00063945 [08:58:08]OFD Sender: To server: pG, [08:58:08]CommunicateWithHost lk.salyk.kg:30040 [08:58:08]ConnectInit lk.salyk.kg [08:58:08]written 0, free lines is 4095 [08:58:08]Connected sock=10 [08:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 44 01 00 00 4F B0 3C 01 92 9C 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 1E 00 00 00 F4 03 04 00 20 D7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 2C 0D 38 38 91 12 AB 76 92 CD 89 76 EB DF [08:58: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 9C BB 47 00 37 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 C9 F9 00 00 F4 03 04 00 EF 82 5E 66 B6 04 01 00 00 BB FA 4B 8B 6B D8 16 CC [08:58:08]CommunicateWithHost err = 0 [08:58:09]CheckOFDResponse [08:58:09]1017 (14) - 77093643461234 [08:58:09]1041 (16) - 0000000000875074 [08:58:09]1040 (4) - 63945 [08:58:09]1012 (4) - 04.06.2024 02:58 [08:58:09]1206 (1) - 0 [08:58:09]OFD Sender: Remove packet 63945 [08:58:09]ProducePacketName [08:58:09]name=ofd_packets/00063945 [08:58:09]NVStorageDeleteData [08:58:09]Write to MH i2c: 01 00 00 CC 0B D7 [08:58:09]Write i2c OK [08:58:09]MH_I2C_Read... [08:58:09]Read from MH i2c: 01 [08:58:09]MH_I2C_Read... [08:58:09]Read from MH i2c: 01 07 00 [08:58:09]MH_I2C_Read... [08:58:09]Read from MH i2c: 01 07 00 CC 0B 00 00 00 00 00 D7 0C C1 [08:58:09]RasterBufferAndPrint [08:58:09]line [08:58:09]line [08:58:09]line [08:58:09]line [08:58:09]line [08:58:09]written 0, free lines is 3296 [08:58:09]MH_Cut [08:58:09]Write to MH i2c: D1 01 00 D3 0B 01 B0 [08:58:09]Write i2c OK [08:58:09]MH_I2C_Read... [08:58:09]Read from MH i2c: D1 [08:58:09]MH_I2C_Read... [08:58:09]Read from MH i2c: D1 01 00 [08:58:09]MH_I2C_Read... [08:58:09]Read from MH i2c: D1 01 00 D3 0B 00 AF [08:58:09]Write to MH i2c: 01 00 00 D4 0B DF [08:58:09]Write i2c OK [08:58:09]MH_I2C_Read... [08:58:09]OFD Sender: No OFD packet to send [08:58:09]*** Cut start [08:58:09]*** Partial cut [08:58:09]*** CUTSNS_PIN = 1 [08:58:09]*** CUTSNS_PIN = 0 [08:58:10]*** Brake cut motor [08:58:10]Read from MH i2c: 01 [08:58:10]MH_I2C_Read... [08:58:10]*** Stop cut motor [08:58:10]*** Cut end [08:58:10]Read from MH i2c: 01 07 00 [08:58:10]MH_I2C_Read... [08:58:10]Read from MH i2c: 01 07 00 D4 0B 00 00 00 00 00 FF 0F F4 [08:58:10]process_action close_receipt done [08:58:10]requested_data is exist [08:58:10]produce_requested_data [08:58:10]requested_item fm.sn is exist - process it [08:58:10]wFMCommunicate request_size=4 [08:58:10]MH_SAM_APDU [08:58:10]CAPDU: 80 11 00 00 [08:58:10]Write to MH i2c: E2 08 00 D5 0B 80 11 00 00 00 00 00 00 5A [08:58:10]Write i2c OK [08:58:10]MH_I2C_Read... [08:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:10]Read from MH i2c: E2 [08:58:10]MH_I2C_Read... [08:58:10]Read from MH i2c: E2 17 00 [08:58:10]MH_I2C_Read... [08:58:10]Read from MH i2c: E2 17 00 D5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AC [08:58: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:58:10]wFMCommunicate OK [08:58:10]requested_item fd.num is exist - process it [08:58:10]SAM_PROTO_GetFieldsCounters [08:58:10]wFMCommunicate request_size=4 [08:58:10]MH_SAM_APDU [08:58:10]CAPDU: 80 13 00 00 [08:58:10]Write to MH i2c: E2 08 00 D6 0B 80 13 00 00 00 00 00 00 5D [08:58:10]Write i2c OK [08:58:10]MH_I2C_Read... [08:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:10]Read from MH i2c: E2 [08:58:10]MH_I2C_Read... [08:58:10]Read from MH i2c: E2 62 00 [08:58:10]MH_I2C_Read... [08:58:10]Read from MH i2c: E2 62 00 D6 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 13 [08:58: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 C9 F9 00 00 0E 04 04 00 76 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:58:10]wFMCommunicate OK [08:58:10]SAM_PROTO_GetFieldsCounters done [08:58:10]requested_item shift.num is exist - process it [08:58:10]requested_item shift.opened is exist - process it [08:58:10]req_shift_opened [08:58:10]FM_GetShiftState [08:58:10]SAM_PROTO_GetShiftState [08:58:10]wFMCommunicate request_size=4 [08:58:10]MH_SAM_APDU [08:58:10]CAPDU: 80 13 01 00 [08:58:10]Write to MH i2c: E2 08 00 D7 0B 80 13 01 00 00 00 00 00 5F [08:58:10]Write i2c OK [08:58:10]MH_I2C_Read... [08:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:10]Read from MH i2c: E2 [08:58:10]MH_I2C_Read... [08:58:10]Read from MH i2c: E2 0E 00 [08:58:10]MH_I2C_Read... [08:58:10]Read from MH i2c: E2 0E 00 D7 0B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 FF [08:58:10]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [08:58:10]wFMCommunicate OK [08:58:10]SAM_PROTO_GetShiftState done [08:58:10]FM_GetShiftState done [08:58:10]req_shift_opened done [08:58:10]requested_item shift.open_date is exist - process it [08:58:10]req_shift_open_date [08:58:10]req_shift_open_date done [08:58:10]produce_requested_data done [08:58:10]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63945,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [08:58:10]process_action_free close_receipt [08:58:10]json_value_free [08:58:10]json_value_free done [08:58:10]process_json_proto returns [08:58:10]Send response to host [08:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63945,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [08:58:10]free response buf [08:58:10]execute_script done [08:58:10]execute_script returns [08:58:10]free content buf [08:58:10]Sock 9.Close socket [08:58:10]Sock 9.Thread stoped [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:15]accept exits with 7 [09:11:15]New connection [09:11:15]New thread 3066912100 created [09:11:15]Thread 3067055460 joined [09:11:15]Waiting for new connection... [09:11:15] Sock 7.Parse request [09:11:15]Sock 7.Check first char [09:11:15]Sock 7.First char is OK [09:11:15]request: POST /json_proto HTTP/1.0 [09:11:15]Method: POST [09:11:15]URL: /json_proto [09:11:15]Method is POST - this is cgi request [09:11:15]url: /json_proto [09:11:15]query_string will be loaded in cgi processing [09:11:15]execute_cgi json_proto POST (null) [09:11:15]execute_cgi path=json_proto method=POST [09:11:15]POST find Content-Length [09:11:15]Host: 172.17.60.69:8080 [09:11:15]Content-Length: 625 [09:11:15]Content-Type: application/json [09:11:15] [09:11:15]POST finish read [09:11:15]Found Content-Length = 625 [09:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73508", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (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" ] } } [09:11:15]execute_script... [09:11: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)73508", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (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" ] } } [09:11:15]POST & json_proto [09:11:15]process_json_proto [09:11:15]json parsed OK: [09:11:15]protocol is kg_v1.0 [09:11:15]action value=close_receipt [09:11:15]process_action close_receipt [09:11:15]cmd_close_receipt [09:11:15]MH_GetDate [09:11:15]Write to MH i2c: F0 00 00 D8 0B D2 [09:11:15]Write i2c OK [09:11:15]MH_I2C_Read... [09:11:15]Read from MH i2c: F0 [09:11:15]MH_I2C_Read... [09:11:15]Read from MH i2c: F0 09 00 [09:11:15]MH_I2C_Read... [09:11:15]Read from MH i2c: F0 09 00 D8 0B 00 35 DA 5E 66 6A 96 4A 66 5E [09:11:15]GetLastDocTimeStamp 1717491488 [09:11:15]current date 1717492277 [09:11:15]FM_GetShiftState [09:11:15]SAM_PROTO_GetShiftState [09:11:15]wFMCommunicate request_size=4 [09:11:15]MH_SAM_APDU [09:11:15]CAPDU: 80 13 01 00 [09:11:15]Write to MH i2c: E2 08 00 D9 0B 80 13 01 00 00 00 00 00 61 [09:11:15]Write i2c OK [09:11:15]MH_I2C_Read... [09:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:15]Read from MH i2c: E2 [09:11:15]MH_I2C_Read... [09:11:15]Read from MH i2c: E2 0E 00 [09:11:15]MH_I2C_Read... [09:11:15]Read from MH i2c: E2 0E 00 D9 0B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 01 [09:11:15]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:11:15]wFMCommunicate OK [09:11:15]SAM_PROTO_GetShiftState done [09:11:15]FM_GetShiftState done [09:11:15]opened in 1717459574 [09:11:15]opened+sec_in_day 1717545974 [09:11:15]quantity*price = 34500 [09:11:15]sum+1 = 34501 [09:11:15]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 СНО: Общий режим Чек 31 04.06.2024 09:11 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63946 ФПД: 223727966931979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091118&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63946&fm=223727966931979&tin=02508201610067®Number=0000000000092737&sum=34500 0 [09:11:16]StoreToDocumentArchive [09:11:16]shift 374 fd 63946 [09:11:16]save to /storage/0374/doc_00063946 [09:11:16]save last doc name /storage/0374/doc_00063946 to /storage/kkm_last_doc_name [09:11:16]save OK [09:11:16]Clear old archive folders... [09:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:11:16]tlvbuf is 012BA200 [09:11:16]SAM_PROTO_ClearQueue [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 09 00 00 [09:11:16]Write to MH i2c: E2 08 00 E6 0B 80 09 00 00 00 00 00 00 63 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [09:11:16]RAPDU: 90 00 [09:11:16]wFMCommunicate OK [09:11:16]SAM_PROTO_ClearQueue done [09:11:16]KKMCreateOFDPacket [09:11:16]OFDProtocolAddRootSTLVToBuf [09:11:16]FM_MakeSignedData [09:11:16]FM_MakeSignedData [09:11:16]SAM_PROTO_SignData [09:11:16]wFMCommunicate request_size=4 [09:11:16]MH_SAM_APDU [09:11:16]CAPDU: 80 0D 01 02 [09:11:16]Write to MH i2c: E2 08 00 E7 0B 80 0D 01 02 00 00 00 00 6B [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:16]Read from MH i2c: E2 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 [09:11:16]MH_I2C_Read... [09:11:16]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [09:11:16]RAPDU: 90 00 [09:11:16]wFMCommunicate OK [09:11:16]wFMCommunicate request_size=255 [09:11:16]MH_SAM_APDU [09:11:16]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 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 1F 00 00 00 F4 03 04 00 36 DA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [09:11:16]Write to MH i2c: E2 02 01 E8 0B 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 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 1F 00 00 00 F4 03 04 00 36 DA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 43 [09:11:16]Write i2c OK [09:11:16]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [09:11:17]RAPDU: 90 00 [09:11:17]wFMCommunicate OK [09:11:17]wFMCommunicate request_size=33 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CA F9 00 00 35 04 06 00 CB 7A B9 FE CC 0B [09:11:17]Write to MH i2c: E2 24 00 E9 0B 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CA F9 00 00 35 04 06 00 CB 7A B9 FE CC 0B 00 00 92 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [09:11:17]RAPDU: 90 00 [09:11:17]wFMCommunicate OK [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 0D 03 02 [09:11:17]Write to MH i2c: E2 08 00 EA 0B 80 0D 03 02 00 00 00 00 70 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 0B 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 0B 00 EA 0B 00 E9 62 2A DB 8A 60 6C 82 90 00 99 [09:11:17]RAPDU: E9 62 2A DB 8A 60 6C 82 90 00 [09:11:17]wFMCommunicate OK [09:11:17]SAM_PROTO_SignData done [09:11:17]FM_MakeSignedData done [09:11:17]CreateOFDProtocolMessage [09:11:17]wFMCommunicate request_size=4 [09:11:17]MH_SAM_APDU [09:11:17]CAPDU: 80 11 00 00 [09:11:17]Write to MH i2c: E2 08 00 EB 0B 80 11 00 00 00 00 00 00 70 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:17]Read from MH i2c: E2 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 17 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: E2 17 00 EB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C2 [09:11: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:11:17]wFMCommunicate OK [09:11:17]CreateOFDProtocolMessage done [09:11:17]OFDSenderStorePacket 63946 [09:11:17]StoreOFDPacket docnum=63946 [09:11: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 26 01 00 00 77 52 1E 01 62 DE 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 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 1F 00 00 00 F4 03 04 00 36 DA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 CB 7A B9 FE CC 0B E9 62 2A DB 8A 60 6C 82 [09:11:17]CheckFolder [09:11:17]dirname=/storage/ofd_packets [09:11:17]CheckFolder done [09:11:17]ProducePacketName [09:11:17]name=ofd_packets/00063946 [09:11:17]NVStorageSaveData ofd_packets/00063946 [09:11:17]File name is /storage/ofd_packets/00063946 [09:11:17]Write 324 bytes [09:11:17]NVStorageSaveData done [09:11:17]OFDSenderStorePacket done [09:11:17]KKMCreateOFDPacket done [09:11:17]NVStorageSaveData kkm_last_timestamp [09:11:17]File name is /storage/kkm_last_timestamp [09:11:17]Write 4 bytes [09:11:17]NVStorageSaveData done [09:11:17]ExternCall_PrintAddStr [09:11:17]wPrintStart [09:11:17]Write to MH i2c: 01 00 00 EC 0B F7 [09:11:17]Write i2c OK [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 07 00 [09:11:17]MH_I2C_Read... [09:11:17]Read from MH i2c: 01 07 00 EC 0B 00 00 00 00 00 FF 0F 0C [09:11:17]RasterBufferAndPrint [09:11:17]line Счет N : (3)73508 [09:11:17]line ИНН: 02508201610067 [09:11:17]line Контрольно-Кассовый Чек [09:11:17]line ПРОДАЖА [09:11:17]line Товар: 2000036240010 [09:11:17]line Кофе Латте (GABB TRADE) [09:11:17]line 3.000 * 115.00 [09:11:17]line = 345.00 [09:11:17]line НДС 12% НСП 1% [09:11:17]line > о реализуемом товаре [09:11:17]line ИТОГО: 345.00 [09:11:17]line НСП 1% : 3.05 [09:11:17]line НДС 12% : 36.64 [09:11:17]line Наличными: 345.00 [09:11:17]line Безнал.: 0.00 [09:11:17]line Место: АЗС № 117 "Партнер Нефть" [09:11:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:11:17]line СНО: Общий режим [09:11:17]line Чек 31 04.06.2024 09:11 [09:11:17]line Смена: 374 ФФД: 1.0 [09:11:17]line ЗНМ: 0300000031 [09:11:17]line РНМ: 0000000000092737 [09:11:17]line Версия ККМ: 001 [09:11:17]line ФМ: 0000000000875074 [09:11:17]line ФД: 63946 [09:11:17]line ФПД: 223727966931979 [09:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091118&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63946&fm=223727966931979&tin=02508201610067®Number=0000000000092737&sum=34500 [09:11:17]OFD Sender: Processing packet 63946 [packets to send 14, broken 13] [09:11:17]ProducePacketName [09:11:17]name=ofd_packets/00063946 [09:11:17]OFD Sender: To server: pG, [09:11:17]CommunicateWithHost lk.salyk.kg:30040 [09:11:17]ConnectInit lk.salyk.kg [09:11:17]line 0 [09:11:17]written 0, free lines is 4095 [09:11:17]Connected sock=10 [09:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 77 52 1E 01 62 DE 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 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 1F 00 00 00 F4 03 04 00 36 DA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 CB 7A B9 FE CC 0B E9 62 2A DB 8A 60 6C 82 [09:11: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 B5 4A 47 00 6C 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 CA F9 00 00 F4 03 04 00 04 86 5E 66 B6 04 01 00 00 FD 10 71 7D 24 2C 0D C3 [09:11:18]CommunicateWithHost err = 0 [09:11:18]CheckOFDResponse [09:11:18]1017 (14) - 77093643461234 [09:11:18]1041 (16) - 0000000000875074 [09:11:18]1040 (4) - 63946 [09:11:18]1012 (4) - 04.06.2024 03:12 [09:11:18]1206 (1) - 0 [09:11:18]OFD Sender: Remove packet 63946 [09:11:18]ProducePacketName [09:11:18]name=ofd_packets/00063946 [09:11:18]NVStorageDeleteData [09:11:18]Write to MH i2c: 01 00 00 14 0C 20 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: 01 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: 01 07 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: 01 07 00 14 0C 00 00 00 00 00 05 0D 39 [09:11:18]RasterBufferAndPrint [09:11:18]line [09:11:18]line [09:11:18]line [09:11:18]line [09:11:18]line [09:11:18]written 0, free lines is 3340 [09:11:18]MH_Cut [09:11:18]Write to MH i2c: D1 01 00 1B 0C 01 F9 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: D1 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: D1 01 00 [09:11:18]MH_I2C_Read... [09:11:18]Read from MH i2c: D1 01 00 1B 0C 00 F8 [09:11:18]Write to MH i2c: 01 00 00 1C 0C 28 [09:11:18]Write i2c OK [09:11:18]MH_I2C_Read... [09:11:18]OFD Sender: No OFD packet to send [09:11:18]*** Cut start [09:11:18]*** Partial cut [09:11:18]*** CUTSNS_PIN = 1 [09:11:19]*** CUTSNS_PIN = 0 [09:11:19]*** Brake cut motor [09:11:19]Read from MH i2c: 01 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: 01 07 00 [09:11:19]MH_I2C_Read... [09:11:19]*** Stop cut motor [09:11:19]*** Cut end [09:11:19]Read from MH i2c: 01 07 00 1C 0C 00 00 00 00 00 FF 0F 3D [09:11:19]process_action close_receipt done [09:11:19]requested_data is exist [09:11:19]produce_requested_data [09:11:19]requested_item fm.sn is exist - process it [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 11 00 00 [09:11:19]Write to MH i2c: E2 08 00 1D 0C 80 11 00 00 00 00 00 00 A3 [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 17 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 17 00 1D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F5 [09:11: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:11:19]wFMCommunicate OK [09:11:19]requested_item fd.num is exist - process it [09:11:19]SAM_PROTO_GetFieldsCounters [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 13 00 00 [09:11:19]Write to MH i2c: E2 08 00 1E 0C 80 13 00 00 00 00 00 00 A6 [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 62 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 62 00 1E 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 CA F9 00 00 0E 04 04 00 76 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 60 [09:11:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 [09:11:19]wFMCommunicate OK [09:11:19]SAM_PROTO_GetFieldsCounters done [09:11:19]requested_item shift.num is exist - process it [09:11:19]requested_item shift.opened is exist - process it [09:11:19]req_shift_opened [09:11:19]FM_GetShiftState [09:11:19]SAM_PROTO_GetShiftState [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 13 01 00 [09:11:19]Write to MH i2c: E2 08 00 1F 0C 80 13 01 00 00 00 00 00 A8 [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 0E 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 0E 00 1F 0C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 48 [09:11:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:11:19]wFMCommunicate OK [09:11:19]SAM_PROTO_GetShiftState done [09:11:19]FM_GetShiftState done [09:11:19]req_shift_opened done [09:11:19]requested_item shift.open_date is exist - process it [09:11:19]req_shift_open_date [09:11:19]req_shift_open_date done [09:11:19]produce_requested_data done [09:11:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63946,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [09:11:19]process_action_free close_receipt [09:11:19]json_value_free [09:11:19]json_value_free done [09:11:19]process_json_proto returns [09:11:19]Send response to host [09:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63946,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [09:11:19]free response buf [09:11:19]execute_script done [09:11:19]execute_script returns [09:11:19]free content buf [09:11:19]Sock 7.Close socket [09:11:19]Sock 7.Thread stoped [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13: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]accept exits with 9 [09:17:28]New connection [09:17:28]New thread 3067055460 created [09:17:28]Thread 3066912100 joined [09:17:28]Waiting for new connection... [09:17:28] Sock 9.Parse request [09:17:28]Sock 9.Check first char [09:17:28]Sock 9.First char is OK [09:17:28]request: POST /json_proto HTTP/1.0 [09:17:28]Method: POST [09:17:28]URL: /json_proto [09:17:28]Method is POST - this is cgi request [09:17:28]url: /json_proto [09:17:28]query_string will be loaded in cgi processing [09:17:28]execute_cgi json_proto POST (null) [09:17:28]execute_cgi path=json_proto method=POST [09:17:28]POST find Content-Length [09:17:28]Host: 172.17.60.69:8080 [09:17:28]Content-Length: 924 [09:17:28]Content-Type: application/json [09:17:28] [09:17:28]POST finish read [09:17:28]Found Content-Length = 924 [09:17:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73509", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:28]execute_script... [09:17:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73509", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:28]POST & json_proto [09:17:28]process_json_proto [09:17:28]json parsed OK: [09:17:28]protocol is kg_v1.0 [09:17:28]action value=close_receipt [09:17:28]process_action close_receipt [09:17:28]cmd_close_receipt [09:17:28]MH_GetDate [09:17:28]Write to MH i2c: F0 00 00 20 0C 1B [09:17:28]Write i2c OK [09:17:28]MH_I2C_Read... [09:17:28]Read from MH i2c: F0 [09:17:28]MH_I2C_Read... [09:17:28]Read from MH i2c: F0 09 00 [09:17:28]MH_I2C_Read... [09:17:28]Read from MH i2c: F0 09 00 20 0C 00 AA DB 5E 66 6A 96 4A 66 1D [09:17:28]GetLastDocTimeStamp 1717492278 [09:17:28]current date 1717492650 [09:17:28]FM_GetShiftState [09:17:28]SAM_PROTO_GetShiftState [09:17:28]wFMCommunicate request_size=4 [09:17:28]MH_SAM_APDU [09:17:28]CAPDU: 80 13 01 00 [09:17:28]Write to MH i2c: E2 08 00 21 0C 80 13 01 00 00 00 00 00 AA [09:17:28]Write i2c OK [09:17:28]MH_I2C_Read... [09:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:28]Read from MH i2c: E2 [09:17:28]MH_I2C_Read... [09:17:28]Read from MH i2c: E2 0E 00 [09:17:28]MH_I2C_Read... [09:17:28]Read from MH i2c: E2 0E 00 21 0C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 4A [09:17:28]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:17:28]wFMCommunicate OK [09:17:28]SAM_PROTO_GetShiftState done [09:17:28]FM_GetShiftState done [09:17:28]opened in 1717459574 [09:17:28]opened+sec_in_day 1717545974 [09:17:28]quantity*price = 7200 [09:17:28]sum+1 = 7201 [09:17:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 32 04.06.2024 09:17 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63947 ФПД: 114154017900325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091730&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63947&fm=114154017900325&tin=02508201610067®Number=0000000000092737&sum=14700 0 [09:17:29]StoreToDocumentArchive [09:17:29]shift 374 fd 63947 [09:17:29]save to /storage/0374/doc_00063947 [09:17:29]save last doc name /storage/0374/doc_00063947 to /storage/kkm_last_doc_name [09:17:29]save OK [09:17:29]Clear old archive folders... [09:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=399 [09:17:29]tlvbuf is 0128FC40 [09:17:29]SAM_PROTO_ClearQueue [09:17:29]wFMCommunicate request_size=4 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 09 00 00 [09:17:29]Write to MH i2c: E2 08 00 2E 0C 80 09 00 00 00 00 00 00 AC [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [09:17:29]RAPDU: 90 00 [09:17:29]wFMCommunicate OK [09:17:29]SAM_PROTO_ClearQueue done [09:17:29]KKMCreateOFDPacket [09:17:29]OFDProtocolAddRootSTLVToBuf [09:17:29]FM_MakeSignedData [09:17:29]FM_MakeSignedData [09:17:29]SAM_PROTO_SignData [09:17:29]wFMCommunicate request_size=4 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 0D 01 02 [09:17:29]Write to MH i2c: E2 08 00 2F 0C 80 0D 01 02 00 00 00 00 B4 [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [09:17:29]RAPDU: 90 00 [09:17:29]wFMCommunicate OK [09:17:29]wFMCommunicate request_size=255 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 6C 39 00 00 00 00 EB 03 [09:17:29]Write to MH i2c: E2 02 01 30 0C 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 6C 39 00 00 00 00 EB 03 00 00 0A [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [09:17:29]RAPDU: 90 00 [09:17:29]wFMCommunicate OK [09:17:29]wFMCommunicate request_size=158 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AA DB 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 67 D2 8D AF C7 25 [09:17:29]Write to MH i2c: E2 A1 00 31 0C 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AA DB 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 67 D2 8D AF C7 25 00 00 85 [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [09:17:29]RAPDU: 90 00 [09:17:29]wFMCommunicate OK [09:17:29]wFMCommunicate request_size=4 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 0D 03 02 [09:17:29]Write to MH i2c: E2 08 00 32 0C 80 0D 03 02 00 00 00 00 B9 [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 0B 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 0B 00 32 0C 00 F4 8E 32 55 ED EC 21 DF 90 00 9C [09:17:29]RAPDU: F4 8E 32 55 ED EC 21 DF 90 00 [09:17:29]wFMCommunicate OK [09:17:29]SAM_PROTO_SignData done [09:17:29]FM_MakeSignedData done [09:17:29]CreateOFDProtocolMessage [09:17:29]wFMCommunicate request_size=4 [09:17:29]MH_SAM_APDU [09:17:29]CAPDU: 80 11 00 00 [09:17:29]Write to MH i2c: E2 08 00 33 0C 80 11 00 00 00 00 00 00 B9 [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:29]Read from MH i2c: E2 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 17 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: E2 17 00 33 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0B [09:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:17:29]wFMCommunicate OK [09:17:29]CreateOFDProtocolMessage done [09:17:29]OFDSenderStorePacket 63947 [09:17:29]StoreOFDPacket docnum=63947 [09:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A3 01 00 00 B4 1E 9B 01 E8 10 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AA DB 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 67 D2 8D AF C7 25 F4 8E 32 55 ED EC 21 DF [09:17:29]CheckFolder [09:17:29]dirname=/storage/ofd_packets [09:17:29]CheckFolder done [09:17:29]ProducePacketName [09:17:29]name=ofd_packets/00063947 [09:17:29]NVStorageSaveData ofd_packets/00063947 [09:17:29]File name is /storage/ofd_packets/00063947 [09:17:29]Write 449 bytes [09:17:29]NVStorageSaveData done [09:17:29]OFDSenderStorePacket done [09:17:29]KKMCreateOFDPacket done [09:17:29]NVStorageSaveData kkm_last_timestamp [09:17:29]File name is /storage/kkm_last_timestamp [09:17:29]Write 4 bytes [09:17:29]NVStorageSaveData done [09:17:29]ExternCall_PrintAddStr [09:17:29]wPrintStart [09:17:29]Write to MH i2c: 01 00 00 34 0C 40 [09:17:29]Write i2c OK [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: 01 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: 01 07 00 [09:17:29]MH_I2C_Read... [09:17:29]Read from MH i2c: 01 07 00 34 0C 00 00 00 00 00 FF 0F 55 [09:17:29]RasterBufferAndPrint [09:17:29]line Счет N : (3)73509 [09:17:29]line ИНН: 02508201610067 [09:17:29]line Контрольно-Кассовый Чек [09:17:29]line ПРОДАЖА [09:17:29]line Товар: 4600682557456 [09:17:30]line Напиток FLash up energy эн ж/б 0,5/0,45л [09:17:30]line 1.000 * 72.00 [09:17:30]line = 72.00 [09:17:30]line НДС 12% НСП 1% [09:17:30]line > о реализуемом товаре [09:17:30]line Товар: 54491472 [09:17:30]line Напиток Кока-Кола 0,5л [09:17:30]line 1.000 * 75.00 [09:17:30]line = 75.00 [09:17:30]line НДС 12% НСП 1% [09:17:30]line > о реализуемом товаре [09:17:30]line ИТОГО: 147.00 [09:17:30]line НСП 1% : 1.30 [09:17:30]line НДС 12% : 15.61 [09:17:30]line Наличными: 147.00 [09:17:30]line Безнал.: 0.00 [09:17:30]line Место: АЗС № 117 "Партнер Нефть" [09:17:30]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:17:30]line СНО: Общий режим [09:17:30]line Чек 32 04.06.2024 09:17 [09:17:30]line Смена: 374 ФФД: 1.0 [09:17:30]line ЗНМ: 0300000031 [09:17:30]line РНМ: 0000000000092737 [09:17:30]line Версия ККМ: 001 [09:17:30]line ФМ: 0000000000875074 [09:17:30]line ФД: 63947 [09:17:30]line ФПД: 114154017900325 [09:17:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T091730&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63947&fm=114154017900325&tin=02508201610067®Number=0000000000092737&sum=14700 [09:17:30]line 0 [09:17:30]OFD Sender: Processing packet 63947 [packets to send 14, broken 13] [09:17:30]ProducePacketName [09:17:30]name=ofd_packets/00063947 [09:17:30]OFD Sender: To server: pG, [09:17:30]CommunicateWithHost lk.salyk.kg:30040 [09:17:30]ConnectInit lk.salyk.kg [09:17:30]written 0, free lines is 4095 [09:17:30]Connected sock=10 [09:17: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 A3 01 00 00 B4 1E 9B 01 E8 10 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 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 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 AA DB 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 67 D2 8D AF C7 25 F4 8E 32 55 ED EC 21 DF [09:17: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 5B 32 47 00 25 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CB F9 00 00 F4 03 04 00 79 87 5E 66 B6 04 01 00 00 D5 1D F6 60 23 95 CF E9 [09:17:30]CommunicateWithHost err = 0 [09:17:30]CheckOFDResponse [09:17:30]1017 (14) - 77093643461234 [09:17:30]1041 (16) - 0000000000875074 [09:17:30]1040 (4) - 63947 [09:17:30]1012 (4) - 04.06.2024 03:18 [09:17:30]1206 (1) - 0 [09:17:30]OFD Sender: Remove packet 63947 [09:17:30]ProducePacketName [09:17:30]name=ofd_packets/00063947 [09:17:30]NVStorageDeleteData [09:17:30]Write to MH i2c: 01 00 00 63 0C 6F [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: 01 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: 01 07 00 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 72 0C F4 [09:17:30]RasterBufferAndPrint [09:17:30]line [09:17:30]line [09:17:30]line [09:17:30]line [09:17:30]line [09:17:30]written 0, free lines is 3192 [09:17:30]MH_Cut [09:17:30]Write to MH i2c: D1 01 00 6A 0C 01 48 [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: D1 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: D1 01 00 [09:17:30]MH_I2C_Read... [09:17:30]Read from MH i2c: D1 01 00 6A 0C 00 47 [09:17:30]Write to MH i2c: 01 00 00 6B 0C 77 [09:17:30]Write i2c OK [09:17:30]MH_I2C_Read... [09:17:31]OFD Sender: No OFD packet to send [09:17:31]*** Cut start [09:17:31]*** Partial cut [09:17:31]*** CUTSNS_PIN = 1 [09:17:31]*** CUTSNS_PIN = 0 [09:17:31]*** Brake cut motor [09:17:32]Read from MH i2c: 01 [09:17:32]MH_I2C_Read... [09:17:32]*** Stop cut motor [09:17:32]*** Cut end [09:17:32]Read from MH i2c: 01 07 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: 01 07 00 6B 0C 00 00 00 00 00 FF 0F 8C [09:17:32]process_action close_receipt done [09:17:32]requested_data is exist [09:17:32]produce_requested_data [09:17:32]requested_item fm.sn is exist - process it [09:17:32]wFMCommunicate request_size=4 [09:17:32]MH_SAM_APDU [09:17:32]CAPDU: 80 11 00 00 [09:17:32]Write to MH i2c: E2 08 00 6C 0C 80 11 00 00 00 00 00 00 F2 [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:32]Read from MH i2c: E2 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 17 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 17 00 6C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 44 [09:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:17:32]wFMCommunicate OK [09:17:32]requested_item fd.num is exist - process it [09:17:32]SAM_PROTO_GetFieldsCounters [09:17:32]wFMCommunicate request_size=4 [09:17:32]MH_SAM_APDU [09:17:32]CAPDU: 80 13 00 00 [09:17:32]Write to MH i2c: E2 08 00 6D 0C 80 13 00 00 00 00 00 00 F5 [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:32]Read from MH i2c: E2 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 62 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 62 00 6D 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 CB F9 00 00 0E 04 04 00 76 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 B3 [09:17: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 CB F9 00 00 0E 04 04 00 76 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 [09:17:32]wFMCommunicate OK [09:17:32]SAM_PROTO_GetFieldsCounters done [09:17:32]requested_item shift.num is exist - process it [09:17:32]requested_item shift.opened is exist - process it [09:17:32]req_shift_opened [09:17:32]FM_GetShiftState [09:17:32]SAM_PROTO_GetShiftState [09:17:32]wFMCommunicate request_size=4 [09:17:32]MH_SAM_APDU [09:17:32]CAPDU: 80 13 01 00 [09:17:32]Write to MH i2c: E2 08 00 6E 0C 80 13 01 00 00 00 00 00 F7 [09:17:32]Write i2c OK [09:17:32]MH_I2C_Read... [09:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:32]Read from MH i2c: E2 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 0E 00 [09:17:32]MH_I2C_Read... [09:17:32]Read from MH i2c: E2 0E 00 6E 0C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 97 [09:17:32]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:17:32]wFMCommunicate OK [09:17:32]SAM_PROTO_GetShiftState done [09:17:32]FM_GetShiftState done [09:17:32]req_shift_opened done [09:17:32]requested_item shift.open_date is exist - process it [09:17:32]req_shift_open_date [09:17:32]req_shift_open_date done [09:17:32]produce_requested_data done [09:17:32]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63947,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [09:17:32]process_action_free close_receipt [09:17:32]json_value_free [09:17:32]json_value_free done [09:17:32]process_json_proto returns [09:17:32]Send response to host [09:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63947,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [09:17:32]free response buf [09:17:32]execute_script done [09:17:32]execute_script returns [09:17:32]free content buf [09:17:32]Sock 9.Close socket [09:17:32]Sock 9.Thread stoped [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:48]accept exits with 7 [09:21:48]New connection [09:21:48]New thread 3066912100 created [09:21:48]Thread 3067055460 joined [09:21:48]Waiting for new connection... [09:21:48] Sock 7.Parse request [09:21:48]Sock 7.Check first char [09:21:48]Sock 7.First char is OK [09:21:48]request: POST /json_proto HTTP/1.0 [09:21:48]Method: POST [09:21:48]URL: /json_proto [09:21:48]Method is POST - this is cgi request [09:21:48]url: /json_proto [09:21:48]query_string will be loaded in cgi processing [09:21:48]execute_cgi json_proto POST (null) [09:21:48]execute_cgi path=json_proto method=POST [09:21:48]POST find Content-Length [09:21:48]Host: 172.17.60.69:8080 [09:21:48]Content-Length: 655 [09:21:48]Content-Type: application/json [09:21:48] [09:21:48]POST finish read [09:21:48]Found Content-Length = 655 [09:21:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73510", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 83.00, "quantity" : 1.000, "sum" : 83.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 83.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:48]execute_script... [09:21: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)73510", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 83.00, "quantity" : 1.000, "sum" : 83.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 83.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:48]POST & json_proto [09:21:48]process_json_proto [09:21:48]json parsed OK: [09:21:48]protocol is kg_v1.0 [09:21:48]action value=close_receipt [09:21:48]process_action close_receipt [09:21:48]cmd_close_receipt [09:21:48]MH_GetDate [09:21:48]Write to MH i2c: F0 00 00 6F 0C 6A [09:21:48]Write i2c OK [09:21:48]MH_I2C_Read... [09:21:48]Read from MH i2c: F0 [09:21:48]MH_I2C_Read... [09:21:48]Read from MH i2c: F0 09 00 [09:21:48]MH_I2C_Read... [09:21:48]Read from MH i2c: F0 09 00 6F 0C 00 AF DC 5E 66 6A 96 4A 66 72 [09:21:48]GetLastDocTimeStamp 1717492650 [09:21:48]current date 1717492911 [09:21:48]FM_GetShiftState [09:21:48]SAM_PROTO_GetShiftState [09:21:48]wFMCommunicate request_size=4 [09:21:48]MH_SAM_APDU [09:21:48]CAPDU: 80 13 01 00 [09:21:48]Write to MH i2c: E2 08 00 70 0C 80 13 01 00 00 00 00 00 F9 [09:21:48]Write i2c OK [09:21:48]MH_I2C_Read... [09:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:48]Read from MH i2c: E2 [09:21:48]MH_I2C_Read... [09:21:48]Read from MH i2c: E2 0E 00 [09:21:48]MH_I2C_Read... [09:21:48]Read from MH i2c: E2 0E 00 70 0C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 99 [09:21:48]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:21:48]wFMCommunicate OK [09:21:48]SAM_PROTO_GetShiftState done [09:21:48]FM_GetShiftState done [09:21:48]opened in 1717459574 [09:21:48]opened+sec_in_day 1717545974 [09:21:48]quantity*price = 8300 [09:21:48]sum+1 = 8301 [09:21:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 83.00 НСП 1% : 0.73 НДС 12% : 8.81 Наличными: 83.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 33 04.06.2024 09:21 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63948 ФПД: 157513517451423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092151&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63948&fm=157513517451423&tin=02508201610067®Number=0000000000092737&sum=8300 0 [09:21:50]StoreToDocumentArchive [09:21:50]shift 374 fd 63948 [09:21:50]save to /storage/0374/doc_00063948 [09:21:50]save last doc name /storage/0374/doc_00063948 to /storage/kkm_last_doc_name [09:21:50]save OK [09:21:50]Clear old archive folders... [09:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=283 [09:21:50]tlvbuf is 01235BB0 [09:21:50]SAM_PROTO_ClearQueue [09:21:50]wFMCommunicate request_size=4 [09:21:50]MH_SAM_APDU [09:21:50]CAPDU: 80 09 00 00 [09:21:50]Write to MH i2c: E2 08 00 7D 0C 80 09 00 00 00 00 00 00 FB [09:21:50]Write i2c OK [09:21:50]MH_I2C_Read... [09:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:50]Read from MH i2c: E2 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 03 00 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [09:21:50]RAPDU: 90 00 [09:21:50]wFMCommunicate OK [09:21:50]SAM_PROTO_ClearQueue done [09:21:50]KKMCreateOFDPacket [09:21:50]OFDProtocolAddRootSTLVToBuf [09:21:50]FM_MakeSignedData [09:21:50]FM_MakeSignedData [09:21:50]SAM_PROTO_SignData [09:21:50]wFMCommunicate request_size=4 [09:21:50]MH_SAM_APDU [09:21:50]CAPDU: 80 0D 01 02 [09:21:50]Write to MH i2c: E2 08 00 7E 0C 80 0D 01 02 00 00 00 00 03 [09:21:50]Write i2c OK [09:21:50]MH_I2C_Read... [09:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:50]Read from MH i2c: E2 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 03 00 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [09:21:50]RAPDU: 90 00 [09:21:50]wFMCommunicate OK [09:21:50]wFMCommunicate request_size=255 [09:21:50]MH_SAM_APDU [09:21:50]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 03 00 00 00 00 07 04 06 00 6C 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AF DC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 [09:21:50]Write to MH i2c: E2 02 01 7F 0C 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 03 00 00 00 00 07 04 06 00 6C 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AF DC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 00 00 56 [09:21:50]Write i2c OK [09:21:50]MH_I2C_Read... [09:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:50]Read from MH i2c: E2 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 03 00 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [09:21:50]RAPDU: 90 00 [09:21:50]wFMCommunicate OK [09:21:50]wFMCommunicate request_size=42 [09:21:50]MH_SAM_APDU [09:21:50]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CC F9 00 00 35 04 06 00 8F 41 F9 41 48 9F [09:21:50]Write to MH i2c: E2 2D 00 80 0C 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CC F9 00 00 35 04 06 00 8F 41 F9 41 48 9F 00 00 90 [09:21:50]Write i2c OK [09:21:50]MH_I2C_Read... [09:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:50]Read from MH i2c: E2 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 03 00 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [09:21:50]RAPDU: 90 00 [09:21:50]wFMCommunicate OK [09:21:50]wFMCommunicate request_size=4 [09:21:50]MH_SAM_APDU [09:21:50]CAPDU: 80 0D 03 02 [09:21:50]Write to MH i2c: E2 08 00 81 0C 80 0D 03 02 00 00 00 00 08 [09:21:50]Write i2c OK [09:21:50]MH_I2C_Read... [09:21:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:50]Read from MH i2c: E2 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 0B 00 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 0B 00 81 0C 00 4B E1 A3 36 F1 04 80 7A 90 00 FD [09:21:50]RAPDU: 4B E1 A3 36 F1 04 80 7A 90 00 [09:21:50]wFMCommunicate OK [09:21:50]SAM_PROTO_SignData done [09:21:50]FM_MakeSignedData done [09:21:50]CreateOFDProtocolMessage [09:21:50]wFMCommunicate request_size=4 [09:21:50]MH_SAM_APDU [09:21:50]CAPDU: 80 11 00 00 [09:21:50]Write to MH i2c: E2 08 00 82 0C 80 11 00 00 00 00 00 00 08 [09:21:50]Write i2c OK [09:21:50]MH_I2C_Read... [09:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:50]Read from MH i2c: E2 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 17 00 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: E2 17 00 82 0C 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:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:21:50]wFMCommunicate OK [09:21:50]CreateOFDProtocolMessage done [09:21:50]OFDSenderStorePacket 63948 [09:21:50]StoreOFDPacket docnum=63948 [09:21:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2F 01 00 00 0D E4 27 01 BB D0 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 03 00 00 00 00 07 04 06 00 6C 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AF DC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 8F 41 F9 41 48 9F 4B E1 A3 36 F1 04 80 7A [09:21:50]CheckFolder [09:21:50]dirname=/storage/ofd_packets [09:21:50]CheckFolder done [09:21:50]ProducePacketName [09:21:50]name=ofd_packets/00063948 [09:21:50]NVStorageSaveData ofd_packets/00063948 [09:21:50]File name is /storage/ofd_packets/00063948 [09:21:50]Write 333 bytes [09:21:50]NVStorageSaveData done [09:21:50]OFDSenderStorePacket done [09:21:50]KKMCreateOFDPacket done [09:21:50]NVStorageSaveData kkm_last_timestamp [09:21:50]File name is /storage/kkm_last_timestamp [09:21:50]Write 4 bytes [09:21:50]NVStorageSaveData done [09:21:50]ExternCall_PrintAddStr [09:21:50]wPrintStart [09:21:50]Write to MH i2c: 01 00 00 83 0C 8F [09:21:50]Write i2c OK [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: 01 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: 01 07 00 [09:21:50]MH_I2C_Read... [09:21:50]Read from MH i2c: 01 07 00 83 0C 00 00 00 00 00 FF 0F A4 [09:21:50]RasterBufferAndPrint [09:21:50]line Счет N : (3)73510 [09:21:50]line ИНН: 02508201610067 [09:21:50]line Контрольно-Кассовый Чек [09:21:50]line ПРОДАЖА [09:21:50]line Товар: 4603290004831 [09:21:50]line Печ.зат.TONDI Сэнд.шок.вк. [09:21:50]line 1.000 * 83.00 [09:21:50]line = 83.00 [09:21:50]line НДС 12% НСП 1% [09:21:50]line > о реализуемом товаре [09:21:50]line ИТОГО: 83.00 [09:21:50]line НСП 1% : 0.73 [09:21:50]line НДС 12% : 8.81 [09:21:50]line Наличными: 83.00 [09:21:50]line Безнал.: 0.00 [09:21:50]line Место: АЗС № 117 "Партнер Нефть" [09:21:50]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:21:50]line СНО: Общий режим [09:21:50]line Чек 33 04.06.2024 09:21 [09:21:50]line Смена: 374 ФФД: 1.0 [09:21:50]line ЗНМ: 0300000031 [09:21:50]line РНМ: 0000000000092737 [09:21:50]line Версия ККМ: 001 [09:21:50]line ФМ: 0000000000875074 [09:21:50]line ФД: 63948 [09:21:50]line ФПД: 157513517451423 [09:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092151&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63948&fm=157513517451423&tin=02508201610067®Number=0000000000092737&sum=8300 [09:21:50]line 0 [09:21:50]OFD Sender: Processing packet 63948 [packets to send 14, broken 13] [09:21:50]ProducePacketName [09:21:50]name=ofd_packets/00063948 [09:21:50]OFD Sender: To server: pG, [09:21:50]CommunicateWithHost lk.salyk.kg:30040 [09:21:50]ConnectInit lk.salyk.kg [09:21:50]written 0, free lines is 4095 [09:21:50]Connected sock=10 [09:21: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 2F 01 00 00 0D E4 27 01 BB D0 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 03 00 00 00 00 07 04 06 00 6C 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 AF DC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 F9 00 00 35 04 06 00 8F 41 F9 41 48 9F 4B E1 A3 36 F1 04 80 7A [09:21: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 49 31 47 00 A7 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 CC F9 00 00 F4 03 04 00 7D 88 5E 66 B6 04 01 00 00 B3 65 30 2C 96 11 B2 95 [09:21:51]CommunicateWithHost err = 0 [09:21:51]CheckOFDResponse [09:21:51]1017 (14) - 77093643461234 [09:21:51]1041 (16) - 0000000000875074 [09:21:51]1040 (4) - 63948 [09:21:51]1012 (4) - 04.06.2024 03:22 [09:21:51]1206 (1) - 0 [09:21:51]OFD Sender: Remove packet 63948 [09:21:51]ProducePacketName [09:21:51]name=ofd_packets/00063948 [09:21:51]NVStorageDeleteData [09:21:51]Write to MH i2c: 01 00 00 AB 0C B7 [09:21:51]Write i2c OK [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: 01 [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: 01 07 00 [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: 01 07 00 AB 0C 00 00 00 00 00 01 0D CC [09:21:51]RasterBufferAndPrint [09:21:51]line [09:21:51]line [09:21:51]line [09:21:51]line [09:21:51]line [09:21:51]written 0, free lines is 3335 [09:21:51]MH_Cut [09:21:51]Write to MH i2c: D1 01 00 B2 0C 01 90 [09:21:51]Write i2c OK [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: D1 [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: D1 01 00 [09:21:51]MH_I2C_Read... [09:21:51]Read from MH i2c: D1 01 00 B2 0C 00 8F [09:21:51]Write to MH i2c: 01 00 00 B3 0C BF [09:21:51]Write i2c OK [09:21:51]MH_I2C_Read... [09:21:51]OFD Sender: No OFD packet to send [09:21:52]*** Cut start [09:21:52]*** Partial cut [09:21:52]*** CUTSNS_PIN = 1 [09:21:52]*** CUTSNS_PIN = 0 [09:21:52]*** Brake cut motor [09:21:52]Read from MH i2c: 01 [09:21:52]MH_I2C_Read... [09:21:52]*** Stop cut motor [09:21:52]*** Cut end [09:21:52]Read from MH i2c: 01 07 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 FF 0F D4 [09:21:52]process_action close_receipt done [09:21:52]requested_data is exist [09:21:52]produce_requested_data [09:21:52]requested_item fm.sn is exist - process it [09:21:52]wFMCommunicate request_size=4 [09:21:52]MH_SAM_APDU [09:21:52]CAPDU: 80 11 00 00 [09:21:52]Write to MH i2c: E2 08 00 B4 0C 80 11 00 00 00 00 00 00 3A [09:21:52]Write i2c OK [09:21:52]MH_I2C_Read... [09:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:52]Read from MH i2c: E2 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 17 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 17 00 B4 0C 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:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:21:52]wFMCommunicate OK [09:21:52]requested_item fd.num is exist - process it [09:21:52]SAM_PROTO_GetFieldsCounters [09:21:52]wFMCommunicate request_size=4 [09:21:52]MH_SAM_APDU [09:21:52]CAPDU: 80 13 00 00 [09:21:52]Write to MH i2c: E2 08 00 B5 0C 80 13 00 00 00 00 00 00 3D [09:21:52]Write i2c OK [09:21:52]MH_I2C_Read... [09:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:52]Read from MH i2c: E2 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 62 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 62 00 B5 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 CC F9 00 00 0E 04 04 00 76 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 FF [09:21: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 CC F9 00 00 0E 04 04 00 76 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 [09:21:52]wFMCommunicate OK [09:21:52]SAM_PROTO_GetFieldsCounters done [09:21:52]requested_item shift.num is exist - process it [09:21:52]requested_item shift.opened is exist - process it [09:21:52]req_shift_opened [09:21:52]FM_GetShiftState [09:21:52]SAM_PROTO_GetShiftState [09:21:52]wFMCommunicate request_size=4 [09:21:52]MH_SAM_APDU [09:21:52]CAPDU: 80 13 01 00 [09:21:52]Write to MH i2c: E2 08 00 B6 0C 80 13 01 00 00 00 00 00 3F [09:21:52]Write i2c OK [09:21:52]MH_I2C_Read... [09:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:52]Read from MH i2c: E2 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 0E 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 0E 00 B6 0C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 DF [09:21:52]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:21:52]wFMCommunicate OK [09:21:52]SAM_PROTO_GetShiftState done [09:21:52]FM_GetShiftState done [09:21:52]req_shift_opened done [09:21:52]requested_item shift.open_date is exist - process it [09:21:52]req_shift_open_date [09:21:52]req_shift_open_date done [09:21:52]produce_requested_data done [09:21:52]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63948,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [09:21:52]process_action_free close_receipt [09:21:52]json_value_free [09:21:52]json_value_free done [09:21:52]process_json_proto returns [09:21:52]Send response to host [09:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63948,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [09:21:52]free response buf [09:21:52]execute_script done [09:21:52]execute_script returns [09:21:52]free content buf [09:21:52]Sock 7.Close socket [09:21:52]Sock 7.Thread stoped [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:45]accept exits with 9 [09:27:45]New connection [09:27:45]New thread 3067055460 created [09:27:45]Thread 3066912100 joined [09:27:45]Waiting for new connection... [09:27:45] Sock 9.Parse request [09:27:45]Sock 9.Check first char [09:27:45]Sock 9.First char is OK [09:27:45]request: POST /json_proto HTTP/1.0 [09:27:45]Method: POST [09:27:45]URL: /json_proto [09:27:45]Method is POST - this is cgi request [09:27:45]url: /json_proto [09:27:45]query_string will be loaded in cgi processing [09:27:45]execute_cgi json_proto POST (null) [09:27:45]execute_cgi path=json_proto method=POST [09:27:45]POST find Content-Length [09:27:45]Host: 172.17.60.69:8080 [09:27:45]Content-Length: 715 [09:27:45]Content-Type: application/json [09:27:45] [09:27:45]POST finish read [09:27:45]Found Content-Length = 715 [09:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63948, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73510", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 83.00, "quantity" : 1.000, "sum" : 83.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 83.00 } ], "post_footer_text": "63948" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:45]execute_script... [09:27:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63948, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73510", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 83.00, "quantity" : 1.000, "sum" : 83.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 83.00 } ], "post_footer_text": "63948" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:45]POST & json_proto [09:27:45]process_json_proto [09:27:45]json parsed OK: [09:27:45]protocol is kg_v1.0 [09:27:45]action value=close_receipt [09:27:45]process_action close_receipt [09:27:45]cmd_close_receipt [09:27:45]MH_GetDate [09:27:45]Write to MH i2c: F0 00 00 B7 0C B2 [09:27:45]Write i2c OK [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: F0 [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: F0 09 00 [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: F0 09 00 B7 0C 00 13 DE 5E 66 6A 96 4A 66 20 [09:27:45]GetLastDocTimeStamp 1717492911 [09:27:45]current date 1717493267 [09:27:45]FM_GetShiftState [09:27:45]SAM_PROTO_GetShiftState [09:27:45]wFMCommunicate request_size=4 [09:27:45]MH_SAM_APDU [09:27:45]CAPDU: 80 13 01 00 [09:27:45]Write to MH i2c: E2 08 00 B8 0C 80 13 01 00 00 00 00 00 41 [09:27:45]Write i2c OK [09:27:45]MH_I2C_Read... [09:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:45]Read from MH i2c: E2 [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: E2 0E 00 [09:27:45]MH_I2C_Read... [09:27:45]Read from MH i2c: E2 0E 00 B8 0C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 E1 [09:27:45]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:27:45]wFMCommunicate OK [09:27:45]SAM_PROTO_GetShiftState done [09:27:45]FM_GetShiftState done [09:27:45]opened in 1717459574 [09:27:45]opened+sec_in_day 1717545974 [09:27:45]quantity*price = 8300 [09:27:45]sum+1 = 8301 [09:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 83.00 НСП 1% : 0.73 НДС 12% : 8.81 Наличными: 83.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 34 04.06.2024 09:27 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 63948 ФМ осн.: 0000000000875074 ФМ: 0000000000875074 ФД: 63949 ФПД: 53335136612447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092747&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63949&fm=53335136612447&tin=02508201610067®Number=0000000000092737&sum=8300 63948 [09:27:46]StoreToDocumentArchive [09:27:46]shift 374 fd 63949 [09:27:46]save to /storage/0374/doc_00063949 [09:27:46]save last doc name /storage/0374/doc_00063949 to /storage/kkm_last_doc_name [09:27:46]save OK [09:27:46]Clear old archive folders... [09:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=311 [09:27:46]tlvbuf is 012CB2C0 [09:27:46]SAM_PROTO_ClearQueue [09:27:46]wFMCommunicate request_size=4 [09:27:46]MH_SAM_APDU [09:27:46]CAPDU: 80 09 00 00 [09:27:46]Write to MH i2c: E2 08 00 C7 0C 80 09 00 00 00 00 00 00 45 [09:27:46]Write i2c OK [09:27:46]MH_I2C_Read... [09:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:46]Read from MH i2c: E2 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: E2 03 00 [09:27:46]MH_I2C_Read... [09:27:46]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [09:27:46]RAPDU: 90 00 [09:27:46]wFMCommunicate OK [09:27:46]SAM_PROTO_ClearQueue done [09:27:46]KKMCreateOFDPacket [09:27:46]OFDProtocolAddRootSTLVToBuf [09:27:46]FM_MakeSignedData [09:27:46]FM_MakeSignedData [09:27:46]SAM_PROTO_SignData [09:27:46]wFMCommunicate request_size=4 [09:27:46]MH_SAM_APDU [09:27:46]CAPDU: 80 0D 01 02 [09:27:46]Write to MH i2c: E2 08 00 C8 0C 80 0D 01 02 00 00 00 00 4D [09:27:46]Write i2c OK [09:27:46]MH_I2C_Read... [09:27:47]OFD Sender: No OFD packet to send [09:27:47]Read from MH i2c: E2 [09:27:47]MH_I2C_Read... [09:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:47]Read from MH i2c: E2 03 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [09:27:47]RAPDU: 90 00 [09:27:47]wFMCommunicate OK [09:27:47]wFMCommunicate request_size=255 [09:27:47]MH_SAM_APDU [09:27:47]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 02 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 03 00 00 00 00 07 04 06 00 6C 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 13 DE 5E 66 0E 04 04 00 76 01 00 00 B9 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 [09:27:47]Write to MH i2c: E2 02 01 C9 0C 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 02 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 03 00 00 00 00 07 04 06 00 6C 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 13 DE 5E 66 0E 04 04 00 76 01 00 00 B9 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 00 00 3A [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:47]Read from MH i2c: E2 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 03 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [09:27:47]RAPDU: 90 00 [09:27:47]wFMCommunicate OK [09:27:47]wFMCommunicate request_size=70 [09:27:47]MH_SAM_APDU [09:27:47]CAPDU: 80 0D 02 02 41 04 04 00 CC F9 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 CD F9 00 00 35 04 06 00 30 82 0D DF 30 5F [09:27:47]Write to MH i2c: E2 49 00 CA 0C 80 0D 02 02 41 00 04 04 00 CC F9 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 CD F9 00 00 35 04 06 00 30 82 0D DF 30 5F 00 00 88 [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:47]Read from MH i2c: E2 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 03 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 03 00 CA 0C 00 90 00 4A [09:27:47]RAPDU: 90 00 [09:27:47]wFMCommunicate OK [09:27:47]wFMCommunicate request_size=4 [09:27:47]MH_SAM_APDU [09:27:47]CAPDU: 80 0D 03 02 [09:27:47]Write to MH i2c: E2 08 00 CB 0C 80 0D 03 02 00 00 00 00 52 [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:47]Read from MH i2c: E2 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 0B 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 0B 00 CB 0C 00 81 78 C4 69 42 82 0E 17 90 00 62 [09:27:47]RAPDU: 81 78 C4 69 42 82 0E 17 90 00 [09:27:47]wFMCommunicate OK [09:27:47]SAM_PROTO_SignData done [09:27:47]FM_MakeSignedData done [09:27:47]CreateOFDProtocolMessage [09:27:47]wFMCommunicate request_size=4 [09:27:47]MH_SAM_APDU [09:27:47]CAPDU: 80 11 00 00 [09:27:47]Write to MH i2c: E2 08 00 CC 0C 80 11 00 00 00 00 00 00 52 [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:47]Read from MH i2c: E2 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 17 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: E2 17 00 CC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A4 [09:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:27:47]wFMCommunicate OK [09:27:47]CreateOFDProtocolMessage done [09:27:47]OFDSenderStorePacket 63949 [09:27:47]StoreOFDPacket docnum=63949 [09:27:47]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 81 EB 43 01 01 56 5A 03 01 00 03 00 37 01 1E 04 01 00 02 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 03 00 00 00 00 07 04 06 00 6C 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 13 DE 5E 66 0E 04 04 00 76 01 00 00 B9 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 CC F9 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 CD F9 00 00 35 04 06 00 30 82 0D DF 30 5F 81 78 C4 69 42 82 0E 17 [09:27:47]CheckFolder [09:27:47]dirname=/storage/ofd_packets [09:27:47]CheckFolder done [09:27:47]ProducePacketName [09:27:47]name=ofd_packets/00063949 [09:27:47]NVStorageSaveData ofd_packets/00063949 [09:27:47]File name is /storage/ofd_packets/00063949 [09:27:47]Write 361 bytes [09:27:47]NVStorageSaveData done [09:27:47]OFDSenderStorePacket done [09:27:47]KKMCreateOFDPacket done [09:27:47]NVStorageSaveData kkm_last_timestamp [09:27:47]File name is /storage/kkm_last_timestamp [09:27:47]Write 4 bytes [09:27:47]NVStorageSaveData done [09:27:47]ExternCall_PrintAddStr [09:27:47]wPrintStart [09:27:47]Write to MH i2c: 01 00 00 CD 0C D9 [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 CD 0C 00 00 00 00 00 FF 0F EE [09:27:47]RasterBufferAndPrint [09:27:47]line Счет N : (3)73510 [09:27:47]line ИНН: 02508201610067 [09:27:47]line Контрольно-Кассовый Чек [09:27:47]line ВОЗВРАТ ПРОДАЖИ [09:27:47]line Товар: 4603290004831 [09:27:47]line Печ.зат.TONDI Сэнд.шок.вк. [09:27:47]line 1.000 * 83.00 [09:27:47]line = 83.00 [09:27:47]line НДС 12% НСП 1% [09:27:47]line > о реализуемом товаре [09:27:47]line ИТОГО: 83.00 [09:27:47]line НСП 1% : 0.73 [09:27:47]line НДС 12% : 8.81 [09:27:47]line Наличными: 83.00 [09:27:47]line Безнал.: 0.00 [09:27:47]line Место: АЗС № 117 "Партнер Нефть" [09:27:47]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:27:47]line СНО: Общий режим [09:27:47]line Чек 34 04.06.2024 09:27 [09:27:47]line Смена: 374 ФФД: 1.0 [09:27:47]line ЗНМ: 0300000031 [09:27:47]line РНМ: 0000000000092737 [09:27:47]line Версия ККМ: 001 [09:27:47]line ФД осн.: 63948 [09:27:47]line ФМ осн.: 0000000000875074 [09:27:47]line ФМ: 0000000000875074 [09:27:47]line ФД: 63949 [09:27:47]line ФПД: 53335136612447 [09:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092747&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63949&fm=53335136612447&tin=02508201610067®Number=0000000000092737&sum=8300 [09:27:47]line 63948 [09:27:47]OFD Sender: Processing packet 63949 [packets to send 14, broken 13] [09:27:47]ProducePacketName [09:27:47]name=ofd_packets/00063949 [09:27:47]OFD Sender: To server: pG, [09:27:47]CommunicateWithHost lk.salyk.kg:30040 [09:27:47]ConnectInit lk.salyk.kg [09:27:47]written 0, free lines is 4095 [09:27:47]Connected sock=10 [09:27: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 4B 01 00 00 81 EB 43 01 01 56 5A 03 01 00 03 00 37 01 1E 04 01 00 02 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 03 00 00 00 00 07 04 06 00 6C 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 13 DE 5E 66 0E 04 04 00 76 01 00 00 B9 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 CC F9 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 CD F9 00 00 35 04 06 00 30 82 0D DF 30 5F 81 78 C4 69 42 82 0E 17 [09:27:48]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 A6 F6 47 00 4B 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CD F9 00 00 F4 03 04 00 E2 89 5E 66 B6 04 01 00 00 46 19 85 5C 43 B2 1B 81 [09:27:48]CommunicateWithHost err = 0 [09:27:48]CheckOFDResponse [09:27:48]1017 (14) - 77093643461234 [09:27:48]1041 (16) - 0000000000875074 [09:27:48]1040 (4) - 63949 [09:27:48]1012 (4) - 04.06.2024 03:28 [09:27:48]1206 (1) - 0 [09:27:48]OFD Sender: Remove packet 63949 [09:27:48]ProducePacketName [09:27:48]name=ofd_packets/00063949 [09:27:48]NVStorageDeleteData [09:27:48]Write to MH i2c: 01 00 00 F7 0C 03 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 E3 0C F9 [09:27:48]RasterBufferAndPrint [09:27:48]line [09:27:48]line [09:27:48]line [09:27:48]line [09:27:48]line [09:27:48]written 0, free lines is 3305 [09:27:48]MH_Cut [09:27:48]Write to MH i2c: D1 01 00 FE 0C 01 DC [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: D1 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: D1 01 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: D1 01 00 FE 0C 00 DB [09:27:48]Write to MH i2c: 01 00 00 FF 0C 0B [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]OFD Sender: No OFD packet to send [09:27:49]*** Cut start [09:27:49]*** Partial cut [09:27:49]*** CUTSNS_PIN = 1 [09:27:49]*** CUTSNS_PIN = 0 [09:27:49]*** Brake cut motor [09:27:49]Read from MH i2c: 01 [09:27:49]MH_I2C_Read... [09:27:49]*** Stop cut motor [09:27:49]*** Cut end [09:27:49]Read from MH i2c: 01 07 00 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: 01 07 00 FF 0C 00 00 00 00 00 FF 0F 20 [09:27:49]process_action close_receipt done [09:27:49]requested_data is exist [09:27:49]produce_requested_data [09:27:49]requested_item fm.sn is exist - process it [09:27:49]wFMCommunicate request_size=4 [09:27:49]MH_SAM_APDU [09:27:49]CAPDU: 80 11 00 00 [09:27:49]Write to MH i2c: E2 08 00 00 0D 80 11 00 00 00 00 00 00 87 [09:27:49]Write i2c OK [09:27:49]MH_I2C_Read... [09:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:49]Read from MH i2c: E2 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 17 00 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 17 00 00 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D9 [09:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:27:49]wFMCommunicate OK [09:27:49]requested_item fd.num is exist - process it [09:27:49]SAM_PROTO_GetFieldsCounters [09:27:49]wFMCommunicate request_size=4 [09:27:49]MH_SAM_APDU [09:27:49]CAPDU: 80 13 00 00 [09:27:49]Write to MH i2c: E2 08 00 01 0D 80 13 00 00 00 00 00 00 8A [09:27:49]Write i2c OK [09:27:49]MH_I2C_Read... [09:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:49]Read from MH i2c: E2 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 62 00 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 62 00 01 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 CD F9 00 00 0E 04 04 00 76 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 50 [09:27:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 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 F9 00 00 0E 04 04 00 76 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 [09:27:49]wFMCommunicate OK [09:27:49]SAM_PROTO_GetFieldsCounters done [09:27:49]requested_item shift.num is exist - process it [09:27:49]requested_item shift.opened is exist - process it [09:27:49]req_shift_opened [09:27:49]FM_GetShiftState [09:27:49]SAM_PROTO_GetShiftState [09:27:49]wFMCommunicate request_size=4 [09:27:49]MH_SAM_APDU [09:27:49]CAPDU: 80 13 01 00 [09:27:49]Write to MH i2c: E2 08 00 02 0D 80 13 01 00 00 00 00 00 8C [09:27:49]Write i2c OK [09:27:49]MH_I2C_Read... [09:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:49]Read from MH i2c: E2 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 0E 00 [09:27:50]MH_I2C_Read... [09:27:50]Read from MH i2c: E2 0E 00 02 0D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 2C [09:27:50]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:27:50]wFMCommunicate OK [09:27:50]SAM_PROTO_GetShiftState done [09:27:50]FM_GetShiftState done [09:27:50]req_shift_opened done [09:27:50]requested_item shift.open_date is exist - process it [09:27:50]req_shift_open_date [09:27:50]req_shift_open_date done [09:27:50]produce_requested_data done [09:27:50]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63949,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [09:27:50]process_action_free close_receipt [09:27:50]json_value_free [09:27:50]json_value_free done [09:27:50]process_json_proto returns [09:27:50]Send response to host [09:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63949,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [09:27:50]free response buf [09:27:50]execute_script done [09:27:50]execute_script returns [09:27:50]free content buf [09:27:50]Sock 9.Close socket [09:27:50]Sock 9.Thread stoped [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:25]accept exits with 7 [09:28:25]New connection [09:28:25]New thread 3066912100 created [09:28:25]Thread 3067055460 joined [09:28:25]Waiting for new connection... [09:28:25] Sock 7.Parse request [09:28:25]Sock 7.Check first char [09:28:25]Sock 7.First char is OK [09:28:25]request: POST /json_proto HTTP/1.0 [09:28:25]Method: POST [09:28:25]URL: /json_proto [09:28:25]Method is POST - this is cgi request [09:28:25]url: /json_proto [09:28:25]query_string will be loaded in cgi processing [09:28:25]execute_cgi json_proto POST (null) [09:28:25]execute_cgi path=json_proto method=POST [09:28:25]POST find Content-Length [09:28:25]Host: 172.17.60.69:8080 [09:28:25]Content-Length: 1119 [09:28:25]Content-Type: application/json [09:28:25] [09:28:25]POST finish read [09:28:25]Found Content-Length = 1119 [09:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73511", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 83.00, "quantity" : 1.000, "sum" : 83.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" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:25]execute_script... [09:28:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73511", "tax_sys" : 0, "items" : [ { "code": "4603290004831", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A.\u0432\u043A.", "price" : 83.00, "quantity" : 1.000, "sum" : 83.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" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:25]POST & json_proto [09:28:25]process_json_proto [09:28:25]json parsed OK: [09:28:25]protocol is kg_v1.0 [09:28:25]action value=close_receipt [09:28:25]process_action close_receipt [09:28:25]cmd_close_receipt [09:28:25]MH_GetDate [09:28:25]Write to MH i2c: F0 00 00 03 0D FF [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: F0 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: F0 09 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: F0 09 00 03 0D 00 3C DE 5E 66 6A 96 4A 66 96 [09:28:25]GetLastDocTimeStamp 1717493267 [09:28:25]current date 1717493308 [09:28:25]FM_GetShiftState [09:28:25]SAM_PROTO_GetShiftState [09:28:25]wFMCommunicate request_size=4 [09:28:25]MH_SAM_APDU [09:28:25]CAPDU: 80 13 01 00 [09:28:25]Write to MH i2c: E2 08 00 04 0D 80 13 01 00 00 00 00 00 8E [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0E 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0E 00 04 0D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 2E [09:28:25]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:28:25]wFMCommunicate OK [09:28:25]SAM_PROTO_GetShiftState done [09:28:25]FM_GetShiftState done [09:28:25]opened in 1717459574 [09:28:25]opened+sec_in_day 1717545974 [09:28:25]quantity*price = 8300 [09:28:25]sum+1 = 8301 [09:28:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 208.00 НСП 1% : 1.84 НДС 12% : 22.08 Наличными: 0.00 Безнал.: 208.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 35 04.06.2024 09:28 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63950 ФПД: 234378221600172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092828&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63950&fm=234378221600172&tin=02508201610067®Number=0000000000092737&sum=20800 0 [09:28:27]StoreToDocumentArchive [09:28:27]shift 374 fd 63950 [09:28:27]save to /storage/0374/doc_00063950 [09:28:27]save last doc name /storage/0374/doc_00063950 to /storage/kkm_last_doc_name [09:28:27]save OK [09:28:27]Clear old archive folders... [09:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=395 [09:28:27]tlvbuf is 01298C70 [09:28:27]SAM_PROTO_ClearQueue [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 09 00 00 [09:28:27]Write to MH i2c: E2 08 00 11 0D 80 09 00 00 00 00 00 00 90 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_ClearQueue done [09:28:27]KKMCreateOFDPacket [09:28:27]OFDProtocolAddRootSTLVToBuf [09:28:27]FM_MakeSignedData [09:28:27]FM_MakeSignedData [09:28:27]SAM_PROTO_SignData [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 01 02 [09:28:27]Write to MH i2c: E2 08 00 12 0D 80 0D 01 02 00 00 00 00 98 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=255 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 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 40 51 00 00 00 00 EB 03 26 00 EF 03 [09:28:27]Write to MH i2c: E2 02 01 13 0D 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 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 40 51 00 00 00 00 EB 03 26 00 EF 03 00 00 E0 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 13 0D 00 90 00 94 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=154 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3C DE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CE F9 00 00 35 04 06 00 D5 2A 6E A4 3D AC [09:28:27]Write to MH i2c: E2 9D 00 14 0D 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3C DE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CE F9 00 00 35 04 06 00 D5 2A 6E A4 3D AC 00 00 28 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 14 0D 00 90 00 95 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 03 02 [09:28:27]Write to MH i2c: E2 08 00 15 0D 80 0D 03 02 00 00 00 00 9D [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0B 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0B 00 15 0D 00 0A 32 EE 55 36 8C F6 61 90 00 36 [09:28:27]RAPDU: 0A 32 EE 55 36 8C F6 61 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_SignData done [09:28:27]FM_MakeSignedData done [09:28:27]CreateOFDProtocolMessage [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 11 00 00 [09:28:27]Write to MH i2c: E2 08 00 16 0D 80 11 00 00 00 00 00 00 9D [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 17 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 17 00 16 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EF [09:28:27]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:27]wFMCommunicate OK [09:28:27]CreateOFDProtocolMessage done [09:28:27]OFDSenderStorePacket 63950 [09:28:27]StoreOFDPacket docnum=63950 [09:28: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 9F 01 00 00 45 49 97 01 C9 79 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 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 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3C DE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CE F9 00 00 35 04 06 00 D5 2A 6E A4 3D AC 0A 32 EE 55 36 8C F6 61 [09:28:27]CheckFolder [09:28:27]dirname=/storage/ofd_packets [09:28:27]CheckFolder done [09:28:27]ProducePacketName [09:28:27]name=ofd_packets/00063950 [09:28:27]NVStorageSaveData ofd_packets/00063950 [09:28:28]File name is /storage/ofd_packets/00063950 [09:28:28]Write 445 bytes [09:28:28]NVStorageSaveData done [09:28:28]OFDSenderStorePacket done [09:28:28]KKMCreateOFDPacket done [09:28:28]NVStorageSaveData kkm_last_timestamp [09:28:28]File name is /storage/kkm_last_timestamp [09:28:28]Write 4 bytes [09:28:28]NVStorageSaveData done [09:28:28]ExternCall_PrintAddStr [09:28:28]wPrintStart [09:28:28]Write to MH i2c: 01 00 00 17 0D 24 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 17 0D 00 00 00 00 00 FF 0F 39 [09:28:28]RasterBufferAndPrint [09:28:28]line Счет N : (3)73511 [09:28:28]line ИНН: 02508201610067 [09:28:28]line Контрольно-Кассовый Чек [09:28:28]line ПРОДАЖА [09:28:28]line Товар: 4603290004831 [09:28:28]line Печ.зат.TONDI Сэнд.шок.вк. [09:28:28]line 1.000 * 83.00 [09:28:28]line = 83.00 [09:28:28]line НДС 12% НСП 1% [09:28:28]line > о реализуемом товаре [09:28:28]line Товар: 2000036220012 [09:28:28]line Кофе Капучино XL(GABB TRADE) [09:28:28]line 1.000 * 125.00 [09:28:28]line = 125.00 [09:28:28]line НДС 12% НСП 1% [09:28:28]line > о реализуемом товаре [09:28:28]line ИТОГО: 208.00 [09:28:28]line НСП 1% : 1.84 [09:28:28]line НДС 12% : 22.08 [09:28:28]line Наличными: 0.00 [09:28:28]line Безнал.: 208.00 [09:28:28]line Место: АЗС № 117 "Партнер Нефть" [09:28:28]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:28:28]line СНО: Общий режим [09:28:28]line Чек 35 04.06.2024 09:28 [09:28:28]line Смена: 374 ФФД: 1.0 [09:28:28]line ЗНМ: 0300000031 [09:28:28]line РНМ: 0000000000092737 [09:28:28]line Версия ККМ: 001 [09:28:28]line Платежная система: АКБ Кыргызстан [09:28:28]line ФМ: 0000000000875074 [09:28:28]line ФД: 63950 [09:28:28]line ФПД: 234378221600172 [09:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T092828&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63950&fm=234378221600172&tin=02508201610067®Number=0000000000092737&sum=20800 [09:28:28]line 0 [09:28:28]written 0, free lines is 4095 [09:28:28]OFD Sender: Processing packet 63950 [packets to send 14, broken 13] [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00063950 [09:28:28]OFD Sender: To server: pG, [09:28:28]CommunicateWithHost lk.salyk.kg:30040 [09:28:28]ConnectInit lk.salyk.kg [09:28:28]Connected sock=10 [09:28:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9F 01 00 00 45 49 97 01 C9 79 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 20 00 00 00 00 13 04 06 00 6C 20 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 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3C DE 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CE F9 00 00 35 04 06 00 D5 2A 6E A4 3D AC 0A 32 EE 55 36 8C F6 61 [09:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 09 C9 47 00 3B 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 CE F9 00 00 F4 03 04 00 0B 8A 5E 66 B6 04 01 00 00 D3 81 B6 41 55 84 92 8F [09:28:28]CommunicateWithHost err = 0 [09:28:28]CheckOFDResponse [09:28:28]1017 (14) - 77093643461234 [09:28:28]1041 (16) - 0000000000875074 [09:28:28]1040 (4) - 63950 [09:28:28]1012 (4) - 04.06.2024 03:29 [09:28:28]1206 (1) - 0 [09:28:28]OFD Sender: Remove packet 63950 [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00063950 [09:28:28]NVStorageDeleteData [09:28:28]Write to MH i2c: 01 00 00 48 0D 55 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 48 0D 00 00 00 00 00 72 0C DA [09:28:28]RasterBufferAndPrint [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]written 0, free lines is 3191 [09:28:28]MH_Cut [09:28:28]Write to MH i2c: D1 01 00 4F 0D 01 2E [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: D1 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: D1 01 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: D1 01 00 4F 0D 00 2D [09:28:28]Write to MH i2c: 01 00 00 50 0D 5D [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]OFD Sender: No OFD packet to send [09:28:29]*** Cut start [09:28:29]*** Partial cut [09:28:29]*** CUTSNS_PIN = 1 [09:28:29]*** CUTSNS_PIN = 0 [09:28:29]*** Brake cut motor [09:28:30]Read from MH i2c: 01 [09:28:30]MH_I2C_Read... [09:28:30]*** Stop cut motor [09:28:30]*** Cut end [09:28:30]Read from MH i2c: 01 07 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: 01 07 00 50 0D 00 00 00 00 00 FF 0F 72 [09:28:30]process_action close_receipt done [09:28:30]requested_data is exist [09:28:30]produce_requested_data [09:28:30]requested_item fm.sn is exist - process it [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 11 00 00 [09:28:30]Write to MH i2c: E2 08 00 51 0D 80 11 00 00 00 00 00 00 D8 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 17 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 17 00 51 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2A [09:28:30]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:30]wFMCommunicate OK [09:28:30]requested_item fd.num is exist - process it [09:28:30]SAM_PROTO_GetFieldsCounters [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 13 00 00 [09:28:30]Write to MH i2c: E2 08 00 52 0D 80 13 00 00 00 00 00 00 DB [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 62 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 62 00 52 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 CE F9 00 00 0E 04 04 00 76 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 A5 [09:28:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CE F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:30]wFMCommunicate OK [09:28:30]SAM_PROTO_GetFieldsCounters done [09:28:30]requested_item shift.num is exist - process it [09:28:30]requested_item shift.opened is exist - process it [09:28:30]req_shift_opened [09:28:30]FM_GetShiftState [09:28:30]SAM_PROTO_GetShiftState [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 13 01 00 [09:28:30]Write to MH i2c: E2 08 00 53 0D 80 13 01 00 00 00 00 00 DD [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 53 0D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7D [09:28:30]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:28:30]wFMCommunicate OK [09:28:30]SAM_PROTO_GetShiftState done [09:28:30]FM_GetShiftState done [09:28:30]req_shift_opened done [09:28:30]requested_item shift.open_date is exist - process it [09:28:30]req_shift_open_date [09:28:30]req_shift_open_date done [09:28:30]produce_requested_data done [09:28:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63950,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [09:28:30]process_action_free close_receipt [09:28:30]json_value_free [09:28:30]json_value_free done [09:28:30]process_json_proto returns [09:28:30]Send response to host [09:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63950,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [09:28:30]free response buf [09:28:30]execute_script done [09:28:30]execute_script returns [09:28:30]free content buf [09:28:30]Sock 7.Close socket [09:28:30]Sock 7.Thread stoped [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]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:34]accept exits with 9 [09:32:34]New connection [09:32:34]New thread 3067055460 created [09:32:34]Thread 3066912100 joined [09:32:34]Waiting for new connection... [09:32:34] Sock 9.Parse request [09:32:34]Sock 9.Check first char [09:32:34]Sock 9.First char is OK [09:32:34]request: POST /json_proto HTTP/1.0 [09:32:34]Method: POST [09:32:34]URL: /json_proto [09:32:34]Method is POST - this is cgi request [09:32:34]url: /json_proto [09:32:34]query_string will be loaded in cgi processing [09:32:34]execute_cgi json_proto POST (null) [09:32:34]execute_cgi path=json_proto method=POST [09:32:34]POST find Content-Length [09:32:34]Host: 172.17.60.69:8080 [09:32:34]Content-Length: 879 [09:32:34]Content-Type: application/json [09:32:34] [09:32:34]POST finish read [09:32:34]Found Content-Length = 879 [09:32:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73512", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:34]execute_script... [09:32:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73512", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:34]POST & json_proto [09:32:34]process_json_proto [09:32:34]json parsed OK: [09:32:34]protocol is kg_v1.0 [09:32:34]action value=close_receipt [09:32:34]process_action close_receipt [09:32:34]cmd_close_receipt [09:32:34]MH_GetDate [09:32:34]Write to MH i2c: F0 00 00 54 0D 50 [09:32:34]Write i2c OK [09:32:34]MH_I2C_Read... [09:32:34]Read from MH i2c: F0 [09:32:34]MH_I2C_Read... [09:32:34]Read from MH i2c: F0 09 00 [09:32:34]MH_I2C_Read... [09:32:34]Read from MH i2c: F0 09 00 54 0D 00 35 DF 5E 66 6A 96 4A 66 E1 [09:32:34]GetLastDocTimeStamp 1717493308 [09:32:34]current date 1717493557 [09:32:34]FM_GetShiftState [09:32:34]SAM_PROTO_GetShiftState [09:32:34]wFMCommunicate request_size=4 [09:32:34]MH_SAM_APDU [09:32:34]CAPDU: 80 13 01 00 [09:32:34]Write to MH i2c: E2 08 00 55 0D 80 13 01 00 00 00 00 00 DF [09:32:34]Write i2c OK [09:32:34]MH_I2C_Read... [09:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:35]Read from MH i2c: E2 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 0E 00 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 0E 00 55 0D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7F [09:32:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:32:35]wFMCommunicate OK [09:32:35]SAM_PROTO_GetShiftState done [09:32:35]FM_GetShiftState done [09:32:35]opened in 1717459574 [09:32:35]opened+sec_in_day 1717545974 [09:32:35]quantity*price = 10000 [09:32:35]sum+1 = 10001 [09:32:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173822 Р/ж Orbit б/сах мята 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 36 04.06.2024 09:32 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63951 ФПД: 228916843401037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093237&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63951&fm=228916843401037&tin=02508201610067®Number=0000000000092737&sum=14500 0 [09:32:36]StoreToDocumentArchive [09:32:36]shift 374 fd 63951 [09:32:36]save to /storage/0374/doc_00063951 [09:32:36]save last doc name /storage/0374/doc_00063951 to /storage/kkm_last_doc_name [09:32:36]save OK [09:32:36]Clear old archive folders... [09:32:36]ProcessDocumentItem done err = 0, tmpTLVsize=373 [09:32:36]tlvbuf is B6DC1B60 [09:32:36]SAM_PROTO_ClearQueue [09:32:36]wFMCommunicate request_size=4 [09:32:36]MH_SAM_APDU [09:32:36]CAPDU: 80 09 00 00 [09:32:36]Write to MH i2c: E2 08 00 62 0D 80 09 00 00 00 00 00 00 E1 [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:36]Read from MH i2c: E2 03 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 62 0D 00 90 00 E3 [09:32:36]RAPDU: 90 00 [09:32:36]wFMCommunicate OK [09:32:36]SAM_PROTO_ClearQueue done [09:32:36]KKMCreateOFDPacket [09:32:36]OFDProtocolAddRootSTLVToBuf [09:32:36]FM_MakeSignedData [09:32:36]FM_MakeSignedData [09:32:36]SAM_PROTO_SignData [09:32:36]wFMCommunicate request_size=4 [09:32:36]MH_SAM_APDU [09:32:36]CAPDU: 80 0D 01 02 [09:32:36]Write to MH i2c: E2 08 00 63 0D 80 0D 01 02 00 00 00 00 E9 [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:36]Read from MH i2c: E2 03 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 63 0D 00 90 00 E4 [09:32:36]RAPDU: 90 00 [09:32:36]wFMCommunicate OK [09:32:36]wFMCommunicate request_size=255 [09:32:36]MH_SAM_APDU [09:32:36]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 [09:32:36]Write to MH i2c: E2 02 01 64 0D 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 BE [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 64 0D 00 90 00 E5 [09:32:36]RAPDU: 90 00 [09:32:36]wFMCommunicate OK [09:32:36]wFMCommunicate request_size=132 [09:32:36]MH_SAM_APDU [09:32:36]CAPDU: 80 0D 02 02 7F 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 24 00 00 00 F4 03 04 00 35 DF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CF F9 00 00 35 04 06 00 D0 32 DB 22 4F 4D [09:32:36]Write to MH i2c: E2 87 00 65 0D 80 0D 02 02 7F 00 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 24 00 00 00 F4 03 04 00 35 DF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CF F9 00 00 35 04 06 00 D0 32 DB 22 4F 4D 00 00 E3 [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 65 0D 00 90 00 E6 [09:32:36]RAPDU: 90 00 [09:32:36]wFMCommunicate OK [09:32:36]wFMCommunicate request_size=4 [09:32:36]MH_SAM_APDU [09:32:36]CAPDU: 80 0D 03 02 [09:32:36]Write to MH i2c: E2 08 00 66 0D 80 0D 03 02 00 00 00 00 EE [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 0B 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 0B 00 66 0D 00 2D 9C AF 81 CB E0 74 0A 90 00 11 [09:32:36]RAPDU: 2D 9C AF 81 CB E0 74 0A 90 00 [09:32:36]wFMCommunicate OK [09:32:36]SAM_PROTO_SignData done [09:32:36]FM_MakeSignedData done [09:32:36]CreateOFDProtocolMessage [09:32:36]wFMCommunicate request_size=4 [09:32:36]MH_SAM_APDU [09:32:36]CAPDU: 80 11 00 00 [09:32:36]Write to MH i2c: E2 08 00 67 0D 80 11 00 00 00 00 00 00 EE [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 17 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 17 00 67 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 40 [09:32:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:32:36]wFMCommunicate OK [09:32:36]CreateOFDProtocolMessage done [09:32:36]OFDSenderStorePacket 63951 [09:32:36]StoreOFDPacket docnum=63951 [09:32: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 89 01 00 00 A2 C9 81 01 15 47 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 24 00 00 00 F4 03 04 00 35 DF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CF F9 00 00 35 04 06 00 D0 32 DB 22 4F 4D 2D 9C AF 81 CB E0 74 0A [09:32:36]CheckFolder [09:32:36]dirname=/storage/ofd_packets [09:32:36]CheckFolder done [09:32:36]ProducePacketName [09:32:36]name=ofd_packets/00063951 [09:32:36]NVStorageSaveData ofd_packets/00063951 [09:32:36]File name is /storage/ofd_packets/00063951 [09:32:36]Write 423 bytes [09:32:36]NVStorageSaveData done [09:32:36]OFDSenderStorePacket done [09:32:36]KKMCreateOFDPacket done [09:32:36]NVStorageSaveData kkm_last_timestamp [09:32:36]File name is /storage/kkm_last_timestamp [09:32:36]Write 4 bytes [09:32:36]NVStorageSaveData done [09:32:36]ExternCall_PrintAddStr [09:32:36]wPrintStart [09:32:36]Write to MH i2c: 01 00 00 68 0D 75 [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: 01 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: 01 07 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: 01 07 00 68 0D 00 00 00 00 00 FF 0F 8A [09:32:36]RasterBufferAndPrint [09:32:36]line Счет N : (3)73512 [09:32:36]line ИНН: 02508201610067 [09:32:36]line Контрольно-Кассовый Чек [09:32:36]line ПРОДАЖА [09:32:36]line Товар: 4700000160358 [09:32:36]line Вода Легенда 1л [09:32:36]line 2.000 * 50.00 [09:32:36]line = 100.00 [09:32:36]line НДС 12% НСП 1% [09:32:36]line > о реализуемом товаре [09:32:37]line Товар: 50173822 [09:32:37]line Р/ж Orbit б/сах мята 13,6г [09:32:37]line 1.000 * 45.00 [09:32:37]line = 45.00 [09:32:37]line НДС 12% НСП 1% [09:32:37]line > о реализуемом товаре [09:32:37]line ИТОГО: 145.00 [09:32:37]line НСП 1% : 1.28 [09:32:37]line НДС 12% : 15.40 [09:32:37]line Наличными: 145.00 [09:32:37]line Безнал.: 0.00 [09:32:37]line Место: АЗС № 117 "Партнер Нефть" [09:32:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:32:37]line СНО: Общий режим [09:32:37]line Чек 36 04.06.2024 09:32 [09:32:37]line Смена: 374 ФФД: 1.0 [09:32:37]line ЗНМ: 0300000031 [09:32:37]line РНМ: 0000000000092737 [09:32:37]line Версия ККМ: 001 [09:32:37]line ФМ: 0000000000875074 [09:32:37]line ФД: 63951 [09:32:37]line ФПД: 228916843401037 [09:32:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T093237&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63951&fm=228916843401037&tin=02508201610067®Number=0000000000092737&sum=14500 [09:32:37]line 0 [09:32:37]OFD Sender: Processing packet 63951 [packets to send 14, broken 13] [09:32:37]ProducePacketName [09:32:37]name=ofd_packets/00063951 [09:32:37]OFD Sender: To server: pG, [09:32:37]CommunicateWithHost lk.salyk.kg:30040 [09:32:37]ConnectInit lk.salyk.kg [09:32:37]written 0, free lines is 4095 [09:32:37]Connected sock=10 [09:32: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 89 01 00 00 A2 C9 81 01 15 47 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 24 00 00 00 F4 03 04 00 35 DF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CF F9 00 00 35 04 06 00 D0 32 DB 22 4F 4D 2D 9C AF 81 CB E0 74 0A [09:32: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 CD A1 47 00 43 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 CF F9 00 00 F4 03 04 00 03 8B 5E 66 B6 04 01 00 00 2D 8C B4 6E 5E AD 70 1D [09:32:37]CommunicateWithHost err = 0 [09:32:37]CheckOFDResponse [09:32:37]1017 (14) - 77093643461234 [09:32:37]1041 (16) - 0000000000875074 [09:32:37]1040 (4) - 63951 [09:32:37]1012 (4) - 04.06.2024 03:33 [09:32:37]1206 (1) - 0 [09:32:37]OFD Sender: Remove packet 63951 [09:32:37]ProducePacketName [09:32:37]name=ofd_packets/00063951 [09:32:37]NVStorageDeleteData [09:32:37]Write to MH i2c: 01 00 00 96 0D A3 [09:32:37]Write i2c OK [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: 01 [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: 01 07 00 [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: 01 07 00 96 0D 00 00 00 00 00 A4 0C 5A [09:32:37]RasterBufferAndPrint [09:32:37]line [09:32:37]line [09:32:37]line [09:32:37]line [09:32:37]line [09:32:37]written 0, free lines is 3240 [09:32:37]MH_Cut [09:32:37]Write to MH i2c: D1 01 00 9D 0D 01 7C [09:32:37]Write i2c OK [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: D1 [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: D1 01 00 [09:32:37]MH_I2C_Read... [09:32:37]Read from MH i2c: D1 01 00 9D 0D 00 7B [09:32:37]Write to MH i2c: 01 00 00 9E 0D AB [09:32:37]Write i2c OK [09:32:37]MH_I2C_Read... [09:32:37]OFD Sender: No OFD packet to send [09:32:38]*** Cut start [09:32:38]*** Partial cut [09:32:38]*** CUTSNS_PIN = 1 [09:32:38]*** CUTSNS_PIN = 0 [09:32:38]*** Brake cut motor [09:32:39]Read from MH i2c: 01 [09:32:39]MH_I2C_Read... [09:32:39]*** Stop cut motor [09:32:39]*** Cut end [09:32:39]Read from MH i2c: 01 07 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: 01 07 00 9E 0D 00 00 00 00 00 FF 0F C0 [09:32:39]process_action close_receipt done [09:32:39]requested_data is exist [09:32:39]produce_requested_data [09:32:39]requested_item fm.sn is exist - process it [09:32:39]wFMCommunicate request_size=4 [09:32:39]MH_SAM_APDU [09:32:39]CAPDU: 80 11 00 00 [09:32:39]Write to MH i2c: E2 08 00 9F 0D 80 11 00 00 00 00 00 00 26 [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:39]Read from MH i2c: E2 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 17 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 17 00 9F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 78 [09:32: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:32:39]wFMCommunicate OK [09:32:39]requested_item fd.num is exist - process it [09:32:39]SAM_PROTO_GetFieldsCounters [09:32:39]wFMCommunicate request_size=4 [09:32:39]MH_SAM_APDU [09:32:39]CAPDU: 80 13 00 00 [09:32:39]Write to MH i2c: E2 08 00 A0 0D 80 13 00 00 00 00 00 00 29 [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:39]Read from MH i2c: E2 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 62 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 62 00 A0 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 CF F9 00 00 0E 04 04 00 76 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 F7 [09:32:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 CF F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:39]wFMCommunicate OK [09:32:39]SAM_PROTO_GetFieldsCounters done [09:32:39]requested_item shift.num is exist - process it [09:32:39]requested_item shift.opened is exist - process it [09:32:39]req_shift_opened [09:32:39]FM_GetShiftState [09:32:39]SAM_PROTO_GetShiftState [09:32:39]wFMCommunicate request_size=4 [09:32:39]MH_SAM_APDU [09:32:39]CAPDU: 80 13 01 00 [09:32:39]Write to MH i2c: E2 08 00 A1 0D 80 13 01 00 00 00 00 00 2B [09:32:39]Write i2c OK [09:32:39]MH_I2C_Read... [09:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:39]Read from MH i2c: E2 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 0E 00 [09:32:39]MH_I2C_Read... [09:32:39]Read from MH i2c: E2 0E 00 A1 0D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 CB [09:32:39]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:32:39]wFMCommunicate OK [09:32:39]SAM_PROTO_GetShiftState done [09:32:39]FM_GetShiftState done [09:32:39]req_shift_opened done [09:32:39]requested_item shift.open_date is exist - process it [09:32:39]req_shift_open_date [09:32:39]req_shift_open_date done [09:32:39]produce_requested_data done [09:32:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63951,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [09:32:39]process_action_free close_receipt [09:32:39]json_value_free [09:32:39]json_value_free done [09:32:39]process_json_proto returns [09:32:39]Send response to host [09:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63951,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [09:32:39]free response buf [09:32:39]execute_script done [09:32:39]execute_script returns [09:32:39]free content buf [09:32:39]Sock 9.Close socket [09:32:39]Sock 9.Thread stoped [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:55]accept exits with 7 [09:40:55]New connection [09:40:55]New thread 3066912100 created [09:40:55]Thread 3067055460 joined [09:40:55]Waiting for new connection... [09:40:55] Sock 7.Parse request [09:40:55]Sock 7.Check first char [09:40:55]Sock 7.First char is OK [09:40:55]request: POST /json_proto HTTP/1.0 [09:40:55]Method: POST [09:40:55]URL: /json_proto [09:40:55]Method is POST - this is cgi request [09:40:55]url: /json_proto [09:40:55]query_string will be loaded in cgi processing [09:40:55]execute_cgi json_proto POST (null) [09:40:55]execute_cgi path=json_proto method=POST [09:40:55]POST find Content-Length [09:40:55]Host: 172.17.60.69:8080 [09:40:55]Content-Length: 1429 [09:40:55]Content-Type: application/json [09:40:55] [09:40:55]POST finish read [09:40:55]Found Content-Length = 1429 [09:40:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73513", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:55]execute_script... [09:40:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73513", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032710015", "name": "\u0421\u043E\u0447\u043D\u0438\u043A DC \u0442\u0432\u043E\u0440\u043E\u0433 75\u0433", "price" : 35.00, "quantity" : 2.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:55]POST & json_proto [09:40:55]process_json_proto [09:40:55]json parsed OK: [09:40:55]protocol is kg_v1.0 [09:40:55]action value=close_receipt [09:40:55]process_action close_receipt [09:40:55]cmd_close_receipt [09:40:55]MH_GetDate [09:40:55]Write to MH i2c: F0 00 00 A2 0D 9E [09:40:55]Write i2c OK [09:40:55]MH_I2C_Read... [09:40:55]Read from MH i2c: F0 [09:40:55]MH_I2C_Read... [09:40:55]Read from MH i2c: F0 09 00 [09:40:55]MH_I2C_Read... [09:40:55]Read from MH i2c: F0 09 00 A2 0D 00 29 E1 5E 66 6A 96 4A 66 25 [09:40:55]GetLastDocTimeStamp 1717493557 [09:40:55]current date 1717494057 [09:40:55]FM_GetShiftState [09:40:55]SAM_PROTO_GetShiftState [09:40:55]wFMCommunicate request_size=4 [09:40:55]MH_SAM_APDU [09:40:55]CAPDU: 80 13 01 00 [09:40:55]Write to MH i2c: E2 08 00 A3 0D 80 13 01 00 00 00 00 00 2D [09:40:55]Write i2c OK [09:40:55]MH_I2C_Read... [09:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:55]Read from MH i2c: E2 [09:40:55]MH_I2C_Read... [09:40:55]Read from MH i2c: E2 0E 00 [09:40:55]MH_I2C_Read... [09:40:55]Read from MH i2c: E2 0E 00 A3 0D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 CD [09:40:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:40:55]wFMCommunicate OK [09:40:55]SAM_PROTO_GetShiftState done [09:40:55]FM_GetShiftState done [09:40:55]opened in 1717459574 [09:40:55]opened+sec_in_day 1717545974 [09:40:55]quantity*price = 7500 [09:40:55]sum+1 = 7501 [09:40:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032710015 Сочник DC творог 75г 2.000 * 35.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.66 Наличными: 0.00 Безнал.: 270.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 37 04.06.2024 09:40 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63952 ФПД: 96533116509681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094057&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63952&fm=96533116509681&tin=02508201610067®Number=0000000000092737&sum=27000 0 [09:40:56]StoreToDocumentArchive [09:40:56]shift 374 fd 63952 [09:40:56]save to /storage/0374/doc_00063952 [09:40:56]save last doc name /storage/0374/doc_00063952 to /storage/kkm_last_doc_name [09:40:56]save OK [09:40:56]Clear old archive folders... [09:40:56]ProcessDocumentItem done err = 0, tmpTLVsize=521 [09:40:56]tlvbuf is 012B5180 [09:40:56]SAM_PROTO_ClearQueue [09:40:56]wFMCommunicate request_size=4 [09:40:56]MH_SAM_APDU [09:40:56]CAPDU: 80 09 00 00 [09:40:56]Write to MH i2c: E2 08 00 B0 0D 80 09 00 00 00 00 00 00 2F [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:56]Read from MH i2c: E2 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 B0 0D 00 90 00 31 [09:40:56]RAPDU: 90 00 [09:40:56]wFMCommunicate OK [09:40:56]SAM_PROTO_ClearQueue done [09:40:56]KKMCreateOFDPacket [09:40:56]OFDProtocolAddRootSTLVToBuf [09:40:56]FM_MakeSignedData [09:40:56]FM_MakeSignedData [09:40:56]SAM_PROTO_SignData [09:40:56]wFMCommunicate request_size=4 [09:40:56]MH_SAM_APDU [09:40:56]CAPDU: 80 0D 01 02 [09:40:56]Write to MH i2c: E2 08 00 B1 0D 80 0D 01 02 00 00 00 00 37 [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:56]Read from MH i2c: E2 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 [09:40:56]MH_I2C_Read... [09:40:56]Read from MH i2c: E2 03 00 B1 0D 00 90 00 32 [09:40:56]RAPDU: 90 00 [09:40:56]wFMCommunicate OK [09:40:56]wFMCommunicate request_size=255 [09:40:56]MH_SAM_APDU [09:40:56]CAPDU: 80 0D 02 02 FA 03 00 09 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [09:40:56]Write to MH i2c: E2 02 01 B2 0D 80 0D 02 02 FA 00 03 00 09 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 E7 [09:40:56]Write i2c OK [09:40:56]MH_I2C_Read... [09:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:57]Read from MH i2c: E2 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 B2 0D 00 90 00 33 [09:40:57]RAPDU: 90 00 [09:40:57]wFMCommunicate OK [09:40:57]wFMCommunicate request_size=255 [09:40:57]MH_SAM_APDU [09:40:57]CAPDU: 80 0D 02 02 FA 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 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 29 E1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [09:40:57]Write to MH i2c: E2 02 01 B3 0D 80 0D 02 02 FA 00 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 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 29 E1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 3D [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:57]Read from MH i2c: E2 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 B3 0D 00 90 00 34 [09:40:57]RAPDU: 90 00 [09:40:57]wFMCommunicate OK [09:40:57]wFMCommunicate request_size=30 [09:40:57]MH_SAM_APDU [09:40:57]CAPDU: 80 0D 02 02 19 30 38 37 35 30 37 34 10 04 04 00 D0 F9 00 00 35 04 06 00 57 CB DE 1E 5D F1 [09:40:57]Write to MH i2c: E2 21 00 B4 0D 80 0D 02 02 19 00 30 38 37 35 30 37 34 10 04 04 00 D0 F9 00 00 35 04 06 00 57 CB DE 1E 5D F1 00 00 68 [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:57]Read from MH i2c: E2 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 03 00 B4 0D 00 90 00 35 [09:40:57]RAPDU: 90 00 [09:40:57]wFMCommunicate OK [09:40:57]wFMCommunicate request_size=4 [09:40:57]MH_SAM_APDU [09:40:57]CAPDU: 80 0D 03 02 [09:40:57]Write to MH i2c: E2 08 00 B5 0D 80 0D 03 02 00 00 00 00 3D [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:57]Read from MH i2c: E2 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 0B 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 0B 00 B5 0D 00 92 96 57 67 2B F7 97 12 90 00 EF [09:40:57]RAPDU: 92 96 57 67 2B F7 97 12 90 00 [09:40:57]wFMCommunicate OK [09:40:57]SAM_PROTO_SignData done [09:40:57]FM_MakeSignedData done [09:40:57]CreateOFDProtocolMessage [09:40:57]wFMCommunicate request_size=4 [09:40:57]MH_SAM_APDU [09:40:57]CAPDU: 80 11 00 00 [09:40:57]Write to MH i2c: E2 08 00 B6 0D 80 11 00 00 00 00 00 00 3D [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:57]Read from MH i2c: E2 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 17 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: E2 17 00 B6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8F [09:40: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:40:57]wFMCommunicate OK [09:40:57]CreateOFDProtocolMessage done [09:40:57]OFDSenderStorePacket 63952 [09:40:57]StoreOFDPacket docnum=63952 [09:40: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 1D 02 00 00 1D DB 15 02 BE 32 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 29 E1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D0 F9 00 00 35 04 06 00 57 CB DE 1E 5D F1 92 96 57 67 2B F7 97 12 [09:40:57]CheckFolder [09:40:57]dirname=/storage/ofd_packets [09:40:57]CheckFolder done [09:40:57]ProducePacketName [09:40:57]name=ofd_packets/00063952 [09:40:57]NVStorageSaveData ofd_packets/00063952 [09:40:57]File name is /storage/ofd_packets/00063952 [09:40:57]Write 571 bytes [09:40:57]NVStorageSaveData done [09:40:57]OFDSenderStorePacket done [09:40:57]KKMCreateOFDPacket done [09:40:57]NVStorageSaveData kkm_last_timestamp [09:40:57]File name is /storage/kkm_last_timestamp [09:40:57]Write 4 bytes [09:40:57]NVStorageSaveData done [09:40:57]ExternCall_PrintAddStr [09:40:57]wPrintStart [09:40:57]Write to MH i2c: 01 00 00 B7 0D C4 [09:40:57]Write i2c OK [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: 01 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: 01 07 00 [09:40:57]MH_I2C_Read... [09:40:57]Read from MH i2c: 01 07 00 B7 0D 00 00 00 00 00 FF 0F D9 [09:40:57]RasterBufferAndPrint [09:40:57]line Счет N : (3)73513 [09:40:57]line ИНН: 02508201610067 [09:40:57]line Контрольно-Кассовый Чек [09:40:57]line ПРОДАЖА [09:40:57]line Товар: 4870112003956 [09:40:57]line Шок батончик ALBENI SUPER Альбени Супер [09:40:57]line 1.000 * 75.00 [09:40:57]line = 75.00 [09:40:57]line НДС 12% НСП 1% [09:40:57]line > о реализуемом товаре [09:40:57]line Товар: 2000032710015 [09:40:57]line Сочник DC творог 75г [09:40:57]line 2.000 * 35.00 [09:40:57]line = 70.00 [09:40:57]line НДС 12% НСП 1% [09:40:57]line > о реализуемом товаре [09:40:57]line Товар: 2000036220012 [09:40:57]line Кофе Капучино XL(GABB TRADE) [09:40:57]line 1.000 * 125.00 [09:40:57]line = 125.00 [09:40:57]line НДС 12% НСП 1% [09:40:57]line > о реализуемом товаре [09:40:57]line ИТОГО: 270.00 [09:40:57]line НСП 1% : 2.39 [09:40:57]line НДС 12% : 28.66 [09:40:57]line Наличными: 0.00 [09:40:57]line Безнал.: 270.00 [09:40:57]line Место: АЗС № 117 "Партнер Нефть" [09:40:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:40:57]line СНО: Общий режим [09:40:57]line Чек 37 04.06.2024 09:40 [09:40:57]line Смена: 374 ФФД: 1.0 [09:40:57]line ЗНМ: 0300000031 [09:40:57]line РНМ: 0000000000092737 [09:40:57]line Версия ККМ: 001 [09:40:57]line Платежная система: АКБ Кыргызстан [09:40:57]line ФМ: 0000000000875074 [09:40:57]line ФД: 63952 [09:40:57]line ФПД: 96533116509681 [09:40:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094057&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63952&fm=96533116509681&tin=02508201610067®Number=0000000000092737&sum=27000 [09:40:57]line 0 [09:40:57]OFD Sender: Processing packet 63952 [packets to send 14, broken 13] [09:40:57]ProducePacketName [09:40:57]name=ofd_packets/00063952 [09:40:57]OFD Sender: To server: pG, [09:40:57]CommunicateWithHost lk.salyk.kg:30040 [09:40:57]ConnectInit lk.salyk.kg [09:40:57]written 0, free lines is 4095 [09:40:57]Connected sock=10 [09:40:57]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 1D 02 00 00 1D DB 15 02 BE 32 5A 03 01 00 03 00 09 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 32 30 30 30 30 33 32 37 31 30 30 31 35 06 04 21 00 D0 A1 D0 BE D1 87 D0 BD D0 B8 D0 BA 20 44 43 20 D1 82 D0 B2 D0 BE D1 80 D0 BE D0 B3 20 37 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 29 E1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D0 F9 00 00 35 04 06 00 57 CB DE 1E 5D F1 92 96 57 67 2B F7 97 12 [09:40: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 B4 BE 47 00 BF 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 D0 F9 00 00 F4 03 04 00 F8 8C 5E 66 B6 04 01 00 00 AC 86 9C 8F 6D DC EC E3 [09:40:58]CommunicateWithHost err = 0 [09:40:58]CheckOFDResponse [09:40:58]1017 (14) - 77093643461234 [09:40:58]1041 (16) - 0000000000875074 [09:40:58]1040 (4) - 63952 [09:40:58]1012 (4) - 04.06.2024 03:41 [09:40:58]1206 (1) - 0 [09:40:58]OFD Sender: Remove packet 63952 [09:40:58]ProducePacketName [09:40:58]name=ofd_packets/00063952 [09:40:58]NVStorageDeleteData [09:40:58]Write to MH i2c: 01 00 00 EF 0D FC [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 07 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 F4 0B 02 [09:40:58]RasterBufferAndPrint [09:40:58]line [09:40:58]line [09:40:58]line [09:40:58]line [09:40:58]line [09:40:58]written 0, free lines is 3066 [09:40:58]MH_Cut [09:40:58]Write to MH i2c: D1 01 00 F6 0D 01 D5 [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: D1 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: D1 01 00 [09:40:58]MH_I2C_Read... [09:40:58]Read from MH i2c: D1 01 00 F6 0D 00 D4 [09:40:58]Write to MH i2c: 01 00 00 F7 0D 04 [09:40:58]Write i2c OK [09:40:58]MH_I2C_Read... [09:40:58]OFD Sender: No OFD packet to send [09:40:59]*** Cut start [09:40:59]*** Partial cut [09:40:59]*** CUTSNS_PIN = 1 [09:40:59]*** CUTSNS_PIN = 0 [09:40:59]*** Brake cut motor [09:41:00]Read from MH i2c: 01 [09:41:00]MH_I2C_Read... [09:41:00]*** Stop cut motor [09:41:00]*** Cut end [09:41:00]Read from MH i2c: 01 07 00 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: 01 07 00 F7 0D 00 00 00 00 00 FF 0F 19 [09:41:00]process_action close_receipt done [09:41:00]requested_data is exist [09:41:00]produce_requested_data [09:41:00]requested_item fm.sn is exist - process it [09:41:00]wFMCommunicate request_size=4 [09:41:00]MH_SAM_APDU [09:41:00]CAPDU: 80 11 00 00 [09:41:00]Write to MH i2c: E2 08 00 F8 0D 80 11 00 00 00 00 00 00 7F [09:41:00]Write i2c OK [09:41:00]MH_I2C_Read... [09:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:00]Read from MH i2c: E2 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: E2 17 00 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: E2 17 00 F8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D1 [09:41: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:41:00]wFMCommunicate OK [09:41:00]requested_item fd.num is exist - process it [09:41:00]SAM_PROTO_GetFieldsCounters [09:41:00]wFMCommunicate request_size=4 [09:41:00]MH_SAM_APDU [09:41:00]CAPDU: 80 13 00 00 [09:41:00]Write to MH i2c: E2 08 00 F9 0D 80 13 00 00 00 00 00 00 82 [09:41:00]Write i2c OK [09:41:00]MH_I2C_Read... [09:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:00]Read from MH i2c: E2 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: E2 62 00 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: E2 62 00 F9 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 D0 F9 00 00 0E 04 04 00 76 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 54 [09:41: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 D0 F9 00 00 0E 04 04 00 76 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 [09:41:00]wFMCommunicate OK [09:41:00]SAM_PROTO_GetFieldsCounters done [09:41:00]requested_item shift.num is exist - process it [09:41:00]requested_item shift.opened is exist - process it [09:41:00]req_shift_opened [09:41:00]FM_GetShiftState [09:41:00]SAM_PROTO_GetShiftState [09:41:00]wFMCommunicate request_size=4 [09:41:00]MH_SAM_APDU [09:41:00]CAPDU: 80 13 01 00 [09:41:00]Write to MH i2c: E2 08 00 FA 0D 80 13 01 00 00 00 00 00 84 [09:41:00]Write i2c OK [09:41:00]MH_I2C_Read... [09:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:00]Read from MH i2c: E2 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: E2 0E 00 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: E2 0E 00 FA 0D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 24 [09:41:00]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:41:00]wFMCommunicate OK [09:41:00]SAM_PROTO_GetShiftState done [09:41:00]FM_GetShiftState done [09:41:00]req_shift_opened done [09:41:00]requested_item shift.open_date is exist - process it [09:41:00]req_shift_open_date [09:41:00]req_shift_open_date done [09:41:00]produce_requested_data done [09:41:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63952,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [09:41:00]process_action_free close_receipt [09:41:00]json_value_free [09:41:00]json_value_free done [09:41:00]process_json_proto returns [09:41:00]Send response to host [09:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63952,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [09:41:00]free response buf [09:41:00]execute_script done [09:41:00]execute_script returns [09:41:00]free content buf [09:41:00]Sock 7.Close socket [09:41:00]Sock 7.Thread stoped [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:52]accept exits with 9 [09:41:52]New connection [09:41:52]New thread 3067055460 created [09:41:52]Thread 3066912100 joined [09:41:52]Waiting for new connection... [09:41:52] Sock 9.Parse request [09:41:52]Sock 9.Check first char [09:41:52]Sock 9.First char is OK [09:41:52]request: POST /json_proto HTTP/1.0 [09:41:52]Method: POST [09:41:52]URL: /json_proto [09:41:52]Method is POST - this is cgi request [09:41:52]url: /json_proto [09:41:52]query_string will be loaded in cgi processing [09:41:52]execute_cgi json_proto POST (null) [09:41:52]execute_cgi path=json_proto method=POST [09:41:52]POST find Content-Length [09:41:52]Host: 172.17.60.69:8080 [09:41:52]Content-Length: 670 [09:41:52]Content-Type: application/json [09:41:52] [09:41:52]POST finish read [09:41:52]Found Content-Length = 670 [09:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73514", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:52]execute_script... [09:41: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)73514", "tax_sys" : 0, "items" : [ { "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:52]POST & json_proto [09:41:52]process_json_proto [09:41:52]json parsed OK: [09:41:52]protocol is kg_v1.0 [09:41:52]action value=close_receipt [09:41:52]process_action close_receipt [09:41:52]cmd_close_receipt [09:41:52]MH_GetDate [09:41:52]Write to MH i2c: F0 00 00 FB 0D F7 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: F0 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: F0 09 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: F0 09 00 FB 0D 00 63 E1 5E 66 6A 96 4A 66 B8 [09:41:52]GetLastDocTimeStamp 1717494057 [09:41:52]current date 1717494115 [09:41:52]FM_GetShiftState [09:41:52]SAM_PROTO_GetShiftState [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 13 01 00 [09:41:52]Write to MH i2c: E2 08 00 FC 0D 80 13 01 00 00 00 00 00 86 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 0E 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 0E 00 FC 0D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 26 [09:41:52]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:41:52]wFMCommunicate OK [09:41:52]SAM_PROTO_GetShiftState done [09:41:52]FM_GetShiftState done [09:41:52]opened in 1717459574 [09:41:52]opened+sec_in_day 1717545974 [09:41:52]quantity*price = 9500 [09:41:52]sum+1 = 9501 [09:41:52]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 СНО: Общий режим Чек 38 04.06.2024 09:41 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63953 ФПД: 20938063547905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094155&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63953&fm=20938063547905&tin=02508201610067®Number=0000000000092737&sum=9500 0 [09:41:53]StoreToDocumentArchive [09:41:53]shift 374 fd 63953 [09:41:53]save to /storage/0374/doc_00063953 [09:41:53]save last doc name /storage/0374/doc_00063953 to /storage/kkm_last_doc_name [09:41:53]save OK [09:41:53]Clear old archive folders... [09:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=290 [09:41:53]tlvbuf is 012CECE0 [09:41:53]SAM_PROTO_ClearQueue [09:41:53]wFMCommunicate request_size=4 [09:41:53]MH_SAM_APDU [09:41:53]CAPDU: 80 09 00 00 [09:41:53]Write to MH i2c: E2 08 00 09 0E 80 09 00 00 00 00 00 00 89 [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:53]Read from MH i2c: E2 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 03 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [09:41:53]RAPDU: 90 00 [09:41:53]wFMCommunicate OK [09:41:53]SAM_PROTO_ClearQueue done [09:41:53]KKMCreateOFDPacket [09:41:53]OFDProtocolAddRootSTLVToBuf [09:41:53]FM_MakeSignedData [09:41:53]FM_MakeSignedData [09:41:53]SAM_PROTO_SignData [09:41:53]wFMCommunicate request_size=4 [09:41:53]MH_SAM_APDU [09:41:53]CAPDU: 80 0D 01 02 [09:41:53]Write to MH i2c: E2 08 00 0A 0E 80 0D 01 02 00 00 00 00 91 [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [09:41:54]RAPDU: 90 00 [09:41:54]wFMCommunicate OK [09:41:54]wFMCommunicate request_size=255 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 63 E1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [09:41:54]Write to MH i2c: E2 02 01 0B 0E 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 63 E1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 05 [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [09:41:54]RAPDU: 90 00 [09:41:54]wFMCommunicate OK [09:41:54]wFMCommunicate request_size=49 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 0D 02 02 2C 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D1 F9 00 00 35 04 06 00 13 0B 05 D7 0E 01 [09:41:54]Write to MH i2c: E2 34 00 0C 0E 80 0D 02 02 2C 00 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D1 F9 00 00 35 04 06 00 13 0B 05 D7 0E 01 00 00 96 [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:54]Read from MH i2c: E2 03 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 0C 0E 00 90 00 8E [09:41:54]RAPDU: 90 00 [09:41:54]wFMCommunicate OK [09:41:54]wFMCommunicate request_size=4 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 0D 03 02 [09:41:54]Write to MH i2c: E2 08 00 0D 0E 80 0D 03 02 00 00 00 00 96 [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 0B 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 0B 00 0D 0E 00 11 1F B7 65 76 7D 83 AE 90 00 07 [09:41:54]RAPDU: 11 1F B7 65 76 7D 83 AE 90 00 [09:41:54]wFMCommunicate OK [09:41:54]SAM_PROTO_SignData done [09:41:54]FM_MakeSignedData done [09:41:54]CreateOFDProtocolMessage [09:41:54]wFMCommunicate request_size=4 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 11 00 00 [09:41:54]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 17 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E8 [09:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:41:54]wFMCommunicate OK [09:41:54]CreateOFDProtocolMessage done [09:41:54]OFDSenderStorePacket 63953 [09:41:54]StoreOFDPacket docnum=63953 [09:41: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 36 01 00 00 F3 E2 2E 01 74 C1 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 63 E1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D1 F9 00 00 35 04 06 00 13 0B 05 D7 0E 01 11 1F B7 65 76 7D 83 AE [09:41:54]CheckFolder [09:41:54]dirname=/storage/ofd_packets [09:41:54]CheckFolder done [09:41:54]ProducePacketName [09:41:54]name=ofd_packets/00063953 [09:41:54]NVStorageSaveData ofd_packets/00063953 [09:41:54]File name is /storage/ofd_packets/00063953 [09:41:54]Write 340 bytes [09:41:54]NVStorageSaveData done [09:41:54]OFDSenderStorePacket done [09:41:54]KKMCreateOFDPacket done [09:41:54]NVStorageSaveData kkm_last_timestamp [09:41:54]File name is /storage/kkm_last_timestamp [09:41:54]Write 4 bytes [09:41:54]NVStorageSaveData done [09:41:54]ExternCall_PrintAddStr [09:41:54]wPrintStart [09:41:54]Write to MH i2c: 01 00 00 0F 0E 1D [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: 01 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: 01 07 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [09:41:54]RasterBufferAndPrint [09:41:54]line Счет N : (3)73514 [09:41:54]line ИНН: 02508201610067 [09:41:54]line Контрольно-Кассовый Чек [09:41:54]line ПРОДАЖА [09:41:54]line Товар: 4700000483334 [09:41:54]line Напиток Nitro Fresh Дикие ягоды [09:41:54]line 1.000 * 95.00 [09:41:54]line = 95.00 [09:41:54]line НДС 12% НСП 1% [09:41:54]line > о реализуемом товаре [09:41:54]line ИТОГО: 95.00 [09:41:54]line НСП 1% : 0.84 [09:41:54]line НДС 12% : 10.09 [09:41:54]line Наличными: 95.00 [09:41:54]line Безнал.: 0.00 [09:41:54]line Место: АЗС № 117 "Партнер Нефть" [09:41:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:41:54]line СНО: Общий режим [09:41:54]line Чек 38 04.06.2024 09:41 [09:41:54]line Смена: 374 ФФД: 1.0 [09:41:54]line ЗНМ: 0300000031 [09:41:54]line РНМ: 0000000000092737 [09:41:54]line Версия ККМ: 001 [09:41:54]line ФМ: 0000000000875074 [09:41:54]line ФД: 63953 [09:41:54]line ФПД: 20938063547905 [09:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T094155&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63953&fm=20938063547905&tin=02508201610067®Number=0000000000092737&sum=9500 [09:41:54]line 0 [09:41:54]OFD Sender: Processing packet 63953 [packets to send 14, broken 13] [09:41:54]ProducePacketName [09:41:54]name=ofd_packets/00063953 [09:41:54]OFD Sender: To server: pG, [09:41:54]CommunicateWithHost lk.salyk.kg:30040 [09:41:54]ConnectInit lk.salyk.kg [09:41:54]written 0, free lines is 4095 [09:41:54]Connected sock=10 [09:41: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 36 01 00 00 F3 E2 2E 01 74 C1 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 63 E1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D1 F9 00 00 35 04 06 00 13 0B 05 D7 0E 01 11 1F B7 65 76 7D 83 AE [09:41: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 0D C2 47 00 71 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 D1 F9 00 00 F4 03 04 00 31 8D 5E 66 B6 04 01 00 00 29 30 88 85 27 4F 44 AB [09:41:55]CommunicateWithHost err = 0 [09:41:55]CheckOFDResponse [09:41:55]1017 (14) - 77093643461234 [09:41:55]1041 (16) - 0000000000875074 [09:41:55]1040 (4) - 63953 [09:41:55]1012 (4) - 04.06.2024 03:42 [09:41:55]1206 (1) - 0 [09:41:55]OFD Sender: Remove packet 63953 [09:41:55]ProducePacketName [09:41:55]name=ofd_packets/00063953 [09:41:55]NVStorageDeleteData [09:41:55]Write to MH i2c: 01 00 00 38 0E 46 [09:41:55]Write i2c OK [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: 01 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: 01 07 00 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: 01 07 00 38 0E 00 00 00 00 00 D8 0C 31 [09:41:55]RasterBufferAndPrint [09:41:55]line [09:41:55]line [09:41:55]line [09:41:55]line [09:41:55]line [09:41:55]written 0, free lines is 3294 [09:41:55]MH_Cut [09:41:55]Write to MH i2c: D1 01 00 3F 0E 01 1F [09:41:55]Write i2c OK [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: D1 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: D1 01 00 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: D1 01 00 3F 0E 00 1E [09:41:55]Write to MH i2c: 01 00 00 40 0E 4E [09:41:55]Write i2c OK [09:41:55]MH_I2C_Read... [09:41:55]OFD Sender: No OFD packet to send [09:41:55]*** Cut start [09:41:55]*** Partial cut [09:41:55]*** CUTSNS_PIN = 1 [09:41:56]*** CUTSNS_PIN = 0 [09:41:56]*** Brake cut motor [09:41:56]Read from MH i2c: 01 [09:41:56]MH_I2C_Read... [09:41:56]*** Stop cut motor [09:41:56]*** Cut end [09:41:56]Read from MH i2c: 01 07 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 FF 0F 63 [09:41:56]process_action close_receipt done [09:41:56]requested_data is exist [09:41:56]produce_requested_data [09:41:56]requested_item fm.sn is exist - process it [09:41:56]wFMCommunicate request_size=4 [09:41:56]MH_SAM_APDU [09:41:56]CAPDU: 80 11 00 00 [09:41:56]Write to MH i2c: E2 08 00 41 0E 80 11 00 00 00 00 00 00 C9 [09:41:56]Write i2c OK [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 [09:41:56]MH_I2C_Read... [09:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:56]Read from MH i2c: E2 17 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 17 00 41 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1B [09:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:41:56]wFMCommunicate OK [09:41:56]requested_item fd.num is exist - process it [09:41:56]SAM_PROTO_GetFieldsCounters [09:41:56]wFMCommunicate request_size=4 [09:41:56]MH_SAM_APDU [09:41:56]CAPDU: 80 13 00 00 [09:41:56]Write to MH i2c: E2 08 00 42 0E 80 13 00 00 00 00 00 00 CC [09:41:56]Write i2c OK [09:41:56]MH_I2C_Read... [09:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:56]Read from MH i2c: E2 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 62 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 62 00 42 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 D1 F9 00 00 0E 04 04 00 76 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 A2 [09:41: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 D1 F9 00 00 0E 04 04 00 76 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:41:56]wFMCommunicate OK [09:41:56]SAM_PROTO_GetFieldsCounters done [09:41:56]requested_item shift.num is exist - process it [09:41:56]requested_item shift.opened is exist - process it [09:41:56]req_shift_opened [09:41:56]FM_GetShiftState [09:41:56]SAM_PROTO_GetShiftState [09:41:56]wFMCommunicate request_size=4 [09:41:56]MH_SAM_APDU [09:41:56]CAPDU: 80 13 01 00 [09:41:56]Write to MH i2c: E2 08 00 43 0E 80 13 01 00 00 00 00 00 CE [09:41:56]Write i2c OK [09:41:56]MH_I2C_Read... [09:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:56]Read from MH i2c: E2 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 0E 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 0E 00 43 0E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6E [09:41:56]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:41:56]wFMCommunicate OK [09:41:56]SAM_PROTO_GetShiftState done [09:41:56]FM_GetShiftState done [09:41:56]req_shift_opened done [09:41:56]requested_item shift.open_date is exist - process it [09:41:56]req_shift_open_date [09:41:56]req_shift_open_date done [09:41:56]produce_requested_data done [09:41:56]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63953,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [09:41:56]process_action_free close_receipt [09:41:56]json_value_free [09:41:56]json_value_free done [09:41:56]process_json_proto returns [09:41:56]Send response to host [09:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63953,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [09:41:56]free response buf [09:41:56]execute_script done [09:41:56]execute_script returns [09:41:56]free content buf [09:41:56]Sock 9.Close socket [09:41:56]Sock 9.Thread stoped [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:39]accept exits with 7 [09:50:39]New connection [09:50:39]New thread 3066912100 created [09:50:39]Thread 3067055460 joined [09:50:39]Waiting for new connection... [09:50:39] Sock 7.Parse request [09:50:39]Sock 7.Check first char [09:50:39]Sock 7.First char is OK [09:50:39]request: POST /json_proto HTTP/1.0 [09:50:39]Method: POST [09:50:39]URL: /json_proto [09:50:39]Method is POST - this is cgi request [09:50:39]url: /json_proto [09:50:39]query_string will be loaded in cgi processing [09:50:39]execute_cgi json_proto POST (null) [09:50:39]execute_cgi path=json_proto method=POST [09:50:39]POST find Content-Length [09:50:39]Host: 172.17.60.69:8080 [09:50:39]Content-Length: 914 [09:50:39]Content-Type: application/json [09:50:39] [09:50:39]POST finish read [09:50:39]Found Content-Length = 914 [09:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73515", "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": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:39]execute_script... [09:50: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)73515", "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": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:39]POST & json_proto [09:50:39]process_json_proto [09:50:39]json parsed OK: [09:50:39]protocol is kg_v1.0 [09:50:39]action value=close_receipt [09:50:39]process_action close_receipt [09:50:39]cmd_close_receipt [09:50:39]MH_GetDate [09:50:39]Write to MH i2c: F0 00 00 44 0E 41 [09:50:39]Write i2c OK [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: F0 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: F0 09 00 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: F0 09 00 44 0E 00 71 E3 5E 66 6A 96 4A 66 12 [09:50:39]GetLastDocTimeStamp 1717494115 [09:50:39]current date 1717494641 [09:50:39]FM_GetShiftState [09:50:39]SAM_PROTO_GetShiftState [09:50:39]wFMCommunicate request_size=4 [09:50:39]MH_SAM_APDU [09:50:39]CAPDU: 80 13 01 00 [09:50:39]Write to MH i2c: E2 08 00 45 0E 80 13 01 00 00 00 00 00 D0 [09:50:39]Write i2c OK [09:50:39]MH_I2C_Read... [09:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:39]Read from MH i2c: E2 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: E2 0E 00 [09:50:39]MH_I2C_Read... [09:50:39]Read from MH i2c: E2 0E 00 45 0E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 70 [09:50:39]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:50:39]wFMCommunicate OK [09:50:39]SAM_PROTO_GetShiftState done [09:50:39]FM_GetShiftState done [09:50:39]opened in 1717459574 [09:50:39]opened+sec_in_day 1717545974 [09:50:39]quantity*price = 12500 [09:50:39]sum+1 = 12501 [09:50:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741156 Сигареты LD Blue 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 СНО: Общий режим Чек 39 04.06.2024 09:50 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63954 ФПД: 130192740897247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095041&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63954&fm=130192740897247&tin=02508201610067®Number=0000000000092737&sum=25500 0 [09:50:40]StoreToDocumentArchive [09:50:40]shift 374 fd 63954 [09:50:40]save to /storage/0374/doc_00063954 [09:50:40]save last doc name /storage/0374/doc_00063954 to /storage/kkm_last_doc_name [09:50:40]save OK [09:50:40]Clear old archive folders... [09:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=385 [09:50:40]tlvbuf is 01257A60 [09:50:40]SAM_PROTO_ClearQueue [09:50:40]wFMCommunicate request_size=4 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 09 00 00 [09:50:40]Write to MH i2c: E2 08 00 52 0E 80 09 00 00 00 00 00 00 D2 [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [09:50:40]RAPDU: 90 00 [09:50:40]wFMCommunicate OK [09:50:40]SAM_PROTO_ClearQueue done [09:50:40]KKMCreateOFDPacket [09:50:40]OFDProtocolAddRootSTLVToBuf [09:50:40]FM_MakeSignedData [09:50:40]FM_MakeSignedData [09:50:40]SAM_PROTO_SignData [09:50:40]wFMCommunicate request_size=4 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 0D 01 02 [09:50:40]Write to MH i2c: E2 08 00 53 0E 80 0D 01 02 00 00 00 00 DA [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [09:50:40]RAPDU: 90 00 [09:50:40]wFMCommunicate OK [09:50:40]wFMCommunicate request_size=255 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 0D 02 02 FA 03 00 81 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 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [09:50:40]Write to MH i2c: E2 02 01 54 0E 80 0D 02 02 FA 00 03 00 81 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 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 25 [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [09:50:40]RAPDU: 90 00 [09:50:40]wFMCommunicate OK [09:50:40]wFMCommunicate request_size=144 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 0D 02 02 8B 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 27 00 00 00 F4 03 04 00 71 E3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D2 F9 00 00 35 04 06 00 76 68 DC 12 D1 DF [09:50:40]Write to MH i2c: E2 93 00 55 0E 80 0D 02 02 8B 00 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 27 00 00 00 F4 03 04 00 71 E3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D2 F9 00 00 35 04 06 00 76 68 DC 12 D1 DF 00 00 9D [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 03 00 55 0E 00 90 00 D7 [09:50:40]RAPDU: 90 00 [09:50:40]wFMCommunicate OK [09:50:40]wFMCommunicate request_size=4 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 0D 03 02 [09:50:40]Write to MH i2c: E2 08 00 56 0E 80 0D 03 02 00 00 00 00 DF [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 0B 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 0B 00 56 0E 00 00 D6 80 E8 43 1D BB B8 90 00 F1 [09:50:40]RAPDU: 00 D6 80 E8 43 1D BB B8 90 00 [09:50:40]wFMCommunicate OK [09:50:40]SAM_PROTO_SignData done [09:50:40]FM_MakeSignedData done [09:50:40]CreateOFDProtocolMessage [09:50:40]wFMCommunicate request_size=4 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 11 00 00 [09:50:40]Write to MH i2c: E2 08 00 57 0E 80 11 00 00 00 00 00 00 DF [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 17 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 17 00 57 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 31 [09:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:50:40]wFMCommunicate OK [09:50:40]CreateOFDProtocolMessage done [09:50:40]OFDSenderStorePacket 63954 [09:50:40]StoreOFDPacket docnum=63954 [09:50: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 95 01 00 00 60 E4 8D 01 77 BE 5A 03 01 00 03 00 81 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 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 27 00 00 00 F4 03 04 00 71 E3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D2 F9 00 00 35 04 06 00 76 68 DC 12 D1 DF 00 D6 80 E8 43 1D BB B8 [09:50:40]CheckFolder [09:50:40]dirname=/storage/ofd_packets [09:50:40]CheckFolder done [09:50:40]ProducePacketName [09:50:40]name=ofd_packets/00063954 [09:50:40]NVStorageSaveData ofd_packets/00063954 [09:50:40]File name is /storage/ofd_packets/00063954 [09:50:40]Write 435 bytes [09:50:40]NVStorageSaveData done [09:50:40]OFDSenderStorePacket done [09:50:40]KKMCreateOFDPacket done [09:50:40]NVStorageSaveData kkm_last_timestamp [09:50:40]File name is /storage/kkm_last_timestamp [09:50:40]Write 4 bytes [09:50:40]NVStorageSaveData done [09:50:40]ExternCall_PrintAddStr [09:50:40]wPrintStart [09:50:40]Write to MH i2c: 01 00 00 58 0E 66 [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: 01 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: 01 07 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 FF 0F 7B [09:50:41]RasterBufferAndPrint [09:50:41]line Счет N : (3)73515 [09:50:41]line ИНН: 02508201610067 [09:50:41]line Контрольно-Кассовый Чек [09:50:41]line ПРОДАЖА [09:50:41]line Товар: 4870202521247 [09:50:41]line Напиток MAXI чай 1,2 черн.персик [09:50:41]line 1.000 * 125.00 [09:50:41]line = 125.00 [09:50:41]line НДС 12% НСП 1% [09:50:41]line > о реализуемом товаре [09:50:41]line Товар: 48741156 [09:50:41]line Сигареты LD Blue [09:50:41]line 1.000 * 130.00 [09:50:41]line = 130.00 [09:50:41]line НДС 12% НСП 1% [09:50:41]line > о реализуемом товаре [09:50:41]line ИТОГО: 255.00 [09:50:41]line НСП 1% : 2.26 [09:50:41]line НДС 12% : 27.07 [09:50:41]line Наличными: 255.00 [09:50:41]line Безнал.: 0.00 [09:50:41]line Место: АЗС № 117 "Партнер Нефть" [09:50:41]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [09:50:41]line СНО: Общий режим [09:50:41]line Чек 39 04.06.2024 09:50 [09:50:41]line Смена: 374 ФФД: 1.0 [09:50:41]line ЗНМ: 0300000031 [09:50:41]line РНМ: 0000000000092737 [09:50:41]line Версия ККМ: 001 [09:50:41]line ФМ: 0000000000875074 [09:50:41]line ФД: 63954 [09:50:41]line ФПД: 130192740897247 [09:50:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T095041&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63954&fm=130192740897247&tin=02508201610067®Number=0000000000092737&sum=25500 [09:50:41]line 0 [09:50:41]OFD Sender: Processing packet 63954 [packets to send 14, broken 13] [09:50:41]ProducePacketName [09:50:41]name=ofd_packets/00063954 [09:50:41]OFD Sender: To server: pG, [09:50:41]CommunicateWithHost lk.salyk.kg:30040 [09:50:41]ConnectInit lk.salyk.kg [09:50:41]written 0, free lines is 4095 [09:50:41]Connected sock=10 [09:50: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 95 01 00 00 60 E4 8D 01 77 BE 5A 03 01 00 03 00 81 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 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 27 00 00 00 F4 03 04 00 71 E3 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D2 F9 00 00 35 04 06 00 76 68 DC 12 D1 DF 00 D6 80 E8 43 1D BB B8 [09:50: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 C0 24 47 00 CB C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D2 F9 00 00 F4 03 04 00 40 8F 5E 66 B6 04 01 00 00 B4 0B 29 38 A0 FF 48 B8 [09:50:41]CommunicateWithHost err = 0 [09:50:41]CheckOFDResponse [09:50:41]1017 (14) - 77093643461234 [09:50:41]1041 (16) - 0000000000875074 [09:50:41]1040 (4) - 63954 [09:50:41]1012 (4) - 04.06.2024 03:51 [09:50:41]1206 (1) - 0 [09:50:41]OFD Sender: Remove packet 63954 [09:50:41]ProducePacketName [09:50:41]name=ofd_packets/00063954 [09:50:41]NVStorageDeleteData [09:50:41]Write to MH i2c: 01 00 00 87 0E 95 [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 07 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: 01 07 00 87 0E 00 00 00 00 00 8F 0C 37 [09:50:41]RasterBufferAndPrint [09:50:41]line [09:50:41]line [09:50:41]line [09:50:41]line [09:50:41]line [09:50:41]written 0, free lines is 3222 [09:50:41]MH_Cut [09:50:41]Write to MH i2c: D1 01 00 8E 0E 01 6E [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: D1 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: D1 01 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: D1 01 00 8E 0E 00 6D [09:50:41]Write to MH i2c: 01 00 00 8F 0E 9D [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]OFD Sender: No OFD packet to send [09:50:42]*** Cut start [09:50:42]*** Partial cut [09:50:42]*** CUTSNS_PIN = 1 [09:50:42]*** CUTSNS_PIN = 0 [09:50:42]*** Brake cut motor [09:50:43]Read from MH i2c: 01 [09:50:43]MH_I2C_Read... [09:50:43]*** Stop cut motor [09:50:43]*** Cut end [09:50:43]Read from MH i2c: 01 07 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 8F 0E 00 00 00 00 00 FF 0F B2 [09:50:43]process_action close_receipt done [09:50:43]requested_data is exist [09:50:43]produce_requested_data [09:50:43]requested_item fm.sn is exist - process it [09:50:43]wFMCommunicate request_size=4 [09:50:43]MH_SAM_APDU [09:50:43]CAPDU: 80 11 00 00 [09:50:43]Write to MH i2c: E2 08 00 90 0E 80 11 00 00 00 00 00 00 18 [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:43]Read from MH i2c: E2 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 17 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 17 00 90 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6A [09:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [09:50:43]wFMCommunicate OK [09:50:43]requested_item fd.num is exist - process it [09:50:43]SAM_PROTO_GetFieldsCounters [09:50:43]wFMCommunicate request_size=4 [09:50:43]MH_SAM_APDU [09:50:43]CAPDU: 80 13 00 00 [09:50:43]Write to MH i2c: E2 08 00 91 0E 80 13 00 00 00 00 00 00 1B [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:43]Read from MH i2c: E2 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 62 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 62 00 91 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 D2 F9 00 00 0E 04 04 00 76 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 F5 [09:50: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 D2 F9 00 00 0E 04 04 00 76 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:50:43]wFMCommunicate OK [09:50:43]SAM_PROTO_GetFieldsCounters done [09:50:43]requested_item shift.num is exist - process it [09:50:43]requested_item shift.opened is exist - process it [09:50:43]req_shift_opened [09:50:43]FM_GetShiftState [09:50:43]SAM_PROTO_GetShiftState [09:50:43]wFMCommunicate request_size=4 [09:50:43]MH_SAM_APDU [09:50:43]CAPDU: 80 13 01 00 [09:50:43]Write to MH i2c: E2 08 00 92 0E 80 13 01 00 00 00 00 00 1D [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:43]Read from MH i2c: E2 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 0E 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 0E 00 92 0E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 BD [09:50:43]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [09:50:43]wFMCommunicate OK [09:50:43]SAM_PROTO_GetShiftState done [09:50:43]FM_GetShiftState done [09:50:43]req_shift_opened done [09:50:43]requested_item shift.open_date is exist - process it [09:50:43]req_shift_open_date [09:50:43]req_shift_open_date done [09:50:43]produce_requested_data done [09:50:43]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63954,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [09:50:43]process_action_free close_receipt [09:50:43]json_value_free [09:50:43]json_value_free done [09:50:43]process_json_proto returns [09:50:43]Send response to host [09:50:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63954,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [09:50:43]free response buf [09:50:43]execute_script done [09:50:43]execute_script returns [09:50:43]free content buf [09:50:43]Sock 7.Close socket [09:50:43]Sock 7.Thread stoped [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]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]accept exits with 9 [10:18:38]New connection [10:18:38]New thread 3067055460 created [10:18:38]Thread 3066912100 joined [10:18:38]Waiting for new connection... [10:18:38] Sock 9.Parse request [10:18:38]Sock 9.Check first char [10:18:38]Sock 9.First char is OK [10:18:38]request: POST /json_proto HTTP/1.0 [10:18:38]Method: POST [10:18:38]URL: /json_proto [10:18:38]Method is POST - this is cgi request [10:18:38]url: /json_proto [10:18:38]query_string will be loaded in cgi processing [10:18:38]execute_cgi json_proto POST (null) [10:18:38]execute_cgi path=json_proto method=POST [10:18:38]POST find Content-Length [10:18:38]Host: 172.17.60.69:8080 [10:18:38]Content-Length: 822 [10:18:38]Content-Type: application/json [10:18:38] [10:18:38]POST finish read [10:18:38]Found Content-Length = 822 [10:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73516", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:38]execute_script... [10:18:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73516", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:38]POST & json_proto [10:18:38]process_json_proto [10:18:38]json parsed OK: [10:18:38]protocol is kg_v1.0 [10:18:38]action value=close_receipt [10:18:38]process_action close_receipt [10:18:38]cmd_close_receipt [10:18:38]MH_GetDate [10:18:38]Write to MH i2c: F0 00 00 93 0E 90 [10:18:38]Write i2c OK [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: F0 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: F0 09 00 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: F0 09 00 93 0E 00 00 EA 5E 66 6A 96 4A 66 F7 [10:18:38]GetLastDocTimeStamp 1717494641 [10:18:38]current date 1717496320 [10:18:38]FM_GetShiftState [10:18:38]SAM_PROTO_GetShiftState [10:18:38]wFMCommunicate request_size=4 [10:18:38]MH_SAM_APDU [10:18:38]CAPDU: 80 13 01 00 [10:18:38]Write to MH i2c: E2 08 00 94 0E 80 13 01 00 00 00 00 00 1F [10:18:38]Write i2c OK [10:18:38]MH_I2C_Read... [10:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:38]Read from MH i2c: E2 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: E2 0E 00 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: E2 0E 00 94 0E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 BF [10:18:38]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:18:38]wFMCommunicate OK [10:18:38]SAM_PROTO_GetShiftState done [10:18:38]FM_GetShiftState done [10:18:38]opened in 1717459574 [10:18:38]opened+sec_in_day 1717545974 [10:18:38]quantity*price = 28000 [10:18:38]sum+1 = 28001 [10:18:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173808 Жев Orbit Sweet Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.88 НДС 12% : 34.51 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 40 04.06.2024 10:18 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63955 ФПД: 208290320530775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101840&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63955&fm=208290320530775&tin=02508201610067®Number=0000000000092737&sum=32500 0 [10:18:39]StoreToDocumentArchive [10:18:39]shift 374 fd 63955 [10:18:39]save to /storage/0374/doc_00063955 [10:18:39]save last doc name /storage/0374/doc_00063955 to /storage/kkm_last_doc_name [10:18:39]save OK [10:18:39]Clear old archive folders... [10:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=363 [10:18:39]tlvbuf is 01288040 [10:18:39]SAM_PROTO_ClearQueue [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 09 00 00 [10:18:39]Write to MH i2c: E2 08 00 A1 0E 80 09 00 00 00 00 00 00 21 [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 A1 0E 00 90 00 23 [10:18:39]RAPDU: 90 00 [10:18:39]wFMCommunicate OK [10:18:39]SAM_PROTO_ClearQueue done [10:18:39]KKMCreateOFDPacket [10:18:39]OFDProtocolAddRootSTLVToBuf [10:18:39]FM_MakeSignedData [10:18:39]FM_MakeSignedData [10:18:39]SAM_PROTO_SignData [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 0D 01 02 [10:18:39]Write to MH i2c: E2 08 00 A2 0E 80 0D 01 02 00 00 00 00 29 [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 A2 0E 00 90 00 24 [10:18:39]RAPDU: 90 00 [10:18:39]wFMCommunicate OK [10:18:39]wFMCommunicate request_size=255 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 0D 02 02 FA 03 00 6B 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 7B 0D [10:18:39]Write to MH i2c: E2 02 01 A3 0E 80 0D 02 02 FA 00 03 00 6B 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 7B 0D 00 00 B8 [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 A3 0E 00 90 00 25 [10:18:39]RAPDU: 90 00 [10:18:39]wFMCommunicate OK [10:18:39]wFMCommunicate request_size=122 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 0D 02 02 75 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 00 EA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D3 F9 00 00 35 04 06 00 BD 70 5E 90 BD 57 [10:18:39]Write to MH i2c: E2 7D 00 A4 0E 80 0D 02 02 75 00 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 00 EA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D3 F9 00 00 35 04 06 00 BD 70 5E 90 BD 57 00 00 0C [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 A4 0E 00 90 00 26 [10:18:39]RAPDU: 90 00 [10:18:39]wFMCommunicate OK [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 0D 03 02 [10:18:39]Write to MH i2c: E2 08 00 A5 0E 80 0D 03 02 00 00 00 00 2E [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 0B 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 0B 00 A5 0E 00 1B 08 BF C8 23 EE E9 59 90 00 2C [10:18:39]RAPDU: 1B 08 BF C8 23 EE E9 59 90 00 [10:18:39]wFMCommunicate OK [10:18:39]SAM_PROTO_SignData done [10:18:39]FM_MakeSignedData done [10:18:39]CreateOFDProtocolMessage [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 11 00 00 [10:18:39]Write to MH i2c: E2 08 00 A6 0E 80 11 00 00 00 00 00 00 2E [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:40]Read from MH i2c: E2 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: E2 17 00 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: E2 17 00 A6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 80 [10:18: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:18:40]wFMCommunicate OK [10:18:40]CreateOFDProtocolMessage done [10:18:40]OFDSenderStorePacket 63955 [10:18:40]StoreOFDPacket docnum=63955 [10:18: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 7F 01 00 00 80 11 77 01 F5 2D 5A 03 01 00 03 00 6B 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 00 EA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D3 F9 00 00 35 04 06 00 BD 70 5E 90 BD 57 1B 08 BF C8 23 EE E9 59 [10:18:40]CheckFolder [10:18:40]dirname=/storage/ofd_packets [10:18:40]CheckFolder done [10:18:40]ProducePacketName [10:18:40]name=ofd_packets/00063955 [10:18:40]NVStorageSaveData ofd_packets/00063955 [10:18:40]File name is /storage/ofd_packets/00063955 [10:18:40]Write 413 bytes [10:18:40]NVStorageSaveData done [10:18:40]OFDSenderStorePacket done [10:18:40]KKMCreateOFDPacket done [10:18:40]NVStorageSaveData kkm_last_timestamp [10:18:40]File name is /storage/kkm_last_timestamp [10:18:40]Write 4 bytes [10:18:40]NVStorageSaveData done [10:18:40]ExternCall_PrintAddStr [10:18:40]wPrintStart [10:18:40]Write to MH i2c: 01 00 00 A7 0E B5 [10:18:40]Write i2c OK [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: 01 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: 01 07 00 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: 01 07 00 A7 0E 00 00 00 00 00 FF 0F CA [10:18:40]RasterBufferAndPrint [10:18:40]line Счет N : (3)73516 [10:18:40]line ИНН: 02508201610067 [10:18:40]line Контрольно-Кассовый Чек [10:18:40]line ПРОДАЖА [10:18:40]line Товар: 48747059 [10:18:40]line Сигареты Winston Legend Blue [10:18:40]line 2.000 * 140.00 [10:18:40]line = 280.00 [10:18:40]line НДС 12% НСП 1% [10:18:40]line > о реализуемом товаре [10:18:40]line Товар: 50173808 [10:18:40]line Жев Orbit Sweet Mint [10:18:40]line 1.000 * 45.00 [10:18:40]line = 45.00 [10:18:40]line НДС 12% НСП 1% [10:18:40]line > о реализуемом товаре [10:18:40]line ИТОГО: 325.00 [10:18:40]line НСП 1% : 2.88 [10:18:40]line НДС 12% : 34.51 [10:18:40]line Наличными: 325.00 [10:18:40]line Безнал.: 0.00 [10:18:40]line Место: АЗС № 117 "Партнер Нефть" [10:18:40]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:18:40]line СНО: Общий режим [10:18:40]line Чек 40 04.06.2024 10:18 [10:18:40]line Смена: 374 ФФД: 1.0 [10:18:40]line ЗНМ: 0300000031 [10:18:40]line РНМ: 0000000000092737 [10:18:40]line Версия ККМ: 001 [10:18:40]line ФМ: 0000000000875074 [10:18:40]line ФД: 63955 [10:18:40]line ФПД: 208290320530775 [10:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T101840&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63955&fm=208290320530775&tin=02508201610067®Number=0000000000092737&sum=32500 [10:18:40]line 0 [10:18:40]OFD Sender: Processing packet 63955 [packets to send 14, broken 13] [10:18:40]ProducePacketName [10:18:40]name=ofd_packets/00063955 [10:18:40]OFD Sender: To server: pG, [10:18:40]CommunicateWithHost lk.salyk.kg:30040 [10:18:40]ConnectInit lk.salyk.kg [10:18:40]written 0, free lines is 4095 [10:18:40]Connected sock=10 [10:18: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 7F 01 00 00 80 11 77 01 F5 2D 5A 03 01 00 03 00 6B 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 00 EA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D3 F9 00 00 35 04 06 00 BD 70 5E 90 BD 57 1B 08 BF C8 23 EE E9 59 [10:18: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 F8 73 47 00 A7 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 D3 F9 00 00 F4 03 04 00 CF 95 5E 66 B6 04 01 00 00 AA D6 0F EB 5A 7F F6 58 [10:18:40]CommunicateWithHost err = 0 [10:18:40]CheckOFDResponse [10:18:40]1017 (14) - 77093643461234 [10:18:40]1041 (16) - 0000000000875074 [10:18:40]1040 (4) - 63955 [10:18:40]1012 (4) - 04.06.2024 04:19 [10:18:40]1206 (1) - 0 [10:18:40]OFD Sender: Remove packet 63955 [10:18:40]ProducePacketName [10:18:40]name=ofd_packets/00063955 [10:18:40]NVStorageDeleteData [10:18:40]Write to MH i2c: 01 00 00 D6 0E E4 [10:18:40]Write i2c OK [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: 01 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: 01 07 00 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: 01 07 00 D6 0E 00 00 00 00 00 68 0C 5F [10:18:40]RasterBufferAndPrint [10:18:40]line [10:18:40]line [10:18:40]line [10:18:40]line [10:18:40]line [10:18:40]written 0, free lines is 3182 [10:18:40]MH_Cut [10:18:40]Write to MH i2c: D1 01 00 DD 0E 01 BD [10:18:40]Write i2c OK [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: D1 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: D1 01 00 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: D1 01 00 DD 0E 00 BC [10:18:40]Write to MH i2c: 01 00 00 DE 0E EC [10:18:40]Write i2c OK [10:18:40]MH_I2C_Read... [10:18:41]OFD Sender: No OFD packet to send [10:18:41]*** Cut start [10:18:41]*** Partial cut [10:18:41]*** CUTSNS_PIN = 1 [10:18:41]*** CUTSNS_PIN = 0 [10:18:42]*** Brake cut motor [10:18:42]Read from MH i2c: 01 [10:18:42]MH_I2C_Read... [10:18:42]*** Stop cut motor [10:18:42]*** Cut end [10:18:42]Read from MH i2c: 01 07 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: 01 07 00 DE 0E 00 00 00 00 00 FF 0F 01 [10:18:42]process_action close_receipt done [10:18:42]requested_data is exist [10:18:42]produce_requested_data [10:18:42]requested_item fm.sn is exist - process it [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 11 00 00 [10:18:42]Write to MH i2c: E2 08 00 DF 0E 80 11 00 00 00 00 00 00 67 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 17 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 17 00 DF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B9 [10:18: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:18:42]wFMCommunicate OK [10:18:42]requested_item fd.num is exist - process it [10:18:42]SAM_PROTO_GetFieldsCounters [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 13 00 00 [10:18:42]Write to MH i2c: E2 08 00 E0 0E 80 13 00 00 00 00 00 00 6A [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 62 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 62 00 E0 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 D3 F9 00 00 0E 04 04 00 76 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 48 [10:18: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 D3 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:42]wFMCommunicate OK [10:18:42]SAM_PROTO_GetFieldsCounters done [10:18:42]requested_item shift.num is exist - process it [10:18:42]requested_item shift.opened is exist - process it [10:18:42]req_shift_opened [10:18:42]FM_GetShiftState [10:18:42]SAM_PROTO_GetShiftState [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 13 01 00 [10:18:42]Write to MH i2c: E2 08 00 E1 0E 80 13 01 00 00 00 00 00 6C [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0E 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0E 00 E1 0E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0C [10:18:42]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:18:42]wFMCommunicate OK [10:18:42]SAM_PROTO_GetShiftState done [10:18:42]FM_GetShiftState done [10:18:42]req_shift_opened done [10:18:42]requested_item shift.open_date is exist - process it [10:18:42]req_shift_open_date [10:18:42]req_shift_open_date done [10:18:42]produce_requested_data done [10:18:42]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63955,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [10:18:42]process_action_free close_receipt [10:18:42]json_value_free [10:18:42]json_value_free done [10:18:42]process_json_proto returns [10:18:42]Send response to host [10:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63955,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [10:18:42]free response buf [10:18:42]execute_script done [10:18:42]execute_script returns [10:18:42]free content buf [10:18:42]Sock 9.Close socket [10:18:42]Sock 9.Thread stoped [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:44]accept exits with 7 [10:20:44]New connection [10:20:44]New thread 3066912100 created [10:20:44]Thread 3067055460 joined [10:20:44]Waiting for new connection... [10:20:44] Sock 7.Parse request [10:20:44]Sock 7.Check first char [10:20:44]Sock 7.First char is OK [10:20:44]request: POST /json_proto HTTP/1.0 [10:20:44]Method: POST [10:20:44]URL: /json_proto [10:20:44]Method is POST - this is cgi request [10:20:44]url: /json_proto [10:20:44]query_string will be loaded in cgi processing [10:20:44]execute_cgi json_proto POST (null) [10:20:44]execute_cgi path=json_proto method=POST [10:20:44]POST find Content-Length [10:20:44]Host: 172.17.60.69:8080 [10:20:44]Content-Length: 846 [10:20:44]Content-Type: application/json [10:20:44] [10:20:44]POST finish read [10:20:44]Found Content-Length = 846 [10:20:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73517", "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" ] } } [10:20:44]execute_script... [10:20: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)73517", "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" ] } } [10:20:44]POST & json_proto [10:20:44]process_json_proto [10:20:44]json parsed OK: [10:20:44]protocol is kg_v1.0 [10:20:44]action value=close_receipt [10:20:44]process_action close_receipt [10:20:44]cmd_close_receipt [10:20:44]MH_GetDate [10:20:44]Write to MH i2c: F0 00 00 E2 0E DF [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: F0 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: F0 09 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: F0 09 00 E2 0E 00 7F EA 5E 66 6A 96 4A 66 C5 [10:20:44]GetLastDocTimeStamp 1717496320 [10:20:44]current date 1717496447 [10:20:44]FM_GetShiftState [10:20:44]SAM_PROTO_GetShiftState [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 13 01 00 [10:20:44]Write to MH i2c: E2 08 00 E3 0E 80 13 01 00 00 00 00 00 6E [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 0E 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 0E 00 E3 0E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0E [10:20:44]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:20:44]wFMCommunicate OK [10:20:44]SAM_PROTO_GetShiftState done [10:20:44]FM_GetShiftState done [10:20:44]opened in 1717459574 [10:20:44]opened+sec_in_day 1717545974 [10:20:44]quantity*price = 12500 [10:20:44]sum+1 = 12501 [10:20:44]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 СНО: Общий режим Чек 41 04.06.2024 10:20 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63956 ФПД: 234078975759309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102047&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63956&fm=234078975759309&tin=02508201610067®Number=0000000000092737&sum=12500 0 [10:20:46]StoreToDocumentArchive [10:20:46]shift 374 fd 63956 [10:20:46]save to /storage/0374/doc_00063956 [10:20:46]save last doc name /storage/0374/doc_00063956 to /storage/kkm_last_doc_name [10:20:46]save OK [10:20:46]Clear old archive folders... [10:20:46]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:20:46]tlvbuf is 01234840 [10:20:46]SAM_PROTO_ClearQueue [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 09 00 00 [10:20:46]Write to MH i2c: E2 08 00 F0 0E 80 09 00 00 00 00 00 00 70 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 F0 0E 00 90 00 72 [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_ClearQueue done [10:20:46]KKMCreateOFDPacket [10:20:46]OFDProtocolAddRootSTLVToBuf [10:20:46]FM_MakeSignedData [10:20:46]FM_MakeSignedData [10:20:46]SAM_PROTO_SignData [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 0D 01 02 [10:20:46]Write to MH i2c: E2 08 00 F1 0E 80 0D 01 02 00 00 00 00 78 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 F1 0E 00 90 00 73 [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]wFMCommunicate request_size=255 [10:20:46]MH_SAM_APDU [10:20:46]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 29 00 00 00 F4 03 04 00 7F EA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [10:20:46]Write to MH i2c: E2 02 01 F2 0E 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 29 00 00 00 F4 03 04 00 7F EA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 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 46 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]OFD Sender: No OFD packet to send [10:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 F2 0E 00 90 00 74 [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]wFMCommunicate request_size=41 [10:20:46]MH_SAM_APDU [10:20:46]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 D4 F9 00 00 35 04 06 00 D4 E4 C2 33 13 CD [10:20:46]Write to MH i2c: E2 2C 00 F3 0E 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 D4 F9 00 00 35 04 06 00 D4 E4 C2 33 13 CD 00 00 A3 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 03 00 F3 0E 00 90 00 75 [10:20:46]RAPDU: 90 00 [10:20:46]wFMCommunicate OK [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 0D 03 02 [10:20:46]Write to MH i2c: E2 08 00 F4 0E 80 0D 03 02 00 00 00 00 7D [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0B 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0B 00 F4 0E 00 34 8B 4D 98 26 F5 87 FC 90 00 C0 [10:20:46]RAPDU: 34 8B 4D 98 26 F5 87 FC 90 00 [10:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_SignData done [10:20:46]FM_MakeSignedData done [10:20:46]CreateOFDProtocolMessage [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 11 00 00 [10:20:46]Write to MH i2c: E2 08 00 F5 0E 80 11 00 00 00 00 00 00 7D [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 F5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CF [10:20:46]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:46]wFMCommunicate OK [10:20:46]CreateOFDProtocolMessage done [10:20:46]OFDSenderStorePacket 63956 [10:20:46]StoreOFDPacket docnum=63956 [10:20: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 2E 01 00 00 22 B1 26 01 81 EE 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 29 00 00 00 F4 03 04 00 7F EA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D4 F9 00 00 35 04 06 00 D4 E4 C2 33 13 CD 34 8B 4D 98 26 F5 87 FC [10:20:46]CheckFolder [10:20:46]dirname=/storage/ofd_packets [10:20:46]CheckFolder done [10:20:46]ProducePacketName [10:20:46]name=ofd_packets/00063956 [10:20:46]NVStorageSaveData ofd_packets/00063956 [10:20:46]File name is /storage/ofd_packets/00063956 [10:20:46]Write 332 bytes [10:20:46]NVStorageSaveData done [10:20:46]OFDSenderStorePacket done [10:20:46]KKMCreateOFDPacket done [10:20:46]NVStorageSaveData kkm_last_timestamp [10:20:46]File name is /storage/kkm_last_timestamp [10:20:46]Write 4 bytes [10:20:46]NVStorageSaveData done [10:20:46]ExternCall_PrintAddStr [10:20:46]wPrintStart [10:20:46]Write to MH i2c: 01 00 00 F6 0E 04 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 F6 0E 00 00 00 00 00 FF 0F 19 [10:20:46]RasterBufferAndPrint [10:20:46]line Счет N : (3)73517 [10:20:46]line ИНН: 02508201610067 [10:20:46]line Контрольно-Кассовый Чек [10:20:46]line ПРОДАЖА [10:20:46]line Товар: 2000036220012 [10:20:46]line Кофе Капучино XL(GABB TRADE) [10:20:46]line 1.000 * 125.00 [10:20:46]line = 125.00 [10:20:46]line НДС 12% НСП 1% [10:20:46]line > о реализуемом товаре [10:20:46]line ИТОГО: 125.00 [10:20:46]line НСП 1% : 1.11 [10:20:46]line НДС 12% : 13.27 [10:20:46]line Наличными: 0.00 [10:20:46]line Безнал.: 125.00 [10:20:46]line Место: АЗС № 117 "Партнер Нефть" [10:20:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:20:46]line СНО: Общий режим [10:20:46]line Чек 41 04.06.2024 10:20 [10:20:46]line Смена: 374 ФФД: 1.0 [10:20:46]line ЗНМ: 0300000031 [10:20:46]line РНМ: 0000000000092737 [10:20:46]line Версия ККМ: 001 [10:20:46]line Платежная система: АКБ Кыргызстан [10:20:46]line ФМ: 0000000000875074 [10:20:46]line ФД: 63956 [10:20:46]line ФПД: 234078975759309 [10:20:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102047&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63956&fm=234078975759309&tin=02508201610067®Number=0000000000092737&sum=12500 [10:20:46]line 0 [10:20:46]OFD Sender: Processing packet 63956 [packets to send 14, broken 13] [10:20:46]ProducePacketName [10:20:46]name=ofd_packets/00063956 [10:20:46]OFD Sender: To server: pG, [10:20:46]CommunicateWithHost lk.salyk.kg:30040 [10:20:46]ConnectInit lk.salyk.kg [10:20:46]written 0, free lines is 4095 [10:20:47]Connected sock=10 [10:20: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 2E 01 00 00 22 B1 26 01 81 EE 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 29 00 00 00 F4 03 04 00 7F EA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D4 F9 00 00 35 04 06 00 D4 E4 C2 33 13 CD 34 8B 4D 98 26 F5 87 FC [10:20: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 73 DA 47 00 3E 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 D4 F9 00 00 F4 03 04 00 4D 96 5E 66 B6 04 01 00 00 BC EE DB 72 08 FF 28 FA [10:20:47]CommunicateWithHost err = 0 [10:20:47]CheckOFDResponse [10:20:47]1017 (14) - 77093643461234 [10:20:47]1041 (16) - 0000000000875074 [10:20:47]1040 (4) - 63956 [10:20:47]1012 (4) - 04.06.2024 04:21 [10:20:47]1206 (1) - 0 [10:20:47]OFD Sender: Remove packet 63956 [10:20:47]ProducePacketName [10:20:47]name=ofd_packets/00063956 [10:20:47]NVStorageDeleteData [10:20:47]Write to MH i2c: 01 00 00 21 0F 30 [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 07 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: 01 07 00 21 0F 00 00 00 00 00 D2 0C 15 [10:20:47]RasterBufferAndPrint [10:20:47]line [10:20:47]line [10:20:47]line [10:20:47]line [10:20:47]line [10:20:47]written 0, free lines is 3288 [10:20:47]MH_Cut [10:20:47]Write to MH i2c: D1 01 00 28 0F 01 09 [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: D1 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: D1 01 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: D1 01 00 28 0F 00 08 [10:20:47]Write to MH i2c: 01 00 00 29 0F 38 [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]OFD Sender: No OFD packet to send [10:20:48]*** Cut start [10:20:48]*** Partial cut [10:20:48]*** CUTSNS_PIN = 1 [10:20:48]*** CUTSNS_PIN = 0 [10:20:48]*** Brake cut motor [10:20:48]Read from MH i2c: 01 [10:20:48]MH_I2C_Read... [10:20:48]*** Stop cut motor [10:20:48]*** Cut end [10:20:48]Read from MH i2c: 01 07 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: 01 07 00 29 0F 00 00 00 00 00 FF 0F 4D [10:20:48]process_action close_receipt done [10:20:48]requested_data is exist [10:20:48]produce_requested_data [10:20:48]requested_item fm.sn is exist - process it [10:20:48]wFMCommunicate request_size=4 [10:20:48]MH_SAM_APDU [10:20:48]CAPDU: 80 11 00 00 [10:20:48]Write to MH i2c: E2 08 00 2A 0F 80 11 00 00 00 00 00 00 B3 [10:20:48]Write i2c OK [10:20:48]MH_I2C_Read... [10:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:48]Read from MH i2c: E2 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 17 00 [10:20:48]MH_I2C_Read... [10:20:48]Read from MH i2c: E2 17 00 2A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 05 [10:20:48]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:48]wFMCommunicate OK [10:20:48]requested_item fd.num is exist - process it [10:20:48]SAM_PROTO_GetFieldsCounters [10:20:48]wFMCommunicate request_size=4 [10:20:48]MH_SAM_APDU [10:20:48]CAPDU: 80 13 00 00 [10:20:48]Write to MH i2c: E2 08 00 2B 0F 80 13 00 00 00 00 00 00 B6 [10:20:48]Write i2c OK [10:20:48]MH_I2C_Read... [10:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:49]Read from MH i2c: E2 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 62 00 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 62 00 2B 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 D4 F9 00 00 0E 04 04 00 76 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 98 [10:20: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 D4 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:49]wFMCommunicate OK [10:20:49]SAM_PROTO_GetFieldsCounters done [10:20:49]requested_item shift.num is exist - process it [10:20:49]requested_item shift.opened is exist - process it [10:20:49]req_shift_opened [10:20:49]FM_GetShiftState [10:20:49]SAM_PROTO_GetShiftState [10:20:49]wFMCommunicate request_size=4 [10:20:49]MH_SAM_APDU [10:20:49]CAPDU: 80 13 01 00 [10:20:49]Write to MH i2c: E2 08 00 2C 0F 80 13 01 00 00 00 00 00 B8 [10:20:49]Write i2c OK [10:20:49]MH_I2C_Read... [10:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:49]Read from MH i2c: E2 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 0E 00 [10:20:49]MH_I2C_Read... [10:20:49]Read from MH i2c: E2 0E 00 2C 0F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 58 [10:20:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:20:49]wFMCommunicate OK [10:20:49]SAM_PROTO_GetShiftState done [10:20:49]FM_GetShiftState done [10:20:49]req_shift_opened done [10:20:49]requested_item shift.open_date is exist - process it [10:20:49]req_shift_open_date [10:20:49]req_shift_open_date done [10:20:49]produce_requested_data done [10:20:49]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63956,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [10:20:49]process_action_free close_receipt [10:20:49]json_value_free [10:20:49]json_value_free done [10:20:49]process_json_proto returns [10:20:49]Send response to host [10:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63956,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [10:20:49]free response buf [10:20:49]execute_script done [10:20:49]execute_script returns [10:20:49]free content buf [10:20:49]Sock 7.Close socket [10:20:49]Sock 7.Thread stoped [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]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:25]accept exits with 9 [10:28:25]New connection [10:28:25]New thread 3067055460 created [10:28:25]Thread 3066912100 joined [10:28:25]Waiting for new connection... [10:28:25] Sock 9.Parse request [10:28:25]Sock 9.Check first char [10:28:25]Sock 9.First char is OK [10:28:25]request: POST /json_proto HTTP/1.0 [10:28:25]Method: POST [10:28:25]URL: /json_proto [10:28:25]Method is POST - this is cgi request [10:28:25]url: /json_proto [10:28:25]query_string will be loaded in cgi processing [10:28:25]execute_cgi json_proto POST (null) [10:28:25]execute_cgi path=json_proto method=POST [10:28:25]POST find Content-Length [10:28:25]Host: 172.17.60.69:8080 [10:28:25]Content-Length: 623 [10:28:25]Content-Type: application/json [10:28:25] [10:28:25]POST finish read [10:28:25]Found Content-Length = 623 [10:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73518", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:25]execute_script... [10:28:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73518", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:25]POST & json_proto [10:28:25]process_json_proto [10:28:25]json parsed OK: [10:28:25]protocol is kg_v1.0 [10:28:25]action value=close_receipt [10:28:25]process_action close_receipt [10:28:25]cmd_close_receipt [10:28:25]MH_GetDate [10:28:25]Write to MH i2c: F0 00 00 2D 0F 2B [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: F0 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: F0 09 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: F0 09 00 2D 0F 00 4C EC 5E 66 6A 96 4A 66 E0 [10:28:25]GetLastDocTimeStamp 1717496447 [10:28:25]current date 1717496908 [10:28:25]FM_GetShiftState [10:28:25]SAM_PROTO_GetShiftState [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 13 01 00 [10:28:25]Write to MH i2c: E2 08 00 2E 0F 80 13 01 00 00 00 00 00 BA [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 2E 0F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 5A [10:28:25]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_GetShiftState done [10:28:25]FM_GetShiftState done [10:28:25]opened in 1717459574 [10:28:25]opened+sec_in_day 1717545974 [10:28:25]quantity*price = 14300 [10:28:25]sum+1 = 14301 [10:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 42 04.06.2024 10:28 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63957 ФПД: 70136321368083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102828&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63957&fm=70136321368083&tin=02508201610067®Number=0000000000092737&sum=14300 0 [10:28:26]StoreToDocumentArchive [10:28:26]shift 374 fd 63957 [10:28:26]save to /storage/0374/doc_00063957 [10:28:26]save last doc name /storage/0374/doc_00063957 to /storage/kkm_last_doc_name [10:28:26]save OK [10:28:26]Clear old archive folders... [10:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:28:26]tlvbuf is 01257560 [10:28:26]SAM_PROTO_ClearQueue [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 09 00 00 [10:28:26]Write to MH i2c: E2 08 00 3B 0F 80 09 00 00 00 00 00 00 BC [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 3B 0F 00 90 00 BE [10:28:27]RAPDU: 90 00 [10:28:27]wFMCommunicate OK [10:28:27]SAM_PROTO_ClearQueue done [10:28:27]KKMCreateOFDPacket [10:28:27]OFDProtocolAddRootSTLVToBuf [10:28:27]FM_MakeSignedData [10:28:27]FM_MakeSignedData [10:28:27]SAM_PROTO_SignData [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 0D 01 02 [10:28:27]Write to MH i2c: E2 08 00 3C 0F 80 0D 01 02 00 00 00 00 C4 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 3C 0F 00 90 00 BF [10:28:27]RAPDU: 90 00 [10:28:27]wFMCommunicate OK [10:28:27]wFMCommunicate request_size=255 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4C EC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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:28:27]Write to MH i2c: E2 02 01 3D 0F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4C EC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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 B3 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 3D 0F 00 90 00 C0 [10:28:27]RAPDU: 90 00 [10:28:27]wFMCommunicate OK [10:28:27]wFMCommunicate request_size=35 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D5 F9 00 00 35 04 06 00 3F C9 E2 85 60 13 [10:28:27]Write to MH i2c: E2 26 00 3E 0F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D5 F9 00 00 35 04 06 00 3F C9 E2 85 60 13 00 00 69 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 03 00 3E 0F 00 90 00 C1 [10:28:27]RAPDU: 90 00 [10:28:27]wFMCommunicate OK [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 0D 03 02 [10:28:27]Write to MH i2c: E2 08 00 3F 0F 80 0D 03 02 00 00 00 00 C9 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 0B 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 0B 00 3F 0F 00 4A B3 39 CE C5 98 E2 96 90 00 A3 [10:28:27]RAPDU: 4A B3 39 CE C5 98 E2 96 90 00 [10:28:27]wFMCommunicate OK [10:28:27]SAM_PROTO_SignData done [10:28:27]FM_MakeSignedData done [10:28:27]CreateOFDProtocolMessage [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 11 00 00 [10:28:27]Write to MH i2c: E2 08 00 40 0F 80 11 00 00 00 00 00 00 C9 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 17 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 17 00 40 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1B [10:28: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:28:27]wFMCommunicate OK [10:28:27]CreateOFDProtocolMessage done [10:28:27]OFDSenderStorePacket 63957 [10:28:27]StoreOFDPacket docnum=63957 [10:28: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 28 01 00 00 62 7F 20 01 7A C5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4C EC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D5 F9 00 00 35 04 06 00 3F C9 E2 85 60 13 4A B3 39 CE C5 98 E2 96 [10:28:27]CheckFolder [10:28:27]dirname=/storage/ofd_packets [10:28:27]CheckFolder done [10:28:27]ProducePacketName [10:28:27]name=ofd_packets/00063957 [10:28:27]NVStorageSaveData ofd_packets/00063957 [10:28:27]File name is /storage/ofd_packets/00063957 [10:28:27]Write 326 bytes [10:28:27]NVStorageSaveData done [10:28:27]OFDSenderStorePacket done [10:28:27]KKMCreateOFDPacket done [10:28:27]NVStorageSaveData kkm_last_timestamp [10:28:27]File name is /storage/kkm_last_timestamp [10:28:27]Write 4 bytes [10:28:27]NVStorageSaveData done [10:28:27]ExternCall_PrintAddStr [10:28:27]wPrintStart [10:28:27]Write to MH i2c: 01 00 00 41 0F 50 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: 01 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: 01 07 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: 01 07 00 41 0F 00 00 00 00 00 FF 0F 65 [10:28:27]RasterBufferAndPrint [10:28:27]line Счет N : (3)73518 [10:28:27]line ИНН: 02508201610067 [10:28:27]line Контрольно-Кассовый Чек [10:28:27]line ПРОДАЖА [10:28:27]line Товар: 48744683 [10:28:27]line Сигареты Winston XStyle Caster+ [10:28:27]line 1.000 * 143.00 [10:28:27]line = 143.00 [10:28:27]line НДС 12% НСП 1% [10:28:27]line > о реализуемом товаре [10:28:27]line ИТОГО: 143.00 [10:28:27]line НСП 1% : 1.26 [10:28:27]line НДС 12% : 15.19 [10:28:27]line Наличными: 143.00 [10:28:27]line Безнал.: 0.00 [10:28:27]line Место: АЗС № 117 "Партнер Нефть" [10:28:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:28:27]line СНО: Общий режим [10:28:27]line Чек 42 04.06.2024 10:28 [10:28:27]line Смена: 374 ФФД: 1.0 [10:28:27]line ЗНМ: 0300000031 [10:28:27]line РНМ: 0000000000092737 [10:28:27]line Версия ККМ: 001 [10:28:27]line ФМ: 0000000000875074 [10:28:27]line ФД: 63957 [10:28:27]line ФПД: 70136321368083 [10:28:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T102828&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63957&fm=70136321368083&tin=02508201610067®Number=0000000000092737&sum=14300 [10:28:27]line 0 [10:28:27]OFD Sender: Processing packet 63957 [packets to send 14, broken 13] [10:28:27]ProducePacketName [10:28:27]name=ofd_packets/00063957 [10:28:27]OFD Sender: To server: pG, [10:28:27]CommunicateWithHost lk.salyk.kg:30040 [10:28:27]ConnectInit lk.salyk.kg [10:28:27]written 0, free lines is 4095 [10:28:27]Connected sock=10 [10:28: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 28 01 00 00 62 7F 20 01 7A C5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4C EC 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D5 F9 00 00 35 04 06 00 3F C9 E2 85 60 13 4A B3 39 CE C5 98 E2 96 [10:28: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 BD D1 47 00 F5 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D5 F9 00 00 F4 03 04 00 1A 98 5E 66 B6 04 01 00 00 51 8A 85 40 E8 FC 0E 5B [10:28:28]CommunicateWithHost err = 0 [10:28:28]CheckOFDResponse [10:28:28]1017 (14) - 77093643461234 [10:28:28]1041 (16) - 0000000000875074 [10:28:28]1040 (4) - 63957 [10:28:28]1012 (4) - 04.06.2024 04:29 [10:28:28]1206 (1) - 0 [10:28:28]OFD Sender: Remove packet 63957 [10:28:28]ProducePacketName [10:28:28]name=ofd_packets/00063957 [10:28:28]NVStorageDeleteData [10:28:28]Write to MH i2c: 01 00 00 6A 0F 79 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: 01 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: 01 07 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: 01 07 00 6A 0F 00 00 00 00 00 D1 0C 5D [10:28:28]RasterBufferAndPrint [10:28:28]line [10:28:28]line [10:28:28]line [10:28:28]line [10:28:28]line [10:28:28]written 0, free lines is 3288 [10:28:28]MH_Cut [10:28:28]Write to MH i2c: D1 01 00 71 0F 01 52 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: D1 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: D1 01 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: D1 01 00 71 0F 00 51 [10:28:28]Write to MH i2c: 01 00 00 72 0F 81 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]OFD Sender: No OFD packet to send [10:28:29]*** Cut start [10:28:29]*** Partial cut [10:28:29]*** CUTSNS_PIN = 1 [10:28:29]*** CUTSNS_PIN = 0 [10:28:29]*** Brake cut motor [10:28:29]Read from MH i2c: 01 [10:28:29]MH_I2C_Read... [10:28:29]*** Stop cut motor [10:28:29]*** Cut end [10:28:29]Read from MH i2c: 01 07 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 07 00 72 0F 00 00 00 00 00 FF 0F 96 [10:28:29]process_action close_receipt done [10:28:29]requested_data is exist [10:28:29]produce_requested_data [10:28:29]requested_item fm.sn is exist - process it [10:28:29]wFMCommunicate request_size=4 [10:28:29]MH_SAM_APDU [10:28:29]CAPDU: 80 11 00 00 [10:28:29]Write to MH i2c: E2 08 00 73 0F 80 11 00 00 00 00 00 00 FC [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:29]Read from MH i2c: E2 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: E2 17 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: E2 17 00 73 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4E [10:28: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:28:29]wFMCommunicate OK [10:28:29]requested_item fd.num is exist - process it [10:28:29]SAM_PROTO_GetFieldsCounters [10:28:29]wFMCommunicate request_size=4 [10:28:29]MH_SAM_APDU [10:28:29]CAPDU: 80 13 00 00 [10:28:29]Write to MH i2c: E2 08 00 74 0F 80 13 00 00 00 00 00 00 FF [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:29]Read from MH i2c: E2 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: E2 62 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: E2 62 00 74 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 D5 F9 00 00 0E 04 04 00 76 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 E5 [10:28: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 D5 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:29]wFMCommunicate OK [10:28:29]SAM_PROTO_GetFieldsCounters done [10:28:29]requested_item shift.num is exist - process it [10:28:29]requested_item shift.opened is exist - process it [10:28:29]req_shift_opened [10:28:29]FM_GetShiftState [10:28:29]SAM_PROTO_GetShiftState [10:28:29]wFMCommunicate request_size=4 [10:28:29]MH_SAM_APDU [10:28:29]CAPDU: 80 13 01 00 [10:28:29]Write to MH i2c: E2 08 00 75 0F 80 13 01 00 00 00 00 00 01 [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0E 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0E 00 75 0F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A1 [10:28:30]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:28:30]wFMCommunicate OK [10:28:30]SAM_PROTO_GetShiftState done [10:28:30]FM_GetShiftState done [10:28:30]req_shift_opened done [10:28:30]requested_item shift.open_date is exist - process it [10:28:30]req_shift_open_date [10:28:30]req_shift_open_date done [10:28:30]produce_requested_data done [10:28:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63957,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [10:28:30]process_action_free close_receipt [10:28:30]json_value_free [10:28:30]json_value_free done [10:28:30]process_json_proto returns [10:28:30]Send response to host [10:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63957,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [10:28:30]free response buf [10:28:30]execute_script done [10:28:30]execute_script returns [10:28:30]free content buf [10:28:30]Sock 9.Close socket [10:28:30]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]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:05]accept exits with 7 [10:40:05]New connection [10:40:05]New thread 3066912100 created [10:40:05]Thread 3067055460 joined [10:40:05]Waiting for new connection... [10:40:05] Sock 7.Parse request [10:40:05]Sock 7.Check first char [10:40:05]Sock 7.First char is OK [10:40:05]request: POST /json_proto HTTP/1.0 [10:40:05]Method: POST [10:40:05]URL: /json_proto [10:40:05]Method is POST - this is cgi request [10:40:05]url: /json_proto [10:40:05]query_string will be loaded in cgi processing [10:40:05]execute_cgi json_proto POST (null) [10:40:05]execute_cgi path=json_proto method=POST [10:40:05]POST find Content-Length [10:40:05]Host: 172.17.60.69:8080 [10:40:05]Content-Length: 2556 [10:40:05]Content-Type: application/json [10:40:05] [10:40:05]POST finish read [10:40:05]Found Content-Length = 2556 [10:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73519", "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 }]} ,{ "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 667.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:05]execute_script... [10:40:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73519", "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 }]} ,{ "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600080322137", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 667.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:06]POST & json_proto [10:40:06]process_json_proto [10:40:06]json parsed OK: [10:40:06]protocol is kg_v1.0 [10:40:06]action value=close_receipt [10:40:06]process_action close_receipt [10:40:06]cmd_close_receipt [10:40:06]MH_GetDate [10:40:06]Write to MH i2c: F0 00 00 76 0F 74 [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: F0 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: F0 09 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: F0 09 00 76 0F 00 08 EF 5E 66 6A 96 4A 66 E8 [10:40:06]GetLastDocTimeStamp 1717496908 [10:40:06]current date 1717497608 [10:40:06]FM_GetShiftState [10:40:06]SAM_PROTO_GetShiftState [10:40:06]wFMCommunicate request_size=4 [10:40:06]MH_SAM_APDU [10:40:06]CAPDU: 80 13 01 00 [10:40:06]Write to MH i2c: E2 08 00 77 0F 80 13 01 00 00 00 00 00 03 [10:40:06]Write i2c OK [10:40:06]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0E 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0E 00 77 0F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A3 [10:40:06]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:40:06]wFMCommunicate OK [10:40:06]SAM_PROTO_GetShiftState done [10:40:06]FM_GetShiftState done [10:40:06]opened in 1717459574 [10:40:06]opened+sec_in_day 1717545974 [10:40:06]quantity*price = 26000 [10:40:06]sum+1 = 26001 [10:40:06]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010740757 Чипсы Чипсоны сметана, лук 40г 1.000 * 41.00 = 41.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607010740733 Чипсы Чипсоны шашлык 40г 1.000 * 41.00 = 41.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681376 ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600080322137 Ваф Коровка с шок начинкой 150г 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822426 Вода Бонаква 0,5л б/г 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 667.00 НСП 1% : 5.89 НДС 12% : 70.82 Наличными: 0.00 Безнал.: 667.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 43 04.06.2024 10:40 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63958 ФПД: 130070624260907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104008&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63958&fm=130070624260907&tin=02508201610067®Number=0000000000092737&sum=66700 0 [10:40:07]StoreToDocumentArchive [10:40:07]shift 374 fd 63958 [10:40:07]save to /storage/0374/doc_00063958 [10:40:07]save last doc name /storage/0374/doc_00063958 to /storage/kkm_last_doc_name [10:40:07]save OK [10:40:07]Clear old archive folders... [10:40:07]ProcessDocumentItem done err = 0, tmpTLVsize=962 [10:40:07]tlvbuf is 012B9980 [10:40:07]SAM_PROTO_ClearQueue [10:40:07]wFMCommunicate request_size=4 [10:40:07]MH_SAM_APDU [10:40:07]CAPDU: 80 09 00 00 [10:40:07]Write to MH i2c: E2 08 00 84 0F 80 09 00 00 00 00 00 00 05 [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:07]Read from MH i2c: E2 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 84 0F 00 90 00 07 [10:40:07]RAPDU: 90 00 [10:40:07]wFMCommunicate OK [10:40:07]SAM_PROTO_ClearQueue done [10:40:07]KKMCreateOFDPacket [10:40:07]OFDProtocolAddRootSTLVToBuf [10:40:07]FM_MakeSignedData [10:40:07]FM_MakeSignedData [10:40:07]SAM_PROTO_SignData [10:40:07]wFMCommunicate request_size=4 [10:40:07]MH_SAM_APDU [10:40:07]CAPDU: 80 0D 01 02 [10:40:07]Write to MH i2c: E2 08 00 85 0F 80 0D 01 02 00 00 00 00 0D [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:07]Read from MH i2c: E2 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 [10:40:07]MH_I2C_Read... [10:40:07]Read from MH i2c: E2 03 00 85 0F 00 90 00 08 [10:40:07]RAPDU: 90 00 [10:40:07]wFMCommunicate OK [10:40:07]wFMCommunicate request_size=255 [10:40:07]MH_SAM_APDU [10:40:07]CAPDU: 80 0D 02 02 FA 03 00 C2 03 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 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 [10:40:07]Write to MH i2c: E2 02 01 86 0F 80 0D 02 02 FA 00 03 00 C2 03 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 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 00 00 1D [10:40:07]Write i2c OK [10:40:07]MH_I2C_Read... [10:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:08]Read from MH i2c: E2 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 03 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 03 00 86 0F 00 90 00 09 [10:40:08]RAPDU: 90 00 [10:40:08]wFMCommunicate OK [10:40:08]wFMCommunicate request_size=255 [10:40:08]MH_SAM_APDU [10:40:08]CAPDU: 80 0D 02 02 FA 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 [10:40:08]Write to MH i2c: E2 02 01 87 0F 80 0D 02 02 FA 00 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 00 00 82 [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:08]Read from MH i2c: E2 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 03 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 03 00 87 0F 00 90 00 0A [10:40:08]RAPDU: 90 00 [10:40:08]wFMCommunicate OK [10:40:08]wFMCommunicate request_size=255 [10:40:08]MH_SAM_APDU [10:40:08]CAPDU: 80 0D 02 02 FA BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 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 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 [10:40:08]Write to MH i2c: E2 02 01 88 0F 80 0D 02 02 FA 00 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 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 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 00 00 6F [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:08]Read from MH i2c: E2 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 03 00 [10:40:08]MH_I2C_Read... [10:40:08]Read from MH i2c: E2 03 00 88 0F 00 90 00 0B [10:40:08]RAPDU: 90 00 [10:40:08]wFMCommunicate OK [10:40:08]wFMCommunicate request_size=221 [10:40:08]MH_SAM_APDU [10:40:08]CAPDU: 80 0D 02 02 D8 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 04 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 08 EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D6 F9 00 00 35 04 06 00 76 4C 6D 5A D3 2B [10:40:08]Write to MH i2c: E2 E0 00 89 0F 80 0D 02 02 D8 00 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 04 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 08 EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D6 F9 00 00 35 04 06 00 76 4C 6D 5A D3 2B 00 00 BA [10:40:08]Write i2c OK [10:40:08]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 03 00 89 0F 00 90 00 0C [10:40:09]RAPDU: 90 00 [10:40:09]wFMCommunicate OK [10:40:09]wFMCommunicate request_size=4 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 0D 03 02 [10:40:09]Write to MH i2c: E2 08 00 8A 0F 80 0D 03 02 00 00 00 00 14 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 0B 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 0B 00 8A 0F 00 A1 94 15 0E 1F 22 74 B9 90 00 DB [10:40:09]RAPDU: A1 94 15 0E 1F 22 74 B9 90 00 [10:40:09]wFMCommunicate OK [10:40:09]SAM_PROTO_SignData done [10:40:09]FM_MakeSignedData done [10:40:09]CreateOFDProtocolMessage [10:40:09]wFMCommunicate request_size=4 [10:40:09]MH_SAM_APDU [10:40:09]CAPDU: 80 11 00 00 [10:40:09]Write to MH i2c: E2 08 00 8B 0F 80 11 00 00 00 00 00 00 14 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:09]Read from MH i2c: E2 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 17 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: E2 17 00 8B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 66 [10:40:09]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:09]wFMCommunicate OK [10:40:09]CreateOFDProtocolMessage done [10:40:09]OFDSenderStorePacket 63958 [10:40:09]StoreOFDPacket docnum=63958 [10:40: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 D6 03 00 00 0A 53 CE 03 E9 F2 5A 03 01 00 03 00 C2 03 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 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 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 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 04 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 08 EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D6 F9 00 00 35 04 06 00 76 4C 6D 5A D3 2B A1 94 15 0E 1F 22 74 B9 [10:40:09]CheckFolder [10:40:09]dirname=/storage/ofd_packets [10:40:09]CheckFolder done [10:40:09]ProducePacketName [10:40:09]name=ofd_packets/00063958 [10:40:09]NVStorageSaveData ofd_packets/00063958 [10:40:09]File name is /storage/ofd_packets/00063958 [10:40:09]Write 1012 bytes [10:40:09]NVStorageSaveData done [10:40:09]OFDSenderStorePacket done [10:40:09]KKMCreateOFDPacket done [10:40:09]NVStorageSaveData kkm_last_timestamp [10:40:09]File name is /storage/kkm_last_timestamp [10:40:09]Write 4 bytes [10:40:09]NVStorageSaveData done [10:40:09]ExternCall_PrintAddStr [10:40:09]wPrintStart [10:40:09]Write to MH i2c: 01 00 00 8C 0F 9B [10:40:09]OFD Sender: No OFD packet to send [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 8C 0F 00 00 00 00 00 FF 0F B0 [10:40:09]RasterBufferAndPrint [10:40:09]line Счет N : (3)73519 [10:40:09]line ИНН: 02508201610067 [10:40:09]line Контрольно-Кассовый Чек [10:40:09]line ПРОДАЖА [10:40:09]line Товар: 2000036230011 [10:40:09]line Кофе Латте XL(GABB TRADE) [10:40:09]line 2.000 * 130.00 [10:40:09]line = 260.00 [10:40:09]line НДС 12% НСП 1% [10:40:09]line > о реализуемом товаре [10:40:09]line Товар: 4607010740757 [10:40:09]line Чипсы Чипсоны сметана, лук 40г [10:40:09]line 1.000 * 41.00 [10:40:09]line = 41.00 [10:40:09]line НДС 12% НСП 1% [10:40:09]line > о реализуемом товаре [10:40:09]line Товар: 4607010740733 [10:40:09]line Чипсы Чипсоны шашлык 40г [10:40:09]line 1.000 * 41.00 [10:40:09]line = 41.00 [10:40:09]line НДС 12% НСП 1% [10:40:09]line > о реализуемом товаре [10:40:09]line Товар: 4870235681376 [10:40:09]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [10:40:09]line 1.000 * 95.00 [10:40:09]line = 95.00 [10:40:09]line НДС 12% НСП 1% [10:40:09]line > о реализуемом товаре [10:40:09]line Товар: 40822938 [10:40:09]line Напиток Фанта 0,5л [10:40:09]line 1.000 * 75.00 [10:40:09]line = 75.00 [10:40:09]line НДС 12% НСП 1% [10:40:09]line > о реализуемом товаре [10:40:09]line Товар: 4600080322137 [10:40:09]line Ваф Коровка с шок начинкой 150г [10:40:09]line 1.000 * 115.00 [10:40:09]line = 115.00 [10:40:09]line НДС 12% НСП 1% [10:40:09]line > о реализуемом товаре [10:40:09]line Товар: 40822426 [10:40:09]line Вода Бонаква 0,5л б/г [10:40:09]line 1.000 * 40.00 [10:40:09]line = 40.00 [10:40:09]line НДС 12% НСП 1% [10:40:09]line > о реализуемом товаре [10:40:09]line ИТОГО: 667.00 [10:40:09]line НСП 1% : 5.89 [10:40:09]line НДС 12% : 70.82 [10:40:09]line Наличными: 0.00 [10:40:09]line Безнал.: 667.00 [10:40:09]line Место: АЗС № 117 "Партнер Нефть" [10:40:09]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:40:09]line СНО: Общий режим [10:40:09]line Чек 43 04.06.2024 10:40 [10:40:09]line Смена: 374 ФФД: 1.0 [10:40:09]line ЗНМ: 0300000031 [10:40:09]line РНМ: 0000000000092737 [10:40:09]line Версия ККМ: 001 [10:40:09]line Платежная система: АКБ Кыргызстан [10:40:09]line ФМ: 0000000000875074 [10:40:09]line ФД: 63958 [10:40:09]line ФПД: 130070624260907 [10:40:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104008&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63958&fm=130070624260907&tin=02508201610067®Number=0000000000092737&sum=66700 [10:40:09]line 0 [10:40:09]written 0, free lines is 4095 [10:40:09]OFD Sender: Processing packet 63958 [packets to send 14, broken 13] [10:40:09]ProducePacketName [10:40:09]name=ofd_packets/00063958 [10:40:09]OFD Sender: To server: pG, [10:40:09]CommunicateWithHost lk.salyk.kg:30040 [10:40:09]ConnectInit lk.salyk.kg [10:40:09]Connected sock=10 [10:40: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 D6 03 00 00 0A 53 CE 03 E9 F2 5A 03 01 00 03 00 C2 03 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 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 30 38 30 33 32 32 31 33 37 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 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 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 04 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 08 EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D6 F9 00 00 35 04 06 00 76 4C 6D 5A D3 2B A1 94 15 0E 1F 22 74 B9 [10:40: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 6E C8 47 00 DD 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D6 F9 00 00 F4 03 04 00 D8 9A 5E 66 B6 04 01 00 00 7C CB CB B8 6C FD 46 D3 [10:40:09]CommunicateWithHost err = 0 [10:40:09]CheckOFDResponse [10:40:09]1017 (14) - 77093643461234 [10:40:09]1041 (16) - 0000000000875074 [10:40:09]1040 (4) - 63958 [10:40:09]1012 (4) - 04.06.2024 04:40 [10:40:09]1206 (1) - 0 [10:40:09]OFD Sender: Remove packet 63958 [10:40:09]ProducePacketName [10:40:09]name=ofd_packets/00063958 [10:40:09]NVStorageDeleteData [10:40:10]Write to MH i2c: 01 00 00 DD 0F EC [10:40:10]Write i2c OK [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: 01 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: 01 07 00 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: 01 07 00 DD 0F 00 00 00 00 00 6F 0A 6C [10:40:10]RasterBufferAndPrint [10:40:10]line [10:40:10]line [10:40:10]line [10:40:10]line [10:40:10]line [10:40:10]written 0, free lines is 2682 [10:40:10]MH_Cut [10:40:10]Write to MH i2c: D1 01 00 E4 0F 01 C5 [10:40:10]Write i2c OK [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: D1 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: D1 01 00 [10:40:10]MH_I2C_Read... [10:40:10]Read from MH i2c: D1 01 00 E4 0F 00 C4 [10:40:10]Write to MH i2c: 01 00 00 E5 0F F4 [10:40:10]Write i2c OK [10:40:10]MH_I2C_Read... [10:40:10]OFD Sender: No OFD packet to send [10:40:11]*** Cut start [10:40:11]*** Partial cut [10:40:11]*** CUTSNS_PIN = 1 [10:40:11]*** CUTSNS_PIN = 0 [10:40:11]*** Brake cut motor [10:40:12]Read from MH i2c: 01 [10:40:12]MH_I2C_Read... [10:40:12]*** Stop cut motor [10:40:12]*** Cut end [10:40:12]Read from MH i2c: 01 07 00 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: 01 07 00 E5 0F 00 00 00 00 00 FF 0F 09 [10:40:12]process_action close_receipt done [10:40:12]requested_data is exist [10:40:12]produce_requested_data [10:40:12]requested_item fm.sn is exist - process it [10:40:12]wFMCommunicate request_size=4 [10:40:12]MH_SAM_APDU [10:40:12]CAPDU: 80 11 00 00 [10:40:12]Write to MH i2c: E2 08 00 E6 0F 80 11 00 00 00 00 00 00 6F [10:40:12]Write i2c OK [10:40:12]MH_I2C_Read... [10:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:12]Read from MH i2c: E2 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 17 00 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 17 00 E6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C1 [10:40: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:40:12]wFMCommunicate OK [10:40:12]requested_item fd.num is exist - process it [10:40:12]SAM_PROTO_GetFieldsCounters [10:40:12]wFMCommunicate request_size=4 [10:40:12]MH_SAM_APDU [10:40:12]CAPDU: 80 13 00 00 [10:40:12]Write to MH i2c: E2 08 00 E7 0F 80 13 00 00 00 00 00 00 72 [10:40:12]Write i2c OK [10:40:12]MH_I2C_Read... [10:40:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:12]Read from MH i2c: E2 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 62 00 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 62 00 E7 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 D6 F9 00 00 0E 04 04 00 76 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 5C [10:40: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 D6 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:12]wFMCommunicate OK [10:40:12]SAM_PROTO_GetFieldsCounters done [10:40:12]requested_item shift.num is exist - process it [10:40:12]requested_item shift.opened is exist - process it [10:40:12]req_shift_opened [10:40:12]FM_GetShiftState [10:40:12]SAM_PROTO_GetShiftState [10:40:12]wFMCommunicate request_size=4 [10:40:12]MH_SAM_APDU [10:40:12]CAPDU: 80 13 01 00 [10:40:12]Write to MH i2c: E2 08 00 E8 0F 80 13 01 00 00 00 00 00 74 [10:40:12]Write i2c OK [10:40:12]MH_I2C_Read... [10:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:12]Read from MH i2c: E2 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 0E 00 [10:40:12]MH_I2C_Read... [10:40:12]Read from MH i2c: E2 0E 00 E8 0F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 14 [10:40:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:40:12]wFMCommunicate OK [10:40:12]SAM_PROTO_GetShiftState done [10:40:12]FM_GetShiftState done [10:40:12]req_shift_opened done [10:40:12]requested_item shift.open_date is exist - process it [10:40:12]req_shift_open_date [10:40:12]req_shift_open_date done [10:40:12]produce_requested_data done [10:40:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63958,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [10:40:12]process_action_free close_receipt [10:40:12]json_value_free [10:40:12]json_value_free done [10:40:12]process_json_proto returns [10:40:12]Send response to host [10:40:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63958,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [10:40:12]free response buf [10:40:12]execute_script done [10:40:12]execute_script returns [10:40:12]free content buf [10:40:12]Sock 7.Close socket [10:40:12]Sock 7.Thread stoped [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:41:58]accept exits with 9 [10:41:58]New connection [10:41:58]New thread 3067055460 created [10:41:58]Thread 3066912100 joined [10:41:58]Waiting for new connection... [10:41:58] Sock 9.Parse request [10:41:58]Sock 9.Check first char [10:41:58]Sock 9.First char is OK [10:41:58]request: POST /json_proto HTTP/1.0 [10:41:58]Method: POST [10:41:58]URL: /json_proto [10:41:58]Method is POST - this is cgi request [10:41:58]url: /json_proto [10:41:58]query_string will be loaded in cgi processing [10:41:58]execute_cgi json_proto POST (null) [10:41:58]execute_cgi path=json_proto method=POST [10:41:58]POST find Content-Length [10:41:58]Host: 172.17.60.69:8080 [10:41:58]Content-Length: 620 [10:41:58]Content-Type: application/json [10:41:58] [10:41:58]POST finish read [10:41:58]Found Content-Length = 620 [10:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73520", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:58]execute_script... [10:41: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)73520", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:58]POST & json_proto [10:41:58]process_json_proto [10:41:58]json parsed OK: [10:41:58]protocol is kg_v1.0 [10:41:58]action value=close_receipt [10:41:58]process_action close_receipt [10:41:58]cmd_close_receipt [10:41:58]MH_GetDate [10:41:58]Write to MH i2c: F0 00 00 E9 0F E7 [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: F0 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: F0 09 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: F0 09 00 E9 0F 00 79 EF 5E 66 6A 96 4A 66 CC [10:41:58]GetLastDocTimeStamp 1717497608 [10:41:58]current date 1717497721 [10:41:58]FM_GetShiftState [10:41:58]SAM_PROTO_GetShiftState [10:41:58]wFMCommunicate request_size=4 [10:41:58]MH_SAM_APDU [10:41:58]CAPDU: 80 13 01 00 [10:41:58]Write to MH i2c: E2 08 00 EA 0F 80 13 01 00 00 00 00 00 76 [10:41:58]Write i2c OK [10:41:58]MH_I2C_Read... [10:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:58]Read from MH i2c: E2 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 0E 00 [10:41:58]MH_I2C_Read... [10:41:58]Read from MH i2c: E2 0E 00 EA 0F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 16 [10:41:58]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:41:58]wFMCommunicate OK [10:41:58]SAM_PROTO_GetShiftState done [10:41:58]FM_GetShiftState done [10:41:58]opened in 1717459574 [10:41:58]opened+sec_in_day 1717545974 [10:41:58]quantity*price = 28000 [10:41:58]sum+1 = 28001 [10:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 44 04.06.2024 10:42 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63959 ФПД: 27212710997371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104201&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63959&fm=27212710997371&tin=02508201610067®Number=0000000000092737&sum=28000 0 [10:41:59]StoreToDocumentArchive [10:41:59]shift 374 fd 63959 [10:41:59]save to /storage/0374/doc_00063959 [10:41:59]save last doc name /storage/0374/doc_00063959 to /storage/kkm_last_doc_name [10:41:59]save OK [10:41:59]Clear old archive folders... [10:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:41:59]tlvbuf is 012BE350 [10:41:59]SAM_PROTO_ClearQueue [10:41:59]wFMCommunicate request_size=4 [10:41:59]MH_SAM_APDU [10:41:59]CAPDU: 80 09 00 00 [10:41:59]Write to MH i2c: E2 08 00 F7 0F 80 09 00 00 00 00 00 00 78 [10:41:59]Write i2c OK [10:41:59]MH_I2C_Read... [10:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:59]Read from MH i2c: E2 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: E2 03 00 [10:41:59]MH_I2C_Read... [10:41:59]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [10:41:59]RAPDU: 90 00 [10:41:59]wFMCommunicate OK [10:41:59]SAM_PROTO_ClearQueue done [10:41:59]KKMCreateOFDPacket [10:41:59]OFDProtocolAddRootSTLVToBuf [10:41:59]FM_MakeSignedData [10:41:59]FM_MakeSignedData [10:41:59]SAM_PROTO_SignData [10:41:59]wFMCommunicate request_size=4 [10:41:59]MH_SAM_APDU [10:41:59]CAPDU: 80 0D 01 02 [10:41:59]Write to MH i2c: E2 08 00 F8 0F 80 0D 01 02 00 00 00 00 80 [10:41:59]Write i2c OK [10:41:59]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [10:42:00]RAPDU: 90 00 [10:42:00]wFMCommunicate OK [10:42:00]wFMCommunicate request_size=255 [10:42:00]MH_SAM_APDU [10:42: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 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 79 EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [10:42:00]Write to MH i2c: E2 02 01 F9 0F 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 79 EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 24 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 F9 0F 00 90 00 7C [10:42:00]RAPDU: 90 00 [10:42:00]wFMCommunicate OK [10:42:00]wFMCommunicate request_size=32 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 D7 F9 00 00 35 04 06 00 18 BF F3 F8 ED 7B [10:42:00]Write to MH i2c: E2 23 00 FA 0F 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 D7 F9 00 00 35 04 06 00 18 BF F3 F8 ED 7B 00 00 D9 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 03 00 FA 0F 00 90 00 7D [10:42:00]RAPDU: 90 00 [10:42:00]wFMCommunicate OK [10:42:00]wFMCommunicate request_size=4 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 0D 03 02 [10:42:00]Write to MH i2c: E2 08 00 FB 0F 80 0D 03 02 00 00 00 00 85 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 0B 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 0B 00 FB 0F 00 1C 54 EE B4 89 7B 1D E0 90 00 99 [10:42:00]RAPDU: 1C 54 EE B4 89 7B 1D E0 90 00 [10:42:00]wFMCommunicate OK [10:42:00]SAM_PROTO_SignData done [10:42:00]FM_MakeSignedData done [10:42:00]CreateOFDProtocolMessage [10:42:00]wFMCommunicate request_size=4 [10:42:00]MH_SAM_APDU [10:42:00]CAPDU: 80 11 00 00 [10:42:00]Write to MH i2c: E2 08 00 FC 0F 80 11 00 00 00 00 00 00 85 [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:00]Read from MH i2c: E2 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 17 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: E2 17 00 FC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D7 [10:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:42:00]wFMCommunicate OK [10:42:00]CreateOFDProtocolMessage done [10:42:00]OFDSenderStorePacket 63959 [10:42:00]StoreOFDPacket docnum=63959 [10:42: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 62 18 1D 01 67 7F 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 79 EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D7 F9 00 00 35 04 06 00 18 BF F3 F8 ED 7B 1C 54 EE B4 89 7B 1D E0 [10:42:00]CheckFolder [10:42:00]dirname=/storage/ofd_packets [10:42:00]CheckFolder done [10:42:00]ProducePacketName [10:42:00]name=ofd_packets/00063959 [10:42:00]NVStorageSaveData ofd_packets/00063959 [10:42:00]File name is /storage/ofd_packets/00063959 [10:42:00]Write 323 bytes [10:42:00]NVStorageSaveData done [10:42:00]OFDSenderStorePacket done [10:42:00]KKMCreateOFDPacket done [10:42:00]NVStorageSaveData kkm_last_timestamp [10:42:00]File name is /storage/kkm_last_timestamp [10:42:00]Write 4 bytes [10:42:00]NVStorageSaveData done [10:42:00]ExternCall_PrintAddStr [10:42:00]wPrintStart [10:42:00]Write to MH i2c: 01 00 00 FD 0F 0C [10:42:00]Write i2c OK [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: 01 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: 01 07 00 [10:42:00]MH_I2C_Read... [10:42:00]Read from MH i2c: 01 07 00 FD 0F 00 00 00 00 00 FF 0F 21 [10:42:00]RasterBufferAndPrint [10:42:00]line Счет N : (3)73520 [10:42:00]line ИНН: 02508201610067 [10:42:00]line Контрольно-Кассовый Чек [10:42:00]line ПРОДАЖА [10:42:00]line Товар: 48747059 [10:42:00]line Сигареты Winston Legend Blue [10:42:00]line 2.000 * 140.00 [10:42:00]line = 280.00 [10:42:00]line НДС 12% НСП 1% [10:42:00]line > о реализуемом товаре [10:42:00]line ИТОГО: 280.00 [10:42:00]line НСП 1% : 2.48 [10:42:00]line НДС 12% : 29.73 [10:42:00]line Наличными: 280.00 [10:42:00]line Безнал.: 0.00 [10:42:00]line Место: АЗС № 117 "Партнер Нефть" [10:42:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:42:00]line СНО: Общий режим [10:42:00]line Чек 44 04.06.2024 10:42 [10:42:00]line Смена: 374 ФФД: 1.0 [10:42:00]line ЗНМ: 0300000031 [10:42:00]line РНМ: 0000000000092737 [10:42:00]line Версия ККМ: 001 [10:42:00]line ФМ: 0000000000875074 [10:42:00]line ФД: 63959 [10:42:00]line ФПД: 27212710997371 [10:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104201&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63959&fm=27212710997371&tin=02508201610067®Number=0000000000092737&sum=28000 [10:42:00]line 0 [10:42:00]OFD Sender: Processing packet 63959 [packets to send 14, broken 13] [10:42:00]ProducePacketName [10:42:00]name=ofd_packets/00063959 [10:42:00]OFD Sender: To server: pG, [10:42:00]CommunicateWithHost lk.salyk.kg:30040 [10:42:00]ConnectInit lk.salyk.kg [10:42:00]written 0, free lines is 4095 [10:42:00]Connected sock=10 [10:42: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 25 01 00 00 62 18 1D 01 67 7F 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 79 EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D7 F9 00 00 35 04 06 00 18 BF F3 F8 ED 7B 1C 54 EE B4 89 7B 1D E0 [10:42: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 88 0F 47 00 6F CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D7 F9 00 00 F4 03 04 00 47 9B 5E 66 B6 04 01 00 00 CF 21 F8 AC B7 55 DC D2 [10:42:01]CommunicateWithHost err = 0 [10:42:01]CheckOFDResponse [10:42:01]1017 (14) - 77093643461234 [10:42:01]1041 (16) - 0000000000875074 [10:42:01]1040 (4) - 63959 [10:42:01]1012 (4) - 04.06.2024 04:42 [10:42:01]1206 (1) - 0 [10:42:01]OFD Sender: Remove packet 63959 [10:42:01]ProducePacketName [10:42:01]name=ofd_packets/00063959 [10:42:01]NVStorageDeleteData [10:42:01]Write to MH i2c: 01 00 00 26 10 36 [10:42:01]Write i2c OK [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: 01 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: 01 07 00 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: 01 07 00 26 10 00 00 00 00 00 D2 0C 1B [10:42:01]RasterBufferAndPrint [10:42:01]line [10:42:01]line [10:42:01]line [10:42:01]line [10:42:01]line [10:42:01]written 0, free lines is 3288 [10:42:01]MH_Cut [10:42:01]Write to MH i2c: D1 01 00 2D 10 01 0F [10:42:01]Write i2c OK [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: D1 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: D1 01 00 [10:42:01]MH_I2C_Read... [10:42:01]Read from MH i2c: D1 01 00 2D 10 00 0E [10:42:01]Write to MH i2c: 01 00 00 2E 10 3E [10:42:01]Write i2c OK [10:42:01]MH_I2C_Read... [10:42:01]OFD Sender: No OFD packet to send [10:42:02]*** Cut start [10:42:02]*** Partial cut [10:42:02]*** CUTSNS_PIN = 1 [10:42:02]*** CUTSNS_PIN = 0 [10:42:02]*** Brake cut motor [10:42:02]Read from MH i2c: 01 [10:42:02]MH_I2C_Read... [10:42:02]*** Stop cut motor [10:42:02]*** Cut end [10:42:02]Read from MH i2c: 01 07 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: 01 07 00 2E 10 00 00 00 00 00 FF 0F 53 [10:42:02]process_action close_receipt done [10:42:02]requested_data is exist [10:42:02]produce_requested_data [10:42:02]requested_item fm.sn is exist - process it [10:42:02]wFMCommunicate request_size=4 [10:42:02]MH_SAM_APDU [10:42:02]CAPDU: 80 11 00 00 [10:42:02]Write to MH i2c: E2 08 00 2F 10 80 11 00 00 00 00 00 00 B9 [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:02]Read from MH i2c: E2 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 17 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 17 00 2F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0B [10:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:42:02]wFMCommunicate OK [10:42:02]requested_item fd.num is exist - process it [10:42:02]SAM_PROTO_GetFieldsCounters [10:42:02]wFMCommunicate request_size=4 [10:42:02]MH_SAM_APDU [10:42:02]CAPDU: 80 13 00 00 [10:42:02]Write to MH i2c: E2 08 00 30 10 80 13 00 00 00 00 00 00 BC [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:02]Read from MH i2c: E2 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 62 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 62 00 30 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 D7 F9 00 00 0E 04 04 00 76 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 AA [10:42: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 D7 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:02]wFMCommunicate OK [10:42:02]SAM_PROTO_GetFieldsCounters done [10:42:02]requested_item shift.num is exist - process it [10:42:02]requested_item shift.opened is exist - process it [10:42:02]req_shift_opened [10:42:02]FM_GetShiftState [10:42:02]SAM_PROTO_GetShiftState [10:42:02]wFMCommunicate request_size=4 [10:42:02]MH_SAM_APDU [10:42:02]CAPDU: 80 13 01 00 [10:42:02]Write to MH i2c: E2 08 00 31 10 80 13 01 00 00 00 00 00 BE [10:42:02]Write i2c OK [10:42:02]MH_I2C_Read... [10:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:02]Read from MH i2c: E2 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 0E 00 [10:42:02]MH_I2C_Read... [10:42:02]Read from MH i2c: E2 0E 00 31 10 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 5E [10:42:02]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:42:02]wFMCommunicate OK [10:42:02]SAM_PROTO_GetShiftState done [10:42:02]FM_GetShiftState done [10:42:02]req_shift_opened done [10:42:02]requested_item shift.open_date is exist - process it [10:42:02]req_shift_open_date [10:42:02]req_shift_open_date done [10:42:02]produce_requested_data done [10:42:02]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63959,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [10:42:02]process_action_free close_receipt [10:42:02]json_value_free [10:42:02]json_value_free done [10:42:02]process_json_proto returns [10:42:02]Send response to host [10:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63959,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [10:42:02]free response buf [10:42:02]execute_script done [10:42:02]execute_script returns [10:42:02]free content buf [10:42:02]Sock 9.Close socket [10:42:02]Sock 9.Thread stoped [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:23]accept exits with 7 [10:43:23]New connection [10:43:23]New thread 3066912100 created [10:43:23]Thread 3067055460 joined [10:43:23]Waiting for new connection... [10:43:23] Sock 7.Parse request [10:43:23]Sock 7.Check first char [10:43:23]Sock 7.First char is OK [10:43:23]request: POST /json_proto HTTP/1.0 [10:43:23]Method: POST [10:43:23]URL: /json_proto [10:43:23]Method is POST - this is cgi request [10:43:23]url: /json_proto [10:43:23]query_string will be loaded in cgi processing [10:43:23]execute_cgi json_proto POST (null) [10:43:23]execute_cgi path=json_proto method=POST [10:43:23]POST find Content-Length [10:43:23]Host: 172.17.60.69:8080 [10:43:23]Content-Length: 623 [10:43:23]Content-Type: application/json [10:43:23] [10:43:23]POST finish read [10:43:23]Found Content-Length = 623 [10:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73521", "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" ] } } [10:43:23]execute_script... [10:43:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73521", "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" ] } } [10:43:23]POST & json_proto [10:43:23]process_json_proto [10:43:23]json parsed OK: [10:43:23]protocol is kg_v1.0 [10:43:23]action value=close_receipt [10:43:23]process_action close_receipt [10:43:23]cmd_close_receipt [10:43:23]MH_GetDate [10:43:23]Write to MH i2c: F0 00 00 32 10 31 [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: F0 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: F0 09 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: F0 09 00 32 10 00 CE EF 5E 66 6A 96 4A 66 6B [10:43:23]GetLastDocTimeStamp 1717497721 [10:43:23]current date 1717497806 [10:43:23]FM_GetShiftState [10:43:23]SAM_PROTO_GetShiftState [10:43:23]wFMCommunicate request_size=4 [10:43:23]MH_SAM_APDU [10:43:23]CAPDU: 80 13 01 00 [10:43:23]Write to MH i2c: E2 08 00 33 10 80 13 01 00 00 00 00 00 C0 [10:43:23]Write i2c OK [10:43:23]MH_I2C_Read... [10:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:23]Read from MH i2c: E2 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 0E 00 [10:43:23]MH_I2C_Read... [10:43:23]Read from MH i2c: E2 0E 00 33 10 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 60 [10:43:23]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:43:23]wFMCommunicate OK [10:43:23]SAM_PROTO_GetShiftState done [10:43:23]FM_GetShiftState done [10:43:23]opened in 1717459574 [10:43:23]opened+sec_in_day 1717545974 [10:43:23]quantity*price = 15000 [10:43:23]sum+1 = 15001 [10:43:23]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 СНО: Общий режим Чек 45 04.06.2024 10:43 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63960 ФПД: 89849136107150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104326&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63960&fm=89849136107150&tin=02508201610067®Number=0000000000092737&sum=15000 0 [10:43:24]StoreToDocumentArchive [10:43:24]shift 374 fd 63960 [10:43:24]save to /storage/0374/doc_00063960 [10:43:24]save last doc name /storage/0374/doc_00063960 to /storage/kkm_last_doc_name [10:43:24]save OK [10:43:24]Clear old archive folders... [10:43:24]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:43:24]tlvbuf is 012B08D0 [10:43:24]SAM_PROTO_ClearQueue [10:43:24]wFMCommunicate request_size=4 [10:43:24]MH_SAM_APDU [10:43:24]CAPDU: 80 09 00 00 [10:43:24]Write to MH i2c: E2 08 00 40 10 80 09 00 00 00 00 00 00 C2 [10:43:24]Write i2c OK [10:43:24]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 40 10 00 90 00 C4 [10:43:25]RAPDU: 90 00 [10:43:25]wFMCommunicate OK [10:43:25]SAM_PROTO_ClearQueue done [10:43:25]KKMCreateOFDPacket [10:43:25]OFDProtocolAddRootSTLVToBuf [10:43:25]FM_MakeSignedData [10:43:25]FM_MakeSignedData [10:43:25]SAM_PROTO_SignData [10:43:25]wFMCommunicate request_size=4 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 0D 01 02 [10:43:25]Write to MH i2c: E2 08 00 41 10 80 0D 01 02 00 00 00 00 CA [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 41 10 00 90 00 C5 [10:43:25]RAPDU: 90 00 [10:43:25]wFMCommunicate OK [10:43:25]wFMCommunicate request_size=255 [10:43:25]MH_SAM_APDU [10:43:25]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 2D 00 00 00 F4 03 04 00 CE EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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:43:25]Write to MH i2c: E2 02 01 42 10 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 2D 00 00 00 F4 03 04 00 CE EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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 AA [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 42 10 00 90 00 C6 [10:43:25]RAPDU: 90 00 [10:43:25]wFMCommunicate OK [10:43:25]wFMCommunicate request_size=35 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D8 F9 00 00 35 04 06 00 51 B7 A1 D7 4E 8E [10:43:25]Write to MH i2c: E2 26 00 43 10 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D8 F9 00 00 35 04 06 00 51 B7 A1 D7 4E 8E 00 00 EC [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 03 00 43 10 00 90 00 C7 [10:43:25]RAPDU: 90 00 [10:43:25]wFMCommunicate OK [10:43:25]wFMCommunicate request_size=4 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 0D 03 02 [10:43:25]Write to MH i2c: E2 08 00 44 10 80 0D 03 02 00 00 00 00 CF [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 0B 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 0B 00 44 10 00 E4 B8 62 62 62 54 1C 9F 90 00 A1 [10:43:25]RAPDU: E4 B8 62 62 62 54 1C 9F 90 00 [10:43:25]wFMCommunicate OK [10:43:25]SAM_PROTO_SignData done [10:43:25]FM_MakeSignedData done [10:43:25]CreateOFDProtocolMessage [10:43:25]wFMCommunicate request_size=4 [10:43:25]MH_SAM_APDU [10:43:25]CAPDU: 80 11 00 00 [10:43:25]Write to MH i2c: E2 08 00 45 10 80 11 00 00 00 00 00 00 CF [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:25]Read from MH i2c: E2 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 17 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: E2 17 00 45 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 21 [10:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:43:25]wFMCommunicate OK [10:43:25]CreateOFDProtocolMessage done [10:43:25]OFDSenderStorePacket 63960 [10:43:25]StoreOFDPacket docnum=63960 [10:43: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 28 01 00 00 81 59 20 01 7C B3 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 2D 00 00 00 F4 03 04 00 CE EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D8 F9 00 00 35 04 06 00 51 B7 A1 D7 4E 8E E4 B8 62 62 62 54 1C 9F [10:43:25]CheckFolder [10:43:25]dirname=/storage/ofd_packets [10:43:25]CheckFolder done [10:43:25]ProducePacketName [10:43:25]name=ofd_packets/00063960 [10:43:25]NVStorageSaveData ofd_packets/00063960 [10:43:25]File name is /storage/ofd_packets/00063960 [10:43:25]Write 326 bytes [10:43:25]NVStorageSaveData done [10:43:25]OFDSenderStorePacket done [10:43:25]KKMCreateOFDPacket done [10:43:25]NVStorageSaveData kkm_last_timestamp [10:43:25]File name is /storage/kkm_last_timestamp [10:43:25]Write 4 bytes [10:43:25]NVStorageSaveData done [10:43:25]ExternCall_PrintAddStr [10:43:25]wPrintStart [10:43:25]Write to MH i2c: 01 00 00 46 10 56 [10:43:25]Write i2c OK [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: 01 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: 01 07 00 [10:43:25]MH_I2C_Read... [10:43:25]Read from MH i2c: 01 07 00 46 10 00 00 00 00 00 FF 0F 6B [10:43:25]RasterBufferAndPrint [10:43:25]line Счет N : (3)73521 [10:43:25]line ИНН: 02508201610067 [10:43:25]line Контрольно-Кассовый Чек [10:43:25]line ПРОДАЖА [10:43:25]line Товар: 48747073 [10:43:25]line Сигареты Richmond Royal Edition [10:43:25]line 1.000 * 150.00 [10:43:25]line = 150.00 [10:43:25]line НДС 12% НСП 1% [10:43:25]line > о реализуемом товаре [10:43:25]line ИТОГО: 150.00 [10:43:25]line НСП 1% : 1.33 [10:43:25]line НДС 12% : 15.93 [10:43:25]line Наличными: 150.00 [10:43:25]line Безнал.: 0.00 [10:43:25]line Место: АЗС № 117 "Партнер Нефть" [10:43:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:43:25]line СНО: Общий режим [10:43:25]line Чек 45 04.06.2024 10:43 [10:43:25]line Смена: 374 ФФД: 1.0 [10:43:25]line ЗНМ: 0300000031 [10:43:25]line РНМ: 0000000000092737 [10:43:25]line Версия ККМ: 001 [10:43:25]line ФМ: 0000000000875074 [10:43:25]line ФД: 63960 [10:43:25]line ФПД: 89849136107150 [10:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104326&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63960&fm=89849136107150&tin=02508201610067®Number=0000000000092737&sum=15000 [10:43:25]line 0 [10:43:25]OFD Sender: Processing packet 63960 [packets to send 14, broken 13] [10:43:25]ProducePacketName [10:43:25]name=ofd_packets/00063960 [10:43:25]OFD Sender: To server: pG, [10:43:25]CommunicateWithHost lk.salyk.kg:30040 [10:43:25]ConnectInit lk.salyk.kg [10:43:25]written 0, free lines is 4095 [10:43:25]Connected sock=10 [10:43: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 28 01 00 00 81 59 20 01 7C B3 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 2D 00 00 00 F4 03 04 00 CE EF 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D8 F9 00 00 35 04 06 00 51 B7 A1 D7 4E 8E E4 B8 62 62 62 54 1C 9F [10:43: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 46 40 47 00 7B 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 D8 F9 00 00 F4 03 04 00 9C 9B 5E 66 B6 04 01 00 00 54 AE CA 97 8F FE C3 CE [10:43:26]CommunicateWithHost err = 0 [10:43:26]CheckOFDResponse [10:43:26]1017 (14) - 77093643461234 [10:43:26]1041 (16) - 0000000000875074 [10:43:26]1040 (4) - 63960 [10:43:26]1012 (4) - 04.06.2024 04:44 [10:43:26]1206 (1) - 0 [10:43:26]OFD Sender: Remove packet 63960 [10:43:26]ProducePacketName [10:43:26]name=ofd_packets/00063960 [10:43:26]NVStorageDeleteData [10:43:26]Write to MH i2c: 01 00 00 6F 10 7F [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: 01 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: 01 07 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: 01 07 00 6F 10 00 00 00 00 00 CA 0C 5C [10:43:26]RasterBufferAndPrint [10:43:26]line [10:43:26]line [10:43:26]line [10:43:26]line [10:43:26]line [10:43:26]written 0, free lines is 3281 [10:43:26]MH_Cut [10:43:26]Write to MH i2c: D1 01 00 76 10 01 58 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: D1 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: D1 01 00 [10:43:26]MH_I2C_Read... [10:43:26]Read from MH i2c: D1 01 00 76 10 00 57 [10:43:26]Write to MH i2c: 01 00 00 77 10 87 [10:43:26]Write i2c OK [10:43:26]MH_I2C_Read... [10:43:26]OFD Sender: No OFD packet to send [10:43:27]*** Cut start [10:43:27]*** Partial cut [10:43:27]*** CUTSNS_PIN = 1 [10:43:27]*** CUTSNS_PIN = 0 [10:43:27]*** Brake cut motor [10:43:27]Read from MH i2c: 01 [10:43:27]MH_I2C_Read... [10:43:27]*** Stop cut motor [10:43:27]*** Cut end [10:43:27]Read from MH i2c: 01 07 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: 01 07 00 77 10 00 00 00 00 00 FF 0F 9C [10:43:27]process_action close_receipt done [10:43:27]requested_data is exist [10:43:27]produce_requested_data [10:43:27]requested_item fm.sn is exist - process it [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 11 00 00 [10:43:27]Write to MH i2c: E2 08 00 78 10 80 11 00 00 00 00 00 00 02 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 17 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 17 00 78 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 54 [10:43: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:43:27]wFMCommunicate OK [10:43:27]requested_item fd.num is exist - process it [10:43:27]SAM_PROTO_GetFieldsCounters [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 13 00 00 [10:43:27]Write to MH i2c: E2 08 00 79 10 80 13 00 00 00 00 00 00 05 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 62 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 62 00 79 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 D8 F9 00 00 0E 04 04 00 76 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 F7 [10:43:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 D8 F9 00 00 0E 04 04 00 76 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 [10:43:27]wFMCommunicate OK [10:43:27]SAM_PROTO_GetFieldsCounters done [10:43:27]requested_item shift.num is exist - process it [10:43:27]requested_item shift.opened is exist - process it [10:43:27]req_shift_opened [10:43:27]FM_GetShiftState [10:43:27]SAM_PROTO_GetShiftState [10:43:27]wFMCommunicate request_size=4 [10:43:27]MH_SAM_APDU [10:43:27]CAPDU: 80 13 01 00 [10:43:27]Write to MH i2c: E2 08 00 7A 10 80 13 01 00 00 00 00 00 07 [10:43:27]Write i2c OK [10:43:27]MH_I2C_Read... [10:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:27]Read from MH i2c: E2 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 0E 00 [10:43:27]MH_I2C_Read... [10:43:27]Read from MH i2c: E2 0E 00 7A 10 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A7 [10:43:27]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:43:27]wFMCommunicate OK [10:43:27]SAM_PROTO_GetShiftState done [10:43:27]FM_GetShiftState done [10:43:27]req_shift_opened done [10:43:27]requested_item shift.open_date is exist - process it [10:43:27]req_shift_open_date [10:43:27]req_shift_open_date done [10:43:27]produce_requested_data done [10:43:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63960,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [10:43:27]process_action_free close_receipt [10:43:27]json_value_free [10:43:27]json_value_free done [10:43:27]process_json_proto returns [10:43:27]Send response to host [10:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63960,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [10:43:27]free response buf [10:43:27]execute_script done [10:43:27]execute_script returns [10:43:27]free content buf [10:43:27]Sock 7.Close socket [10:43:27]Sock 7.Thread stoped [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:09]accept exits with 9 [10:46:09]New connection [10:46:09]New thread 3067055460 created [10:46:09]Thread 3066912100 joined [10:46:09]Waiting for new connection... [10:46:09] Sock 9.Parse request [10:46:09]Sock 9.Check first char [10:46:09]Sock 9.First char is OK [10:46:09]request: POST /json_proto HTTP/1.0 [10:46:09]Method: POST [10:46:09]URL: /json_proto [10:46:09]Method is POST - this is cgi request [10:46:09]url: /json_proto [10:46:09]query_string will be loaded in cgi processing [10:46:09]execute_cgi json_proto POST (null) [10:46:09]execute_cgi path=json_proto method=POST [10:46:09]POST find Content-Length [10:46:09]Host: 172.17.60.69:8080 [10:46:09]Content-Length: 704 [10:46:09]Content-Type: application/json [10:46:09] [10:46:09]POST finish read [10:46:09]Found Content-Length = 704 [10:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73522", "tax_sys" : 0, "items" : [ { "code": "4602606015073", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0427\u0427 \u041A\u0438\u0441\u043B\u044B\u0435 \u0440\u043E\u043B\u043B\u0441\u044B 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 103.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:09]execute_script... [10:46: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)73522", "tax_sys" : 0, "items" : [ { "code": "4602606015073", "name": "\u041C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 \u0427\u0427 \u041A\u0438\u0441\u043B\u044B\u0435 \u0440\u043E\u043B\u043B\u0441\u044B 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 103.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:09]POST & json_proto [10:46:09]process_json_proto [10:46:09]json parsed OK: [10:46:09]protocol is kg_v1.0 [10:46:09]action value=close_receipt [10:46:09]process_action close_receipt [10:46:09]cmd_close_receipt [10:46:09]MH_GetDate [10:46:09]Write to MH i2c: F0 00 00 7B 10 7A [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: F0 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: F0 09 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: F0 09 00 7B 10 00 74 F0 5E 66 6A 96 4A 66 5B [10:46:09]GetLastDocTimeStamp 1717497806 [10:46:09]current date 1717497972 [10:46:09]FM_GetShiftState [10:46:09]SAM_PROTO_GetShiftState [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 13 01 00 [10:46:09]Write to MH i2c: E2 08 00 7C 10 80 13 01 00 00 00 00 00 09 [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:09]Read from MH i2c: E2 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 0E 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 0E 00 7C 10 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A9 [10:46:09]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:46:09]wFMCommunicate OK [10:46:09]SAM_PROTO_GetShiftState done [10:46:09]FM_GetShiftState done [10:46:09]opened in 1717459574 [10:46:09]opened+sec_in_day 1717545974 [10:46:09]quantity*price = 10300 [10:46:09]sum+1 = 10301 [10:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 103.00 НСП 1% : 0.91 НДС 12% : 10.94 Наличными: 103.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 46 04.06.2024 10:46 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63961 ФПД: 74273766531279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104612&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63961&fm=74273766531279&tin=02508201610067®Number=0000000000092737&sum=10300 0 [10:46:10]StoreToDocumentArchive [10:46:10]shift 374 fd 63961 [10:46:10]save to /storage/0374/doc_00063961 [10:46:10]save last doc name /storage/0374/doc_00063961 to /storage/kkm_last_doc_name [10:46:10]save OK [10:46:10]Clear old archive folders... [10:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=297 [10:46:10]tlvbuf is 012B04C0 [10:46:10]SAM_PROTO_ClearQueue [10:46:10]wFMCommunicate request_size=4 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 09 00 00 [10:46:10]Write to MH i2c: E2 08 00 89 10 80 09 00 00 00 00 00 00 0B [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 89 10 00 90 00 0D [10:46:10]RAPDU: 90 00 [10:46:10]wFMCommunicate OK [10:46:10]SAM_PROTO_ClearQueue done [10:46:10]KKMCreateOFDPacket [10:46:10]OFDProtocolAddRootSTLVToBuf [10:46:10]FM_MakeSignedData [10:46:10]FM_MakeSignedData [10:46:10]SAM_PROTO_SignData [10:46:10]wFMCommunicate request_size=4 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 0D 01 02 [10:46:10]Write to MH i2c: E2 08 00 8A 10 80 0D 01 02 00 00 00 00 13 [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 8A 10 00 90 00 0E [10:46:11]RAPDU: 90 00 [10:46:11]wFMCommunicate OK [10:46:11]wFMCommunicate request_size=255 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 35 30 37 33 06 04 37 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 80 D0 BE D0 BB D0 BB D1 81 D1 8B 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 04 00 00 00 00 07 04 06 00 3C 28 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 74 F0 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [10:46:11]Write to MH i2c: E2 02 01 8B 10 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 35 30 37 33 06 04 37 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 80 D0 BE D0 BB D0 BB D1 81 D1 8B 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 04 00 00 00 00 07 04 06 00 3C 28 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 74 F0 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 AF [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 8B 10 00 90 00 0F [10:46:11]RAPDU: 90 00 [10:46:11]wFMCommunicate OK [10:46:11]wFMCommunicate request_size=56 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D9 F9 00 00 35 04 06 00 43 8D 35 78 60 CF [10:46:11]Write to MH i2c: E2 3B 00 8C 10 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D9 F9 00 00 35 04 06 00 43 8D 35 78 60 CF 00 00 21 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 03 00 8C 10 00 90 00 10 [10:46:11]RAPDU: 90 00 [10:46:11]wFMCommunicate OK [10:46:11]wFMCommunicate request_size=4 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 0D 03 02 [10:46:11]Write to MH i2c: E2 08 00 8D 10 80 0D 03 02 00 00 00 00 18 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 0B 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 0B 00 8D 10 00 28 8B D7 46 28 CC 78 68 90 00 BD [10:46:11]RAPDU: 28 8B D7 46 28 CC 78 68 90 00 [10:46:11]wFMCommunicate OK [10:46:11]SAM_PROTO_SignData done [10:46:11]FM_MakeSignedData done [10:46:11]CreateOFDProtocolMessage [10:46:11]wFMCommunicate request_size=4 [10:46:11]MH_SAM_APDU [10:46:11]CAPDU: 80 11 00 00 [10:46:11]Write to MH i2c: E2 08 00 8E 10 80 11 00 00 00 00 00 00 18 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:11]Read from MH i2c: E2 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 17 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: E2 17 00 8E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6A [10:46: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:46:11]wFMCommunicate OK [10:46:11]CreateOFDProtocolMessage done [10:46:11]OFDSenderStorePacket 63961 [10:46:11]StoreOFDPacket docnum=63961 [10:46: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 3D 01 00 00 66 C7 35 01 4F 90 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 35 30 37 33 06 04 37 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 80 D0 BE D0 BB D0 BB D1 81 D1 8B 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 04 00 00 00 00 07 04 06 00 3C 28 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 74 F0 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D9 F9 00 00 35 04 06 00 43 8D 35 78 60 CF 28 8B D7 46 28 CC 78 68 [10:46:11]CheckFolder [10:46:11]dirname=/storage/ofd_packets [10:46:11]CheckFolder done [10:46:11]ProducePacketName [10:46:11]name=ofd_packets/00063961 [10:46:11]NVStorageSaveData ofd_packets/00063961 [10:46:11]File name is /storage/ofd_packets/00063961 [10:46:11]Write 347 bytes [10:46:11]NVStorageSaveData done [10:46:11]OFDSenderStorePacket done [10:46:11]KKMCreateOFDPacket done [10:46:11]NVStorageSaveData kkm_last_timestamp [10:46:11]File name is /storage/kkm_last_timestamp [10:46:11]Write 4 bytes [10:46:11]NVStorageSaveData done [10:46:11]ExternCall_PrintAddStr [10:46:11]wPrintStart [10:46:11]Write to MH i2c: 01 00 00 8F 10 9F [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: 01 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: 01 07 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: 01 07 00 8F 10 00 00 00 00 00 FF 0F B4 [10:46:11]RasterBufferAndPrint [10:46:11]line Счет N : (3)73522 [10:46:11]line ИНН: 02508201610067 [10:46:11]line Контрольно-Кассовый Чек [10:46:11]line ПРОДАЖА [10:46:11]line Товар: 4602606015073 [10:46:11]line Мармелад ЧЧ Кислые роллсы 30*70г [10:46:11]line 1.000 * 103.00 [10:46:11]line = 103.00 [10:46:11]line НДС 12% НСП 1% [10:46:11]line > о реализуемом товаре [10:46:11]line ИТОГО: 103.00 [10:46:11]line НСП 1% : 0.91 [10:46:11]line НДС 12% : 10.94 [10:46:11]line Наличными: 103.00 [10:46:11]line Безнал.: 0.00 [10:46:11]line Место: АЗС № 117 "Партнер Нефть" [10:46:11]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:46:11]line СНО: Общий режим [10:46:11]line Чек 46 04.06.2024 10:46 [10:46:11]line Смена: 374 ФФД: 1.0 [10:46:11]line ЗНМ: 0300000031 [10:46:11]line РНМ: 0000000000092737 [10:46:11]line Версия ККМ: 001 [10:46:11]line ФМ: 0000000000875074 [10:46:11]line ФД: 63961 [10:46:11]line ФПД: 74273766531279 [10:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T104612&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63961&fm=74273766531279&tin=02508201610067®Number=0000000000092737&sum=10300 [10:46:11]line 0 [10:46:11]OFD Sender: Processing packet 63961 [packets to send 14, broken 13] [10:46:11]ProducePacketName [10:46:11]name=ofd_packets/00063961 [10:46:11]OFD Sender: To server: pG, [10:46:11]CommunicateWithHost lk.salyk.kg:30040 [10:46:11]ConnectInit lk.salyk.kg [10:46:11]written 0, free lines is 4095 [10:46:11]Connected sock=10 [10:46: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 3D 01 00 00 66 C7 35 01 4F 90 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 35 30 37 33 06 04 37 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 80 D0 BE D0 BB D0 BB D1 81 D1 8B 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 04 00 00 00 00 07 04 06 00 3C 28 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 74 F0 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 D9 F9 00 00 35 04 06 00 43 8D 35 78 60 CF 28 8B D7 46 28 CC 78 68 [10:46: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 0C 55 47 00 8E 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 D9 F9 00 00 F4 03 04 00 42 9C 5E 66 B6 04 01 00 00 C0 79 19 C6 95 4C D4 D2 [10:46:12]CommunicateWithHost err = 0 [10:46:12]CheckOFDResponse [10:46:12]1017 (14) - 77093643461234 [10:46:12]1041 (16) - 0000000000875074 [10:46:12]1040 (4) - 63961 [10:46:12]1012 (4) - 04.06.2024 04:46 [10:46:12]1206 (1) - 0 [10:46:12]OFD Sender: Remove packet 63961 [10:46:12]ProducePacketName [10:46:12]name=ofd_packets/00063961 [10:46:12]NVStorageDeleteData [10:46:12]Write to MH i2c: 01 00 00 B8 10 C8 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 07 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 07 00 B8 10 00 00 00 00 00 CE 0C A9 [10:46:12]RasterBufferAndPrint [10:46:12]line [10:46:12]line [10:46:12]line [10:46:12]line [10:46:12]line [10:46:12]written 0, free lines is 3283 [10:46:12]MH_Cut [10:46:12]Write to MH i2c: D1 01 00 BF 10 01 A1 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: D1 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: D1 01 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: D1 01 00 BF 10 00 A0 [10:46:12]Write to MH i2c: 01 00 00 C0 10 D0 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]OFD Sender: No OFD packet to send [10:46:13]*** Cut start [10:46:13]*** Partial cut [10:46:13]*** CUTSNS_PIN = 1 [10:46:13]*** CUTSNS_PIN = 0 [10:46:13]*** Brake cut motor [10:46:13]Read from MH i2c: 01 [10:46:13]MH_I2C_Read... [10:46:13]*** Stop cut motor [10:46:13]*** Cut end [10:46:13]Read from MH i2c: 01 07 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: 01 07 00 C0 10 00 00 00 00 00 FF 0F E5 [10:46:13]process_action close_receipt done [10:46:13]requested_data is exist [10:46:13]produce_requested_data [10:46:13]requested_item fm.sn is exist - process it [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 11 00 00 [10:46:13]Write to MH i2c: E2 08 00 C1 10 80 11 00 00 00 00 00 00 4B [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 17 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 17 00 C1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9D [10:46: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:46:13]wFMCommunicate OK [10:46:13]requested_item fd.num is exist - process it [10:46:13]SAM_PROTO_GetFieldsCounters [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 13 00 00 [10:46:13]Write to MH i2c: E2 08 00 C2 10 80 13 00 00 00 00 00 00 4E [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 62 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 62 00 C2 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 D9 F9 00 00 0E 04 04 00 76 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 44 [10:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 D9 F9 00 00 0E 04 04 00 76 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:46:13]wFMCommunicate OK [10:46:13]SAM_PROTO_GetFieldsCounters done [10:46:13]requested_item shift.num is exist - process it [10:46:13]requested_item shift.opened is exist - process it [10:46:13]req_shift_opened [10:46:13]FM_GetShiftState [10:46:13]SAM_PROTO_GetShiftState [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 13 01 00 [10:46:13]Write to MH i2c: E2 08 00 C3 10 80 13 01 00 00 00 00 00 50 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0E 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0E 00 C3 10 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F0 [10:46:13]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:46:13]wFMCommunicate OK [10:46:13]SAM_PROTO_GetShiftState done [10:46:13]FM_GetShiftState done [10:46:13]req_shift_opened done [10:46:13]requested_item shift.open_date is exist - process it [10:46:13]req_shift_open_date [10:46:13]req_shift_open_date done [10:46:13]produce_requested_data done [10:46:13]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63961,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [10:46:13]process_action_free close_receipt [10:46:13]json_value_free [10:46:13]json_value_free done [10:46:13]process_json_proto returns [10:46:13]Send response to host [10:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63961,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [10:46:13]free response buf [10:46:13]execute_script done [10:46:13]execute_script returns [10:46:13]free content buf [10:46:13]Sock 9.Close socket [10:46:13]Sock 9.Thread stoped [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:36]accept exits with 7 [10:50:36]New connection [10:50:36]New thread 3066912100 created [10:50:36]Thread 3067055460 joined [10:50:36]Waiting for new connection... [10:50:36] Sock 7.Parse request [10:50:36]Sock 7.Check first char [10:50:36]Sock 7.First char is OK [10:50:36]request: POST /json_proto HTTP/1.0 [10:50:36]Method: POST [10:50:36]URL: /json_proto [10:50:36]Method is POST - this is cgi request [10:50:36]url: /json_proto [10:50:36]query_string will be loaded in cgi processing [10:50:36]execute_cgi json_proto POST (null) [10:50:36]execute_cgi path=json_proto method=POST [10:50:36]POST find Content-Length [10:50:36]Host: 172.17.60.69:8080 [10:50:36]Content-Length: 645 [10:50:36]Content-Type: application/json [10:50:36] [10:50:36]POST finish read [10:50:36]Found Content-Length = 645 [10:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73523", "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" ] } } [10:50:36]execute_script... [10:50: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)73523", "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" ] } } [10:50:36]POST & json_proto [10:50:36]process_json_proto [10:50:36]json parsed OK: [10:50:36]protocol is kg_v1.0 [10:50:36]action value=close_receipt [10:50:36]process_action close_receipt [10:50:36]cmd_close_receipt [10:50:36]MH_GetDate [10:50:36]Write to MH i2c: F0 00 00 C4 10 C3 [10:50:36]Write i2c OK [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: F0 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: F0 09 00 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: F0 09 00 C4 10 00 7F F1 5E 66 6A 96 4A 66 B0 [10:50:36]GetLastDocTimeStamp 1717497972 [10:50:36]current date 1717498239 [10:50:36]FM_GetShiftState [10:50:36]SAM_PROTO_GetShiftState [10:50:36]wFMCommunicate request_size=4 [10:50:36]MH_SAM_APDU [10:50:36]CAPDU: 80 13 01 00 [10:50:36]Write to MH i2c: E2 08 00 C5 10 80 13 01 00 00 00 00 00 52 [10:50:36]Write i2c OK [10:50:36]MH_I2C_Read... [10:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:36]Read from MH i2c: E2 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: E2 0E 00 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: E2 0E 00 C5 10 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F2 [10:50:36]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:50:36]wFMCommunicate OK [10:50:36]SAM_PROTO_GetShiftState done [10:50:36]FM_GetShiftState done [10:50:36]opened in 1717459574 [10:50:36]opened+sec_in_day 1717545974 [10:50:36]quantity*price = 12500 [10:50:36]sum+1 = 12501 [10:50:36]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 СНО: Общий режим Чек 47 04.06.2024 10:50 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63962 ФПД: 253184675281426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105039&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63962&fm=253184675281426&tin=02508201610067®Number=0000000000092737&sum=12500 0 [10:50:38]StoreToDocumentArchive [10:50:38]shift 374 fd 63962 [10:50:38]save to /storage/0374/doc_00063962 [10:50:38]save last doc name /storage/0374/doc_00063962 to /storage/kkm_last_doc_name [10:50:38]save OK [10:50:38]Clear old archive folders... [10:50:38]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:50:38]tlvbuf is 01287400 [10:50:38]SAM_PROTO_ClearQueue [10:50:38]wFMCommunicate request_size=4 [10:50:38]MH_SAM_APDU [10:50:38]CAPDU: 80 09 00 00 [10:50:38]Write to MH i2c: E2 08 00 D2 10 80 09 00 00 00 00 00 00 54 [10:50:38]Write i2c OK [10:50:38]MH_I2C_Read... [10:50:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:38]Read from MH i2c: E2 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 03 00 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 03 00 D2 10 00 90 00 56 [10:50:38]RAPDU: 90 00 [10:50:38]wFMCommunicate OK [10:50:38]SAM_PROTO_ClearQueue done [10:50:38]KKMCreateOFDPacket [10:50:38]OFDProtocolAddRootSTLVToBuf [10:50:38]FM_MakeSignedData [10:50:38]FM_MakeSignedData [10:50:38]SAM_PROTO_SignData [10:50:38]wFMCommunicate request_size=4 [10:50:38]MH_SAM_APDU [10:50:38]CAPDU: 80 0D 01 02 [10:50:38]Write to MH i2c: E2 08 00 D3 10 80 0D 01 02 00 00 00 00 5C [10:50:38]Write i2c OK [10:50:38]MH_I2C_Read... [10:50:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:38]Read from MH i2c: E2 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 03 00 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 03 00 D3 10 00 90 00 57 [10:50:38]RAPDU: 90 00 [10:50:38]wFMCommunicate OK [10:50:38]wFMCommunicate request_size=255 [10:50:38]MH_SAM_APDU [10:50:38]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 2F 00 00 00 F4 03 04 00 7F F1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [10:50:38]Write to MH i2c: E2 02 01 D4 10 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 2F 00 00 00 F4 03 04 00 7F F1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 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 37 [10:50:38]Write i2c OK [10:50:38]MH_I2C_Read... [10:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:38]Read from MH i2c: E2 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 03 00 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 03 00 D4 10 00 90 00 58 [10:50:38]RAPDU: 90 00 [10:50:38]wFMCommunicate OK [10:50:38]wFMCommunicate request_size=41 [10:50:38]MH_SAM_APDU [10:50:38]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 DA F9 00 00 35 04 06 00 E6 45 26 A1 FA 12 [10:50:38]Write to MH i2c: E2 2C 00 D5 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 DA F9 00 00 35 04 06 00 E6 45 26 A1 FA 12 00 00 FE [10:50:38]Write i2c OK [10:50:38]MH_I2C_Read... [10:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:38]Read from MH i2c: E2 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 03 00 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 03 00 D5 10 00 90 00 59 [10:50:38]RAPDU: 90 00 [10:50:38]wFMCommunicate OK [10:50:38]wFMCommunicate request_size=4 [10:50:38]MH_SAM_APDU [10:50:38]CAPDU: 80 0D 03 02 [10:50:38]Write to MH i2c: E2 08 00 D6 10 80 0D 03 02 00 00 00 00 61 [10:50:38]Write i2c OK [10:50:38]MH_I2C_Read... [10:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:38]Read from MH i2c: E2 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 0B 00 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 0B 00 D6 10 00 B7 48 08 94 ED E0 7F 4F 90 00 98 [10:50:38]RAPDU: B7 48 08 94 ED E0 7F 4F 90 00 [10:50:38]wFMCommunicate OK [10:50:38]SAM_PROTO_SignData done [10:50:38]FM_MakeSignedData done [10:50:38]CreateOFDProtocolMessage [10:50:38]wFMCommunicate request_size=4 [10:50:38]MH_SAM_APDU [10:50:38]CAPDU: 80 11 00 00 [10:50:38]Write to MH i2c: E2 08 00 D7 10 80 11 00 00 00 00 00 00 61 [10:50:38]Write i2c OK [10:50:38]MH_I2C_Read... [10:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:38]Read from MH i2c: E2 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 17 00 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: E2 17 00 D7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B3 [10:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:50:38]wFMCommunicate OK [10:50:38]CreateOFDProtocolMessage done [10:50:38]OFDSenderStorePacket 63962 [10:50:38]StoreOFDPacket docnum=63962 [10:50: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 2E 01 00 00 D0 B0 26 01 EF 43 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 2F 00 00 00 F4 03 04 00 7F F1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DA F9 00 00 35 04 06 00 E6 45 26 A1 FA 12 B7 48 08 94 ED E0 7F 4F [10:50:38]CheckFolder [10:50:38]dirname=/storage/ofd_packets [10:50:38]CheckFolder done [10:50:38]ProducePacketName [10:50:38]name=ofd_packets/00063962 [10:50:38]NVStorageSaveData ofd_packets/00063962 [10:50:38]File name is /storage/ofd_packets/00063962 [10:50:38]Write 332 bytes [10:50:38]NVStorageSaveData done [10:50:38]OFDSenderStorePacket done [10:50:38]KKMCreateOFDPacket done [10:50:38]NVStorageSaveData kkm_last_timestamp [10:50:38]File name is /storage/kkm_last_timestamp [10:50:38]Write 4 bytes [10:50:38]NVStorageSaveData done [10:50:38]ExternCall_PrintAddStr [10:50:38]wPrintStart [10:50:38]Write to MH i2c: 01 00 00 D8 10 E8 [10:50:38]Write i2c OK [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: 01 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: 01 07 00 [10:50:38]MH_I2C_Read... [10:50:38]Read from MH i2c: 01 07 00 D8 10 00 00 00 00 00 FF 0F FD [10:50:38]RasterBufferAndPrint [10:50:38]line Счет N : (3)73523 [10:50:38]line ИНН: 02508201610067 [10:50:38]line Контрольно-Кассовый Чек [10:50:38]line ПРОДАЖА [10:50:38]line Товар: 2000036220012 [10:50:38]line Кофе Капучино XL(GABB TRADE) [10:50:38]line 1.000 * 125.00 [10:50:38]line = 125.00 [10:50:38]line НДС 12% НСП 1% [10:50:38]line > о реализуемом товаре [10:50:38]line ИТОГО: 125.00 [10:50:38]line НСП 1% : 1.11 [10:50:38]line НДС 12% : 13.27 [10:50:38]line Наличными: 125.00 [10:50:38]line Безнал.: 0.00 [10:50:38]line Место: АЗС № 117 "Партнер Нефть" [10:50:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:50:38]line СНО: Общий режим [10:50:38]line Чек 47 04.06.2024 10:50 [10:50:38]line Смена: 374 ФФД: 1.0 [10:50:38]line ЗНМ: 0300000031 [10:50:38]line РНМ: 0000000000092737 [10:50:38]line Версия ККМ: 001 [10:50:38]line ФМ: 0000000000875074 [10:50:38]line ФД: 63962 [10:50:38]line ФПД: 253184675281426 [10:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105039&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63962&fm=253184675281426&tin=02508201610067®Number=0000000000092737&sum=12500 [10:50:38]line 0 [10:50:38]OFD Sender: Processing packet 63962 [packets to send 14, broken 13] [10:50:38]ProducePacketName [10:50:38]name=ofd_packets/00063962 [10:50:38]OFD Sender: To server: pG, [10:50:38]CommunicateWithHost lk.salyk.kg:30040 [10:50:38]ConnectInit lk.salyk.kg [10:50:38]written 0, free lines is 4095 [10:50:38]Connected sock=10 [10:50: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 2E 01 00 00 D0 B0 26 01 EF 43 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 2F 00 00 00 F4 03 04 00 7F F1 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DA F9 00 00 35 04 06 00 E6 45 26 A1 FA 12 B7 48 08 94 ED E0 7F 4F [10:50: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 FC 24 47 00 61 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DA F9 00 00 F4 03 04 00 4D 9D 5E 66 B6 04 01 00 00 E9 6B 3C 61 61 26 94 84 [10:50:39]CommunicateWithHost err = 0 [10:50:39]CheckOFDResponse [10:50:39]1017 (14) - 77093643461234 [10:50:39]1041 (16) - 0000000000875074 [10:50:39]1040 (4) - 63962 [10:50:39]1012 (4) - 04.06.2024 04:51 [10:50:39]1206 (1) - 0 [10:50:39]OFD Sender: Remove packet 63962 [10:50:39]ProducePacketName [10:50:39]name=ofd_packets/00063962 [10:50:39]NVStorageDeleteData [10:50:39]Write to MH i2c: 01 00 00 01 11 12 [10:50:39]Write i2c OK [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: 01 [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: 01 07 00 [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: 01 07 00 01 11 00 00 00 00 00 E4 0C 09 [10:50:39]RasterBufferAndPrint [10:50:39]line [10:50:39]line [10:50:39]line [10:50:39]line [10:50:39]line [10:50:39]written 0, free lines is 3307 [10:50:39]MH_Cut [10:50:39]Write to MH i2c: D1 01 00 08 11 01 EB [10:50:39]Write i2c OK [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: D1 [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: D1 01 00 [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: D1 01 00 08 11 00 EA [10:50:39]Write to MH i2c: 01 00 00 09 11 1A [10:50:39]Write i2c OK [10:50:39]MH_I2C_Read... [10:50:39]OFD Sender: No OFD packet to send [10:50:40]*** Cut start [10:50:40]*** Partial cut [10:50:40]*** CUTSNS_PIN = 1 [10:50:40]*** CUTSNS_PIN = 0 [10:50:40]*** Brake cut motor [10:50:40]Read from MH i2c: 01 [10:50:40]MH_I2C_Read... [10:50:40]*** Stop cut motor [10:50:40]*** Cut end [10:50:40]Read from MH i2c: 01 07 00 [10:50:40]MH_I2C_Read... [10:50:40]Read from MH i2c: 01 07 00 09 11 00 00 00 00 00 FF 0F 2F [10:50:40]process_action close_receipt done [10:50:40]requested_data is exist [10:50:40]produce_requested_data [10:50:40]requested_item fm.sn is exist - process it [10:50:40]wFMCommunicate request_size=4 [10:50:40]MH_SAM_APDU [10:50:40]CAPDU: 80 11 00 00 [10:50:40]Write to MH i2c: E2 08 00 0A 11 80 11 00 00 00 00 00 00 95 [10:50:40]Write i2c OK [10:50:40]MH_I2C_Read... [10:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:40]Read from MH i2c: E2 [10:50:40]MH_I2C_Read... [10:50:40]Read from MH i2c: E2 17 00 [10:50:40]MH_I2C_Read... [10:50:40]Read from MH i2c: E2 17 00 0A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E7 [10:50: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:50:40]wFMCommunicate OK [10:50:40]requested_item fd.num is exist - process it [10:50:40]SAM_PROTO_GetFieldsCounters [10:50:40]wFMCommunicate request_size=4 [10:50:40]MH_SAM_APDU [10:50:40]CAPDU: 80 13 00 00 [10:50:40]Write to MH i2c: E2 08 00 0B 11 80 13 00 00 00 00 00 00 98 [10:50:40]Write i2c OK [10:50:40]MH_I2C_Read... [10:50:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:40]Read from MH i2c: E2 [10:50:40]MH_I2C_Read... [10:50:40]Read from MH i2c: E2 62 00 [10:50:40]MH_I2C_Read... [10:50:40]Read from MH i2c: E2 62 00 0B 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 DA F9 00 00 0E 04 04 00 76 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 92 [10:50:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 DA F9 00 00 0E 04 04 00 76 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:50:40]wFMCommunicate OK [10:50:40]SAM_PROTO_GetFieldsCounters done [10:50:40]requested_item shift.num is exist - process it [10:50:40]requested_item shift.opened is exist - process it [10:50:40]req_shift_opened [10:50:40]FM_GetShiftState [10:50:40]SAM_PROTO_GetShiftState [10:50:40]wFMCommunicate request_size=4 [10:50:40]MH_SAM_APDU [10:50:40]CAPDU: 80 13 01 00 [10:50:40]Write to MH i2c: E2 08 00 0C 11 80 13 01 00 00 00 00 00 9A [10:50:40]Write i2c OK [10:50:40]MH_I2C_Read... [10:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:41]Read from MH i2c: E2 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 0E 00 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 0E 00 0C 11 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 3A [10:50:41]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:50:41]wFMCommunicate OK [10:50:41]SAM_PROTO_GetShiftState done [10:50:41]FM_GetShiftState done [10:50:41]req_shift_opened done [10:50:41]requested_item shift.open_date is exist - process it [10:50:41]req_shift_open_date [10:50:41]req_shift_open_date done [10:50:41]produce_requested_data done [10:50:41]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63962,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [10:50:41]process_action_free close_receipt [10:50:41]json_value_free [10:50:41]json_value_free done [10:50:41]process_json_proto returns [10:50:41]Send response to host [10:50:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63962,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [10:50:41]free response buf [10:50:41]execute_script done [10:50:41]execute_script returns [10:50:41]free content buf [10:50:41]Sock 7.Close socket [10:50:41]Sock 7.Thread stoped [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:55]accept exits with 9 [10:54:55]New connection [10:54:55]New thread 3067055460 created [10:54:55]Thread 3066912100 joined [10:54:55]Waiting for new connection... [10:54:55] Sock 9.Parse request [10:54:55]Sock 9.Check first char [10:54:55]Sock 9.First char is OK [10:54:55]request: POST /json_proto HTTP/1.0 [10:54:55]Method: POST [10:54:55]URL: /json_proto [10:54:55]Method is POST - this is cgi request [10:54:55]url: /json_proto [10:54:55]query_string will be loaded in cgi processing [10:54:55]execute_cgi json_proto POST (null) [10:54:55]execute_cgi path=json_proto method=POST [10:54:55]POST find Content-Length [10:54:55]Host: 172.17.60.69:8080 [10:54:55]Content-Length: 620 [10:54:55]Content-Type: application/json [10:54:55] [10:54:55]POST finish read [10:54:55]Found Content-Length = 620 [10:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73524", "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" ] } } [10:54:55]execute_script... [10:54:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73524", "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" ] } } [10:54:55]POST & json_proto [10:54:55]process_json_proto [10:54:55]json parsed OK: [10:54:55]protocol is kg_v1.0 [10:54:55]action value=close_receipt [10:54:55]process_action close_receipt [10:54:55]cmd_close_receipt [10:54:55]MH_GetDate [10:54:55]Write to MH i2c: F0 00 00 0D 11 0D [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 09 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 09 00 0D 11 00 82 F2 5E 66 6A 96 4A 66 FE [10:54:55]GetLastDocTimeStamp 1717498239 [10:54:55]current date 1717498498 [10:54:55]FM_GetShiftState [10:54:55]SAM_PROTO_GetShiftState [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 13 01 00 [10:54:55]Write to MH i2c: E2 08 00 0E 11 80 13 01 00 00 00 00 00 9C [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 0E 11 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 3C [10:54:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_GetShiftState done [10:54:55]FM_GetShiftState done [10:54:55]opened in 1717459574 [10:54:55]opened+sec_in_day 1717545974 [10:54:55]quantity*price = 14000 [10:54:55]sum+1 = 14001 [10:54:55]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 СНО: Общий режим Чек 48 04.06.2024 10:54 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63963 ФПД: 183182895718598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105458&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63963&fm=183182895718598&tin=02508201610067®Number=0000000000092737&sum=14000 0 [10:54:56]StoreToDocumentArchive [10:54:56]shift 374 fd 63963 [10:54:56]save to /storage/0374/doc_00063963 [10:54:56]save last doc name /storage/0374/doc_00063963 to /storage/kkm_last_doc_name [10:54:56]save OK [10:54:56]Clear old archive folders... [10:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:54:56]tlvbuf is 012BE020 [10:54:56]SAM_PROTO_ClearQueue [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 09 00 00 [10:54:56]Write to MH i2c: E2 08 00 1B 11 80 09 00 00 00 00 00 00 9E [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 1B 11 00 90 00 A0 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]SAM_PROTO_ClearQueue done [10:54:56]KKMCreateOFDPacket [10:54:56]OFDProtocolAddRootSTLVToBuf [10:54:56]FM_MakeSignedData [10:54:56]FM_MakeSignedData [10:54:56]SAM_PROTO_SignData [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 01 02 [10:54:56]Write to MH i2c: E2 08 00 1C 11 80 0D 01 02 00 00 00 00 A6 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 03 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 03 00 1C 11 00 90 00 A1 [10:54:57]RAPDU: 90 00 [10:54:57]wFMCommunicate OK [10:54:57]wFMCommunicate request_size=255 [10:54:57]MH_SAM_APDU [10:54:57]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 30 00 00 00 F4 03 04 00 82 F2 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [10:54:57]Write to MH i2c: E2 02 01 1D 11 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 30 00 00 00 F4 03 04 00 82 F2 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 69 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 03 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 03 00 1D 11 00 90 00 A2 [10:54:57]RAPDU: 90 00 [10:54:57]wFMCommunicate OK [10:54:57]wFMCommunicate request_size=32 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 DB F9 00 00 35 04 06 00 A6 9A 97 6D A0 C6 [10:54:57]Write to MH i2c: E2 23 00 1E 11 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 DB F9 00 00 35 04 06 00 A6 9A 97 6D A0 C6 00 00 83 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 03 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 03 00 1E 11 00 90 00 A3 [10:54:57]RAPDU: 90 00 [10:54:57]wFMCommunicate OK [10:54:57]wFMCommunicate request_size=4 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 0D 03 02 [10:54:57]Write to MH i2c: E2 08 00 1F 11 80 0D 03 02 00 00 00 00 AB [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 0B 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 0B 00 1F 11 00 9C B7 4E 04 E2 ED 5B F4 90 00 6F [10:54:57]RAPDU: 9C B7 4E 04 E2 ED 5B F4 90 00 [10:54:57]wFMCommunicate OK [10:54:57]SAM_PROTO_SignData done [10:54:57]FM_MakeSignedData done [10:54:57]CreateOFDProtocolMessage [10:54:57]wFMCommunicate request_size=4 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 11 00 00 [10:54:57]Write to MH i2c: E2 08 00 20 11 80 11 00 00 00 00 00 00 AB [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 20 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FD [10:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:54:57]wFMCommunicate OK [10:54:57]CreateOFDProtocolMessage done [10:54:57]OFDSenderStorePacket 63963 [10:54:57]StoreOFDPacket docnum=63963 [10:54: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 25 01 00 00 12 7C 1D 01 D8 D5 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 30 00 00 00 F4 03 04 00 82 F2 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DB F9 00 00 35 04 06 00 A6 9A 97 6D A0 C6 9C B7 4E 04 E2 ED 5B F4 [10:54:57]CheckFolder [10:54:57]dirname=/storage/ofd_packets [10:54:57]CheckFolder done [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00063963 [10:54:57]NVStorageSaveData ofd_packets/00063963 [10:54:57]File name is /storage/ofd_packets/00063963 [10:54:57]Write 323 bytes [10:54:57]NVStorageSaveData done [10:54:57]OFDSenderStorePacket done [10:54:57]KKMCreateOFDPacket done [10:54:57]NVStorageSaveData kkm_last_timestamp [10:54:57]File name is /storage/kkm_last_timestamp [10:54:57]Write 4 bytes [10:54:57]NVStorageSaveData done [10:54:57]ExternCall_PrintAddStr [10:54:57]wPrintStart [10:54:57]Write to MH i2c: 01 00 00 21 11 32 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 21 11 00 00 00 00 00 FF 0F 47 [10:54:57]RasterBufferAndPrint [10:54:57]line Счет N : (3)73524 [10:54:57]line ИНН: 02508201610067 [10:54:57]line Контрольно-Кассовый Чек [10:54:57]line ПРОДАЖА [10:54:57]line Товар: 48747059 [10:54:57]line Сигареты Winston Legend Blue [10:54:57]line 1.000 * 140.00 [10:54:57]line = 140.00 [10:54:57]line НДС 12% НСП 1% [10:54:57]line > о реализуемом товаре [10:54:57]line ИТОГО: 140.00 [10:54:57]line НСП 1% : 1.24 [10:54:57]line НДС 12% : 14.87 [10:54:57]line Наличными: 140.00 [10:54:57]line Безнал.: 0.00 [10:54:57]line Место: АЗС № 117 "Партнер Нефть" [10:54:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [10:54:57]line СНО: Общий режим [10:54:57]line Чек 48 04.06.2024 10:54 [10:54:57]line Смена: 374 ФФД: 1.0 [10:54:57]line ЗНМ: 0300000031 [10:54:57]line РНМ: 0000000000092737 [10:54:57]line Версия ККМ: 001 [10:54:57]line ФМ: 0000000000875074 [10:54:57]line ФД: 63963 [10:54:57]line ФПД: 183182895718598 [10:54:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T105458&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63963&fm=183182895718598&tin=02508201610067®Number=0000000000092737&sum=14000 [10:54:57]line 0 [10:54:57]OFD Sender: Processing packet 63963 [packets to send 14, broken 13] [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00063963 [10:54:57]OFD Sender: To server: pG, [10:54:57]CommunicateWithHost lk.salyk.kg:30040 [10:54:57]ConnectInit lk.salyk.kg [10:54:57]written 0, free lines is 4095 [10:54:57]Connected sock=10 [10:54:57]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 12 7C 1D 01 D8 D5 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 30 00 00 00 F4 03 04 00 82 F2 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DB F9 00 00 35 04 06 00 A6 9A 97 6D A0 C6 9C B7 4E 04 E2 ED 5B F4 [10:54: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 F2 70 47 00 A9 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DB F9 00 00 F4 03 04 00 50 9E 5E 66 B6 04 01 00 00 E7 CD 7B 8D 65 0D C9 E0 [10:54:58]CommunicateWithHost err = 0 [10:54:58]CheckOFDResponse [10:54:58]1017 (14) - 77093643461234 [10:54:58]1041 (16) - 0000000000875074 [10:54:58]1040 (4) - 63963 [10:54:58]1012 (4) - 04.06.2024 04:55 [10:54:58]1206 (1) - 0 [10:54:58]OFD Sender: Remove packet 63963 [10:54:58]ProducePacketName [10:54:58]name=ofd_packets/00063963 [10:54:58]NVStorageDeleteData [10:54:58]Write to MH i2c: 01 00 00 4A 11 5B [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 D6 0C 44 [10:54:58]RasterBufferAndPrint [10:54:58]line [10:54:58]line [10:54:58]line [10:54:58]line [10:54:58]line [10:54:58]written 0, free lines is 3292 [10:54:58]MH_Cut [10:54:58]Write to MH i2c: D1 01 00 51 11 01 34 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: D1 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: D1 01 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: D1 01 00 51 11 00 33 [10:54:58]Write to MH i2c: 01 00 00 52 11 63 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]OFD Sender: No OFD packet to send [10:54:59]*** Cut start [10:54:59]*** Partial cut [10:54:59]*** CUTSNS_PIN = 1 [10:54:59]*** CUTSNS_PIN = 0 [10:54:59]*** Brake cut motor [10:54:59]Read from MH i2c: 01 [10:54:59]MH_I2C_Read... [10:54:59]*** Stop cut motor [10:54:59]*** Cut end [10:54:59]Read from MH i2c: 01 07 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 07 00 52 11 00 00 00 00 00 FF 0F 78 [10:54:59]process_action close_receipt done [10:54:59]requested_data is exist [10:54:59]produce_requested_data [10:54:59]requested_item fm.sn is exist - process it [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 11 00 00 [10:54:59]Write to MH i2c: E2 08 00 53 11 80 11 00 00 00 00 00 00 DE [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 17 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 17 00 53 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 30 [10:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [10:54:59]wFMCommunicate OK [10:54:59]requested_item fd.num is exist - process it [10:54:59]SAM_PROTO_GetFieldsCounters [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 13 00 00 [10:54:59]Write to MH i2c: E2 08 00 54 11 80 13 00 00 00 00 00 00 E1 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 62 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 62 00 54 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 DB F9 00 00 0E 04 04 00 76 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 DF [10:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 DB F9 00 00 0E 04 04 00 76 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:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_GetFieldsCounters done [10:54:59]requested_item shift.num is exist - process it [10:54:59]requested_item shift.opened is exist - process it [10:54:59]req_shift_opened [10:54:59]FM_GetShiftState [10:54:59]SAM_PROTO_GetShiftState [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 13 01 00 [10:54:59]Write to MH i2c: E2 08 00 55 11 80 13 01 00 00 00 00 00 E3 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 55 11 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 83 [10:54:59]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_GetShiftState done [10:54:59]FM_GetShiftState done [10:54:59]req_shift_opened done [10:54:59]requested_item shift.open_date is exist - process it [10:54:59]req_shift_open_date [10:54:59]req_shift_open_date done [10:54:59]produce_requested_data done [10:54:59]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63963,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [10:54:59]process_action_free close_receipt [10:54:59]json_value_free [10:54:59]json_value_free done [10:54:59]process_json_proto returns [10:54:59]Send response to host [10:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63963,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [10:54:59]free response buf [10:54:59]execute_script done [10:54:59]execute_script returns [10:54:59]free content buf [10:54:59]Sock 9.Close socket [10:54:59]Sock 9.Thread stoped [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:16]accept exits with 7 [11:02:16]New connection [11:02:16]New thread 3066912100 created [11:02:16]Thread 3067055460 joined [11:02:16]Waiting for new connection... [11:02:16] Sock 7.Parse request [11:02:16]Sock 7.Check first char [11:02:16]Sock 7.First char is OK [11:02:16]request: POST /json_proto HTTP/1.0 [11:02:16]Method: POST [11:02:16]URL: /json_proto [11:02:16]Method is POST - this is cgi request [11:02:16]url: /json_proto [11:02:16]query_string will be loaded in cgi processing [11:02:16]execute_cgi json_proto POST (null) [11:02:16]execute_cgi path=json_proto method=POST [11:02:16]POST find Content-Length [11:02:16]Host: 172.17.60.69:8080 [11:02:16]Content-Length: 622 [11:02:16]Content-Type: application/json [11:02:16] [11:02:16]POST finish read [11:02:16]Found Content-Length = 622 [11:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73525", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:16]execute_script... [11:02: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)73525", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:16]POST & json_proto [11:02:16]process_json_proto [11:02:16]json parsed OK: [11:02:16]protocol is kg_v1.0 [11:02:16]action value=close_receipt [11:02:16]process_action close_receipt [11:02:16]cmd_close_receipt [11:02:16]MH_GetDate [11:02:16]Write to MH i2c: F0 00 00 56 11 56 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: F0 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: F0 09 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: F0 09 00 56 11 00 3B F4 5E 66 6A 96 4A 66 02 [11:02:16]GetLastDocTimeStamp 1717498498 [11:02:16]current date 1717498939 [11:02:16]FM_GetShiftState [11:02:16]SAM_PROTO_GetShiftState [11:02:16]wFMCommunicate request_size=4 [11:02:16]MH_SAM_APDU [11:02:16]CAPDU: 80 13 01 00 [11:02:16]Write to MH i2c: E2 08 00 57 11 80 13 01 00 00 00 00 00 E5 [11:02:16]Write i2c OK [11:02:16]MH_I2C_Read... [11:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:16]Read from MH i2c: E2 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 0E 00 [11:02:16]MH_I2C_Read... [11:02:16]Read from MH i2c: E2 0E 00 57 11 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 85 [11:02:16]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:02:16]wFMCommunicate OK [11:02:16]SAM_PROTO_GetShiftState done [11:02:16]FM_GetShiftState done [11:02:16]opened in 1717459574 [11:02:16]opened+sec_in_day 1717545974 [11:02:16]quantity*price = 14000 [11:02:16]sum+1 = 14001 [11:02:16]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 СНО: Общий режим Чек 49 04.06.2024 11:02 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63964 ФПД: 32727813456147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110219&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63964&fm=32727813456147&tin=02508201610067®Number=0000000000092737&sum=14000 0 [11:02:17]StoreToDocumentArchive [11:02:17]shift 374 fd 63964 [11:02:17]save to /storage/0374/doc_00063964 [11:02:17]save last doc name /storage/0374/doc_00063964 to /storage/kkm_last_doc_name [11:02:17]save OK [11:02:17]Clear old archive folders... [11:02:17]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:02:17]tlvbuf is 01292650 [11:02:17]SAM_PROTO_ClearQueue [11:02:17]wFMCommunicate request_size=4 [11:02:17]MH_SAM_APDU [11:02:17]CAPDU: 80 09 00 00 [11:02:17]Write to MH i2c: E2 08 00 64 11 80 09 00 00 00 00 00 00 E7 [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:17]Read from MH i2c: E2 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 03 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 03 00 64 11 00 90 00 E9 [11:02:17]RAPDU: 90 00 [11:02:17]wFMCommunicate OK [11:02:17]SAM_PROTO_ClearQueue done [11:02:17]KKMCreateOFDPacket [11:02:17]OFDProtocolAddRootSTLVToBuf [11:02:17]FM_MakeSignedData [11:02:17]FM_MakeSignedData [11:02:17]SAM_PROTO_SignData [11:02:17]wFMCommunicate request_size=4 [11:02:17]MH_SAM_APDU [11:02:17]CAPDU: 80 0D 01 02 [11:02:17]Write to MH i2c: E2 08 00 65 11 80 0D 01 02 00 00 00 00 EF [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 65 11 00 90 00 EA [11:02:18]RAPDU: 90 00 [11:02:18]wFMCommunicate OK [11:02:18]wFMCommunicate request_size=255 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B F4 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 [11:02:18]Write to MH i2c: E2 02 01 66 11 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B F4 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 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 1D [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 66 11 00 90 00 EB [11:02:18]RAPDU: 90 00 [11:02:18]wFMCommunicate OK [11:02:18]wFMCommunicate request_size=34 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DC F9 00 00 35 04 06 00 1D C4 09 B2 01 13 [11:02:18]Write to MH i2c: E2 25 00 67 11 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DC F9 00 00 35 04 06 00 1D C4 09 B2 01 13 00 00 37 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 67 11 00 90 00 EC [11:02:18]RAPDU: 90 00 [11:02:18]wFMCommunicate OK [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 0D 03 02 [11:02:18]Write to MH i2c: E2 08 00 68 11 80 0D 03 02 00 00 00 00 F4 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 0B 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 0B 00 68 11 00 9B A8 B3 93 DC A1 E0 16 90 00 F1 [11:02:18]RAPDU: 9B A8 B3 93 DC A1 E0 16 90 00 [11:02:18]wFMCommunicate OK [11:02:18]SAM_PROTO_SignData done [11:02:18]FM_MakeSignedData done [11:02:18]CreateOFDProtocolMessage [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 11 00 00 [11:02:18]Write to MH i2c: E2 08 00 69 11 80 11 00 00 00 00 00 00 F4 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 17 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 17 00 69 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 46 [11:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:02:18]wFMCommunicate OK [11:02:18]CreateOFDProtocolMessage done [11:02:18]OFDSenderStorePacket 63964 [11:02:18]StoreOFDPacket docnum=63964 [11:02: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 27 01 00 00 81 27 1F 01 1E 4F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B F4 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DC F9 00 00 35 04 06 00 1D C4 09 B2 01 13 9B A8 B3 93 DC A1 E0 16 [11:02:18]CheckFolder [11:02:18]dirname=/storage/ofd_packets [11:02:18]CheckFolder done [11:02:18]ProducePacketName [11:02:18]name=ofd_packets/00063964 [11:02:18]NVStorageSaveData ofd_packets/00063964 [11:02:18]File name is /storage/ofd_packets/00063964 [11:02:18]Write 325 bytes [11:02:18]NVStorageSaveData done [11:02:18]OFDSenderStorePacket done [11:02:18]KKMCreateOFDPacket done [11:02:18]NVStorageSaveData kkm_last_timestamp [11:02:18]File name is /storage/kkm_last_timestamp [11:02:18]Write 4 bytes [11:02:18]NVStorageSaveData done [11:02:18]ExternCall_PrintAddStr [11:02:18]wPrintStart [11:02:18]Write to MH i2c: 01 00 00 6A 11 7B [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: 01 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: 01 07 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: 01 07 00 6A 11 00 00 00 00 00 FF 0F 90 [11:02:18]RasterBufferAndPrint [11:02:18]line Счет N : (3)73525 [11:02:18]line ИНН: 02508201610067 [11:02:18]line Контрольно-Кассовый Чек [11:02:18]line ПРОДАЖА [11:02:18]line Товар: 48743587 [11:02:18]line Сигареты Winston XStyle Silver [11:02:18]line 1.000 * 140.00 [11:02:18]line = 140.00 [11:02:18]line НДС 12% НСП 1% [11:02:18]line > о реализуемом товаре [11:02:18]line ИТОГО: 140.00 [11:02:18]line НСП 1% : 1.24 [11:02:18]line НДС 12% : 14.87 [11:02:18]line Наличными: 140.00 [11:02:18]line Безнал.: 0.00 [11:02:18]line Место: АЗС № 117 "Партнер Нефть" [11:02:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:02:18]line СНО: Общий режим [11:02:18]line Чек 49 04.06.2024 11:02 [11:02:18]line Смена: 374 ФФД: 1.0 [11:02:18]line ЗНМ: 0300000031 [11:02:18]line РНМ: 0000000000092737 [11:02:18]line Версия ККМ: 001 [11:02:18]line ФМ: 0000000000875074 [11:02:18]line ФД: 63964 [11:02:18]line ФПД: 32727813456147 [11:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T110219&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63964&fm=32727813456147&tin=02508201610067®Number=0000000000092737&sum=14000 [11:02:18]line 0 [11:02:18]OFD Sender: Processing packet 63964 [packets to send 14, broken 13] [11:02:18]ProducePacketName [11:02:18]name=ofd_packets/00063964 [11:02:18]OFD Sender: To server: pG, [11:02:18]CommunicateWithHost lk.salyk.kg:30040 [11:02:18]ConnectInit lk.salyk.kg [11:02:18]written 0, free lines is 4095 [11:02:18]Connected sock=10 [11:02:18]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 81 27 1F 01 1E 4F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 3B F4 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DC F9 00 00 35 04 06 00 1D C4 09 B2 01 13 9B A8 B3 93 DC A1 E0 16 [11:02: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 82 3C 47 00 2E 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 DC F9 00 00 F4 03 04 00 09 A0 5E 66 B6 04 01 00 00 1D 92 45 B9 35 84 53 A1 [11:02:19]CommunicateWithHost err = 0 [11:02:19]CheckOFDResponse [11:02:19]1017 (14) - 77093643461234 [11:02:19]1041 (16) - 0000000000875074 [11:02:19]1040 (4) - 63964 [11:02:19]1012 (4) - 04.06.2024 05:03 [11:02:19]1206 (1) - 0 [11:02:19]OFD Sender: Remove packet 63964 [11:02:19]ProducePacketName [11:02:19]name=ofd_packets/00063964 [11:02:19]NVStorageDeleteData [11:02:19]Write to MH i2c: 01 00 00 93 11 A4 [11:02:19]Write i2c OK [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: 01 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: 01 07 00 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: 01 07 00 93 11 00 00 00 00 00 E0 0C 97 [11:02:19]RasterBufferAndPrint [11:02:19]line [11:02:19]line [11:02:19]line [11:02:19]line [11:02:19]line [11:02:19]written 0, free lines is 3302 [11:02:19]MH_Cut [11:02:19]Write to MH i2c: D1 01 00 9A 11 01 7D [11:02:19]Write i2c OK [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: D1 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: D1 01 00 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: D1 01 00 9A 11 00 7C [11:02:19]Write to MH i2c: 01 00 00 9B 11 AC [11:02:19]Write i2c OK [11:02:19]MH_I2C_Read... [11:02:19]OFD Sender: No OFD packet to send [11:02:20]*** Cut start [11:02:20]*** Partial cut [11:02:20]*** CUTSNS_PIN = 1 [11:02:20]*** CUTSNS_PIN = 0 [11:02:20]*** Brake cut motor [11:02:20]Read from MH i2c: 01 [11:02:20]MH_I2C_Read... [11:02:20]*** Stop cut motor [11:02:20]*** Cut end [11:02:20]Read from MH i2c: 01 07 00 [11:02:20]MH_I2C_Read... [11:02:20]Read from MH i2c: 01 07 00 9B 11 00 00 00 00 00 FF 0F C1 [11:02:20]process_action close_receipt done [11:02:20]requested_data is exist [11:02:20]produce_requested_data [11:02:20]requested_item fm.sn is exist - process it [11:02:20]wFMCommunicate request_size=4 [11:02:20]MH_SAM_APDU [11:02:20]CAPDU: 80 11 00 00 [11:02:20]Write to MH i2c: E2 08 00 9C 11 80 11 00 00 00 00 00 00 27 [11:02:20]Write i2c OK [11:02:20]MH_I2C_Read... [11:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:20]Read from MH i2c: E2 [11:02:20]MH_I2C_Read... [11:02:20]Read from MH i2c: E2 17 00 [11:02:20]MH_I2C_Read... [11:02:20]Read from MH i2c: E2 17 00 9C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 79 [11:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:02:20]wFMCommunicate OK [11:02:20]requested_item fd.num is exist - process it [11:02:20]SAM_PROTO_GetFieldsCounters [11:02:20]wFMCommunicate request_size=4 [11:02:20]MH_SAM_APDU [11:02:20]CAPDU: 80 13 00 00 [11:02:20]Write to MH i2c: E2 08 00 9D 11 80 13 00 00 00 00 00 00 2A [11:02:20]Write i2c OK [11:02:20]MH_I2C_Read... [11:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:20]Read from MH i2c: E2 [11:02:20]MH_I2C_Read... [11:02:20]Read from MH i2c: E2 62 00 [11:02:20]MH_I2C_Read... [11:02:20]Read from MH i2c: E2 62 00 9D 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 DC F9 00 00 0E 04 04 00 76 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 2C [11:02:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 DC F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:20]wFMCommunicate OK [11:02:20]SAM_PROTO_GetFieldsCounters done [11:02:20]requested_item shift.num is exist - process it [11:02:20]requested_item shift.opened is exist - process it [11:02:20]req_shift_opened [11:02:20]FM_GetShiftState [11:02:20]SAM_PROTO_GetShiftState [11:02:20]wFMCommunicate request_size=4 [11:02:20]MH_SAM_APDU [11:02:20]CAPDU: 80 13 01 00 [11:02:20]Write to MH i2c: E2 08 00 9E 11 80 13 01 00 00 00 00 00 2C [11:02:20]Write i2c OK [11:02:20]MH_I2C_Read... [11:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:20]Read from MH i2c: E2 [11:02:20]MH_I2C_Read... [11:02:20]Read from MH i2c: E2 0E 00 [11:02:20]MH_I2C_Read... [11:02:20]Read from MH i2c: E2 0E 00 9E 11 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 CC [11:02:20]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:02:20]wFMCommunicate OK [11:02:20]SAM_PROTO_GetShiftState done [11:02:20]FM_GetShiftState done [11:02:20]req_shift_opened done [11:02:20]requested_item shift.open_date is exist - process it [11:02:20]req_shift_open_date [11:02:20]req_shift_open_date done [11:02:20]produce_requested_data done [11:02:20]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63964,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [11:02:20]process_action_free close_receipt [11:02:20]json_value_free [11:02:20]json_value_free done [11:02:20]process_json_proto returns [11:02:20]Send response to host [11:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63964,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [11:02:20]free response buf [11:02:20]execute_script done [11:02:20]execute_script returns [11:02:20]free content buf [11:02:20]Sock 7.Close socket [11:02:20]Sock 7.Thread stoped [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]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:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]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:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:35]accept exits with 9 [11:14:35]New connection [11:14:35]New thread 3067055460 created [11:14:35]Thread 3066912100 joined [11:14:35]Waiting for new connection... [11:14:35] Sock 9.Parse request [11:14:35]Sock 9.Check first char [11:14:35]Sock 9.First char is OK [11:14:35]request: POST /json_proto HTTP/1.0 [11:14:35]Method: POST [11:14:35]URL: /json_proto [11:14:35]Method is POST - this is cgi request [11:14:35]url: /json_proto [11:14:35]query_string will be loaded in cgi processing [11:14:35]execute_cgi json_proto POST (null) [11:14:35]execute_cgi path=json_proto method=POST [11:14:35]POST find Content-Length [11:14:35]Host: 172.17.60.69:8080 [11:14:35]Content-Length: 620 [11:14:35]Content-Type: application/json [11:14:35] [11:14:35]POST finish read [11:14:35]Found Content-Length = 620 [11:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73526", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:35]execute_script... [11:14: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)73526", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:35]POST & json_proto [11:14:35]process_json_proto [11:14:35]json parsed OK: [11:14:35]protocol is kg_v1.0 [11:14:35]action value=close_receipt [11:14:35]process_action close_receipt [11:14:35]cmd_close_receipt [11:14:35]MH_GetDate [11:14:35]Write to MH i2c: F0 00 00 9F 11 9F [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: F0 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: F0 09 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: F0 09 00 9F 11 00 1E F7 5E 66 6A 96 4A 66 31 [11:14:35]GetLastDocTimeStamp 1717498939 [11:14:35]current date 1717499678 [11:14:35]FM_GetShiftState [11:14:35]SAM_PROTO_GetShiftState [11:14:35]wFMCommunicate request_size=4 [11:14:35]MH_SAM_APDU [11:14:35]CAPDU: 80 13 01 00 [11:14:35]Write to MH i2c: E2 08 00 A0 11 80 13 01 00 00 00 00 00 2E [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:35]Read from MH i2c: E2 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: E2 0E 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: E2 0E 00 A0 11 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 CE [11:14:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:14:35]wFMCommunicate OK [11:14:35]SAM_PROTO_GetShiftState done [11:14:35]FM_GetShiftState done [11:14:35]opened in 1717459574 [11:14:35]opened+sec_in_day 1717545974 [11:14:35]quantity*price = 28000 [11:14:35]sum+1 = 28001 [11:14:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 50 04.06.2024 11:14 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63965 ФПД: 85405516583991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111438&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63965&fm=85405516583991&tin=02508201610067®Number=0000000000092737&sum=28000 0 [11:14:36]StoreToDocumentArchive [11:14:36]shift 374 fd 63965 [11:14:36]save to /storage/0374/doc_00063965 [11:14:36]save last doc name /storage/0374/doc_00063965 to /storage/kkm_last_doc_name [11:14:36]save OK [11:14:36]Clear old archive folders... [11:14:36]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:14:36]tlvbuf is 012C6950 [11:14:36]SAM_PROTO_ClearQueue [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 09 00 00 [11:14:36]Write to MH i2c: E2 08 00 AD 11 80 09 00 00 00 00 00 00 30 [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:36]Read from MH i2c: E2 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 [11:14:36]MH_I2C_Read... [11:14:36]Read from MH i2c: E2 03 00 AD 11 00 90 00 32 [11:14:36]RAPDU: 90 00 [11:14:36]wFMCommunicate OK [11:14:36]SAM_PROTO_ClearQueue done [11:14:36]KKMCreateOFDPacket [11:14:36]OFDProtocolAddRootSTLVToBuf [11:14:36]FM_MakeSignedData [11:14:36]FM_MakeSignedData [11:14:36]SAM_PROTO_SignData [11:14:36]wFMCommunicate request_size=4 [11:14:36]MH_SAM_APDU [11:14:36]CAPDU: 80 0D 01 02 [11:14:36]Write to MH i2c: E2 08 00 AE 11 80 0D 01 02 00 00 00 00 38 [11:14:36]Write i2c OK [11:14:36]MH_I2C_Read... [11:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:37]Read from MH i2c: E2 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 03 00 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 03 00 AE 11 00 90 00 33 [11:14:37]RAPDU: 90 00 [11:14:37]wFMCommunicate OK [11:14:37]wFMCommunicate request_size=255 [11:14:37]MH_SAM_APDU [11:14: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 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1E F7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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:14:37]Write to MH i2c: E2 02 01 AF 11 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1E F7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 A3 [11:14:37]Write i2c OK [11:14:37]MH_I2C_Read... [11:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:37]Read from MH i2c: E2 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 03 00 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 03 00 AF 11 00 90 00 34 [11:14:37]RAPDU: 90 00 [11:14:37]wFMCommunicate OK [11:14:37]wFMCommunicate request_size=32 [11:14:37]MH_SAM_APDU [11:14:37]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 DD F9 00 00 35 04 06 00 4D AD 05 7A 54 37 [11:14:37]Write to MH i2c: E2 23 00 B0 11 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 DD F9 00 00 35 04 06 00 4D AD 05 7A 54 37 00 00 71 [11:14:37]Write i2c OK [11:14:37]MH_I2C_Read... [11:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:37]Read from MH i2c: E2 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 03 00 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 03 00 B0 11 00 90 00 35 [11:14:37]RAPDU: 90 00 [11:14:37]wFMCommunicate OK [11:14:37]wFMCommunicate request_size=4 [11:14:37]MH_SAM_APDU [11:14:37]CAPDU: 80 0D 03 02 [11:14:37]Write to MH i2c: E2 08 00 B1 11 80 0D 03 02 00 00 00 00 3D [11:14:37]Write i2c OK [11:14:37]MH_I2C_Read... [11:14:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:37]Read from MH i2c: E2 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 0B 00 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 0B 00 B1 11 00 DE AC EA 2B 71 09 22 51 90 00 CA [11:14:37]RAPDU: DE AC EA 2B 71 09 22 51 90 00 [11:14:37]wFMCommunicate OK [11:14:37]SAM_PROTO_SignData done [11:14:37]FM_MakeSignedData done [11:14:37]CreateOFDProtocolMessage [11:14:37]wFMCommunicate request_size=4 [11:14:37]MH_SAM_APDU [11:14:37]CAPDU: 80 11 00 00 [11:14:37]Write to MH i2c: E2 08 00 B2 11 80 11 00 00 00 00 00 00 3D [11:14:37]Write i2c OK [11:14:37]MH_I2C_Read... [11:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:37]Read from MH i2c: E2 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 17 00 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: E2 17 00 B2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8F [11:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:14:37]wFMCommunicate OK [11:14:37]CreateOFDProtocolMessage done [11:14:37]OFDSenderStorePacket 63965 [11:14:37]StoreOFDPacket docnum=63965 [11:14: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 59 62 1D 01 7E 79 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1E F7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DD F9 00 00 35 04 06 00 4D AD 05 7A 54 37 DE AC EA 2B 71 09 22 51 [11:14:37]CheckFolder [11:14:37]dirname=/storage/ofd_packets [11:14:37]CheckFolder done [11:14:37]ProducePacketName [11:14:37]name=ofd_packets/00063965 [11:14:37]NVStorageSaveData ofd_packets/00063965 [11:14:37]File name is /storage/ofd_packets/00063965 [11:14:37]Write 323 bytes [11:14:37]NVStorageSaveData done [11:14:37]OFDSenderStorePacket done [11:14:37]KKMCreateOFDPacket done [11:14:37]NVStorageSaveData kkm_last_timestamp [11:14:37]File name is /storage/kkm_last_timestamp [11:14:37]Write 4 bytes [11:14:37]NVStorageSaveData done [11:14:37]ExternCall_PrintAddStr [11:14:37]wPrintStart [11:14:37]Write to MH i2c: 01 00 00 B3 11 C4 [11:14:37]Write i2c OK [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: 01 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: 01 07 00 [11:14:37]MH_I2C_Read... [11:14:37]Read from MH i2c: 01 07 00 B3 11 00 00 00 00 00 FF 0F D9 [11:14:37]RasterBufferAndPrint [11:14:37]line Счет N : (3)73526 [11:14:37]line ИНН: 02508201610067 [11:14:37]line Контрольно-Кассовый Чек [11:14:37]line ПРОДАЖА [11:14:37]line Товар: 48743570 [11:14:37]line Сигареты Winston XStyle Blue [11:14:37]line 2.000 * 140.00 [11:14:37]line = 280.00 [11:14:37]line НДС 12% НСП 1% [11:14:37]line > о реализуемом товаре [11:14:37]line ИТОГО: 280.00 [11:14:37]line НСП 1% : 2.48 [11:14:37]line НДС 12% : 29.73 [11:14:37]line Наличными: 280.00 [11:14:37]line Безнал.: 0.00 [11:14:37]line Место: АЗС № 117 "Партнер Нефть" [11:14:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:14:37]line СНО: Общий режим [11:14:37]line Чек 50 04.06.2024 11:14 [11:14:37]line Смена: 374 ФФД: 1.0 [11:14:37]line ЗНМ: 0300000031 [11:14:37]line РНМ: 0000000000092737 [11:14:37]line Версия ККМ: 001 [11:14:37]line ФМ: 0000000000875074 [11:14:37]line ФД: 63965 [11:14:37]line ФПД: 85405516583991 [11:14:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111438&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63965&fm=85405516583991&tin=02508201610067®Number=0000000000092737&sum=28000 [11:14:37]line 0 [11:14:37]OFD Sender: Processing packet 63965 [packets to send 14, broken 13] [11:14:37]ProducePacketName [11:14:37]name=ofd_packets/00063965 [11:14:37]OFD Sender: To server: pG, [11:14:37]CommunicateWithHost lk.salyk.kg:30040 [11:14:37]ConnectInit lk.salyk.kg [11:14:37]written 0, free lines is 4095 [11:14:37]Connected sock=10 [11:14: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 25 01 00 00 59 62 1D 01 7E 79 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1E F7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DD F9 00 00 35 04 06 00 4D AD 05 7A 54 37 DE AC EA 2B 71 09 22 51 [11:14: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 05 2E 47 00 8C F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DD F9 00 00 F4 03 04 00 EC A2 5E 66 B6 04 01 00 00 92 AA 1D 9F CB E9 22 32 [11:14:38]CommunicateWithHost err = 0 [11:14:38]CheckOFDResponse [11:14:38]1017 (14) - 77093643461234 [11:14:38]1041 (16) - 0000000000875074 [11:14:38]1040 (4) - 63965 [11:14:38]1012 (4) - 04.06.2024 05:15 [11:14:38]1206 (1) - 0 [11:14:38]OFD Sender: Remove packet 63965 [11:14:38]ProducePacketName [11:14:38]name=ofd_packets/00063965 [11:14:38]NVStorageDeleteData [11:14:38]Write to MH i2c: 01 00 00 DB 11 EC [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: 01 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: 01 07 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: 01 07 00 DB 11 00 00 00 00 00 E2 0C E1 [11:14:38]RasterBufferAndPrint [11:14:38]line [11:14:38]line [11:14:38]line [11:14:38]line [11:14:38]line [11:14:38]written 0, free lines is 3304 [11:14:38]MH_Cut [11:14:38]Write to MH i2c: D1 01 00 E2 11 01 C5 [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: D1 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: D1 01 00 [11:14:38]MH_I2C_Read... [11:14:38]Read from MH i2c: D1 01 00 E2 11 00 C4 [11:14:38]Write to MH i2c: 01 00 00 E3 11 F4 [11:14:38]Write i2c OK [11:14:38]MH_I2C_Read... [11:14:38]OFD Sender: No OFD packet to send [11:14:39]*** Cut start [11:14:39]*** Partial cut [11:14:39]*** CUTSNS_PIN = 1 [11:14:39]*** CUTSNS_PIN = 0 [11:14:39]*** Brake cut motor [11:14:39]Read from MH i2c: 01 [11:14:39]MH_I2C_Read... [11:14:39]*** Stop cut motor [11:14:39]*** Cut end [11:14:39]Read from MH i2c: 01 07 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: 01 07 00 E3 11 00 00 00 00 00 FF 0F 09 [11:14:39]process_action close_receipt done [11:14:39]requested_data is exist [11:14:39]produce_requested_data [11:14:39]requested_item fm.sn is exist - process it [11:14:39]wFMCommunicate request_size=4 [11:14:39]MH_SAM_APDU [11:14:39]CAPDU: 80 11 00 00 [11:14:39]Write to MH i2c: E2 08 00 E4 11 80 11 00 00 00 00 00 00 6F [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:39]Read from MH i2c: E2 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 17 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 17 00 E4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C1 [11:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:14:39]wFMCommunicate OK [11:14:39]requested_item fd.num is exist - process it [11:14:39]SAM_PROTO_GetFieldsCounters [11:14:39]wFMCommunicate request_size=4 [11:14:39]MH_SAM_APDU [11:14:39]CAPDU: 80 13 00 00 [11:14:39]Write to MH i2c: E2 08 00 E5 11 80 13 00 00 00 00 00 00 72 [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:39]Read from MH i2c: E2 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 62 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 62 00 E5 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 DD F9 00 00 0E 04 04 00 76 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 78 [11:14: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 DD F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:39]wFMCommunicate OK [11:14:39]SAM_PROTO_GetFieldsCounters done [11:14:39]requested_item shift.num is exist - process it [11:14:39]requested_item shift.opened is exist - process it [11:14:39]req_shift_opened [11:14:39]FM_GetShiftState [11:14:39]SAM_PROTO_GetShiftState [11:14:39]wFMCommunicate request_size=4 [11:14:39]MH_SAM_APDU [11:14:39]CAPDU: 80 13 01 00 [11:14:39]Write to MH i2c: E2 08 00 E6 11 80 13 01 00 00 00 00 00 74 [11:14:39]Write i2c OK [11:14:39]MH_I2C_Read... [11:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:39]Read from MH i2c: E2 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 0E 00 [11:14:39]MH_I2C_Read... [11:14:39]Read from MH i2c: E2 0E 00 E6 11 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 14 [11:14:39]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:14:39]wFMCommunicate OK [11:14:39]SAM_PROTO_GetShiftState done [11:14:39]FM_GetShiftState done [11:14:39]req_shift_opened done [11:14:39]requested_item shift.open_date is exist - process it [11:14:39]req_shift_open_date [11:14:39]req_shift_open_date done [11:14:39]produce_requested_data done [11:14:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63965,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [11:14:39]process_action_free close_receipt [11:14:39]json_value_free [11:14:39]json_value_free done [11:14:39]process_json_proto returns [11:14:39]Send response to host [11:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63965,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [11:14:39]free response buf [11:14:39]execute_script done [11:14:39]execute_script returns [11:14:39]free content buf [11:14:39]Sock 9.Close socket [11:14:39]Sock 9.Thread stoped [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:37]accept exits with 7 [11:17:37]New connection [11:17:37]New thread 3066912100 created [11:17:37]Thread 3067055460 joined [11:17:37]Waiting for new connection... [11:17:37] Sock 7.Parse request [11:17:37]Sock 7.Check first char [11:17:37]Sock 7.First char is OK [11:17:37]request: POST /json_proto HTTP/1.0 [11:17:37]Method: POST [11:17:37]URL: /json_proto [11:17:37]Method is POST - this is cgi request [11:17:37]url: /json_proto [11:17:37]query_string will be loaded in cgi processing [11:17:37]execute_cgi json_proto POST (null) [11:17:37]execute_cgi path=json_proto method=POST [11:17:37]POST find Content-Length [11:17:37]Host: 172.17.60.69:8080 [11:17:37]Content-Length: 620 [11:17:37]Content-Type: application/json [11:17:37] [11:17:37]POST finish read [11:17:37]Found Content-Length = 620 [11:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73527", "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:17:37]execute_script... [11:17:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73527", "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:17:37]POST & json_proto [11:17:37]process_json_proto [11:17:37]json parsed OK: [11:17:37]protocol is kg_v1.0 [11:17:37]action value=close_receipt [11:17:37]process_action close_receipt [11:17:37]cmd_close_receipt [11:17:37]MH_GetDate [11:17:37]Write to MH i2c: F0 00 00 E7 11 E7 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: F0 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: F0 09 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: F0 09 00 E7 11 00 D4 F7 5E 66 6A 96 4A 66 2F [11:17:37]GetLastDocTimeStamp 1717499678 [11:17:37]current date 1717499860 [11:17:37]FM_GetShiftState [11:17:37]SAM_PROTO_GetShiftState [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 13 01 00 [11:17:37]Write to MH i2c: E2 08 00 E8 11 80 13 01 00 00 00 00 00 76 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 E8 11 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 16 [11:17:37]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetShiftState done [11:17:37]FM_GetShiftState done [11:17:37]opened in 1717459574 [11:17:37]opened+sec_in_day 1717545974 [11:17:37]quantity*price = 14000 [11:17:37]sum+1 = 14001 [11:17:37]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 СНО: Общий режим Чек 51 04.06.2024 11:17 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63966 ФПД: 107572717761267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111740&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63966&fm=107572717761267&tin=02508201610067®Number=0000000000092737&sum=14000 0 [11:17:39]StoreToDocumentArchive [11:17:39]shift 374 fd 63966 [11:17:39]save to /storage/0374/doc_00063966 [11:17:39]save last doc name /storage/0374/doc_00063966 to /storage/kkm_last_doc_name [11:17:39]save OK [11:17:39]Clear old archive folders... [11:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:17:39]tlvbuf is 0127CE50 [11:17:39]SAM_PROTO_ClearQueue [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 09 00 00 [11:17:39]Write to MH i2c: E2 08 00 F5 11 80 09 00 00 00 00 00 00 78 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 F5 11 00 90 00 7A [11:17:39]RAPDU: 90 00 [11:17:39]wFMCommunicate OK [11:17:39]SAM_PROTO_ClearQueue done [11:17:39]KKMCreateOFDPacket [11:17:39]OFDProtocolAddRootSTLVToBuf [11:17:39]FM_MakeSignedData [11:17:39]FM_MakeSignedData [11:17:39]SAM_PROTO_SignData [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 0D 01 02 [11:17:39]Write to MH i2c: E2 08 00 F6 11 80 0D 01 02 00 00 00 00 80 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 F6 11 00 90 00 7B [11:17:39]RAPDU: 90 00 [11:17:39]wFMCommunicate OK [11:17:39]wFMCommunicate request_size=255 [11:17:39]MH_SAM_APDU [11:17:39]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 33 00 00 00 F4 03 04 00 D4 F7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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:17:39]Write to MH i2c: E2 02 01 F7 11 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 33 00 00 00 F4 03 04 00 D4 F7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 9D [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 F7 11 00 90 00 7C [11:17:39]RAPDU: 90 00 [11:17:39]wFMCommunicate OK [11:17:39]wFMCommunicate request_size=32 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 DE F9 00 00 35 04 06 00 61 D6 39 A1 32 F3 [11:17:39]Write to MH i2c: E2 23 00 F8 11 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 DE F9 00 00 35 04 06 00 61 D6 39 A1 32 F3 00 00 EC [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 03 00 F8 11 00 90 00 7D [11:17:39]RAPDU: 90 00 [11:17:39]wFMCommunicate OK [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 0D 03 02 [11:17:39]Write to MH i2c: E2 08 00 F9 11 80 0D 03 02 00 00 00 00 85 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 0B 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 0B 00 F9 11 00 E8 92 FB 5D EE DC 0C 58 90 00 86 [11:17:39]RAPDU: E8 92 FB 5D EE DC 0C 58 90 00 [11:17:39]wFMCommunicate OK [11:17:39]SAM_PROTO_SignData done [11:17:39]FM_MakeSignedData done [11:17:39]CreateOFDProtocolMessage [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 11 00 00 [11:17:39]Write to MH i2c: E2 08 00 FA 11 80 11 00 00 00 00 00 00 85 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 17 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 17 00 FA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D7 [11:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:17:39]wFMCommunicate OK [11:17:39]CreateOFDProtocolMessage done [11:17:39]OFDSenderStorePacket 63966 [11:17:39]StoreOFDPacket docnum=63966 [11:17: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 25 01 00 00 35 E0 1D 01 78 57 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 33 00 00 00 F4 03 04 00 D4 F7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DE F9 00 00 35 04 06 00 61 D6 39 A1 32 F3 E8 92 FB 5D EE DC 0C 58 [11:17:39]CheckFolder [11:17:39]dirname=/storage/ofd_packets [11:17:39]CheckFolder done [11:17:39]ProducePacketName [11:17:39]name=ofd_packets/00063966 [11:17:39]NVStorageSaveData ofd_packets/00063966 [11:17:39]File name is /storage/ofd_packets/00063966 [11:17:39]Write 323 bytes [11:17:39]NVStorageSaveData done [11:17:39]OFDSenderStorePacket done [11:17:39]KKMCreateOFDPacket done [11:17:39]NVStorageSaveData kkm_last_timestamp [11:17:39]File name is /storage/kkm_last_timestamp [11:17:39]Write 4 bytes [11:17:39]NVStorageSaveData done [11:17:39]OFD Sender: Processing packet 63966 [packets to send 14, broken 13] [11:17:39]ProducePacketName [11:17:39]name=ofd_packets/00063966 [11:17:39]OFD Sender: To server: pG, [11:17:39]CommunicateWithHost lk.salyk.kg:30040 [11:17:39]ConnectInit lk.salyk.kg [11:17:39]ExternCall_PrintAddStr [11:17:39]wPrintStart [11:17:39]Write to MH i2c: 01 00 00 FB 11 0C [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: 01 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: 01 07 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: 01 07 00 FB 11 00 00 00 00 00 FF 0F 21 [11:17:39]RasterBufferAndPrint [11:17:39]line Счет N : (3)73527 [11:17:39]line ИНН: 02508201610067 [11:17:39]line Контрольно-Кассовый Чек [11:17:39]line ПРОДАЖА [11:17:39]line Товар: 48747059 [11:17:39]line Сигареты Winston Legend Blue [11:17:39]line 1.000 * 140.00 [11:17:39]line = 140.00 [11:17:39]line НДС 12% НСП 1% [11:17:39]line > о реализуемом товаре [11:17:39]line ИТОГО: 140.00 [11:17:39]line НСП 1% : 1.24 [11:17:39]line НДС 12% : 14.87 [11:17:39]line Наличными: 140.00 [11:17:39]line Безнал.: 0.00 [11:17:39]line Место: АЗС № 117 "Партнер Нефть" [11:17:39]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:17:39]line СНО: Общий режим [11:17:39]line Чек 51 04.06.2024 11:17 [11:17:39]line Смена: 374 ФФД: 1.0 [11:17:39]line ЗНМ: 0300000031 [11:17:39]line РНМ: 0000000000092737 [11:17:39]line Версия ККМ: 001 [11:17:39]line ФМ: 0000000000875074 [11:17:39]line ФД: 63966 [11:17:39]line ФПД: 107572717761267 [11:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T111740&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63966&fm=107572717761267&tin=02508201610067®Number=0000000000092737&sum=14000 [11:17:39]line 0 [11:17:39]Connected sock=11 [11:17:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 35 E0 1D 01 78 57 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 33 00 00 00 F4 03 04 00 D4 F7 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DE F9 00 00 35 04 06 00 61 D6 39 A1 32 F3 E8 92 FB 5D EE DC 0C 58 [11:17:39]written 0, free lines is 4095 [11:17: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 EA 91 47 00 8E 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 DE F9 00 00 F4 03 04 00 A2 A3 5E 66 B6 04 01 00 00 33 94 3C 68 8D 97 F2 2F [11:17:40]CommunicateWithHost err = 0 [11:17:40]CheckOFDResponse [11:17:40]1017 (14) - 77093643461234 [11:17:40]1041 (16) - 0000000000875074 [11:17:40]1040 (4) - 63966 [11:17:40]1012 (4) - 04.06.2024 05:18 [11:17:40]1206 (1) - 0 [11:17:40]OFD Sender: Remove packet 63966 [11:17:40]ProducePacketName [11:17:40]name=ofd_packets/00063966 [11:17:40]NVStorageDeleteData [11:17:40]Write to MH i2c: 01 00 00 24 12 36 [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 24 12 00 00 00 00 00 CB 0C 14 [11:17:40]RasterBufferAndPrint [11:17:40]line [11:17:40]line [11:17:40]line [11:17:40]line [11:17:40]line [11:17:40]written 0, free lines is 3281 [11:17:40]MH_Cut [11:17:40]Write to MH i2c: D1 01 00 2B 12 01 0F [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: D1 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: D1 01 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: D1 01 00 2B 12 00 0E [11:17:40]Write to MH i2c: 01 00 00 2C 12 3E [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]OFD Sender: No OFD packet to send [11:17:41]*** Cut start [11:17:41]*** Partial cut [11:17:41]*** CUTSNS_PIN = 1 [11:17:41]*** CUTSNS_PIN = 0 [11:17:41]*** Brake cut motor [11:17:41]Read from MH i2c: 01 [11:17:41]MH_I2C_Read... [11:17:41]*** Stop cut motor [11:17:41]*** Cut end [11:17:41]Read from MH i2c: 01 07 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 07 00 2C 12 00 00 00 00 00 FF 0F 53 [11:17:41]process_action close_receipt done [11:17:41]requested_data is exist [11:17:41]produce_requested_data [11:17:41]requested_item fm.sn is exist - process it [11:17:41]wFMCommunicate request_size=4 [11:17:41]MH_SAM_APDU [11:17:41]CAPDU: 80 11 00 00 [11:17:41]Write to MH i2c: E2 08 00 2D 12 80 11 00 00 00 00 00 00 B9 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:41]Read from MH i2c: E2 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 17 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 17 00 2D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0B [11:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:17:41]wFMCommunicate OK [11:17:41]requested_item fd.num is exist - process it [11:17:41]SAM_PROTO_GetFieldsCounters [11:17:41]wFMCommunicate request_size=4 [11:17:41]MH_SAM_APDU [11:17:41]CAPDU: 80 13 00 00 [11:17:41]Write to MH i2c: E2 08 00 2E 12 80 13 00 00 00 00 00 00 BC [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:42]Read from MH i2c: E2 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 62 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 62 00 2E 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 DE F9 00 00 0E 04 04 00 76 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 C6 [11:17: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 DE F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:42]wFMCommunicate OK [11:17:42]SAM_PROTO_GetFieldsCounters done [11:17:42]requested_item shift.num is exist - process it [11:17:42]requested_item shift.opened is exist - process it [11:17:42]req_shift_opened [11:17:42]FM_GetShiftState [11:17:42]SAM_PROTO_GetShiftState [11:17:42]wFMCommunicate request_size=4 [11:17:42]MH_SAM_APDU [11:17:42]CAPDU: 80 13 01 00 [11:17:42]Write to MH i2c: E2 08 00 2F 12 80 13 01 00 00 00 00 00 BE [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:42]Read from MH i2c: E2 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 0E 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: E2 0E 00 2F 12 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 5E [11:17:42]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:17:42]wFMCommunicate OK [11:17:42]SAM_PROTO_GetShiftState done [11:17:42]FM_GetShiftState done [11:17:42]req_shift_opened done [11:17:42]requested_item shift.open_date is exist - process it [11:17:42]req_shift_open_date [11:17:42]req_shift_open_date done [11:17:42]produce_requested_data done [11:17:42]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63966,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [11:17:42]process_action_free close_receipt [11:17:42]json_value_free [11:17:42]json_value_free done [11:17:42]process_json_proto returns [11:17:42]Send response to host [11:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63966,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [11:17:42]free response buf [11:17:42]execute_script done [11:17:42]execute_script returns [11:17:42]free content buf [11:17:42]Sock 7.Close socket [11:17:42]Sock 7.Thread stoped [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:43]accept exits with 9 [11:26:43]New connection [11:26:43]New thread 3067055460 created [11:26:43]Thread 3066912100 joined [11:26:43]Waiting for new connection... [11:26:43] Sock 9.Parse request [11:26:43]Sock 9.Check first char [11:26:43]Sock 9.First char is OK [11:26:43]request: POST /json_proto HTTP/1.0 [11:26:43]Method: POST [11:26:43]URL: /json_proto [11:26:43]Method is POST - this is cgi request [11:26:43]url: /json_proto [11:26:43]query_string will be loaded in cgi processing [11:26:43]execute_cgi json_proto POST (null) [11:26:43]execute_cgi path=json_proto method=POST [11:26:43]POST find Content-Length [11:26:43]Host: 172.17.60.69:8080 [11:26:43]Content-Length: 1169 [11:26:43]Content-Type: application/json [11:26:43] [11:26:43]POST finish read [11:26:43]Found Content-Length = 1169 [11:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73528", "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 }]} ,{ "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 }]} ], "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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:43]execute_script... [11:26: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)73528", "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 }]} ,{ "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 }]} ], "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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:43]POST & json_proto [11:26:43]process_json_proto [11:26:43]json parsed OK: [11:26:43]protocol is kg_v1.0 [11:26:43]action value=close_receipt [11:26:43]process_action close_receipt [11:26:43]cmd_close_receipt [11:26:43]MH_GetDate [11:26:43]Write to MH i2c: F0 00 00 30 12 31 [11:26:43]Write i2c OK [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: F0 [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: F0 09 00 [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: F0 09 00 30 12 00 F5 F9 5E 66 6A 96 4A 66 9C [11:26:43]GetLastDocTimeStamp 1717499860 [11:26:43]current date 1717500405 [11:26:43]FM_GetShiftState [11:26:43]SAM_PROTO_GetShiftState [11:26:43]wFMCommunicate request_size=4 [11:26:43]MH_SAM_APDU [11:26:43]CAPDU: 80 13 01 00 [11:26:43]Write to MH i2c: E2 08 00 31 12 80 13 01 00 00 00 00 00 C0 [11:26:43]Write i2c OK [11:26:43]MH_I2C_Read... [11:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:43]Read from MH i2c: E2 [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: E2 0E 00 [11:26:43]MH_I2C_Read... [11:26:43]Read from MH i2c: E2 0E 00 31 12 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 60 [11:26:43]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:26:43]wFMCommunicate OK [11:26:43]SAM_PROTO_GetShiftState done [11:26:43]FM_GetShiftState done [11:26:43]opened in 1717459574 [11:26:43]opened+sec_in_day 1717545974 [11:26:43]quantity*price = 11500 [11:26:43]sum+1 = 11501 [11:26:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.82 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 52 04.06.2024 11:26 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63967 ФПД: 59970371249903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112645&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63967&fm=59970371249903&tin=02508201610067®Number=0000000000092737&sum=20500 0 [11:26:44]StoreToDocumentArchive [11:26:44]shift 374 fd 63967 [11:26:44]save to /storage/0374/doc_00063967 [11:26:44]save last doc name /storage/0374/doc_00063967 to /storage/kkm_last_doc_name [11:26:44]save OK [11:26:44]Clear old archive folders... [11:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=409 [11:26:44]tlvbuf is 01292E10 [11:26:44]SAM_PROTO_ClearQueue [11:26:44]wFMCommunicate request_size=4 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 09 00 00 [11:26:44]Write to MH i2c: E2 08 00 3E 12 80 09 00 00 00 00 00 00 C2 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [11:26:44]RAPDU: 90 00 [11:26:44]wFMCommunicate OK [11:26:44]SAM_PROTO_ClearQueue done [11:26:44]KKMCreateOFDPacket [11:26:44]OFDProtocolAddRootSTLVToBuf [11:26:44]FM_MakeSignedData [11:26:44]FM_MakeSignedData [11:26:44]SAM_PROTO_SignData [11:26:44]wFMCommunicate request_size=4 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 0D 01 02 [11:26:44]Write to MH i2c: E2 08 00 3F 12 80 0D 01 02 00 00 00 00 CA [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [11:26:44]RAPDU: 90 00 [11:26:44]wFMCommunicate OK [11:26:44]wFMCommunicate request_size=255 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 0D 02 02 FA 03 00 99 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 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 FC 03 [11:26:44]Write to MH i2c: E2 02 01 40 12 80 0D 02 02 FA 00 03 00 99 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 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 FC 03 00 00 B8 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 40 12 00 90 00 C6 [11:26:44]RAPDU: 90 00 [11:26:44]wFMCommunicate OK [11:26:44]wFMCommunicate request_size=168 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 0D 02 02 A3 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 B6 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 34 00 00 00 F4 03 04 00 F5 F9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DF F9 00 00 35 04 06 00 36 8A F0 AC E6 EF [11:26:44]Write to MH i2c: E2 AB 00 41 12 80 0D 02 02 A3 00 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 B6 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 34 00 00 00 F4 03 04 00 F5 F9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DF F9 00 00 35 04 06 00 36 8A F0 AC E6 EF 00 00 C5 [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 03 00 41 12 00 90 00 C7 [11:26:44]RAPDU: 90 00 [11:26:44]wFMCommunicate OK [11:26:44]wFMCommunicate request_size=4 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 0D 03 02 [11:26:44]Write to MH i2c: E2 08 00 42 12 80 0D 03 02 00 00 00 00 CF [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 0B 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 0B 00 42 12 00 0D D3 70 59 A0 6E FB 0F 90 00 91 [11:26:44]RAPDU: 0D D3 70 59 A0 6E FB 0F 90 00 [11:26:44]wFMCommunicate OK [11:26:44]SAM_PROTO_SignData done [11:26:44]FM_MakeSignedData done [11:26:44]CreateOFDProtocolMessage [11:26:44]wFMCommunicate request_size=4 [11:26:44]MH_SAM_APDU [11:26:44]CAPDU: 80 11 00 00 [11:26:44]Write to MH i2c: E2 08 00 43 12 80 11 00 00 00 00 00 00 CF [11:26:44]Write i2c OK [11:26:44]MH_I2C_Read... [11:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:44]Read from MH i2c: E2 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 17 00 [11:26:44]MH_I2C_Read... [11:26:44]Read from MH i2c: E2 17 00 43 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 21 [11:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:26:44]wFMCommunicate OK [11:26:44]CreateOFDProtocolMessage done [11:26:44]OFDSenderStorePacket 63967 [11:26:44]StoreOFDPacket docnum=63967 [11:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 AD 01 00 00 A5 8F A5 01 9A 57 5A 03 01 00 03 00 99 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 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 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 B6 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 34 00 00 00 F4 03 04 00 F5 F9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DF F9 00 00 35 04 06 00 36 8A F0 AC E6 EF 0D D3 70 59 A0 6E FB 0F [11:26:44]CheckFolder [11:26:44]dirname=/storage/ofd_packets [11:26:44]CheckFolder done [11:26:45]ProducePacketName [11:26:45]name=ofd_packets/00063967 [11:26:45]NVStorageSaveData ofd_packets/00063967 [11:26:45]File name is /storage/ofd_packets/00063967 [11:26:45]Write 459 bytes [11:26:45]NVStorageSaveData done [11:26:45]OFDSenderStorePacket done [11:26:45]KKMCreateOFDPacket done [11:26:45]NVStorageSaveData kkm_last_timestamp [11:26:45]File name is /storage/kkm_last_timestamp [11:26:45]Write 4 bytes [11:26:45]NVStorageSaveData done [11:26:45]ExternCall_PrintAddStr [11:26:45]wPrintStart [11:26:45]Write to MH i2c: 01 00 00 44 12 56 [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: 01 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: 01 07 00 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: 01 07 00 44 12 00 00 00 00 00 FF 0F 6B [11:26:45]RasterBufferAndPrint [11:26:45]line Счет N : (3)73528 [11:26:45]line ИНН: 02508201610067 [11:26:45]line Контрольно-Кассовый Чек [11:26:45]line ПРОДАЖА [11:26:45]line Товар: 2000036210013 [11:26:45]line Кофе Капучино (GABB TRADE) [11:26:45]line 1.000 * 115.00 [11:26:45]line = 115.00 [11:26:45]line НДС 12% НСП 1% [11:26:45]line > о реализуемом товаре [11:26:45]line Товар: 4660085515163 [11:26:45]line Шок Батончик Сникерс супер 95/80г [11:26:45]line 1.000 * 90.00 [11:26:45]line = 90.00 [11:26:45]line НДС 12% НСП 1% [11:26:45]line > о реализуемом товаре [11:26:45]line ИТОГО: 205.00 [11:26:45]line НСП 1% : 1.82 [11:26:45]line НДС 12% : 21.77 [11:26:45]line Наличными: 0.00 [11:26:45]line Безнал.: 205.00 [11:26:45]line Место: АЗС № 117 "Партнер Нефть" [11:26:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:26:45]line СНО: Общий режим [11:26:45]line Чек 52 04.06.2024 11:26 [11:26:45]line Смена: 374 ФФД: 1.0 [11:26:45]line ЗНМ: 0300000031 [11:26:45]line РНМ: 0000000000092737 [11:26:45]line Версия ККМ: 001 [11:26:45]line Платежная система: АКБ Кыргызстан [11:26:45]line ФМ: 0000000000875074 [11:26:45]line ФД: 63967 [11:26:45]line ФПД: 59970371249903 [11:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112645&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63967&fm=59970371249903&tin=02508201610067®Number=0000000000092737&sum=20500 [11:26:45]line 0 [11:26:45]written 0, free lines is 4095 [11:26:45]OFD Sender: Processing packet 63967 [packets to send 14, broken 13] [11:26:45]ProducePacketName [11:26:45]name=ofd_packets/00063967 [11:26:45]OFD Sender: To server: pG, [11:26:45]CommunicateWithHost lk.salyk.kg:30040 [11:26:45]ConnectInit lk.salyk.kg [11:26:45]Connected sock=10 [11:26: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 AD 01 00 00 A5 8F A5 01 9A 57 5A 03 01 00 03 00 99 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 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 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 B6 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 34 00 00 00 F4 03 04 00 F5 F9 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 DF F9 00 00 35 04 06 00 36 8A F0 AC E6 EF 0D D3 70 59 A0 6E FB 0F [11:26: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 0B DF 47 00 76 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 DF F9 00 00 F4 03 04 00 C4 A5 5E 66 B6 04 01 00 00 7B 3D 87 11 AB 70 3D 32 [11:26:45]CommunicateWithHost err = 0 [11:26:45]CheckOFDResponse [11:26:45]1017 (14) - 77093643461234 [11:26:45]1041 (16) - 0000000000875074 [11:26:45]1040 (4) - 63967 [11:26:45]1012 (4) - 04.06.2024 05:27 [11:26:45]1206 (1) - 0 [11:26:45]OFD Sender: Remove packet 63967 [11:26:45]ProducePacketName [11:26:45]name=ofd_packets/00063967 [11:26:45]NVStorageDeleteData [11:26:45]Write to MH i2c: 01 00 00 75 12 87 [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: 01 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: 01 07 00 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: 01 07 00 75 12 00 00 00 00 00 6D 0C 07 [11:26:45]RasterBufferAndPrint [11:26:45]line [11:26:45]line [11:26:45]line [11:26:45]line [11:26:45]line [11:26:45]written 0, free lines is 3187 [11:26:45]MH_Cut [11:26:45]Write to MH i2c: D1 01 00 7C 12 01 60 [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: D1 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: D1 01 00 [11:26:45]MH_I2C_Read... [11:26:45]Read from MH i2c: D1 01 00 7C 12 00 5F [11:26:45]Write to MH i2c: 01 00 00 7D 12 8F [11:26:45]Write i2c OK [11:26:45]MH_I2C_Read... [11:26:46]OFD Sender: No OFD packet to send [11:26:46]*** Cut start [11:26:46]*** Partial cut [11:26:46]*** CUTSNS_PIN = 1 [11:26:46]*** CUTSNS_PIN = 0 [11:26:46]*** Brake cut motor [11:26:47]Read from MH i2c: 01 [11:26:47]MH_I2C_Read... [11:26:47]*** Stop cut motor [11:26:47]*** Cut end [11:26:47]Read from MH i2c: 01 07 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: 01 07 00 7D 12 00 00 00 00 00 FF 0F A4 [11:26:47]process_action close_receipt done [11:26:47]requested_data is exist [11:26:47]produce_requested_data [11:26:47]requested_item fm.sn is exist - process it [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 11 00 00 [11:26:47]Write to MH i2c: E2 08 00 7E 12 80 11 00 00 00 00 00 00 0A [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 17 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 17 00 7E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5C [11:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:26:47]wFMCommunicate OK [11:26:47]requested_item fd.num is exist - process it [11:26:47]SAM_PROTO_GetFieldsCounters [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 13 00 00 [11:26:47]Write to MH i2c: E2 08 00 7F 12 80 13 00 00 00 00 00 00 0D [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 62 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 62 00 7F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 DF F9 00 00 0E 04 04 00 76 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 1B [11:26: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 DF F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:47]wFMCommunicate OK [11:26:47]SAM_PROTO_GetFieldsCounters done [11:26:47]requested_item shift.num is exist - process it [11:26:47]requested_item shift.opened is exist - process it [11:26:47]req_shift_opened [11:26:47]FM_GetShiftState [11:26:47]SAM_PROTO_GetShiftState [11:26:47]wFMCommunicate request_size=4 [11:26:47]MH_SAM_APDU [11:26:47]CAPDU: 80 13 01 00 [11:26:47]Write to MH i2c: E2 08 00 80 12 80 13 01 00 00 00 00 00 0F [11:26:47]Write i2c OK [11:26:47]MH_I2C_Read... [11:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:47]Read from MH i2c: E2 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 0E 00 [11:26:47]MH_I2C_Read... [11:26:47]Read from MH i2c: E2 0E 00 80 12 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 AF [11:26:47]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:26:47]wFMCommunicate OK [11:26:47]SAM_PROTO_GetShiftState done [11:26:47]FM_GetShiftState done [11:26:47]req_shift_opened done [11:26:47]requested_item shift.open_date is exist - process it [11:26:47]req_shift_open_date [11:26:47]req_shift_open_date done [11:26:47]produce_requested_data done [11:26:47]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63967,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [11:26:47]process_action_free close_receipt [11:26:47]json_value_free [11:26:47]json_value_free done [11:26:47]process_json_proto returns [11:26:47]Send response to host [11:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63967,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [11:26:47]free response buf [11:26:47]execute_script done [11:26:47]execute_script returns [11:26:47]free content buf [11:26:47]Sock 9.Close socket [11:26:47]Sock 9.Thread stoped [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:11]accept exits with 7 [11:28:11]New connection [11:28:11]New thread 3066912100 created [11:28:11]Thread 3067055460 joined [11:28:11]Waiting for new connection... [11:28:11] Sock 7.Parse request [11:28:11]Sock 7.Check first char [11:28:11]Sock 7.First char is OK [11:28:11]request: POST /json_proto HTTP/1.0 [11:28:11]Method: POST [11:28:11]URL: /json_proto [11:28:11]Method is POST - this is cgi request [11:28:11]url: /json_proto [11:28:11]query_string will be loaded in cgi processing [11:28:11]execute_cgi json_proto POST (null) [11:28:11]execute_cgi path=json_proto method=POST [11:28:11]POST find Content-Length [11:28:11]Host: 172.17.60.69:8080 [11:28:11]Content-Length: 645 [11:28:11]Content-Type: application/json [11:28:11] [11:28:11]POST finish read [11:28:11]Found Content-Length = 645 [11:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73529", "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" ] } } [11:28:11]execute_script... [11:28: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)73529", "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" ] } } [11:28:11]POST & json_proto [11:28:11]process_json_proto [11:28:11]json parsed OK: [11:28:11]protocol is kg_v1.0 [11:28:11]action value=close_receipt [11:28:11]process_action close_receipt [11:28:11]cmd_close_receipt [11:28:11]MH_GetDate [11:28:11]Write to MH i2c: F0 00 00 81 12 82 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: F0 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: F0 09 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: F0 09 00 81 12 00 4E FA 5E 66 6A 96 4A 66 47 [11:28:11]GetLastDocTimeStamp 1717500405 [11:28:11]current date 1717500494 [11:28:11]FM_GetShiftState [11:28:11]SAM_PROTO_GetShiftState [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 01 00 [11:28:11]Write to MH i2c: E2 08 00 82 12 80 13 01 00 00 00 00 00 11 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 82 12 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B1 [11:28:11]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetShiftState done [11:28:11]FM_GetShiftState done [11:28:11]opened in 1717459574 [11:28:11]opened+sec_in_day 1717545974 [11:28:11]quantity*price = 12500 [11:28:11]sum+1 = 12501 [11:28:11]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 СНО: Общий режим Чек 53 04.06.2024 11:28 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63968 ФПД: 21757245074470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112814&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63968&fm=21757245074470&tin=02508201610067®Number=0000000000092737&sum=12500 0 [11:28:13]StoreToDocumentArchive [11:28:13]shift 374 fd 63968 [11:28:13]save to /storage/0374/doc_00063968 [11:28:13]save last doc name /storage/0374/doc_00063968 to /storage/kkm_last_doc_name [11:28:13]save OK [11:28:13]Clear old archive folders... [11:28:13]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:28:13]tlvbuf is B6F6E800 [11:28:13]SAM_PROTO_ClearQueue [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 09 00 00 [11:28:13]Write to MH i2c: E2 08 00 8F 12 80 09 00 00 00 00 00 00 13 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 8F 12 00 90 00 15 [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]SAM_PROTO_ClearQueue done [11:28:13]KKMCreateOFDPacket [11:28:13]OFDProtocolAddRootSTLVToBuf [11:28:13]FM_MakeSignedData [11:28:13]FM_MakeSignedData [11:28:13]SAM_PROTO_SignData [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 0D 01 02 [11:28:13]Write to MH i2c: E2 08 00 90 12 80 0D 01 02 00 00 00 00 1B [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 90 12 00 90 00 16 [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]wFMCommunicate request_size=255 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 35 00 00 00 F4 03 04 00 4E FA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [11:28:13]Write to MH i2c: E2 02 01 91 12 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 35 00 00 00 F4 03 04 00 4E FA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 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 D4 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 91 12 00 90 00 17 [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]wFMCommunicate request_size=41 [11:28:13]MH_SAM_APDU [11:28:13]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 E0 F9 00 00 35 04 06 00 13 C9 C0 DD 2C 26 [11:28:13]Write to MH i2c: E2 2C 00 92 12 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 E0 F9 00 00 35 04 06 00 13 C9 C0 DD 2C 26 00 00 90 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 92 12 00 90 00 18 [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 0D 03 02 [11:28:13]Write to MH i2c: E2 08 00 93 12 80 0D 03 02 00 00 00 00 20 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 0B 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 0B 00 93 12 00 AE 9E F8 EC E7 CC 16 E6 90 00 00 [11:28:13]RAPDU: AE 9E F8 EC E7 CC 16 E6 90 00 [11:28:13]wFMCommunicate OK [11:28:13]SAM_PROTO_SignData done [11:28:13]FM_MakeSignedData done [11:28:13]CreateOFDProtocolMessage [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 11 00 00 [11:28:13]Write to MH i2c: E2 08 00 94 12 80 11 00 00 00 00 00 00 20 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 17 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 17 00 94 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 72 [11:28: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:28:13]wFMCommunicate OK [11:28:13]CreateOFDProtocolMessage done [11:28:13]OFDSenderStorePacket 63968 [11:28:13]StoreOFDPacket docnum=63968 [11:28:13]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 6A ED 26 01 22 38 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 35 00 00 00 F4 03 04 00 4E FA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E0 F9 00 00 35 04 06 00 13 C9 C0 DD 2C 26 AE 9E F8 EC E7 CC 16 E6 [11:28:13]CheckFolder [11:28:13]dirname=/storage/ofd_packets [11:28:13]CheckFolder done [11:28:13]ProducePacketName [11:28:13]name=ofd_packets/00063968 [11:28:13]NVStorageSaveData ofd_packets/00063968 [11:28:13]File name is /storage/ofd_packets/00063968 [11:28:13]Write 332 bytes [11:28:13]NVStorageSaveData done [11:28:13]OFDSenderStorePacket done [11:28:13]KKMCreateOFDPacket done [11:28:13]NVStorageSaveData kkm_last_timestamp [11:28:13]File name is /storage/kkm_last_timestamp [11:28:13]Write 4 bytes [11:28:13]NVStorageSaveData done [11:28:13]ExternCall_PrintAddStr [11:28:13]wPrintStart [11:28:13]Write to MH i2c: 01 00 00 95 12 A7 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 95 12 00 00 00 00 00 FF 0F BC [11:28:13]RasterBufferAndPrint [11:28:13]line Счет N : (3)73529 [11:28:13]line ИНН: 02508201610067 [11:28:13]line Контрольно-Кассовый Чек [11:28:13]line ПРОДАЖА [11:28:13]line Товар: 2000036220012 [11:28:13]line Кофе Капучино XL(GABB TRADE) [11:28:13]line 1.000 * 125.00 [11:28:13]line = 125.00 [11:28:13]line НДС 12% НСП 1% [11:28:13]line > о реализуемом товаре [11:28:13]line ИТОГО: 125.00 [11:28:13]line НСП 1% : 1.11 [11:28:13]line НДС 12% : 13.27 [11:28:13]line Наличными: 125.00 [11:28:13]line Безнал.: 0.00 [11:28:13]line Место: АЗС № 117 "Партнер Нефть" [11:28:13]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:28:13]line СНО: Общий режим [11:28:13]line Чек 53 04.06.2024 11:28 [11:28:13]line Смена: 374 ФФД: 1.0 [11:28:13]line ЗНМ: 0300000031 [11:28:13]line РНМ: 0000000000092737 [11:28:13]line Версия ККМ: 001 [11:28:13]line ФМ: 0000000000875074 [11:28:13]line ФД: 63968 [11:28:13]line ФПД: 21757245074470 [11:28:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T112814&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63968&fm=21757245074470&tin=02508201610067®Number=0000000000092737&sum=12500 [11:28:13]line 0 [11:28:13]OFD Sender: Processing packet 63968 [packets to send 14, broken 13] [11:28:13]ProducePacketName [11:28:13]name=ofd_packets/00063968 [11:28:13]OFD Sender: To server: pG, [11:28:13]CommunicateWithHost lk.salyk.kg:30040 [11:28:13]ConnectInit lk.salyk.kg [11:28:13]written 0, free lines is 4095 [11:28:13]Connected sock=10 [11:28: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 2E 01 00 00 6A ED 26 01 22 38 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 35 00 00 00 F4 03 04 00 4E FA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E0 F9 00 00 35 04 06 00 13 C9 C0 DD 2C 26 AE 9E F8 EC E7 CC 16 E6 [11:28:14]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 6B C1 47 00 53 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E0 F9 00 00 F4 03 04 00 1C A6 5E 66 B6 04 01 00 00 22 26 3D 34 C7 04 63 6D [11:28:14]CommunicateWithHost err = 0 [11:28:14]CheckOFDResponse [11:28:14]1017 (14) - 77093643461234 [11:28:14]1041 (16) - 0000000000875074 [11:28:14]1040 (4) - 63968 [11:28:14]1012 (4) - 04.06.2024 05:29 [11:28:14]1206 (1) - 0 [11:28:14]OFD Sender: Remove packet 63968 [11:28:14]ProducePacketName [11:28:14]name=ofd_packets/00063968 [11:28:14]NVStorageDeleteData [11:28:14]Write to MH i2c: 01 00 00 BE 12 D0 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 BE 12 00 00 00 00 00 EB 0C CE [11:28:14]RasterBufferAndPrint [11:28:14]line [11:28:14]line [11:28:14]line [11:28:14]line [11:28:14]line [11:28:14]written 0, free lines is 3313 [11:28:14]MH_Cut [11:28:14]Write to MH i2c: D1 01 00 C5 12 01 A9 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: D1 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: D1 01 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: D1 01 00 C5 12 00 A8 [11:28:14]Write to MH i2c: 01 00 00 C6 12 D8 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]OFD Sender: No OFD packet to send [11:28:15]*** Cut start [11:28:15]*** Partial cut [11:28:15]*** CUTSNS_PIN = 1 [11:28:15]*** CUTSNS_PIN = 0 [11:28:15]*** Brake cut motor [11:28:15]Read from MH i2c: 01 [11:28:15]MH_I2C_Read... [11:28:15]*** Stop cut motor [11:28:15]*** Cut end [11:28:15]Read from MH i2c: 01 07 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 C6 12 00 00 00 00 00 FF 0F ED [11:28:15]process_action close_receipt done [11:28:15]requested_data is exist [11:28:15]produce_requested_data [11:28:15]requested_item fm.sn is exist - process it [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 11 00 00 [11:28:15]Write to MH i2c: E2 08 00 C7 12 80 11 00 00 00 00 00 00 53 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 17 00 C7 12 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:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:28:15]wFMCommunicate OK [11:28:15]requested_item fd.num is exist - process it [11:28:15]SAM_PROTO_GetFieldsCounters [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 13 00 00 [11:28:15]Write to MH i2c: E2 08 00 C8 12 80 13 00 00 00 00 00 00 56 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 62 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 62 00 C8 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 E0 F9 00 00 0E 04 04 00 76 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 68 [11:28: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 E0 F9 00 00 0E 04 04 00 76 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 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_GetFieldsCounters done [11:28:15]requested_item shift.num is exist - process it [11:28:15]requested_item shift.opened is exist - process it [11:28:15]req_shift_opened [11:28:15]FM_GetShiftState [11:28:15]SAM_PROTO_GetShiftState [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 13 01 00 [11:28:15]Write to MH i2c: E2 08 00 C9 12 80 13 01 00 00 00 00 00 58 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 C9 12 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F8 [11:28:16]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetShiftState done [11:28:16]FM_GetShiftState done [11:28:16]req_shift_opened done [11:28:16]requested_item shift.open_date is exist - process it [11:28:16]req_shift_open_date [11:28:16]req_shift_open_date done [11:28:16]produce_requested_data done [11:28:16]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63968,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [11:28:16]process_action_free close_receipt [11:28:16]json_value_free [11:28:16]json_value_free done [11:28:16]process_json_proto returns [11:28:16]Send response to host [11:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63968,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [11:28:16]free response buf [11:28:16]execute_script done [11:28:16]execute_script returns [11:28:16]free content buf [11:28:16]Sock 7.Close socket [11:28:16]Sock 7.Thread stoped [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:11]accept exits with 9 [11:30:11]New connection [11:30:11]New thread 3067055460 created [11:30:11]Thread 3066912100 joined [11:30:11]Waiting for new connection... [11:30:11] Sock 9.Parse request [11:30:11]Sock 9.Check first char [11:30:11]Sock 9.First char is OK [11:30:11]request: POST /json_proto HTTP/1.0 [11:30:11]Method: POST [11:30:11]URL: /json_proto [11:30:11]Method is POST - this is cgi request [11:30:11]url: /json_proto [11:30:11]query_string will be loaded in cgi processing [11:30:11]execute_cgi json_proto POST (null) [11:30:11]execute_cgi path=json_proto method=POST [11:30:11]POST find Content-Length [11:30:11]Host: 172.17.60.69:8080 [11:30:11]Content-Length: 620 [11:30:11]Content-Type: application/json [11:30:11] [11:30:11]POST finish read [11:30:11]Found Content-Length = 620 [11:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73530", "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" ] } } [11:30:11]execute_script... [11:30:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73530", "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" ] } } [11:30:11]POST & json_proto [11:30:11]process_json_proto [11:30:11]json parsed OK: [11:30:11]protocol is kg_v1.0 [11:30:11]action value=close_receipt [11:30:11]process_action close_receipt [11:30:11]cmd_close_receipt [11:30:11]MH_GetDate [11:30:11]Write to MH i2c: F0 00 00 CA 12 CB [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: F0 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: F0 09 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: F0 09 00 CA 12 00 C6 FA 5E 66 6A 96 4A 66 08 [11:30:11]GetLastDocTimeStamp 1717500494 [11:30:11]current date 1717500614 [11:30:11]FM_GetShiftState [11:30:11]SAM_PROTO_GetShiftState [11:30:11]wFMCommunicate request_size=4 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 13 01 00 [11:30:11]Write to MH i2c: E2 08 00 CB 12 80 13 01 00 00 00 00 00 5A [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 0E 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 0E 00 CB 12 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 FA [11:30:11]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:30:11]wFMCommunicate OK [11:30:11]SAM_PROTO_GetShiftState done [11:30:11]FM_GetShiftState done [11:30:11]opened in 1717459574 [11:30:11]opened+sec_in_day 1717545974 [11:30:11]quantity*price = 13000 [11:30:11]sum+1 = 13001 [11:30:11]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 СНО: Общий режим Чек 54 04.06.2024 11:30 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63969 ФПД: 245559019390705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113014&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63969&fm=245559019390705&tin=02508201610067®Number=0000000000092737&sum=13000 0 [11:30:12]StoreToDocumentArchive [11:30:12]shift 374 fd 63969 [11:30:12]save to /storage/0374/doc_00063969 [11:30:12]save last doc name /storage/0374/doc_00063969 to /storage/kkm_last_doc_name [11:30:12]save OK [11:30:12]Clear old archive folders... [11:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:30:12]tlvbuf is B6F6E5A0 [11:30:12]SAM_PROTO_ClearQueue [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 09 00 00 [11:30:12]Write to MH i2c: E2 08 00 D8 12 80 09 00 00 00 00 00 00 5C [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 D8 12 00 90 00 5E [11:30:13]RAPDU: 90 00 [11:30:13]wFMCommunicate OK [11:30:13]SAM_PROTO_ClearQueue done [11:30:13]KKMCreateOFDPacket [11:30:13]OFDProtocolAddRootSTLVToBuf [11:30:13]FM_MakeSignedData [11:30:13]FM_MakeSignedData [11:30:13]SAM_PROTO_SignData [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 0D 01 02 [11:30:13]Write to MH i2c: E2 08 00 D9 12 80 0D 01 02 00 00 00 00 64 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 D9 12 00 90 00 5F [11:30:13]RAPDU: 90 00 [11:30:13]wFMCommunicate OK [11:30:13]wFMCommunicate request_size=255 [11:30:13]MH_SAM_APDU [11:30:13]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 36 00 00 00 F4 03 04 00 C6 FA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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:30:13]Write to MH i2c: E2 02 01 DA 12 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 36 00 00 00 F4 03 04 00 C6 FA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 DA 12 00 90 00 60 [11:30:13]RAPDU: 90 00 [11:30:13]wFMCommunicate OK [11:30:13]wFMCommunicate request_size=32 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 E1 F9 00 00 35 04 06 00 DF 55 AA 1F 46 F1 [11:30:13]Write to MH i2c: E2 23 00 DB 12 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 E1 F9 00 00 35 04 06 00 DF 55 AA 1F 46 F1 00 00 D1 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 03 00 DB 12 00 90 00 61 [11:30:13]RAPDU: 90 00 [11:30:13]wFMCommunicate OK [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 0D 03 02 [11:30:13]Write to MH i2c: E2 08 00 DC 12 80 0D 03 02 00 00 00 00 69 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 0B 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 0B 00 DC 12 00 56 9F 89 5D D6 8B 2A D8 90 00 A8 [11:30:13]RAPDU: 56 9F 89 5D D6 8B 2A D8 90 00 [11:30:13]wFMCommunicate OK [11:30:13]SAM_PROTO_SignData done [11:30:13]FM_MakeSignedData done [11:30:13]CreateOFDProtocolMessage [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 11 00 00 [11:30:13]Write to MH i2c: E2 08 00 DD 12 80 11 00 00 00 00 00 00 69 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 17 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 17 00 DD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BB [11:30: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:30:13]wFMCommunicate OK [11:30:13]CreateOFDProtocolMessage done [11:30:13]OFDSenderStorePacket 63969 [11:30:13]StoreOFDPacket docnum=63969 [11:30:13]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 3F 7A 1D 01 24 6F 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 36 00 00 00 F4 03 04 00 C6 FA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E1 F9 00 00 35 04 06 00 DF 55 AA 1F 46 F1 56 9F 89 5D D6 8B 2A D8 [11:30:13]CheckFolder [11:30:13]dirname=/storage/ofd_packets [11:30:13]CheckFolder done [11:30:13]ProducePacketName [11:30:13]name=ofd_packets/00063969 [11:30:13]NVStorageSaveData ofd_packets/00063969 [11:30:13]File name is /storage/ofd_packets/00063969 [11:30:13]Write 323 bytes [11:30:13]NVStorageSaveData done [11:30:13]OFDSenderStorePacket done [11:30:13]KKMCreateOFDPacket done [11:30:13]NVStorageSaveData kkm_last_timestamp [11:30:13]File name is /storage/kkm_last_timestamp [11:30:13]Write 4 bytes [11:30:13]NVStorageSaveData done [11:30:13]ExternCall_PrintAddStr [11:30:13]wPrintStart [11:30:13]Write to MH i2c: 01 00 00 DE 12 F0 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: 01 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: 01 07 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: 01 07 00 DE 12 00 00 00 00 00 FF 0F 05 [11:30:13]RasterBufferAndPrint [11:30:13]line Счет N : (3)73530 [11:30:13]line ИНН: 02508201610067 [11:30:13]line Контрольно-Кассовый Чек [11:30:13]line ПРОДАЖА [11:30:13]line Товар: 4780014240406 [11:30:13]line Сигареты Sovereign Blue [11:30:13]line 1.000 * 130.00 [11:30:13]line = 130.00 [11:30:13]line НДС 12% НСП 1% [11:30:13]line > о реализуемом товаре [11:30:13]line ИТОГО: 130.00 [11:30:13]line НСП 1% : 1.15 [11:30:13]line НДС 12% : 13.80 [11:30:13]line Наличными: 130.00 [11:30:13]line Безнал.: 0.00 [11:30:13]line Место: АЗС № 117 "Партнер Нефть" [11:30:13]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:30:13]line СНО: Общий режим [11:30:13]line Чек 54 04.06.2024 11:30 [11:30:13]line Смена: 374 ФФД: 1.0 [11:30:13]line ЗНМ: 0300000031 [11:30:13]line РНМ: 0000000000092737 [11:30:13]line Версия ККМ: 001 [11:30:13]line ФМ: 0000000000875074 [11:30:13]line ФД: 63969 [11:30:13]line ФПД: 245559019390705 [11:30:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113014&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63969&fm=245559019390705&tin=02508201610067®Number=0000000000092737&sum=13000 [11:30:13]line 0 [11:30:13]OFD Sender: Processing packet 63969 [packets to send 14, broken 13] [11:30:13]ProducePacketName [11:30:13]name=ofd_packets/00063969 [11:30:13]OFD Sender: To server: pG, [11:30:13]CommunicateWithHost lk.salyk.kg:30040 [11:30:13]ConnectInit lk.salyk.kg [11:30:13]written 0, free lines is 4095 [11:30:14]Connected sock=11 [11:30:14]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 3F 7A 1D 01 24 6F 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 36 00 00 00 F4 03 04 00 C6 FA 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E1 F9 00 00 35 04 06 00 DF 55 AA 1F 46 F1 56 9F 89 5D D6 8B 2A D8 [11:30:14]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 37 47 00 39 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E1 F9 00 00 F4 03 04 00 95 A6 5E 66 B6 04 01 00 00 E6 C3 10 83 B1 96 80 EC [11:30:14]CommunicateWithHost err = 0 [11:30:14]CheckOFDResponse [11:30:14]1017 (14) - 77093643461234 [11:30:14]1041 (16) - 0000000000875074 [11:30:14]1040 (4) - 63969 [11:30:14]1012 (4) - 04.06.2024 05:31 [11:30:14]1206 (1) - 0 [11:30:14]OFD Sender: Remove packet 63969 [11:30:14]ProducePacketName [11:30:14]name=ofd_packets/00063969 [11:30:14]NVStorageDeleteData [11:30:14]Write to MH i2c: 01 00 00 06 13 19 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: 01 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: 01 07 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: 01 07 00 06 13 00 00 00 00 00 00 0D 2D [11:30:14]RasterBufferAndPrint [11:30:14]line [11:30:14]line [11:30:14]line [11:30:14]line [11:30:14]line [11:30:14]written 0, free lines is 3334 [11:30:14]MH_Cut [11:30:14]Write to MH i2c: D1 01 00 0D 13 01 F2 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: D1 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: D1 01 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: D1 01 00 0D 13 00 F1 [11:30:14]Write to MH i2c: 01 00 00 0E 13 21 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]OFD Sender: No OFD packet to send [11:30:15]*** Cut start [11:30:15]*** Partial cut [11:30:15]*** CUTSNS_PIN = 1 [11:30:15]*** CUTSNS_PIN = 0 [11:30:15]*** Brake cut motor [11:30:15]Read from MH i2c: 01 [11:30:15]MH_I2C_Read... [11:30:15]*** Stop cut motor [11:30:15]*** Cut end [11:30:15]Read from MH i2c: 01 07 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: 01 07 00 0E 13 00 00 00 00 00 FF 0F 36 [11:30:15]process_action close_receipt done [11:30:15]requested_data is exist [11:30:15]produce_requested_data [11:30:15]requested_item fm.sn is exist - process it [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 11 00 00 [11:30:15]Write to MH i2c: E2 08 00 0F 13 80 11 00 00 00 00 00 00 9C [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 17 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 17 00 0F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EE [11:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:30:15]wFMCommunicate OK [11:30:15]requested_item fd.num is exist - process it [11:30:15]SAM_PROTO_GetFieldsCounters [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 13 00 00 [11:30:15]Write to MH i2c: E2 08 00 10 13 80 13 00 00 00 00 00 00 9F [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 62 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 62 00 10 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 E1 F9 00 00 0E 04 04 00 76 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 B5 [11:30: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 E1 F9 00 00 0E 04 04 00 76 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 [11:30:15]wFMCommunicate OK [11:30:15]SAM_PROTO_GetFieldsCounters done [11:30:15]requested_item shift.num is exist - process it [11:30:15]requested_item shift.opened is exist - process it [11:30:15]req_shift_opened [11:30:15]FM_GetShiftState [11:30:15]SAM_PROTO_GetShiftState [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 13 01 00 [11:30:15]Write to MH i2c: E2 08 00 11 13 80 13 01 00 00 00 00 00 A1 [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 0E 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 0E 00 11 13 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 41 [11:30:15]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:30:15]wFMCommunicate OK [11:30:15]SAM_PROTO_GetShiftState done [11:30:15]FM_GetShiftState done [11:30:15]req_shift_opened done [11:30:15]requested_item shift.open_date is exist - process it [11:30:15]req_shift_open_date [11:30:15]req_shift_open_date done [11:30:15]produce_requested_data done [11:30:15]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63969,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [11:30:15]process_action_free close_receipt [11:30:15]json_value_free [11:30:15]json_value_free done [11:30:15]process_json_proto returns [11:30:15]Send response to host [11:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63969,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [11:30:15]free response buf [11:30:15]execute_script done [11:30:15]execute_script returns [11:30:15]free content buf [11:30:15]Sock 9.Close socket [11:30:15]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:30]accept exits with 7 [11:34:30]New connection [11:34:30]New thread 3066912100 created [11:34:30]Thread 3067055460 joined [11:34:30]Waiting for new connection... [11:34:30] Sock 7.Parse request [11:34:30]Sock 7.Check first char [11:34:30]Sock 7.First char is OK [11:34:30]request: POST /json_proto HTTP/1.0 [11:34:30]Method: POST [11:34:30]URL: /json_proto [11:34:30]Method is POST - this is cgi request [11:34:30]url: /json_proto [11:34:30]query_string will be loaded in cgi processing [11:34:30]execute_cgi json_proto POST (null) [11:34:30]execute_cgi path=json_proto method=POST [11:34:30]POST find Content-Length [11:34:30]Host: 172.17.60.69:8080 [11:34:30]Content-Length: 620 [11:34:30]Content-Type: application/json [11:34:30] [11:34:30]POST finish read [11:34:30]Found Content-Length = 620 [11:34:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73531", "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" ] } } [11:34:30]execute_script... [11:34: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)73531", "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" ] } } [11:34:30]POST & json_proto [11:34:30]process_json_proto [11:34:30]json parsed OK: [11:34:30]protocol is kg_v1.0 [11:34:30]action value=close_receipt [11:34:30]process_action close_receipt [11:34:30]cmd_close_receipt [11:34:30]MH_GetDate [11:34:30]Write to MH i2c: F0 00 00 12 13 14 [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: F0 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: F0 09 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: F0 09 00 12 13 00 C9 FB 5E 66 6A 96 4A 66 55 [11:34:30]GetLastDocTimeStamp 1717500614 [11:34:30]current date 1717500873 [11:34:30]FM_GetShiftState [11:34:30]SAM_PROTO_GetShiftState [11:34:30]wFMCommunicate request_size=4 [11:34:30]MH_SAM_APDU [11:34:30]CAPDU: 80 13 01 00 [11:34:30]Write to MH i2c: E2 08 00 13 13 80 13 01 00 00 00 00 00 A3 [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:30]Read from MH i2c: E2 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 0E 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: E2 0E 00 13 13 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 43 [11:34:30]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:34:30]wFMCommunicate OK [11:34:30]SAM_PROTO_GetShiftState done [11:34:30]FM_GetShiftState done [11:34:30]opened in 1717459574 [11:34:30]opened+sec_in_day 1717545974 [11:34:30]quantity*price = 14000 [11:34:30]sum+1 = 14001 [11:34:30]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 СНО: Общий режим Чек 55 04.06.2024 11:34 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63970 ФПД: 3391215160746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113433&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63970&fm=3391215160746&tin=02508201610067®Number=0000000000092737&sum=14000 0 [11:34:31]StoreToDocumentArchive [11:34:31]shift 374 fd 63970 [11:34:31]save to /storage/0374/doc_00063970 [11:34:31]save last doc name /storage/0374/doc_00063970 to /storage/kkm_last_doc_name [11:34:31]save OK [11:34:31]Clear old archive folders... [11:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:34:31]tlvbuf is 012CB450 [11:34:31]SAM_PROTO_ClearQueue [11:34:31]wFMCommunicate request_size=4 [11:34:31]MH_SAM_APDU [11:34:31]CAPDU: 80 09 00 00 [11:34:31]Write to MH i2c: E2 08 00 20 13 80 09 00 00 00 00 00 00 A5 [11:34:31]Write i2c OK [11:34:31]MH_I2C_Read... [11:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:31]Read from MH i2c: E2 [11:34:31]MH_I2C_Read... [11:34:31]Read from MH i2c: E2 03 00 [11:34:31]MH_I2C_Read... [11:34:31]Read from MH i2c: E2 03 00 20 13 00 90 00 A7 [11:34:31]RAPDU: 90 00 [11:34:31]wFMCommunicate OK [11:34:31]SAM_PROTO_ClearQueue done [11:34:31]KKMCreateOFDPacket [11:34:31]OFDProtocolAddRootSTLVToBuf [11:34:31]FM_MakeSignedData [11:34:31]FM_MakeSignedData [11:34:31]SAM_PROTO_SignData [11:34:31]wFMCommunicate request_size=4 [11:34:31]MH_SAM_APDU [11:34:31]CAPDU: 80 0D 01 02 [11:34:31]Write to MH i2c: E2 08 00 21 13 80 0D 01 02 00 00 00 00 AD [11:34:31]Write i2c OK [11:34:31]MH_I2C_Read... [11:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:32]Read from MH i2c: E2 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 21 13 00 90 00 A8 [11:34:32]RAPDU: 90 00 [11:34:32]wFMCommunicate OK [11:34:32]wFMCommunicate request_size=255 [11:34:32]MH_SAM_APDU [11:34: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 37 00 00 00 F4 03 04 00 C9 FB 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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:34:32]Write to MH i2c: E2 02 01 22 13 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 37 00 00 00 F4 03 04 00 C9 FB 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 DB [11:34:32]Write i2c OK [11:34:32]MH_I2C_Read... [11:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:32]Read from MH i2c: E2 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 22 13 00 90 00 A9 [11:34:32]RAPDU: 90 00 [11:34:32]wFMCommunicate OK [11:34:32]wFMCommunicate request_size=32 [11:34:32]MH_SAM_APDU [11:34:32]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 E2 F9 00 00 35 04 06 00 03 15 94 2C CD AA [11:34:32]Write to MH i2c: E2 23 00 23 13 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 E2 F9 00 00 35 04 06 00 03 15 94 2C CD AA 00 00 36 [11:34:32]Write i2c OK [11:34:32]MH_I2C_Read... [11:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:32]Read from MH i2c: E2 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 03 00 23 13 00 90 00 AA [11:34:32]RAPDU: 90 00 [11:34:32]wFMCommunicate OK [11:34:32]wFMCommunicate request_size=4 [11:34:32]MH_SAM_APDU [11:34:32]CAPDU: 80 0D 03 02 [11:34:32]Write to MH i2c: E2 08 00 24 13 80 0D 03 02 00 00 00 00 B2 [11:34:32]Write i2c OK [11:34:32]MH_I2C_Read... [11:34:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:32]Read from MH i2c: E2 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 0B 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 0B 00 24 13 00 9E A9 87 B2 7B ED A7 9C 90 00 DE [11:34:32]RAPDU: 9E A9 87 B2 7B ED A7 9C 90 00 [11:34:32]wFMCommunicate OK [11:34:32]SAM_PROTO_SignData done [11:34:32]FM_MakeSignedData done [11:34:32]CreateOFDProtocolMessage [11:34:32]wFMCommunicate request_size=4 [11:34:32]MH_SAM_APDU [11:34:32]CAPDU: 80 11 00 00 [11:34:32]Write to MH i2c: E2 08 00 25 13 80 11 00 00 00 00 00 00 B2 [11:34:32]Write i2c OK [11:34:32]MH_I2C_Read... [11:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:32]Read from MH i2c: E2 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 17 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: E2 17 00 25 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 04 [11:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:34:32]wFMCommunicate OK [11:34:32]CreateOFDProtocolMessage done [11:34:32]OFDSenderStorePacket 63970 [11:34:32]StoreOFDPacket docnum=63970 [11:34: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 25 01 00 00 F0 CD 1D 01 C3 64 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 37 00 00 00 F4 03 04 00 C9 FB 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E2 F9 00 00 35 04 06 00 03 15 94 2C CD AA 9E A9 87 B2 7B ED A7 9C [11:34:32]CheckFolder [11:34:32]dirname=/storage/ofd_packets [11:34:32]CheckFolder done [11:34:32]ProducePacketName [11:34:32]name=ofd_packets/00063970 [11:34:32]NVStorageSaveData ofd_packets/00063970 [11:34:32]File name is /storage/ofd_packets/00063970 [11:34:32]Write 323 bytes [11:34:32]NVStorageSaveData done [11:34:32]OFDSenderStorePacket done [11:34:32]KKMCreateOFDPacket done [11:34:32]NVStorageSaveData kkm_last_timestamp [11:34:32]File name is /storage/kkm_last_timestamp [11:34:32]Write 4 bytes [11:34:32]NVStorageSaveData done [11:34:32]ExternCall_PrintAddStr [11:34:32]wPrintStart [11:34:32]Write to MH i2c: 01 00 00 26 13 39 [11:34:32]Write i2c OK [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: 01 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: 01 07 00 [11:34:32]MH_I2C_Read... [11:34:32]Read from MH i2c: 01 07 00 26 13 00 00 00 00 00 FF 0F 4E [11:34:32]RasterBufferAndPrint [11:34:32]line Счет N : (3)73531 [11:34:32]line ИНН: 02508201610067 [11:34:32]line Контрольно-Кассовый Чек [11:34:32]line ПРОДАЖА [11:34:32]line Товар: 48743570 [11:34:32]line Сигареты Winston XStyle Blue [11:34:32]line 1.000 * 140.00 [11:34:32]line = 140.00 [11:34:32]line НДС 12% НСП 1% [11:34:32]line > о реализуемом товаре [11:34:32]line ИТОГО: 140.00 [11:34:32]line НСП 1% : 1.24 [11:34:32]line НДС 12% : 14.87 [11:34:32]line Наличными: 140.00 [11:34:32]line Безнал.: 0.00 [11:34:32]line Место: АЗС № 117 "Партнер Нефть" [11:34:32]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:34:32]line СНО: Общий режим [11:34:32]line Чек 55 04.06.2024 11:34 [11:34:32]line Смена: 374 ФФД: 1.0 [11:34:32]line ЗНМ: 0300000031 [11:34:32]line РНМ: 0000000000092737 [11:34:32]line Версия ККМ: 001 [11:34:32]line ФМ: 0000000000875074 [11:34:32]line ФД: 63970 [11:34:32]line ФПД: 3391215160746 [11:34:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T113433&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63970&fm=3391215160746&tin=02508201610067®Number=0000000000092737&sum=14000 [11:34:32]line 0 [11:34:32]OFD Sender: Processing packet 63970 [packets to send 14, broken 13] [11:34:32]ProducePacketName [11:34:32]name=ofd_packets/00063970 [11:34:32]OFD Sender: To server: pG, [11:34:32]CommunicateWithHost lk.salyk.kg:30040 [11:34:32]ConnectInit lk.salyk.kg [11:34:32]written 0, free lines is 4095 [11:34:32]Connected sock=10 [11:34: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 25 01 00 00 F0 CD 1D 01 C3 64 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 37 00 00 00 F4 03 04 00 C9 FB 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E2 F9 00 00 35 04 06 00 03 15 94 2C CD AA 9E A9 87 B2 7B ED A7 9C [11:34: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 AB 89 47 00 AA 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E2 F9 00 00 F4 03 04 00 97 A7 5E 66 B6 04 01 00 00 71 42 C4 D6 CB 28 FE 79 [11:34:32]CommunicateWithHost err = 0 [11:34:32]CheckOFDResponse [11:34:32]1017 (14) - 77093643461234 [11:34:33]1041 (16) - 0000000000875074 [11:34:33]1040 (4) - 63970 [11:34:33]1012 (4) - 04.06.2024 05:35 [11:34:33]1206 (1) - 0 [11:34:33]OFD Sender: Remove packet 63970 [11:34:33]ProducePacketName [11:34:33]name=ofd_packets/00063970 [11:34:33]NVStorageDeleteData [11:34:33]Write to MH i2c: 01 00 00 4E 13 61 [11:34:33]Write i2c OK [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: 01 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: 01 07 00 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 E7 0C 5B [11:34:33]RasterBufferAndPrint [11:34:33]line [11:34:33]line [11:34:33]line [11:34:33]line [11:34:33]line [11:34:33]written 0, free lines is 3310 [11:34:33]MH_Cut [11:34:33]Write to MH i2c: D1 01 00 55 13 01 3A [11:34:33]Write i2c OK [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: D1 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: D1 01 00 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: D1 01 00 55 13 00 39 [11:34:33]Write to MH i2c: 01 00 00 56 13 69 [11:34:33]Write i2c OK [11:34:33]MH_I2C_Read... [11:34:33]OFD Sender: No OFD packet to send [11:34:33]*** Cut start [11:34:33]*** Partial cut [11:34:33]*** CUTSNS_PIN = 1 [11:34:33]*** CUTSNS_PIN = 0 [11:34:34]*** Brake cut motor [11:34:34]Read from MH i2c: 01 [11:34:34]MH_I2C_Read... [11:34:34]*** Stop cut motor [11:34:34]*** Cut end [11:34:34]Read from MH i2c: 01 07 00 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: 01 07 00 56 13 00 00 00 00 00 FF 0F 7E [11:34:34]process_action close_receipt done [11:34:34]requested_data is exist [11:34:34]produce_requested_data [11:34:34]requested_item fm.sn is exist - process it [11:34:34]wFMCommunicate request_size=4 [11:34:34]MH_SAM_APDU [11:34:34]CAPDU: 80 11 00 00 [11:34:34]Write to MH i2c: E2 08 00 57 13 80 11 00 00 00 00 00 00 E4 [11:34:34]Write i2c OK [11:34:34]MH_I2C_Read... [11:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:34]Read from MH i2c: E2 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 17 00 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 17 00 57 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 36 [11:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:34:34]wFMCommunicate OK [11:34:34]requested_item fd.num is exist - process it [11:34:34]SAM_PROTO_GetFieldsCounters [11:34:34]wFMCommunicate request_size=4 [11:34:34]MH_SAM_APDU [11:34:34]CAPDU: 80 13 00 00 [11:34:34]Write to MH i2c: E2 08 00 58 13 80 13 00 00 00 00 00 00 E7 [11:34:34]Write i2c OK [11:34:34]MH_I2C_Read... [11:34:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:34]Read from MH i2c: E2 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 62 00 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 62 00 58 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 E2 F9 00 00 0E 04 04 00 76 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 01 [11:34: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 E2 F9 00 00 0E 04 04 00 76 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 [11:34:34]wFMCommunicate OK [11:34:34]SAM_PROTO_GetFieldsCounters done [11:34:34]requested_item shift.num is exist - process it [11:34:34]requested_item shift.opened is exist - process it [11:34:34]req_shift_opened [11:34:34]FM_GetShiftState [11:34:34]SAM_PROTO_GetShiftState [11:34:34]wFMCommunicate request_size=4 [11:34:34]MH_SAM_APDU [11:34:34]CAPDU: 80 13 01 00 [11:34:34]Write to MH i2c: E2 08 00 59 13 80 13 01 00 00 00 00 00 E9 [11:34:34]Write i2c OK [11:34:34]MH_I2C_Read... [11:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:34]Read from MH i2c: E2 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 0E 00 [11:34:34]MH_I2C_Read... [11:34:34]Read from MH i2c: E2 0E 00 59 13 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 89 [11:34:34]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:34:34]wFMCommunicate OK [11:34:34]SAM_PROTO_GetShiftState done [11:34:34]FM_GetShiftState done [11:34:34]req_shift_opened done [11:34:34]requested_item shift.open_date is exist - process it [11:34:34]req_shift_open_date [11:34:34]req_shift_open_date done [11:34:34]produce_requested_data done [11:34:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63970,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [11:34:34]process_action_free close_receipt [11:34:34]json_value_free [11:34:34]json_value_free done [11:34:34]process_json_proto returns [11:34:34]Send response to host [11:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63970,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [11:34:34]free response buf [11:34:34]execute_script done [11:34:34]execute_script returns [11:34:34]free content buf [11:34:34]Sock 7.Close socket [11:34:34]Sock 7.Thread stoped [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [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:17]accept exits with 9 [11:42:17]New connection [11:42:17]New thread 3067055460 created [11:42:17]Thread 3066912100 joined [11:42:17]Waiting for new connection... [11:42:17] Sock 9.Parse request [11:42:17]Sock 9.Check first char [11:42:17]Sock 9.First char is OK [11:42:17]request: POST /json_proto HTTP/1.0 [11:42:17]Method: POST [11:42:17]URL: /json_proto [11:42:17]Method is POST - this is cgi request [11:42:17]url: /json_proto [11:42:17]query_string will be loaded in cgi processing [11:42:17]execute_cgi json_proto POST (null) [11:42:17]execute_cgi path=json_proto method=POST [11:42:17]POST find Content-Length [11:42:17]Host: 172.17.60.69:8080 [11:42:17]Content-Length: 623 [11:42:17]Content-Type: application/json [11:42:17] [11:42:17]POST finish read [11:42:17]Found Content-Length = 623 [11:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73532", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:17]execute_script... [11:42: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)73532", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:17]POST & json_proto [11:42:17]process_json_proto [11:42:17]json parsed OK: [11:42:17]protocol is kg_v1.0 [11:42:17]action value=close_receipt [11:42:17]process_action close_receipt [11:42:17]cmd_close_receipt [11:42:17]MH_GetDate [11:42:17]Write to MH i2c: F0 00 00 5A 13 5C [11:42:17]Write i2c OK [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: F0 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: F0 09 00 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: F0 09 00 5A 13 00 9C FD 5E 66 6A 96 4A 66 72 [11:42:17]GetLastDocTimeStamp 1717500873 [11:42:17]current date 1717501340 [11:42:17]FM_GetShiftState [11:42:17]SAM_PROTO_GetShiftState [11:42:17]wFMCommunicate request_size=4 [11:42:17]MH_SAM_APDU [11:42:17]CAPDU: 80 13 01 00 [11:42:17]Write to MH i2c: E2 08 00 5B 13 80 13 01 00 00 00 00 00 EB [11:42:17]Write i2c OK [11:42:17]MH_I2C_Read... [11:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:17]Read from MH i2c: E2 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 0E 00 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 0E 00 5B 13 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 8B [11:42:17]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:42:17]wFMCommunicate OK [11:42:17]SAM_PROTO_GetShiftState done [11:42:17]FM_GetShiftState done [11:42:17]opened in 1717459574 [11:42:17]opened+sec_in_day 1717545974 [11:42:17]quantity*price = 14300 [11:42:17]sum+1 = 14301 [11:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 56 04.06.2024 11:42 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63971 ФПД: 108737152376345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114220&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63971&fm=108737152376345&tin=02508201610067®Number=0000000000092737&sum=14300 0 [11:42:18]StoreToDocumentArchive [11:42:18]shift 374 fd 63971 [11:42:18]save to /storage/0374/doc_00063971 [11:42:18]save last doc name /storage/0374/doc_00063971 to /storage/kkm_last_doc_name [11:42:18]save OK [11:42:18]Clear old archive folders... [11:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:42:18]tlvbuf is 012CB210 [11:42:18]SAM_PROTO_ClearQueue [11:42:18]wFMCommunicate request_size=4 [11:42:18]MH_SAM_APDU [11:42:18]CAPDU: 80 09 00 00 [11:42:18]Write to MH i2c: E2 08 00 68 13 80 09 00 00 00 00 00 00 ED [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [11:42:19]RAPDU: 90 00 [11:42:19]wFMCommunicate OK [11:42:19]SAM_PROTO_ClearQueue done [11:42:19]KKMCreateOFDPacket [11:42:19]OFDProtocolAddRootSTLVToBuf [11:42:19]FM_MakeSignedData [11:42:19]FM_MakeSignedData [11:42:19]SAM_PROTO_SignData [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 0D 01 02 [11:42:19]Write to MH i2c: E2 08 00 69 13 80 0D 01 02 00 00 00 00 F5 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [11:42:19]RAPDU: 90 00 [11:42:19]wFMCommunicate OK [11:42:19]wFMCommunicate request_size=255 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 9C FD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [11:42:19]Write to MH i2c: E2 02 01 6A 13 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 9C FD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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 53 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 6A 13 00 90 00 F1 [11:42:19]RAPDU: 90 00 [11:42:19]wFMCommunicate OK [11:42:19]wFMCommunicate request_size=35 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E3 F9 00 00 35 04 06 00 62 E5 57 57 5E 19 [11:42:19]Write to MH i2c: E2 26 00 6B 13 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E3 F9 00 00 35 04 06 00 62 E5 57 57 5E 19 00 00 32 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 03 00 6B 13 00 90 00 F2 [11:42:19]RAPDU: 90 00 [11:42:19]wFMCommunicate OK [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 0D 03 02 [11:42:19]Write to MH i2c: E2 08 00 6C 13 80 0D 03 02 00 00 00 00 FA [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0B 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0B 00 6C 13 00 8A 34 63 3F D3 B3 EF D3 90 00 A3 [11:42:19]RAPDU: 8A 34 63 3F D3 B3 EF D3 90 00 [11:42:19]wFMCommunicate OK [11:42:19]SAM_PROTO_SignData done [11:42:19]FM_MakeSignedData done [11:42:19]CreateOFDProtocolMessage [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 11 00 00 [11:42:19]Write to MH i2c: E2 08 00 6D 13 80 11 00 00 00 00 00 00 FA [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 17 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 17 00 6D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4C [11:42: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:42:19]wFMCommunicate OK [11:42:19]CreateOFDProtocolMessage done [11:42:19]OFDSenderStorePacket 63971 [11:42:19]StoreOFDPacket docnum=63971 [11:42: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 28 01 00 00 73 79 20 01 67 8C 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 9C FD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E3 F9 00 00 35 04 06 00 62 E5 57 57 5E 19 8A 34 63 3F D3 B3 EF D3 [11:42:19]CheckFolder [11:42:19]dirname=/storage/ofd_packets [11:42:19]CheckFolder done [11:42:19]ProducePacketName [11:42:19]name=ofd_packets/00063971 [11:42:19]NVStorageSaveData ofd_packets/00063971 [11:42:19]File name is /storage/ofd_packets/00063971 [11:42:19]Write 326 bytes [11:42:19]NVStorageSaveData done [11:42:19]OFDSenderStorePacket done [11:42:19]KKMCreateOFDPacket done [11:42:19]NVStorageSaveData kkm_last_timestamp [11:42:19]File name is /storage/kkm_last_timestamp [11:42:19]Write 4 bytes [11:42:19]NVStorageSaveData done [11:42:19]ExternCall_PrintAddStr [11:42:19]wPrintStart [11:42:19]Write to MH i2c: 01 00 00 6E 13 81 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 07 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 07 00 6E 13 00 00 00 00 00 FF 0F 96 [11:42:19]RasterBufferAndPrint [11:42:19]line Счет N : (3)73532 [11:42:19]line ИНН: 02508201610067 [11:42:19]line Контрольно-Кассовый Чек [11:42:19]line ПРОДАЖА [11:42:19]line Товар: 48744683 [11:42:19]line Сигареты Winston XStyle Caster+ [11:42:19]line 1.000 * 143.00 [11:42:19]line = 143.00 [11:42:19]line НДС 12% НСП 1% [11:42:19]line > о реализуемом товаре [11:42:19]line ИТОГО: 143.00 [11:42:19]line НСП 1% : 1.26 [11:42:19]line НДС 12% : 15.19 [11:42:19]line Наличными: 143.00 [11:42:19]line Безнал.: 0.00 [11:42:19]line Место: АЗС № 117 "Партнер Нефть" [11:42:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:42:19]line СНО: Общий режим [11:42:19]line Чек 56 04.06.2024 11:42 [11:42:19]line Смена: 374 ФФД: 1.0 [11:42:19]line ЗНМ: 0300000031 [11:42:19]line РНМ: 0000000000092737 [11:42:19]line Версия ККМ: 001 [11:42:19]line ФМ: 0000000000875074 [11:42:19]line ФД: 63971 [11:42:19]line ФПД: 108737152376345 [11:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T114220&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63971&fm=108737152376345&tin=02508201610067®Number=0000000000092737&sum=14300 [11:42:19]line 0 [11:42:19]OFD Sender: Processing packet 63971 [packets to send 14, broken 13] [11:42:19]ProducePacketName [11:42:19]name=ofd_packets/00063971 [11:42:19]OFD Sender: To server: pG, [11:42:19]CommunicateWithHost lk.salyk.kg:30040 [11:42:19]ConnectInit lk.salyk.kg [11:42:19]written 0, free lines is 4095 [11:42:19]Connected sock=10 [11:42: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 28 01 00 00 73 79 20 01 67 8C 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 9C FD 5E 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E3 F9 00 00 35 04 06 00 62 E5 57 57 5E 19 8A 34 63 3F D3 B3 EF D3 [11:42: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 30 D4 47 00 57 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E3 F9 00 00 F4 03 04 00 6A A9 5E 66 B6 04 01 00 00 78 F6 41 2E 83 5A AE 72 [11:42:20]CommunicateWithHost err = 0 [11:42:20]CheckOFDResponse [11:42:20]1017 (14) - 77093643461234 [11:42:20]1041 (16) - 0000000000875074 [11:42:20]1040 (4) - 63971 [11:42:20]1012 (4) - 04.06.2024 05:43 [11:42:20]1206 (1) - 0 [11:42:20]OFD Sender: Remove packet 63971 [11:42:20]ProducePacketName [11:42:20]name=ofd_packets/00063971 [11:42:20]NVStorageDeleteData [11:42:20]Write to MH i2c: 01 00 00 97 13 AA [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: 01 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: 01 07 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: 01 07 00 97 13 00 00 00 00 00 DE 0C 9B [11:42:20]RasterBufferAndPrint [11:42:20]line [11:42:20]line [11:42:20]line [11:42:20]line [11:42:20]line [11:42:20]written 0, free lines is 3300 [11:42:20]MH_Cut [11:42:20]Write to MH i2c: D1 01 00 9E 13 01 83 [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: D1 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: D1 01 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: D1 01 00 9E 13 00 82 [11:42:20]Write to MH i2c: 01 00 00 9F 13 B2 [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]OFD Sender: No OFD packet to send [11:42:21]*** Cut start [11:42:21]*** Partial cut [11:42:21]*** CUTSNS_PIN = 1 [11:42:21]*** CUTSNS_PIN = 0 [11:42:21]*** Brake cut motor [11:42:21]Read from MH i2c: 01 [11:42:21]MH_I2C_Read... [11:42:21]*** Stop cut motor [11:42:21]*** Cut end [11:42:21]Read from MH i2c: 01 07 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 07 00 9F 13 00 00 00 00 00 FF 0F C7 [11:42:21]process_action close_receipt done [11:42:21]requested_data is exist [11:42:21]produce_requested_data [11:42:21]requested_item fm.sn is exist - process it [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 11 00 00 [11:42:21]Write to MH i2c: E2 08 00 A0 13 80 11 00 00 00 00 00 00 2D [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 17 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 17 00 A0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7F [11:42: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:42:21]wFMCommunicate OK [11:42:21]requested_item fd.num is exist - process it [11:42:21]SAM_PROTO_GetFieldsCounters [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 13 00 00 [11:42:21]Write to MH i2c: E2 08 00 A1 13 80 13 00 00 00 00 00 00 30 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 62 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 62 00 A1 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 E3 F9 00 00 0E 04 04 00 76 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 4E [11:42: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 E3 F9 00 00 0E 04 04 00 76 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 [11:42:21]wFMCommunicate OK [11:42:21]SAM_PROTO_GetFieldsCounters done [11:42:21]requested_item shift.num is exist - process it [11:42:21]requested_item shift.opened is exist - process it [11:42:21]req_shift_opened [11:42:21]FM_GetShiftState [11:42:21]SAM_PROTO_GetShiftState [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 13 01 00 [11:42:21]Write to MH i2c: E2 08 00 A2 13 80 13 01 00 00 00 00 00 32 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:22]Read from MH i2c: E2 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 0E 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 0E 00 A2 13 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D2 [11:42:22]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:42:22]wFMCommunicate OK [11:42:22]SAM_PROTO_GetShiftState done [11:42:22]FM_GetShiftState done [11:42:22]req_shift_opened done [11:42:22]requested_item shift.open_date is exist - process it [11:42:22]req_shift_open_date [11:42:22]req_shift_open_date done [11:42:22]produce_requested_data done [11:42:22]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63971,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [11:42:22]process_action_free close_receipt [11:42:22]json_value_free [11:42:22]json_value_free done [11:42:22]process_json_proto returns [11:42:22]Send response to host [11:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63971,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [11:42:22]free response buf [11:42:22]execute_script done [11:42:22]execute_script returns [11:42:22]free content buf [11:42:22]Sock 9.Close socket [11:42:22]Sock 9.Thread stoped [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:51]accept exits with 7 [11:58:51]New connection [11:58:51]New thread 3066912100 created [11:58:51]Thread 3067055460 joined [11:58:51]Waiting for new connection... [11:58:51] Sock 7.Parse request [11:58:51]Sock 7.Check first char [11:58:51]Sock 7.First char is OK [11:58:51]request: POST /json_proto HTTP/1.0 [11:58:51]Method: POST [11:58:51]URL: /json_proto [11:58:51]Method is POST - this is cgi request [11:58:51]url: /json_proto [11:58:51]query_string will be loaded in cgi processing [11:58:51]execute_cgi json_proto POST (null) [11:58:51]execute_cgi path=json_proto method=POST [11:58:51]POST find Content-Length [11:58:51]Host: 172.17.60.69:8080 [11:58:51]Content-Length: 620 [11:58:51]Content-Type: application/json [11:58:51] [11:58:51]POST finish read [11:58:51]Found Content-Length = 620 [11:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73533", "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" ] } } [11:58:51]execute_script... [11:58: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)73533", "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" ] } } [11:58:51]POST & json_proto [11:58:51]process_json_proto [11:58:51]json parsed OK: [11:58:51]protocol is kg_v1.0 [11:58:51]action value=close_receipt [11:58:51]process_action close_receipt [11:58:51]cmd_close_receipt [11:58:51]MH_GetDate [11:58:51]Write to MH i2c: F0 00 00 A3 13 A5 [11:58:51]Write i2c OK [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: F0 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: F0 09 00 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: F0 09 00 A3 13 00 7E 01 5F 66 6A 96 4A 66 A2 [11:58:51]GetLastDocTimeStamp 1717501340 [11:58:51]current date 1717502334 [11:58:51]FM_GetShiftState [11:58:51]SAM_PROTO_GetShiftState [11:58:51]wFMCommunicate request_size=4 [11:58:51]MH_SAM_APDU [11:58:51]CAPDU: 80 13 01 00 [11:58:51]Write to MH i2c: E2 08 00 A4 13 80 13 01 00 00 00 00 00 34 [11:58:51]Write i2c OK [11:58:51]MH_I2C_Read... [11:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:51]Read from MH i2c: E2 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 0E 00 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 0E 00 A4 13 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D4 [11:58:51]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:58:51]wFMCommunicate OK [11:58:51]SAM_PROTO_GetShiftState done [11:58:51]FM_GetShiftState done [11:58:51]opened in 1717459574 [11:58:51]opened+sec_in_day 1717545974 [11:58:51]quantity*price = 14000 [11:58:51]sum+1 = 14001 [11:58:51]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 СНО: Общий режим Чек 57 04.06.2024 11:58 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63972 ФПД: 166835240061830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115854&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63972&fm=166835240061830&tin=02508201610067®Number=0000000000092737&sum=14000 0 [11:58:52]StoreToDocumentArchive [11:58:52]shift 374 fd 63972 [11:58:52]save to /storage/0374/doc_00063972 [11:58:52]save last doc name /storage/0374/doc_00063972 to /storage/kkm_last_doc_name [11:58:52]save OK [11:58:52]Clear old archive folders... [11:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:58:52]tlvbuf is 01299EA0 [11:58:52]SAM_PROTO_ClearQueue [11:58:52]wFMCommunicate request_size=4 [11:58:52]MH_SAM_APDU [11:58:52]CAPDU: 80 09 00 00 [11:58:52]Write to MH i2c: E2 08 00 B1 13 80 09 00 00 00 00 00 00 36 [11:58:52]Write i2c OK [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 [11:58:52]MH_I2C_Read... [11:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:52]Read from MH i2c: E2 03 00 [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [11:58:52]RAPDU: 90 00 [11:58:52]wFMCommunicate OK [11:58:52]SAM_PROTO_ClearQueue done [11:58:52]KKMCreateOFDPacket [11:58:52]OFDProtocolAddRootSTLVToBuf [11:58:52]FM_MakeSignedData [11:58:52]FM_MakeSignedData [11:58:52]SAM_PROTO_SignData [11:58:52]wFMCommunicate request_size=4 [11:58:52]MH_SAM_APDU [11:58:52]CAPDU: 80 0D 01 02 [11:58:52]Write to MH i2c: E2 08 00 B2 13 80 0D 01 02 00 00 00 00 3E [11:58:52]Write i2c OK [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 [11:58:52]MH_I2C_Read... [11:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:52]Read from MH i2c: E2 03 00 [11:58:52]MH_I2C_Read... [11:58:52]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [11:58:52]RAPDU: 90 00 [11:58:52]wFMCommunicate OK [11:58:52]wFMCommunicate request_size=255 [11:58:52]MH_SAM_APDU [11:58:52]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 39 00 00 00 F4 03 04 00 7E 01 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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:58:52]Write to MH i2c: E2 02 01 B3 13 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 39 00 00 00 F4 03 04 00 7E 01 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 2A [11:58:52]Write i2c OK [11:58:52]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [11:58:53]RAPDU: 90 00 [11:58:53]wFMCommunicate OK [11:58:53]wFMCommunicate request_size=32 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 E4 F9 00 00 35 04 06 00 97 BC 5B 38 4B 86 [11:58:53]Write to MH i2c: E2 23 00 B4 13 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 E4 F9 00 00 35 04 06 00 97 BC 5B 38 4B 86 00 00 31 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 B4 13 00 90 00 3B [11:58:53]RAPDU: 90 00 [11:58:53]wFMCommunicate OK [11:58:53]wFMCommunicate request_size=4 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 0D 03 02 [11:58:53]Write to MH i2c: E2 08 00 B5 13 80 0D 03 02 00 00 00 00 43 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 0B 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 0B 00 B5 13 00 AE E4 F9 EE FE 4F 7D BA 90 00 41 [11:58:53]RAPDU: AE E4 F9 EE FE 4F 7D BA 90 00 [11:58:53]wFMCommunicate OK [11:58:53]SAM_PROTO_SignData done [11:58:53]FM_MakeSignedData done [11:58:53]CreateOFDProtocolMessage [11:58:53]wFMCommunicate request_size=4 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 11 00 00 [11:58:53]Write to MH i2c: E2 08 00 B6 13 80 11 00 00 00 00 00 00 43 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 17 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 17 00 B6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 95 [11:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:58:53]wFMCommunicate OK [11:58:53]CreateOFDProtocolMessage done [11:58:53]OFDSenderStorePacket 63972 [11:58:53]StoreOFDPacket docnum=63972 [11:58: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 25 01 00 00 BA DD 1D 01 56 36 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 39 00 00 00 F4 03 04 00 7E 01 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E4 F9 00 00 35 04 06 00 97 BC 5B 38 4B 86 AE E4 F9 EE FE 4F 7D BA [11:58:53]CheckFolder [11:58:53]dirname=/storage/ofd_packets [11:58:53]CheckFolder done [11:58:53]ProducePacketName [11:58:53]name=ofd_packets/00063972 [11:58:53]NVStorageSaveData ofd_packets/00063972 [11:58:53]File name is /storage/ofd_packets/00063972 [11:58:53]Write 323 bytes [11:58:53]NVStorageSaveData done [11:58:53]OFDSenderStorePacket done [11:58:53]KKMCreateOFDPacket done [11:58:53]NVStorageSaveData kkm_last_timestamp [11:58:53]File name is /storage/kkm_last_timestamp [11:58:53]Write 4 bytes [11:58:53]NVStorageSaveData done [11:58:53]ExternCall_PrintAddStr [11:58:53]wPrintStart [11:58:53]Write to MH i2c: 01 00 00 B7 13 CA [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: 01 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: 01 07 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: 01 07 00 B7 13 00 00 00 00 00 FF 0F DF [11:58:53]RasterBufferAndPrint [11:58:53]line Счет N : (3)73533 [11:58:53]line ИНН: 02508201610067 [11:58:53]line Контрольно-Кассовый Чек [11:58:53]line ПРОДАЖА [11:58:53]line Товар: 48743570 [11:58:53]line Сигареты Winston XStyle Blue [11:58:53]line 1.000 * 140.00 [11:58:53]line = 140.00 [11:58:53]line НДС 12% НСП 1% [11:58:53]line > о реализуемом товаре [11:58:53]line ИТОГО: 140.00 [11:58:53]line НСП 1% : 1.24 [11:58:53]line НДС 12% : 14.87 [11:58:53]line Наличными: 140.00 [11:58:53]line Безнал.: 0.00 [11:58:53]line Место: АЗС № 117 "Партнер Нефть" [11:58:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [11:58:53]line СНО: Общий режим [11:58:53]line Чек 57 04.06.2024 11:58 [11:58:53]line Смена: 374 ФФД: 1.0 [11:58:53]line ЗНМ: 0300000031 [11:58:53]line РНМ: 0000000000092737 [11:58:53]line Версия ККМ: 001 [11:58:53]line ФМ: 0000000000875074 [11:58:53]line ФД: 63972 [11:58:53]line ФПД: 166835240061830 [11:58:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T115854&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63972&fm=166835240061830&tin=02508201610067®Number=0000000000092737&sum=14000 [11:58:53]line 0 [11:58:53]written 0, free lines is 4095 [11:58:53]OFD Sender: Processing packet 63972 [packets to send 14, broken 13] [11:58:53]ProducePacketName [11:58:53]name=ofd_packets/00063972 [11:58:53]OFD Sender: To server: pG, [11:58:53]CommunicateWithHost lk.salyk.kg:30040 [11:58:53]ConnectInit lk.salyk.kg [11:58:53]Connected sock=10 [11:58: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 25 01 00 00 BA DD 1D 01 56 36 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 39 00 00 00 F4 03 04 00 7E 01 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E4 F9 00 00 35 04 06 00 97 BC 5B 38 4B 86 AE E4 F9 EE FE 4F 7D BA [11:58: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 8E 22 47 00 04 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 E4 F9 00 00 F4 03 04 00 4C AD 5E 66 B6 04 01 00 00 68 1C 18 F7 26 83 D5 30 [11:58:54]CommunicateWithHost err = 0 [11:58:54]CheckOFDResponse [11:58:54]1017 (14) - 77093643461234 [11:58:54]1041 (16) - 0000000000875074 [11:58:54]1040 (4) - 63972 [11:58:54]1012 (4) - 04.06.2024 05:59 [11:58:54]1206 (1) - 0 [11:58:54]OFD Sender: Remove packet 63972 [11:58:54]ProducePacketName [11:58:54]name=ofd_packets/00063972 [11:58:54]NVStorageDeleteData [11:58:54]Write to MH i2c: 01 00 00 DF 13 F2 [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: 01 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: 01 07 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: 01 07 00 DF 13 00 00 00 00 00 E2 0C E7 [11:58:54]RasterBufferAndPrint [11:58:54]line [11:58:54]line [11:58:54]line [11:58:54]line [11:58:54]line [11:58:54]written 0, free lines is 3304 [11:58:54]MH_Cut [11:58:54]Write to MH i2c: D1 01 00 E6 13 01 CB [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: D1 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: D1 01 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: D1 01 00 E6 13 00 CA [11:58:54]Write to MH i2c: 01 00 00 E7 13 FA [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]OFD Sender: No OFD packet to send [11:58:54]*** Cut start [11:58:54]*** Partial cut [11:58:54]*** CUTSNS_PIN = 1 [11:58:55]*** CUTSNS_PIN = 0 [11:58:55]*** Brake cut motor [11:58:55]Read from MH i2c: 01 [11:58:55]MH_I2C_Read... [11:58:55]*** Stop cut motor [11:58:55]*** Cut end [11:58:55]Read from MH i2c: 01 07 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: 01 07 00 E7 13 00 00 00 00 00 FF 0F 0F [11:58:55]process_action close_receipt done [11:58:55]requested_data is exist [11:58:55]produce_requested_data [11:58:55]requested_item fm.sn is exist - process it [11:58:55]wFMCommunicate request_size=4 [11:58:55]MH_SAM_APDU [11:58:55]CAPDU: 80 11 00 00 [11:58:55]Write to MH i2c: E2 08 00 E8 13 80 11 00 00 00 00 00 00 75 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 17 00 [11:58:55]MH_I2C_Read... [11:58:55]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 [11:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [11:58:55]wFMCommunicate OK [11:58:55]requested_item fd.num is exist - process it [11:58:55]SAM_PROTO_GetFieldsCounters [11:58:55]wFMCommunicate request_size=4 [11:58:55]MH_SAM_APDU [11:58:55]CAPDU: 80 13 00 00 [11:58:55]Write to MH i2c: E2 08 00 E9 13 80 13 00 00 00 00 00 00 78 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 62 00 [11:58:55]MH_I2C_Read... [11:58:55]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 E4 F9 00 00 0E 04 04 00 76 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 9A [11:58: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 E4 F9 00 00 0E 04 04 00 76 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 [11:58:55]wFMCommunicate OK [11:58:55]SAM_PROTO_GetFieldsCounters done [11:58:55]requested_item shift.num is exist - process it [11:58:55]requested_item shift.opened is exist - process it [11:58:55]req_shift_opened [11:58:55]FM_GetShiftState [11:58:55]SAM_PROTO_GetShiftState [11:58:55]wFMCommunicate request_size=4 [11:58:55]MH_SAM_APDU [11:58:55]CAPDU: 80 13 01 00 [11:58:55]Write to MH i2c: E2 08 00 EA 13 80 13 01 00 00 00 00 00 7A [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 0E 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 0E 00 EA 13 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1A [11:58:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [11:58:55]wFMCommunicate OK [11:58:55]SAM_PROTO_GetShiftState done [11:58:55]FM_GetShiftState done [11:58:55]req_shift_opened done [11:58:55]requested_item shift.open_date is exist - process it [11:58:55]req_shift_open_date [11:58:55]req_shift_open_date done [11:58:55]produce_requested_data done [11:58:55]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63972,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [11:58:55]process_action_free close_receipt [11:58:55]json_value_free [11:58:55]json_value_free done [11:58:55]process_json_proto returns [11:58:55]Send response to host [11:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63972,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [11:58:55]free response buf [11:58:55]execute_script done [11:58:55]execute_script returns [11:58:55]free content buf [11:58:55]Sock 7.Close socket [11:58:55]Sock 7.Thread stoped [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:36]accept exits with 9 [12:11:36]New connection [12:11:36]New thread 3067055460 created [12:11:36]Thread 3066912100 joined [12:11:36]Waiting for new connection... [12:11:36] Sock 9.Parse request [12:11:36]Sock 9.Check first char [12:11:36]Sock 9.First char is OK [12:11:36]request: POST /json_proto HTTP/1.0 [12:11:36]Method: POST [12:11:36]URL: /json_proto [12:11:36]Method is POST - this is cgi request [12:11:36]url: /json_proto [12:11:36]query_string will be loaded in cgi processing [12:11:36]execute_cgi json_proto POST (null) [12:11:36]execute_cgi path=json_proto method=POST [12:11:36]POST find Content-Length [12:11:36]Host: 172.17.60.69:8080 [12:11:36]Content-Length: 619 [12:11:36]Content-Type: application/json [12:11:36] [12:11:36]POST finish read [12:11:36]Found Content-Length = 619 [12:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73534", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:36]execute_script... [12:11: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)73534", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 2.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:36]POST & json_proto [12:11:36]process_json_proto [12:11:36]json parsed OK: [12:11:36]protocol is kg_v1.0 [12:11:36]action value=close_receipt [12:11:36]process_action close_receipt [12:11:36]cmd_close_receipt [12:11:36]MH_GetDate [12:11:36]Write to MH i2c: F0 00 00 EB 13 ED [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: F0 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: F0 09 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: F0 09 00 EB 13 00 7B 04 5F 66 6A 96 4A 66 EA [12:11:36]GetLastDocTimeStamp 1717502334 [12:11:36]current date 1717503099 [12:11:36]FM_GetShiftState [12:11:36]SAM_PROTO_GetShiftState [12:11:36]wFMCommunicate request_size=4 [12:11:36]MH_SAM_APDU [12:11:36]CAPDU: 80 13 01 00 [12:11:36]Write to MH i2c: E2 08 00 EC 13 80 13 01 00 00 00 00 00 7C [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:36]Read from MH i2c: E2 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 0E 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 0E 00 EC 13 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1C [12:11:36]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:11:36]wFMCommunicate OK [12:11:36]SAM_PROTO_GetShiftState done [12:11:36]FM_GetShiftState done [12:11:36]opened in 1717459574 [12:11:36]opened+sec_in_day 1717545974 [12:11:36]quantity*price = 27000 [12:11:36]sum+1 = 27001 [12:11:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 58 04.06.2024 12:11 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63973 ФПД: 153692926945294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121139&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63973&fm=153692926945294&tin=02508201610067®Number=0000000000092737&sum=27000 0 [12:11:37]StoreToDocumentArchive [12:11:37]shift 374 fd 63973 [12:11:37]save to /storage/0374/doc_00063973 [12:11:37]save last doc name /storage/0374/doc_00063973 to /storage/kkm_last_doc_name [12:11:37]save OK [12:11:37]Clear old archive folders... [12:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=272 [12:11:37]tlvbuf is 01292250 [12:11:37]SAM_PROTO_ClearQueue [12:11:37]wFMCommunicate request_size=4 [12:11:37]MH_SAM_APDU [12:11:37]CAPDU: 80 09 00 00 [12:11:37]Write to MH i2c: E2 08 00 F9 13 80 09 00 00 00 00 00 00 7E [12:11:37]Write i2c OK [12:11:37]MH_I2C_Read... [12:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:37]Read from MH i2c: E2 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: E2 03 00 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [12:11:37]RAPDU: 90 00 [12:11:37]wFMCommunicate OK [12:11:37]SAM_PROTO_ClearQueue done [12:11:37]KKMCreateOFDPacket [12:11:37]OFDProtocolAddRootSTLVToBuf [12:11:37]FM_MakeSignedData [12:11:37]FM_MakeSignedData [12:11:37]SAM_PROTO_SignData [12:11:37]wFMCommunicate request_size=4 [12:11:37]MH_SAM_APDU [12:11:37]CAPDU: 80 0D 01 02 [12:11:37]Write to MH i2c: E2 08 00 FA 13 80 0D 01 02 00 00 00 00 86 [12:11:37]Write i2c OK [12:11:37]MH_I2C_Read... [12:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:37]Read from MH i2c: E2 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: E2 03 00 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [12:11:37]RAPDU: 90 00 [12:11:37]wFMCommunicate OK [12:11:37]wFMCommunicate request_size=255 [12:11:37]MH_SAM_APDU [12:11:37]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 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7B 04 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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:11:37]Write to MH i2c: E2 02 01 FB 13 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 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7B 04 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 0F [12:11:37]Write i2c OK [12:11:37]MH_I2C_Read... [12:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:37]Read from MH i2c: E2 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: E2 03 00 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [12:11:37]RAPDU: 90 00 [12:11:37]wFMCommunicate OK [12:11:37]wFMCommunicate request_size=31 [12:11:37]MH_SAM_APDU [12:11:37]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 E5 F9 00 00 35 04 06 00 8B C8 6C 50 A8 0E [12:11:37]Write to MH i2c: E2 22 00 FC 13 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 E5 F9 00 00 35 04 06 00 8B C8 6C 50 A8 0E 00 00 56 [12:11:37]Write i2c OK [12:11:37]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 03 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [12:11:38]RAPDU: 90 00 [12:11:38]wFMCommunicate OK [12:11:38]wFMCommunicate request_size=4 [12:11:38]MH_SAM_APDU [12:11:38]CAPDU: 80 0D 03 02 [12:11:38]Write to MH i2c: E2 08 00 FD 13 80 0D 03 02 00 00 00 00 8B [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0B 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0B 00 FD 13 00 C0 8F 35 0B 7B 0F 67 5F 90 00 6B [12:11:38]RAPDU: C0 8F 35 0B 7B 0F 67 5F 90 00 [12:11:38]wFMCommunicate OK [12:11:38]SAM_PROTO_SignData done [12:11:38]FM_MakeSignedData done [12:11:38]CreateOFDProtocolMessage [12:11:38]wFMCommunicate request_size=4 [12:11:38]MH_SAM_APDU [12:11:38]CAPDU: 80 11 00 00 [12:11:38]Write to MH i2c: E2 08 00 FE 13 80 11 00 00 00 00 00 00 8B [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 17 00 [12:11:38]MH_I2C_Read... [12:11:38]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 [12:11:38]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:38]wFMCommunicate OK [12:11:38]CreateOFDProtocolMessage done [12:11:38]OFDSenderStorePacket 63973 [12:11:38]StoreOFDPacket docnum=63973 [12:11: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 24 01 00 00 8B 48 1C 01 CE 41 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 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7B 04 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E5 F9 00 00 35 04 06 00 8B C8 6C 50 A8 0E C0 8F 35 0B 7B 0F 67 5F [12:11:38]CheckFolder [12:11:38]dirname=/storage/ofd_packets [12:11:38]CheckFolder done [12:11:38]ProducePacketName [12:11:38]name=ofd_packets/00063973 [12:11:38]NVStorageSaveData ofd_packets/00063973 [12:11:38]File name is /storage/ofd_packets/00063973 [12:11:38]Write 322 bytes [12:11:38]NVStorageSaveData done [12:11:38]OFDSenderStorePacket done [12:11:38]KKMCreateOFDPacket done [12:11:38]NVStorageSaveData kkm_last_timestamp [12:11:38]File name is /storage/kkm_last_timestamp [12:11:38]Write 4 bytes [12:11:38]NVStorageSaveData done [12:11:38]ExternCall_PrintAddStr [12:11:38]wPrintStart [12:11:38]Write to MH i2c: 01 00 00 FF 13 12 [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: 01 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: 01 07 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: 01 07 00 FF 13 00 00 00 00 00 FF 0F 27 [12:11:38]RasterBufferAndPrint [12:11:38]line Счет N : (3)73534 [12:11:38]line ИНН: 02508201610067 [12:11:38]line Контрольно-Кассовый Чек [12:11:38]line ПРОДАЖА [12:11:38]line Товар: 48745000 [12:11:38]line Сигареты Winston Purple Mix [12:11:38]line 2.000 * 135.00 [12:11:38]line = 270.00 [12:11:38]line НДС 12% НСП 1% [12:11:38]line > о реализуемом товаре [12:11:38]line ИТОГО: 270.00 [12:11:38]line НСП 1% : 2.39 [12:11:38]line НДС 12% : 28.67 [12:11:38]line Наличными: 270.00 [12:11:38]line Безнал.: 0.00 [12:11:38]line Место: АЗС № 117 "Партнер Нефть" [12:11:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:11:38]line СНО: Общий режим [12:11:38]line Чек 58 04.06.2024 12:11 [12:11:38]line Смена: 374 ФФД: 1.0 [12:11:38]line ЗНМ: 0300000031 [12:11:38]line РНМ: 0000000000092737 [12:11:38]line Версия ККМ: 001 [12:11:38]line ФМ: 0000000000875074 [12:11:38]line ФД: 63973 [12:11:38]line ФПД: 153692926945294 [12:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121139&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63973&fm=153692926945294&tin=02508201610067®Number=0000000000092737&sum=27000 [12:11:38]line 0 [12:11:38]OFD Sender: Processing packet 63973 [packets to send 14, broken 13] [12:11:38]ProducePacketName [12:11:38]name=ofd_packets/00063973 [12:11:38]OFD Sender: To server: pG, [12:11:38]CommunicateWithHost lk.salyk.kg:30040 [12:11:38]ConnectInit lk.salyk.kg [12:11:38]written 0, free lines is 4095 [12:11:38]Connected sock=11 [12:11: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 24 01 00 00 8B 48 1C 01 CE 41 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 D0 07 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 7B 04 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E5 F9 00 00 35 04 06 00 8B C8 6C 50 A8 0E C0 8F 35 0B 7B 0F 67 5F [12:11: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 BA 38 47 00 44 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E5 F9 00 00 F4 03 04 00 49 B0 5E 66 B6 04 01 00 00 DA D2 68 5B B4 5F 09 6F [12:11:38]CommunicateWithHost err = 0 [12:11:38]CheckOFDResponse [12:11:38]1017 (14) - 77093643461234 [12:11:38]1041 (16) - 0000000000875074 [12:11:38]1040 (4) - 63973 [12:11:38]1012 (4) - 04.06.2024 06:12 [12:11:38]1206 (1) - 0 [12:11:38]OFD Sender: Remove packet 63973 [12:11:38]ProducePacketName [12:11:38]name=ofd_packets/00063973 [12:11:38]NVStorageDeleteData [12:11:38]Write to MH i2c: 01 00 00 27 14 3B [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: 01 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: 01 07 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: 01 07 00 27 14 00 00 00 00 00 F5 0C 43 [12:11:38]RasterBufferAndPrint [12:11:38]line [12:11:38]line [12:11:38]line [12:11:38]line [12:11:38]line [12:11:38]written 0, free lines is 3324 [12:11:38]MH_Cut [12:11:38]Write to MH i2c: D1 01 00 2E 14 01 14 [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: D1 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: D1 01 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: D1 01 00 2E 14 00 13 [12:11:38]Write to MH i2c: 01 00 00 2F 14 43 [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:39]OFD Sender: No OFD packet to send [12:11:39]*** Cut start [12:11:39]*** Partial cut [12:11:39]*** CUTSNS_PIN = 1 [12:11:39]*** CUTSNS_PIN = 0 [12:11:39]*** Brake cut motor [12:11:40]Read from MH i2c: 01 [12:11:40]MH_I2C_Read... [12:11:40]*** Stop cut motor [12:11:40]*** Cut end [12:11:40]Read from MH i2c: 01 07 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 FF 0F 58 [12:11:40]process_action close_receipt done [12:11:40]requested_data is exist [12:11:40]produce_requested_data [12:11:40]requested_item fm.sn is exist - process it [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 11 00 00 [12:11:40]Write to MH i2c: E2 08 00 30 14 80 11 00 00 00 00 00 00 BE [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 17 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 17 00 30 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 10 [12:11: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:11:40]wFMCommunicate OK [12:11:40]requested_item fd.num is exist - process it [12:11:40]SAM_PROTO_GetFieldsCounters [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 13 00 00 [12:11:40]Write to MH i2c: E2 08 00 31 14 80 13 00 00 00 00 00 00 C1 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 62 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 62 00 31 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 E5 F9 00 00 0E 04 04 00 76 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 E7 [12:11: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 E5 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:40]wFMCommunicate OK [12:11:40]SAM_PROTO_GetFieldsCounters done [12:11:40]requested_item shift.num is exist - process it [12:11:40]requested_item shift.opened is exist - process it [12:11:40]req_shift_opened [12:11:40]FM_GetShiftState [12:11:40]SAM_PROTO_GetShiftState [12:11:40]wFMCommunicate request_size=4 [12:11:40]MH_SAM_APDU [12:11:40]CAPDU: 80 13 01 00 [12:11:40]Write to MH i2c: E2 08 00 32 14 80 13 01 00 00 00 00 00 C3 [12:11:40]Write i2c OK [12:11:40]MH_I2C_Read... [12:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:40]Read from MH i2c: E2 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 0E 00 [12:11:40]MH_I2C_Read... [12:11:40]Read from MH i2c: E2 0E 00 32 14 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 63 [12:11:40]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:11:40]wFMCommunicate OK [12:11:40]SAM_PROTO_GetShiftState done [12:11:40]FM_GetShiftState done [12:11:40]req_shift_opened done [12:11:40]requested_item shift.open_date is exist - process it [12:11:40]req_shift_open_date [12:11:40]req_shift_open_date done [12:11:40]produce_requested_data done [12:11:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63973,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:11:40]process_action_free close_receipt [12:11:40]json_value_free [12:11:40]json_value_free done [12:11:40]process_json_proto returns [12:11:40]Send response to host [12:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63973,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:11:40]free response buf [12:11:40]execute_script done [12:11:40]execute_script returns [12:11:40]free content buf [12:11:40]Sock 9.Close socket [12:11:40]Sock 9.Thread stoped [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:00]accept exits with 7 [12:13:00]New connection [12:13:00]New thread 3066912100 created [12:13:00]Thread 3067055460 joined [12:13:00]Waiting for new connection... [12:13:00] Sock 7.Parse request [12:13:00]Sock 7.Check first char [12:13:00]Sock 7.First char is OK [12:13:00]request: POST /json_proto HTTP/1.0 [12:13:00]Method: POST [12:13:00]URL: /json_proto [12:13:00]Method is POST - this is cgi request [12:13:00]url: /json_proto [12:13:00]query_string will be loaded in cgi processing [12:13:00]execute_cgi json_proto POST (null) [12:13:00]execute_cgi path=json_proto method=POST [12:13:00]POST find Content-Length [12:13:00]Host: 172.17.60.69:8080 [12:13:00]Content-Length: 1549 [12:13:00]Content-Type: application/json [12:13:00] [12:13:00]POST finish read [12:13:00]Found Content-Length = 1549 [12:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73535", "tax_sys" : 0, "items" : [ { "code": "4602441011186", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210010", "name": "\u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039220019", "name": "\u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u043A\u0443\u0440\u0438\u043D\u0430\u044F 180\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 585.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:00]execute_script... [12:13: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)73535", "tax_sys" : 0, "items" : [ { "code": "4602441011186", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210010", "name": "\u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039220019", "name": "\u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u043A\u0443\u0440\u0438\u043D\u0430\u044F 180\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 585.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:00]POST & json_proto [12:13:00]process_json_proto [12:13:00]json parsed OK: [12:13:00]protocol is kg_v1.0 [12:13:00]action value=close_receipt [12:13:00]process_action close_receipt [12:13:00]cmd_close_receipt [12:13:00]MH_GetDate [12:13:00]Write to MH i2c: F0 00 00 33 14 36 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: F0 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: F0 09 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: F0 09 00 33 14 00 CF 04 5F 66 6A 96 4A 66 87 [12:13:00]GetLastDocTimeStamp 1717503099 [12:13:00]current date 1717503183 [12:13:00]FM_GetShiftState [12:13:00]SAM_PROTO_GetShiftState [12:13:00]wFMCommunicate request_size=4 [12:13:00]MH_SAM_APDU [12:13:00]CAPDU: 80 13 01 00 [12:13:00]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [12:13:00]Write i2c OK [12:13:00]MH_I2C_Read... [12:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:00]Read from MH i2c: E2 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 0E 00 [12:13:00]MH_I2C_Read... [12:13:00]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 65 [12:13:00]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:13:00]wFMCommunicate OK [12:13:00]SAM_PROTO_GetShiftState done [12:13:00]FM_GetShiftState done [12:13:00]opened in 1717459574 [12:13:00]opened+sec_in_day 1717545974 [12:13:00]quantity*price = 12500 [12:13:00]sum+1 = 12501 [12:13:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039210010 Френч-дог Sib говяжья 180г 1.000 * 165.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000039220019 Френч-дог Sib куриная 180г 1.000 * 165.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 585.00 НСП 1% : 5.18 НДС 12% : 62.11 Наличными: 585.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 59 04.06.2024 12:13 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63974 ФПД: 170505902326546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121303&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63974&fm=170505902326546&tin=02508201610067®Number=0000000000092737&sum=58500 0 [12:13:01]StoreToDocumentArchive [12:13:01]shift 374 fd 63974 [12:13:01]save to /storage/0374/doc_00063974 [12:13:01]save last doc name /storage/0374/doc_00063974 to /storage/kkm_last_doc_name [12:13:01]save OK [12:13:01]Clear old archive folders... [12:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=652 [12:13:01]tlvbuf is 01291E70 [12:13:01]SAM_PROTO_ClearQueue [12:13:01]wFMCommunicate request_size=4 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 09 00 00 [12:13:01]Write to MH i2c: E2 08 00 41 14 80 09 00 00 00 00 00 00 C7 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:01]Read from MH i2c: E2 03 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [12:13:01]RAPDU: 90 00 [12:13:01]wFMCommunicate OK [12:13:01]SAM_PROTO_ClearQueue done [12:13:01]KKMCreateOFDPacket [12:13:01]OFDProtocolAddRootSTLVToBuf [12:13:01]FM_MakeSignedData [12:13:01]FM_MakeSignedData [12:13:01]SAM_PROTO_SignData [12:13:01]wFMCommunicate request_size=4 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 0D 01 02 [12:13:01]Write to MH i2c: E2 08 00 42 14 80 0D 01 02 00 00 00 00 CF [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 03 00 42 14 00 90 00 CA [12:13:01]RAPDU: 90 00 [12:13:01]wFMCommunicate OK [12:13:01]wFMCommunicate request_size=255 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 0D 02 02 FA 03 00 8C 02 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 31 38 36 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 31 30 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 [12:13:01]Write to MH i2c: E2 02 01 43 14 80 0D 02 02 FA 00 03 00 8C 02 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 31 38 36 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 31 30 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 00 5B [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [12:13:02]RAPDU: 90 00 [12:13:02]wFMCommunicate OK [12:13:02]wFMCommunicate request_size=255 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 32 30 30 31 39 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 B0 D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 [12:13:02]Write to MH i2c: E2 02 01 44 14 80 0D 02 02 FA 00 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 32 30 30 31 39 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 B0 D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 00 4A [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [12:13:02]RAPDU: 90 00 [12:13:02]wFMCommunicate OK [12:13:02]wFMCommunicate request_size=161 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 18 00 00 00 00 07 04 06 00 84 E4 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 CF 04 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E6 F9 00 00 35 04 06 00 9B 12 FF BD 83 12 [12:13:02]Write to MH i2c: E2 A4 00 45 14 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 18 00 00 00 00 07 04 06 00 84 E4 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 CF 04 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E6 F9 00 00 35 04 06 00 9B 12 FF BD 83 12 00 00 3C [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [12:13:02]RAPDU: 90 00 [12:13:02]wFMCommunicate OK [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 0D 03 02 [12:13:02]Write to MH i2c: E2 08 00 46 14 80 0D 03 02 00 00 00 00 D5 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 0B 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 0B 00 46 14 00 9A 5B 52 C1 E1 51 AB 80 90 00 3B [12:13:02]RAPDU: 9A 5B 52 C1 E1 51 AB 80 90 00 [12:13:02]wFMCommunicate OK [12:13:02]SAM_PROTO_SignData done [12:13:02]FM_MakeSignedData done [12:13:02]CreateOFDProtocolMessage [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 11 00 00 [12:13:02]Write to MH i2c: E2 08 00 47 14 80 11 00 00 00 00 00 00 D5 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 17 00 [12:13:02]MH_I2C_Read... [12:13:02]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 [12:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:13:02]wFMCommunicate OK [12:13:02]CreateOFDProtocolMessage done [12:13:02]OFDSenderStorePacket 63974 [12:13:02]StoreOFDPacket docnum=63974 [12:13: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 A0 02 00 00 59 DD 98 02 AD 9E 5A 03 01 00 03 00 8C 02 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 31 38 36 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 31 30 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 32 30 30 31 39 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 B0 D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 18 00 00 00 00 07 04 06 00 84 E4 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 CF 04 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E6 F9 00 00 35 04 06 00 9B 12 FF BD 83 12 9A 5B 52 C1 E1 51 AB 80 [12:13:02]CheckFolder [12:13:02]dirname=/storage/ofd_packets [12:13:02]CheckFolder done [12:13:02]ProducePacketName [12:13:02]name=ofd_packets/00063974 [12:13:02]NVStorageSaveData ofd_packets/00063974 [12:13:02]File name is /storage/ofd_packets/00063974 [12:13:02]Write 702 bytes [12:13:02]NVStorageSaveData done [12:13:02]OFDSenderStorePacket done [12:13:02]KKMCreateOFDPacket done [12:13:02]NVStorageSaveData kkm_last_timestamp [12:13:02]File name is /storage/kkm_last_timestamp [12:13:02]Write 4 bytes [12:13:02]NVStorageSaveData done [12:13:02]ExternCall_PrintAddStr [12:13:02]wPrintStart [12:13:02]Write to MH i2c: 01 00 00 48 14 5C [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 07 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 07 00 48 14 00 00 00 00 00 FF 0F 71 [12:13:02]RasterBufferAndPrint [12:13:02]line Счет N : (3)73535 [12:13:02]line ИНН: 02508201610067 [12:13:02]line Контрольно-Кассовый Чек [12:13:02]line ПРОДАЖА [12:13:02]line Товар: 4602441011186 [12:13:03]line Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л [12:13:03]line 1.000 * 125.00 [12:13:03]line = 125.00 [12:13:03]line НДС 12% НСП 1% [12:13:03]line > о реализуемом товаре [12:13:03]line Товар: 2000039210010 [12:13:03]line Френч-дог Sib говяжья 180г [12:13:03]line 1.000 * 165.00 [12:13:03]line = 165.00 [12:13:03]line НДС 12% НСП 1% [12:13:03]line > о реализуемом товаре [12:13:03]line Товар: 2000039220019 [12:13:03]line Френч-дог Sib куриная 180г [12:13:03]line 1.000 * 165.00 [12:13:03]line = 165.00 [12:13:03]line НДС 12% НСП 1% [12:13:03]line > о реализуемом товаре [12:13:03]line Товар: 48745291 [12:13:03]line Сигареты Parliament SOHO NYC COMPACT BLU [12:13:03]line 1.000 * 130.00 [12:13:03]line = 130.00 [12:13:03]line НДС 12% НСП 1% [12:13:03]line > о реализуемом товаре [12:13:03]line ИТОГО: 585.00 [12:13:03]line НСП 1% : 5.18 [12:13:03]line НДС 12% : 62.11 [12:13:03]line Наличными: 585.00 [12:13:03]line Безнал.: 0.00 [12:13:03]line Место: АЗС № 117 "Партнер Нефть" [12:13:03]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:13:03]line СНО: Общий режим [12:13:03]line Чек 59 04.06.2024 12:13 [12:13:03]line Смена: 374 ФФД: 1.0 [12:13:03]line ЗНМ: 0300000031 [12:13:03]line РНМ: 0000000000092737 [12:13:03]line Версия ККМ: 001 [12:13:03]line ФМ: 0000000000875074 [12:13:03]line ФД: 63974 [12:13:03]line ФПД: 170505902326546 [12:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121303&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63974&fm=170505902326546&tin=02508201610067®Number=0000000000092737&sum=58500 [12:13:03]OFD Sender: Processing packet 63974 [packets to send 14, broken 13] [12:13:03]ProducePacketName [12:13:03]name=ofd_packets/00063974 [12:13:03]OFD Sender: To server: pG, [12:13:03]CommunicateWithHost lk.salyk.kg:30040 [12:13:03]ConnectInit lk.salyk.kg [12:13:03]line 0 [12:13:03]written 0, free lines is 4095 [12:13:03]Connected sock=10 [12:13:03]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 A0 02 00 00 59 DD 98 02 AD 9E 5A 03 01 00 03 00 8C 02 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 31 31 38 36 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 31 30 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 32 30 30 31 39 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 B0 D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 18 00 00 00 00 07 04 06 00 84 E4 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 CF 04 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E6 F9 00 00 35 04 06 00 9B 12 FF BD 83 12 9A 5B 52 C1 E1 51 AB 80 [12:13:03]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 BB 47 00 B7 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 E6 F9 00 00 F4 03 04 00 9E B0 5E 66 B6 04 01 00 00 99 95 A8 FB 27 50 A6 68 [12:13:03]CommunicateWithHost err = 0 [12:13:03]CheckOFDResponse [12:13:03]1017 (14) - 77093643461234 [12:13:03]1041 (16) - 0000000000875074 [12:13:03]1040 (4) - 63974 [12:13:03]1012 (4) - 04.06.2024 06:13 [12:13:03]1206 (1) - 0 [12:13:03]OFD Sender: Remove packet 63974 [12:13:03]ProducePacketName [12:13:03]name=ofd_packets/00063974 [12:13:03]NVStorageDeleteData [12:13:03]Write to MH i2c: 01 00 00 84 14 98 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 07 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 07 00 84 14 00 00 00 00 00 D3 0B 7D [12:13:03]RasterBufferAndPrint [12:13:03]line [12:13:03]line [12:13:03]line [12:13:03]line [12:13:03]line [12:13:03]written 0, free lines is 3035 [12:13:03]MH_Cut [12:13:03]Write to MH i2c: D1 01 00 8B 14 01 71 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: D1 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: D1 01 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: D1 01 00 8B 14 00 70 [12:13:03]Write to MH i2c: 01 00 00 8C 14 A0 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]OFD Sender: No OFD packet to send [12:13:04]*** Cut start [12:13:04]*** Partial cut [12:13:04]*** CUTSNS_PIN = 1 [12:13:04]*** CUTSNS_PIN = 0 [12:13:05]*** Brake cut motor [12:13:05]Read from MH i2c: 01 [12:13:05]MH_I2C_Read... [12:13:05]*** Stop cut motor [12:13:05]*** Cut end [12:13:05]Read from MH i2c: 01 07 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: 01 07 00 8C 14 00 00 00 00 00 FF 0F B5 [12:13:05]process_action close_receipt done [12:13:05]requested_data is exist [12:13:05]produce_requested_data [12:13:05]requested_item fm.sn is exist - process it [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 11 00 00 [12:13:05]Write to MH i2c: E2 08 00 8D 14 80 11 00 00 00 00 00 00 1B [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 17 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 17 00 8D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6D [12:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:13:05]wFMCommunicate OK [12:13:05]requested_item fd.num is exist - process it [12:13:05]SAM_PROTO_GetFieldsCounters [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 13 00 00 [12:13:05]Write to MH i2c: E2 08 00 8E 14 80 13 00 00 00 00 00 00 1E [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 62 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 62 00 8E 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 E6 F9 00 00 0E 04 04 00 76 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 48 [12:13: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 E6 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:05]wFMCommunicate OK [12:13:05]SAM_PROTO_GetFieldsCounters done [12:13:05]requested_item shift.num is exist - process it [12:13:05]requested_item shift.opened is exist - process it [12:13:05]req_shift_opened [12:13:05]FM_GetShiftState [12:13:05]SAM_PROTO_GetShiftState [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 13 01 00 [12:13:05]Write to MH i2c: E2 08 00 8F 14 80 13 01 00 00 00 00 00 20 [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 0E 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 0E 00 8F 14 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C0 [12:13:05]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:13:05]wFMCommunicate OK [12:13:05]SAM_PROTO_GetShiftState done [12:13:05]FM_GetShiftState done [12:13:05]req_shift_opened done [12:13:05]requested_item shift.open_date is exist - process it [12:13:05]req_shift_open_date [12:13:05]req_shift_open_date done [12:13:05]produce_requested_data done [12:13:05]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63974,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:13:05]process_action_free close_receipt [12:13:05]json_value_free [12:13:05]json_value_free done [12:13:05]process_json_proto returns [12:13:05]Send response to host [12:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63974,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:13:05]free response buf [12:13:05]execute_script done [12:13:05]execute_script returns [12:13:05]free content buf [12:13:05]Sock 7.Close socket [12:13:05]Sock 7.Thread stoped [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:23]accept exits with 9 [12:15:23]New connection [12:15:23]New thread 3067055460 created [12:15:23]Thread 3066912100 joined [12:15:23]Waiting for new connection... [12:15:23] Sock 9.Parse request [12:15:23]Sock 9.Check first char [12:15:23]Sock 9.First char is OK [12:15:23]request: POST /json_proto HTTP/1.0 [12:15:23]Method: POST [12:15:23]URL: /json_proto [12:15:23]Method is POST - this is cgi request [12:15:23]url: /json_proto [12:15:23]query_string will be loaded in cgi processing [12:15:23]execute_cgi json_proto POST (null) [12:15:23]execute_cgi path=json_proto method=POST [12:15:23]POST find Content-Length [12:15:23]Host: 172.17.60.69:8080 [12:15:23]Content-Length: 2374 [12:15:23]Content-Type: application/json [12:15:23] [12:15:23]POST finish read [12:15:23]Found Content-Length = 2374 [12:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73536", "tax_sys" : 0, "items" : [ { "code": "5449000000950", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\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": "5053990161607", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u043F\u0430\u043F\u0440\u0438\u043A\u0430 40\u0433", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210010", "name": "\u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 757.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:23]execute_script... [12:15:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73536", "tax_sys" : 0, "items" : [ { "code": "5449000000950", "name": "\u041A\u041E\u041C\u0411\u041E \u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\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": "5053990161607", "name": "\u0427\u0438\u043F\u0441\u044B \u041F\u0440\u0438\u043D\u0433\u043B\u0441 \u043F\u0430\u043F\u0440\u0438\u043A\u0430 40\u0433", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746656", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210010", "name": "\u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 165.00, "quantity" : 1.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 757.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:23]POST & json_proto [12:15:23]process_json_proto [12:15:23]json parsed OK: [12:15:23]protocol is kg_v1.0 [12:15:23]action value=close_receipt [12:15:23]process_action close_receipt [12:15:23]cmd_close_receipt [12:15:23]MH_GetDate [12:15:23]Write to MH i2c: F0 00 00 90 14 93 [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: F0 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: F0 09 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: F0 09 00 90 14 00 5E 05 5F 66 6A 96 4A 66 74 [12:15:23]GetLastDocTimeStamp 1717503183 [12:15:23]current date 1717503326 [12:15:23]FM_GetShiftState [12:15:23]SAM_PROTO_GetShiftState [12:15:23]wFMCommunicate request_size=4 [12:15:23]MH_SAM_APDU [12:15:23]CAPDU: 80 13 01 00 [12:15:23]Write to MH i2c: E2 08 00 91 14 80 13 01 00 00 00 00 00 22 [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:23]Read from MH i2c: E2 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 0E 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 0E 00 91 14 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C2 [12:15:23]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:15:23]wFMCommunicate OK [12:15:23]SAM_PROTO_GetShiftState done [12:15:23]FM_GetShiftState done [12:15:23]opened in 1717459574 [12:15:23]opened+sec_in_day 1717545974 [12:15:23]quantity*price = 7700 [12:15:23]sum+1 = 7701 [12:15:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5053990161607 Чипсы Принглс паприка 40г 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310036 Вода Жалалабат 27 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000273680 Сок Piko Pulpy красный виноград ПЭТ 0,5л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48746656 Сигареты Parliament Super Slims 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8710732217097 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000039210010 Френч-дог Sib говяжья 180г 1.000 * 165.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 757.00 НСП 1% : 6.68 НДС 12% : 80.38 Наличными: 757.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 60 04.06.2024 12:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63975 ФПД: 1279980417007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121526&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63975&fm=1279980417007&tin=02508201610067®Number=0000000000092737&sum=75700 0 [12:15:24]StoreToDocumentArchive [12:15:24]shift 374 fd 63975 [12:15:24]save to /storage/0374/doc_00063975 [12:15:24]save last doc name /storage/0374/doc_00063975 to /storage/kkm_last_doc_name [12:15:25]save OK [12:15:25]Clear old archive folders... [12:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=985 [12:15:25]tlvbuf is 01271AB0 [12:15:25]SAM_PROTO_ClearQueue [12:15:25]wFMCommunicate request_size=4 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 09 00 00 [12:15:25]Write to MH i2c: E2 08 00 9E 14 80 09 00 00 00 00 00 00 24 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:25]Read from MH i2c: E2 03 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 9E 14 00 90 00 26 [12:15:25]RAPDU: 90 00 [12:15:25]wFMCommunicate OK [12:15:25]SAM_PROTO_ClearQueue done [12:15:25]KKMCreateOFDPacket [12:15:25]OFDProtocolAddRootSTLVToBuf [12:15:25]FM_MakeSignedData [12:15:25]FM_MakeSignedData [12:15:25]SAM_PROTO_SignData [12:15:25]wFMCommunicate request_size=4 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 0D 01 02 [12:15:25]Write to MH i2c: E2 08 00 9F 14 80 0D 01 02 00 00 00 00 2C [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 9F 14 00 90 00 27 [12:15:25]RAPDU: 90 00 [12:15:25]wFMCommunicate OK [12:15:25]wFMCommunicate request_size=255 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 0D 02 02 FA 03 00 D9 03 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 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 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB 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 35 30 35 33 39 39 30 31 36 31 36 30 37 06 04 2D 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D0 BF D0 B0 D0 BF D1 80 D0 B8 D0 BA D0 B0 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [12:15:25]Write to MH i2c: E2 02 01 A0 14 80 0D 02 02 FA 00 03 00 D9 03 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 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 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB 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 35 30 35 33 39 39 30 31 36 31 36 30 37 06 04 2D 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D0 BF D0 B0 D0 BF D1 80 D0 B8 D0 BA D0 B0 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 C9 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 A0 14 00 90 00 28 [12:15:25]RAPDU: 90 00 [12:15:25]wFMCommunicate OK [12:15:25]wFMCommunicate request_size=255 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 0D 02 02 FA 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 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 [12:15:25]Write to MH i2c: E2 02 01 A1 14 80 0D 02 02 FA 00 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 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 00 00 2D [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 A1 14 00 90 00 29 [12:15:25]RAPDU: 90 00 [12:15:25]wFMCommunicate OK [12:15:25]wFMCommunicate request_size=255 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 0D 02 02 FA 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 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 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 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 31 30 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE [12:15:25]Write to MH i2c: E2 02 01 A2 14 80 0D 02 02 FA 00 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 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 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 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 31 30 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE 00 00 E9 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 A2 14 00 90 00 2A [12:15:25]RAPDU: 90 00 [12:15:25]wFMCommunicate OK [12:15:25]wFMCommunicate request_size=244 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 0D 02 02 EF D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 27 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 1F 00 00 00 00 07 04 06 00 B4 27 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 5E 05 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E7 F9 00 00 35 04 06 00 01 2A 04 C7 2F EF [12:15:25]Write to MH i2c: E2 F7 00 A3 14 80 0D 02 02 EF 00 D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 27 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 1F 00 00 00 00 07 04 06 00 B4 27 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 5E 05 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E7 F9 00 00 35 04 06 00 01 2A 04 C7 2F EF 00 00 C2 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 A3 14 00 90 00 2B [12:15:26]RAPDU: 90 00 [12:15:26]wFMCommunicate OK [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 0D 03 02 [12:15:26]Write to MH i2c: E2 08 00 A4 14 80 0D 03 02 00 00 00 00 33 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 0B 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 0B 00 A4 14 00 C2 50 37 80 0A FB 3A EF 90 00 2B [12:15:26]RAPDU: C2 50 37 80 0A FB 3A EF 90 00 [12:15:26]wFMCommunicate OK [12:15:26]SAM_PROTO_SignData done [12:15:26]FM_MakeSignedData done [12:15:26]CreateOFDProtocolMessage [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 11 00 00 [12:15:26]Write to MH i2c: E2 08 00 A5 14 80 11 00 00 00 00 00 00 33 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 17 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 17 00 A5 14 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:15:26]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:26]wFMCommunicate OK [12:15:26]CreateOFDProtocolMessage done [12:15:26]OFDSenderStorePacket 63975 [12:15:26]StoreOFDPacket docnum=63975 [12:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 ED 03 00 00 B3 7D E5 03 64 DF 5A 03 01 00 03 00 D9 03 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 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 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB 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 35 30 35 33 39 39 30 31 36 31 36 30 37 06 04 2D 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D0 BF D0 B0 D0 BF D1 80 D0 B8 D0 BA D0 B0 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 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 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 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 31 30 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 27 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 1F 00 00 00 00 07 04 06 00 B4 27 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 5E 05 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E7 F9 00 00 35 04 06 00 01 2A 04 C7 2F EF C2 50 37 80 0A FB 3A EF [12:15:26]CheckFolder [12:15:26]dirname=/storage/ofd_packets [12:15:26]CheckFolder done [12:15:26]ProducePacketName [12:15:26]name=ofd_packets/00063975 [12:15:26]NVStorageSaveData ofd_packets/00063975 [12:15:26]File name is /storage/ofd_packets/00063975 [12:15:26]Write 1035 bytes [12:15:26]NVStorageSaveData done [12:15:26]OFDSenderStorePacket done [12:15:26]KKMCreateOFDPacket done [12:15:26]NVStorageSaveData kkm_last_timestamp [12:15:26]File name is /storage/kkm_last_timestamp [12:15:26]Write 4 bytes [12:15:26]NVStorageSaveData done [12:15:26]ExternCall_PrintAddStr [12:15:26]wPrintStart [12:15:26]Write to MH i2c: 01 00 00 A6 14 BA [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 07 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 07 00 A6 14 00 00 00 00 00 FF 0F CF [12:15:26]RasterBufferAndPrint [12:15:26]line Счет N : (3)73536 [12:15:26]line ИНН: 02508201610067 [12:15:26]line Контрольно-Кассовый Чек [12:15:26]line ПРОДАЖА [12:15:26]line Товар: 5449000000950 [12:15:26]line КОМБО Напиток Кока-Кола 0,33л [12:15:26]line 1.000 * 77.00 [12:15:26]line = 77.00 [12:15:26]line НДС 12% НСП 1% [12:15:26]line > о реализуемом товаре [12:15:26]line Товар: 5053990161607 [12:15:26]line Чипсы Принглс паприка 40г [12:15:26]line 1.000 * 170.00 [12:15:26]line = 170.00 [12:15:26]line НДС 12% НСП 1% [12:15:26]line > о реализуемом товаре [12:15:26]line Товар: 4700000310036 [12:15:26]line Вода Жалалабат 27 0,5л [12:15:26]line 1.000 * 40.00 [12:15:26]line = 40.00 [12:15:26]line НДС 12% НСП 1% [12:15:26]line > о реализуемом товаре [12:15:26]line Товар: 5449000273680 [12:15:26]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [12:15:26]line 1.000 * 100.00 [12:15:26]line = 100.00 [12:15:26]line НДС 12% НСП 1% [12:15:26]line > о реализуемом товаре [12:15:26]line Товар: 48746656 [12:15:26]line Сигареты Parliament Super Slims [12:15:26]line 1.000 * 138.00 [12:15:26]line = 138.00 [12:15:26]line НДС 12% НСП 1% [12:15:26]line > о реализуемом товаре [12:15:26]line Товар: 8710732217097 [12:15:26]line Зажигалка Cricket ПН пьезо [12:15:26]line 1.000 * 67.00 [12:15:26]line = 67.00 [12:15:26]line НДС 12% НСП 1% [12:15:26]line > о реализуемом товаре [12:15:26]line Товар: 2000039210010 [12:15:26]line Френч-дог Sib говяжья 180г [12:15:26]line 1.000 * 165.00 [12:15:26]line = 165.00 [12:15:26]line НДС 12% НСП 1% [12:15:26]line > о реализуемом товаре [12:15:26]line ИТОГО: 757.00 [12:15:26]line НСП 1% : 6.68 [12:15:26]line НДС 12% : 80.38 [12:15:26]line Наличными: 757.00 [12:15:26]line Безнал.: 0.00 [12:15:26]line Место: АЗС № 117 "Партнер Нефть" [12:15:26]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:15:26]OFD Sender: Processing packet 63975 [packets to send 14, broken 13] [12:15:26]ProducePacketName [12:15:26]name=ofd_packets/00063975 [12:15:26]OFD Sender: To server: pG, [12:15:26]CommunicateWithHost lk.salyk.kg:30040 [12:15:26]ConnectInit lk.salyk.kg [12:15:26]line СНО: Общий режим [12:15:26]line Чек 60 04.06.2024 12:15 [12:15:26]line Смена: 374 ФФД: 1.0 [12:15:26]line ЗНМ: 0300000031 [12:15:26]line РНМ: 0000000000092737 [12:15:26]line Версия ККМ: 001 [12:15:26]line ФМ: 0000000000875074 [12:15:26]line ФД: 63975 [12:15:26]line ФПД: 1279980417007 [12:15:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121526&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63975&fm=1279980417007&tin=02508201610067®Number=0000000000092737&sum=75700 [12:15:26]line 0 [12:15:26]written 0, free lines is 4095 [12:15:26]Connected sock=10 [12:15: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 ED 03 00 00 B3 7D E5 03 64 DF 5A 03 01 00 03 00 D9 03 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 35 30 06 04 32 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 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB 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 35 30 35 33 39 39 30 31 36 31 36 30 37 06 04 2D 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 9F D1 80 D0 B8 D0 BD D0 B3 D0 BB D1 81 20 D0 BF D0 B0 D0 BF D1 80 D0 B8 D0 BA D0 B0 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 36 36 35 36 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 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 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 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 31 30 06 04 2A 00 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 27 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 1F 00 00 00 00 07 04 06 00 B4 27 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 5E 05 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E7 F9 00 00 35 04 06 00 01 2A 04 C7 2F EF C2 50 37 80 0A FB 3A EF [12:15: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 16 68 47 00 84 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 E7 F9 00 00 F4 03 04 00 2E B1 5E 66 B6 04 01 00 00 A4 75 98 9A 80 1D 1F A4 [12:15:27]CommunicateWithHost err = 0 [12:15:27]CheckOFDResponse [12:15:27]1017 (14) - 77093643461234 [12:15:27]1041 (16) - 0000000000875074 [12:15:27]1040 (4) - 63975 [12:15:27]1012 (4) - 04.06.2024 06:16 [12:15:27]1206 (1) - 0 [12:15:27]OFD Sender: Remove packet 63975 [12:15:27]ProducePacketName [12:15:27]name=ofd_packets/00063975 [12:15:27]NVStorageDeleteData [12:15:27]Write to MH i2c: 01 00 00 F5 14 09 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 F5 14 00 00 00 00 00 A0 0A BA [12:15:27]RasterBufferAndPrint [12:15:27]line [12:15:27]line [12:15:27]line [12:15:27]line [12:15:27]line [12:15:27]written 0, free lines is 2730 [12:15:27]MH_Cut [12:15:27]Write to MH i2c: D1 01 00 FC 14 01 E2 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: D1 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: D1 01 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: D1 01 00 FC 14 00 E1 [12:15:27]Write to MH i2c: 01 00 00 FD 14 11 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]OFD Sender: No OFD packet to send [12:15:28]*** Cut start [12:15:28]*** Partial cut [12:15:28]*** CUTSNS_PIN = 1 [12:15:28]*** CUTSNS_PIN = 0 [12:15:29]*** Brake cut motor [12:15:29]Read from MH i2c: 01 [12:15:29]MH_I2C_Read... [12:15:29]*** Stop cut motor [12:15:29]*** Cut end [12:15:29]Read from MH i2c: 01 07 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 FF 0F 26 [12:15:29]process_action close_receipt done [12:15:29]requested_data is exist [12:15:29]produce_requested_data [12:15:29]requested_item fm.sn is exist - process it [12:15:29]wFMCommunicate request_size=4 [12:15:29]MH_SAM_APDU [12:15:29]CAPDU: 80 11 00 00 [12:15:29]Write to MH i2c: E2 08 00 FE 14 80 11 00 00 00 00 00 00 8C [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 17 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 17 00 FE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DE [12:15:29]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:29]wFMCommunicate OK [12:15:29]requested_item fd.num is exist - process it [12:15:29]SAM_PROTO_GetFieldsCounters [12:15:29]wFMCommunicate request_size=4 [12:15:29]MH_SAM_APDU [12:15:29]CAPDU: 80 13 00 00 [12:15:29]Write to MH i2c: E2 08 00 FF 14 80 13 00 00 00 00 00 00 8F [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 62 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 62 00 FF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 E7 F9 00 00 0E 04 04 00 76 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 BD [12:15: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 E7 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:29]wFMCommunicate OK [12:15:29]SAM_PROTO_GetFieldsCounters done [12:15:29]requested_item shift.num is exist - process it [12:15:29]requested_item shift.opened is exist - process it [12:15:29]req_shift_opened [12:15:29]FM_GetShiftState [12:15:29]SAM_PROTO_GetShiftState [12:15:29]wFMCommunicate request_size=4 [12:15:29]MH_SAM_APDU [12:15:29]CAPDU: 80 13 01 00 [12:15:29]Write to MH i2c: E2 08 00 00 15 80 13 01 00 00 00 00 00 92 [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 0E 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 0E 00 00 15 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 32 [12:15:29]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:15:29]wFMCommunicate OK [12:15:29]SAM_PROTO_GetShiftState done [12:15:29]FM_GetShiftState done [12:15:29]req_shift_opened done [12:15:29]requested_item shift.open_date is exist - process it [12:15:29]req_shift_open_date [12:15:29]req_shift_open_date done [12:15:29]produce_requested_data done [12:15:29]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63975,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:15:29]process_action_free close_receipt [12:15:29]json_value_free [12:15:29]json_value_free done [12:15:29]process_json_proto returns [12:15:29]Send response to host [12:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63975,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:15:29]free response buf [12:15:29]execute_script done [12:15:29]execute_script returns [12:15:29]free content buf [12:15:29]Sock 9.Close socket [12:15:29]Sock 9.Thread stoped [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:51]accept exits with 7 [12:15:51]New connection [12:15:51]New thread 3066912100 created [12:15:51]Thread 3067055460 joined [12:15:51]Waiting for new connection... [12:15:51] Sock 7.Parse request [12:15:51]Sock 7.Check first char [12:15:51]Sock 7.First char is OK [12:15:51]request: POST /json_proto HTTP/1.0 [12:15:51]Method: POST [12:15:51]URL: /json_proto [12:15:51]Method is POST - this is cgi request [12:15:51]url: /json_proto [12:15:51]query_string will be loaded in cgi processing [12:15:51]execute_cgi json_proto POST (null) [12:15:51]execute_cgi path=json_proto method=POST [12:15:51]POST find Content-Length [12:15:51]Host: 172.17.60.69:8080 [12:15:51]Content-Length: 898 [12:15:51]Content-Type: application/json [12:15:51] [12:15:51]POST finish read [12:15:51]Found Content-Length = 898 [12:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73537", "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" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [12:15:51]execute_script... [12:15:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73537", "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" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" ] } } [12:15:51]POST & json_proto [12:15:51]process_json_proto [12:15:51]json parsed OK: [12:15:51]protocol is kg_v1.0 [12:15:51]action value=close_receipt [12:15:51]process_action close_receipt [12:15:51]cmd_close_receipt [12:15:51]MH_GetDate [12:15:51]Write to MH i2c: F0 00 00 01 15 05 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: F0 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: F0 09 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: F0 09 00 01 15 00 7A 05 5F 66 6A 96 4A 66 02 [12:15:51]GetLastDocTimeStamp 1717503326 [12:15:51]current date 1717503354 [12:15:51]FM_GetShiftState [12:15:51]SAM_PROTO_GetShiftState [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 01 00 [12:15:51]Write to MH i2c: E2 08 00 02 15 80 13 01 00 00 00 00 00 94 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 02 15 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 34 [12:15:51]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetShiftState done [12:15:51]FM_GetShiftState done [12:15:51]opened in 1717459574 [12:15:51]opened+sec_in_day 1717545974 [12:15:51]quantity*price = 12000 [12:15:51]sum+1 = 12001 [12:15:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.54 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 61 04.06.2024 12:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63976 ФПД: 250428722481728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121554&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63976&fm=250428722481728&tin=02508201610067®Number=0000000000092737&sum=25000 0 [12:15:53]StoreToDocumentArchive [12:15:53]shift 374 fd 63976 [12:15:53]save to /storage/0374/doc_00063976 [12:15:53]save last doc name /storage/0374/doc_00063976 to /storage/kkm_last_doc_name [12:15:53]save OK [12:15:53]Clear old archive folders... [12:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=394 [12:15:53]tlvbuf is 01292380 [12:15:53]SAM_PROTO_ClearQueue [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 09 00 00 [12:15:53]Write to MH i2c: E2 08 00 0F 15 80 09 00 00 00 00 00 00 96 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [12:15:53]RAPDU: 90 00 [12:15:53]wFMCommunicate OK [12:15:53]SAM_PROTO_ClearQueue done [12:15:53]KKMCreateOFDPacket [12:15:53]OFDProtocolAddRootSTLVToBuf [12:15:53]FM_MakeSignedData [12:15:53]FM_MakeSignedData [12:15:53]SAM_PROTO_SignData [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 0D 01 02 [12:15:53]Write to MH i2c: E2 08 00 10 15 80 0D 01 02 00 00 00 00 9E [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [12:15:53]RAPDU: 90 00 [12:15:53]wFMCommunicate OK [12:15:53]wFMCommunicate request_size=255 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 0D 02 02 FA 03 00 8A 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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F [12:15:53]Write to MH i2c: E2 02 01 11 15 80 0D 02 02 FA 00 03 00 8A 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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 F8 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [12:15:53]RAPDU: 90 00 [12:15:53]wFMCommunicate OK [12:15:53]wFMCommunicate request_size=153 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7A 05 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E8 F9 00 00 35 04 06 00 E3 C3 7B 0B 8A 40 [12:15:53]Write to MH i2c: E2 9C 00 12 15 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7A 05 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E8 F9 00 00 35 04 06 00 E3 C3 7B 0B 8A 40 00 00 10 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 12 15 00 90 00 9B [12:15:53]RAPDU: 90 00 [12:15:53]wFMCommunicate OK [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 0D 03 02 [12:15:53]Write to MH i2c: E2 08 00 13 15 80 0D 03 02 00 00 00 00 A3 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 0B 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 0B 00 13 15 00 03 4B 2F 04 F0 46 30 B8 90 00 43 [12:15:53]RAPDU: 03 4B 2F 04 F0 46 30 B8 90 00 [12:15:53]wFMCommunicate OK [12:15:53]SAM_PROTO_SignData done [12:15:53]FM_MakeSignedData done [12:15:53]CreateOFDProtocolMessage [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 11 00 00 [12:15:53]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 17 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F5 [12:15:53]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:53]wFMCommunicate OK [12:15:53]CreateOFDProtocolMessage done [12:15:53]OFDSenderStorePacket 63976 [12:15:53]StoreOFDPacket docnum=63976 [12:15: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 9E 01 00 00 1F 95 96 01 8B FA 5A 03 01 00 03 00 8A 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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7A 05 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E8 F9 00 00 35 04 06 00 E3 C3 7B 0B 8A 40 03 4B 2F 04 F0 46 30 B8 [12:15:53]CheckFolder [12:15:53]dirname=/storage/ofd_packets [12:15:53]CheckFolder done [12:15:53]ProducePacketName [12:15:53]name=ofd_packets/00063976 [12:15:53]NVStorageSaveData ofd_packets/00063976 [12:15:53]File name is /storage/ofd_packets/00063976 [12:15:53]Write 444 bytes [12:15:53]NVStorageSaveData done [12:15:53]OFDSenderStorePacket done [12:15:53]KKMCreateOFDPacket done [12:15:53]NVStorageSaveData kkm_last_timestamp [12:15:53]File name is /storage/kkm_last_timestamp [12:15:53]Write 4 bytes [12:15:53]NVStorageSaveData done [12:15:53]ExternCall_PrintAddStr [12:15:53]wPrintStart [12:15:53]Write to MH i2c: 01 00 00 15 15 2A [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: 01 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: 01 07 00 [12:15:54]MH_I2C_Read... [12:15:54]OFD Sender: Processing packet 63976 [packets to send 14, broken 13] [12:15:54]ProducePacketName [12:15:54]name=ofd_packets/00063976 [12:15:54]OFD Sender: To server: pG, [12:15:54]CommunicateWithHost lk.salyk.kg:30040 [12:15:54]ConnectInit lk.salyk.kg [12:15:54]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [12:15:54]RasterBufferAndPrint [12:15:54]line Счет N : (3)73537 [12:15:54]line ИНН: 02508201610067 [12:15:54]line Контрольно-Кассовый Чек [12:15:54]line ПРОДАЖА [12:15:54]line Товар: 2000032780025 [12:15:54]line Сосиска в тесте DC 110г [12:15:54]line 2.000 * 60.00 [12:15:54]line = 120.00 [12:15:54]line НДС 12% НСП 1% [12:15:54]line > о реализуемом товаре [12:15:54]line Товар: 48745291 [12:15:54]line Сигареты Parliament SOHO NYC COMPACT BLU [12:15:54]line 1.000 * 130.00 [12:15:54]line = 130.00 [12:15:54]line НДС 12% НСП 1% [12:15:54]line > о реализуемом товаре [12:15:54]line ИТОГО: 250.00 [12:15:54]line НСП 1% : 2.21 [12:15:54]line НДС 12% : 26.54 [12:15:54]line Наличными: 250.00 [12:15:54]line Безнал.: 0.00 [12:15:54]line Место: АЗС № 117 "Партнер Нефть" [12:15:54]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:15:54]line СНО: Общий режим [12:15:54]line Чек 61 04.06.2024 12:15 [12:15:54]line Смена: 374 ФФД: 1.0 [12:15:54]line ЗНМ: 0300000031 [12:15:54]line РНМ: 0000000000092737 [12:15:54]line Версия ККМ: 001 [12:15:54]line ФМ: 0000000000875074 [12:15:54]line ФД: 63976 [12:15:54]line ФПД: 250428722481728 [12:15:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121554&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63976&fm=250428722481728&tin=02508201610067®Number=0000000000092737&sum=25000 [12:15:54]line 0 [12:15:54]written 0, free lines is 4095 [12:15:54]Connected sock=10 [12:15: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 9E 01 00 00 1F 95 96 01 8B FA 5A 03 01 00 03 00 8A 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 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7A 05 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E8 F9 00 00 35 04 06 00 E3 C3 7B 0B 8A 40 03 4B 2F 04 F0 46 30 B8 [12:15: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 DD CF 47 00 B5 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 E8 F9 00 00 F4 03 04 00 49 B1 5E 66 B6 04 01 00 00 A0 0B 9A FE 63 FF 72 DA [12:15:54]CommunicateWithHost err = 0 [12:15:54]CheckOFDResponse [12:15:54]1017 (14) - 77093643461234 [12:15:54]1041 (16) - 0000000000875074 [12:15:54]1040 (4) - 63976 [12:15:54]1012 (4) - 04.06.2024 06:16 [12:15:54]1206 (1) - 0 [12:15:54]OFD Sender: Remove packet 63976 [12:15:54]ProducePacketName [12:15:54]name=ofd_packets/00063976 [12:15:54]NVStorageDeleteData [12:15:54]Write to MH i2c: 01 00 00 44 15 59 [12:15:54]Write i2c OK [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: 01 [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: 01 07 00 [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: 01 07 00 44 15 00 00 00 00 00 8E 0C FA [12:15:54]RasterBufferAndPrint [12:15:54]line [12:15:54]line [12:15:54]line [12:15:54]line [12:15:54]line [12:15:54]written 0, free lines is 3221 [12:15:54]MH_Cut [12:15:54]Write to MH i2c: D1 01 00 4B 15 01 32 [12:15:54]Write i2c OK [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: D1 [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: D1 01 00 [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: D1 01 00 4B 15 00 31 [12:15:54]Write to MH i2c: 01 00 00 4C 15 61 [12:15:54]Write i2c OK [12:15:54]MH_I2C_Read... [12:15:54]OFD Sender: No OFD packet to send [12:15:55]*** Cut start [12:15:55]*** Partial cut [12:15:55]*** CUTSNS_PIN = 1 [12:15:55]*** CUTSNS_PIN = 0 [12:15:55]*** Brake cut motor [12:15:56]Read from MH i2c: 01 [12:15:56]MH_I2C_Read... [12:15:56]*** Stop cut motor [12:15:56]*** Cut end [12:15:56]Read from MH i2c: 01 07 00 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 FF 0F 76 [12:15:56]process_action close_receipt done [12:15:56]requested_data is exist [12:15:56]produce_requested_data [12:15:56]requested_item fm.sn is exist - process it [12:15:56]wFMCommunicate request_size=4 [12:15:56]MH_SAM_APDU [12:15:56]CAPDU: 80 11 00 00 [12:15:56]Write to MH i2c: E2 08 00 4D 15 80 11 00 00 00 00 00 00 DC [12:15:56]Write i2c OK [12:15:56]MH_I2C_Read... [12:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:56]Read from MH i2c: E2 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 17 00 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 17 00 4D 15 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:15:56]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:56]wFMCommunicate OK [12:15:56]requested_item fd.num is exist - process it [12:15:56]SAM_PROTO_GetFieldsCounters [12:15:56]wFMCommunicate request_size=4 [12:15:56]MH_SAM_APDU [12:15:56]CAPDU: 80 13 00 00 [12:15:56]Write to MH i2c: E2 08 00 4E 15 80 13 00 00 00 00 00 00 DF [12:15:56]Write i2c OK [12:15:56]MH_I2C_Read... [12:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:56]Read from MH i2c: E2 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 62 00 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 62 00 4E 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 E8 F9 00 00 0E 04 04 00 76 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 [12:15: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 E8 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:56]wFMCommunicate OK [12:15:56]SAM_PROTO_GetFieldsCounters done [12:15:56]requested_item shift.num is exist - process it [12:15:56]requested_item shift.opened is exist - process it [12:15:56]req_shift_opened [12:15:56]FM_GetShiftState [12:15:56]SAM_PROTO_GetShiftState [12:15:56]wFMCommunicate request_size=4 [12:15:56]MH_SAM_APDU [12:15:56]CAPDU: 80 13 01 00 [12:15:56]Write to MH i2c: E2 08 00 4F 15 80 13 01 00 00 00 00 00 E1 [12:15:56]Write i2c OK [12:15:56]MH_I2C_Read... [12:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:56]Read from MH i2c: E2 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 0E 00 [12:15:56]MH_I2C_Read... [12:15:56]Read from MH i2c: E2 0E 00 4F 15 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 81 [12:15:56]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:15:56]wFMCommunicate OK [12:15:56]SAM_PROTO_GetShiftState done [12:15:56]FM_GetShiftState done [12:15:56]req_shift_opened done [12:15:56]requested_item shift.open_date is exist - process it [12:15:56]req_shift_open_date [12:15:56]req_shift_open_date done [12:15:56]produce_requested_data done [12:15:56]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63976,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:15:56]process_action_free close_receipt [12:15:56]json_value_free [12:15:56]json_value_free done [12:15:56]process_json_proto returns [12:15:56]Send response to host [12:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63976,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:15:56]free response buf [12:15:56]execute_script done [12:15:56]execute_script returns [12:15:56]free content buf [12:15:56]Sock 7.Close socket [12:15:56]Sock 7.Thread stoped [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:23]accept exits with 9 [12:18:23]New connection [12:18:23]New thread 3067055460 created [12:18:23]Thread 3066912100 joined [12:18:23]Waiting for new connection... [12:18:23] Sock 9.Parse request [12:18:23]Sock 9.Check first char [12:18:23]Sock 9.First char is OK [12:18:23]request: POST /json_proto HTTP/1.0 [12:18:23]Method: POST [12:18:23]URL: /json_proto [12:18:23]Method is POST - this is cgi request [12:18:23]url: /json_proto [12:18:23]query_string will be loaded in cgi processing [12:18:23]execute_cgi json_proto POST (null) [12:18:23]execute_cgi path=json_proto method=POST [12:18:23]POST find Content-Length [12:18:23]Host: 172.17.60.69:8080 [12:18:23]Content-Length: 1099 [12:18:23]Content-Type: application/json [12:18:23] [12:18:23]POST finish read [12:18:23]Found Content-Length = 1099 [12:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73538", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:23]execute_script... [12:18:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73538", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:23]POST & json_proto [12:18:23]process_json_proto [12:18:23]json parsed OK: [12:18:23]protocol is kg_v1.0 [12:18:23]action value=close_receipt [12:18:23]process_action close_receipt [12:18:23]cmd_close_receipt [12:18:23]MH_GetDate [12:18:23]Write to MH i2c: F0 00 00 50 15 54 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 09 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 09 00 50 15 00 12 06 5F 66 6A 96 4A 66 EA [12:18:23]GetLastDocTimeStamp 1717503354 [12:18:23]current date 1717503506 [12:18:23]FM_GetShiftState [12:18:23]SAM_PROTO_GetShiftState [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 13 01 00 [12:18:23]Write to MH i2c: E2 08 00 51 15 80 13 01 00 00 00 00 00 E3 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 0E 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 0E 00 51 15 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 83 [12:18:24]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:18:24]wFMCommunicate OK [12:18:24]SAM_PROTO_GetShiftState done [12:18:24]FM_GetShiftState done [12:18:24]opened in 1717459574 [12:18:24]opened+sec_in_day 1717545974 [12:18:24]quantity*price = 9500 [12:18:24]sum+1 = 9501 [12:18:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745291 Сигареты Parliament SOHO NYC COMPACT BLU 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 0.00 Безнал.: 225.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 62 04.06.2024 12:18 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63977 ФПД: 27627989269740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121826&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63977&fm=27627989269740&tin=02508201610067®Number=0000000000092737&sum=22500 0 [12:18:25]StoreToDocumentArchive [12:18:25]shift 374 fd 63977 [12:18:25]save to /storage/0374/doc_00063977 [12:18:25]save last doc name /storage/0374/doc_00063977 to /storage/kkm_last_doc_name [12:18:25]save OK [12:18:25]Clear old archive folders... [12:18:25]ProcessDocumentItem done err = 0, tmpTLVsize=399 [12:18:25]tlvbuf is 01282E80 [12:18:25]SAM_PROTO_ClearQueue [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 09 00 00 [12:18:25]Write to MH i2c: E2 08 00 5E 15 80 09 00 00 00 00 00 00 E5 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 5E 15 00 90 00 E7 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]SAM_PROTO_ClearQueue done [12:18:25]KKMCreateOFDPacket [12:18:25]OFDProtocolAddRootSTLVToBuf [12:18:25]FM_MakeSignedData [12:18:25]FM_MakeSignedData [12:18:25]SAM_PROTO_SignData [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 01 02 [12:18:25]Write to MH i2c: E2 08 00 5F 15 80 0D 01 02 00 00 00 00 ED [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 5F 15 00 90 00 E8 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=255 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 E4 57 00 00 00 00 EB 03 [12:18:25]Write to MH i2c: E2 02 01 60 15 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 E4 57 00 00 00 00 EB 03 00 00 A0 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 60 15 00 90 00 E9 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=158 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 02 02 99 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 3E 00 00 00 F4 03 04 00 12 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E9 F9 00 00 35 04 06 00 19 20 A4 7C 7C EC [12:18:25]Write to MH i2c: E2 A1 00 61 15 80 0D 02 02 99 00 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 3E 00 00 00 F4 03 04 00 12 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E9 F9 00 00 35 04 06 00 19 20 A4 7C 7C EC 00 00 08 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 61 15 00 90 00 EA [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 03 02 [12:18:25]Write to MH i2c: E2 08 00 62 15 80 0D 03 02 00 00 00 00 F2 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 62 15 00 DE F7 3B 14 A4 CE 37 3A 90 00 FA [12:18:25]RAPDU: DE F7 3B 14 A4 CE 37 3A 90 00 [12:18:25]wFMCommunicate OK [12:18:25]SAM_PROTO_SignData done [12:18:25]FM_MakeSignedData done [12:18:25]CreateOFDProtocolMessage [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 11 00 00 [12:18:25]Write to MH i2c: E2 08 00 63 15 80 11 00 00 00 00 00 00 F2 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 17 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 17 00 63 15 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:18: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:18:25]wFMCommunicate OK [12:18:25]CreateOFDProtocolMessage done [12:18:25]OFDSenderStorePacket 63977 [12:18:25]StoreOFDPacket docnum=63977 [12:18: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 A3 01 00 00 88 74 9B 01 FC 40 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 3E 00 00 00 F4 03 04 00 12 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E9 F9 00 00 35 04 06 00 19 20 A4 7C 7C EC DE F7 3B 14 A4 CE 37 3A [12:18:25]CheckFolder [12:18:25]dirname=/storage/ofd_packets [12:18:25]CheckFolder done [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00063977 [12:18:26]NVStorageSaveData ofd_packets/00063977 [12:18:26]File name is /storage/ofd_packets/00063977 [12:18:26]Write 449 bytes [12:18:26]NVStorageSaveData done [12:18:26]OFDSenderStorePacket done [12:18:26]KKMCreateOFDPacket done [12:18:26]NVStorageSaveData kkm_last_timestamp [12:18:26]File name is /storage/kkm_last_timestamp [12:18:26]Write 4 bytes [12:18:26]NVStorageSaveData done [12:18:26]ExternCall_PrintAddStr [12:18:26]wPrintStart [12:18:26]Write to MH i2c: 01 00 00 64 15 79 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 64 15 00 00 00 00 00 FF 0F 8E [12:18:26]RasterBufferAndPrint [12:18:26]line Счет N : (3)73538 [12:18:26]line ИНН: 02508201610067 [12:18:26]line Контрольно-Кассовый Чек [12:18:26]line ПРОДАЖА [12:18:26]line Товар: 2000036190018 [12:18:26]line Кофе Американо XL(GABB TRADE) [12:18:26]line 1.000 * 95.00 [12:18:26]line = 95.00 [12:18:26]line НДС 12% НСП 1% [12:18:26]line > о реализуемом товаре [12:18:26]line Товар: 48745291 [12:18:26]line Сигареты Parliament SOHO NYC COMPACT BLU [12:18:26]line 1.000 * 130.00 [12:18:26]line = 130.00 [12:18:26]line НДС 12% НСП 1% [12:18:26]line > о реализуемом товаре [12:18:26]line ИТОГО: 225.00 [12:18:26]line НСП 1% : 1.99 [12:18:26]line НДС 12% : 23.89 [12:18:26]line Наличными: 0.00 [12:18:26]line Безнал.: 225.00 [12:18:26]line Место: АЗС № 117 "Партнер Нефть" [12:18:26]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:18:26]line СНО: Общий режим [12:18:26]line Чек 62 04.06.2024 12:18 [12:18:26]line Смена: 374 ФФД: 1.0 [12:18:26]line ЗНМ: 0300000031 [12:18:26]line РНМ: 0000000000092737 [12:18:26]line Версия ККМ: 001 [12:18:26]line Платежная система: АКБ Кыргызстан [12:18:26]line ФМ: 0000000000875074 [12:18:26]line ФД: 63977 [12:18:26]line ФПД: 27627989269740 [12:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121826&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63977&fm=27627989269740&tin=02508201610067®Number=0000000000092737&sum=22500 [12:18:26]line 0 [12:18:26]written 0, free lines is 4095 [12:18:26]OFD Sender: Processing packet 63977 [packets to send 14, broken 13] [12:18:26]ProducePacketName [12:18:26]name=ofd_packets/00063977 [12:18:26]OFD Sender: To server: pG, [12:18:26]CommunicateWithHost lk.salyk.kg:30040 [12:18:26]ConnectInit lk.salyk.kg [12:18:26]Connected sock=10 [12:18: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 A3 01 00 00 88 74 9B 01 FC 40 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 3E 00 00 00 F4 03 04 00 12 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E9 F9 00 00 35 04 06 00 19 20 A4 7C 7C EC DE F7 3B 14 A4 CE 37 3A [12:18: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 4C A2 47 00 BB 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 E9 F9 00 00 F4 03 04 00 E1 B1 5E 66 B6 04 01 00 00 68 5E E2 B9 7E AA 35 4E [12:18:26]CommunicateWithHost err = 0 [12:18:26]CheckOFDResponse [12:18:26]1017 (14) - 77093643461234 [12:18:26]1041 (16) - 0000000000875074 [12:18:26]1040 (4) - 63977 [12:18:26]1012 (4) - 04.06.2024 06:19 [12:18:26]1206 (1) - 0 [12:18:26]OFD Sender: Remove packet 63977 [12:18:26]ProducePacketName [12:18:26]name=ofd_packets/00063977 [12:18:26]NVStorageDeleteData [12:18:26]Write to MH i2c: 01 00 00 96 15 AB [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: 01 07 00 96 15 00 00 00 00 00 67 0C 25 [12:18:26]RasterBufferAndPrint [12:18:26]line [12:18:26]line [12:18:26]line [12:18:26]line [12:18:26]line [12:18:26]written 0, free lines is 3182 [12:18:26]MH_Cut [12:18:26]Write to MH i2c: D1 01 00 9D 15 01 84 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: D1 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: D1 01 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: D1 01 00 9D 15 00 83 [12:18:26]Write to MH i2c: 01 00 00 9E 15 B3 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]OFD Sender: No OFD packet to send [12:18:27]*** Cut start [12:18:27]*** Partial cut [12:18:27]*** CUTSNS_PIN = 1 [12:18:27]*** CUTSNS_PIN = 0 [12:18:27]*** Brake cut motor [12:18:28]Read from MH i2c: 01 [12:18:28]MH_I2C_Read... [12:18:28]*** Stop cut motor [12:18:28]*** Cut end [12:18:28]Read from MH i2c: 01 07 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 FF 0F C8 [12:18:28]process_action close_receipt done [12:18:28]requested_data is exist [12:18:28]produce_requested_data [12:18:28]requested_item fm.sn is exist - process it [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 11 00 00 [12:18:28]Write to MH i2c: E2 08 00 9F 15 80 11 00 00 00 00 00 00 2E [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 17 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 17 00 9F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 80 [12: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 [12:18:28]wFMCommunicate OK [12:18:28]requested_item fd.num is exist - process it [12:18:28]SAM_PROTO_GetFieldsCounters [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 13 00 00 [12:18:28]Write to MH i2c: E2 08 00 A0 15 80 13 00 00 00 00 00 00 31 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 62 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 62 00 A0 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 E9 F9 00 00 0E 04 04 00 76 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 67 [12:18: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 E9 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:28]wFMCommunicate OK [12:18:28]SAM_PROTO_GetFieldsCounters done [12:18:28]requested_item shift.num is exist - process it [12:18:28]requested_item shift.opened is exist - process it [12:18:28]req_shift_opened [12:18:28]FM_GetShiftState [12:18:28]SAM_PROTO_GetShiftState [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 13 01 00 [12:18:28]Write to MH i2c: E2 08 00 A1 15 80 13 01 00 00 00 00 00 33 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 0E 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 0E 00 A1 15 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D3 [12:18:28]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:18:28]wFMCommunicate OK [12:18:28]SAM_PROTO_GetShiftState done [12:18:28]FM_GetShiftState done [12:18:28]req_shift_opened done [12:18:28]requested_item shift.open_date is exist - process it [12:18:28]req_shift_open_date [12:18:28]req_shift_open_date done [12:18:28]produce_requested_data done [12:18:28]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63977,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:18:28]process_action_free close_receipt [12:18:28]json_value_free [12:18:28]json_value_free done [12:18:28]process_json_proto returns [12:18:28]Send response to host [12:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63977,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:18:28]free response buf [12:18:28]execute_script done [12:18:28]execute_script returns [12:18:28]free content buf [12:18:28]Sock 9.Close socket [12:18:28]Sock 9.Thread stoped [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:37]accept exits with 7 [12:18:37]New connection [12:18:37]New thread 3066912100 created [12:18:37]Thread 3067055460 joined [12:18:37]Waiting for new connection... [12:18:37] Sock 7.Parse request [12:18:37]Sock 7.Check first char [12:18:37]Sock 7.First char is OK [12:18:37]request: POST /json_proto HTTP/1.0 [12:18:37]Method: POST [12:18:37]URL: /json_proto [12:18:37]Method is POST - this is cgi request [12:18:37]url: /json_proto [12:18:37]query_string will be loaded in cgi processing [12:18:37]execute_cgi json_proto POST (null) [12:18:37]execute_cgi path=json_proto method=POST [12:18:37]POST find Content-Length [12:18:37]Host: 172.17.60.69:8080 [12:18:37]Content-Length: 682 [12:18:37]Content-Type: application/json [12:18:37] [12:18:37]POST finish read [12:18:37]Found Content-Length = 682 [12:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544571", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:37]execute_script... [12:18:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544571", "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" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:37]POST & json_proto [12:18:37]process_json_proto [12:18:37]json parsed OK: [12:18:37]protocol is kg_v1.0 [12:18:37]action value=close_receipt [12:18:37]process_action close_receipt [12:18:37]cmd_close_receipt [12:18:37]MH_GetDate [12:18:37]Write to MH i2c: F0 00 00 A2 15 A6 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: F0 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: F0 09 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: F0 09 00 A2 15 00 1F 06 5F 66 6A 96 4A 66 49 [12:18:37]GetLastDocTimeStamp 1717503506 [12:18:37]current date 1717503519 [12:18:37]FM_GetShiftState [12:18:37]SAM_PROTO_GetShiftState [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 13 01 00 [12:18:37]Write to MH i2c: E2 08 00 A3 15 80 13 01 00 00 00 00 00 35 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0E 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0E 00 A3 15 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D5 [12:18:37]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_GetShiftState done [12:18:37]FM_GetShiftState done [12:18:37]opened in 1717459574 [12:18:37]opened+sec_in_day 1717545974 [12:18:37]quantity*price = 100015 [12:18:37]sum+1 = 100017 [12:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 63 04.06.2024 12:18 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63978 ФПД: 172290516118569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121839&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63978&fm=172290516118569&tin=02508201610067®Number=0000000000092737&sum=100000 [12:18:38]StoreToDocumentArchive [12:18:38]shift 374 fd 63978 [12:18:38]save to /storage/0374/doc_00063978 [12:18:38]save last doc name /storage/0374/doc_00063978 to /storage/kkm_last_doc_name [12:18:38]save OK [12:18:38]Clear old archive folders... [12:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:38]tlvbuf is 01291E10 [12:18:38]SAM_PROTO_ClearQueue [12:18:38]wFMCommunicate request_size=4 [12:18:38]MH_SAM_APDU [12:18:38]CAPDU: 80 09 00 00 [12:18:38]Write to MH i2c: E2 08 00 B0 15 80 09 00 00 00 00 00 00 37 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:38]Read from MH i2c: E2 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 03 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 03 00 B0 15 00 90 00 39 [12:18:38]RAPDU: 90 00 [12:18:38]wFMCommunicate OK [12:18:38]SAM_PROTO_ClearQueue done [12:18:38]KKMCreateOFDPacket [12:18:38]OFDProtocolAddRootSTLVToBuf [12:18:38]FM_MakeSignedData [12:18:38]FM_MakeSignedData [12:18:38]SAM_PROTO_SignData [12:18:38]wFMCommunicate request_size=4 [12:18:38]MH_SAM_APDU [12:18:38]CAPDU: 80 0D 01 02 [12:18:38]Write to MH i2c: E2 08 00 B1 15 80 0D 01 02 00 00 00 00 3F [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:38]Read from MH i2c: E2 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 03 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [12:18:38]RAPDU: 90 00 [12:18:38]wFMCommunicate OK [12:18:38]wFMCommunicate request_size=255 [12:18:38]MH_SAM_APDU [12:18:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1F 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EA F9 00 00 35 04 06 00 9C [12:18:38]Write to MH i2c: E2 02 01 B2 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1F 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EA F9 00 00 35 04 06 00 9C 00 00 E9 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:38]Read from MH i2c: E2 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 03 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [12:18:38]RAPDU: 90 00 [12:18:38]wFMCommunicate OK [12:18:38]wFMCommunicate request_size=10 [12:18:38]MH_SAM_APDU [12:18:38]CAPDU: 80 0D 02 02 05 B2 83 02 EC 29 [12:18:38]Write to MH i2c: E2 0D 00 B3 15 80 0D 02 02 05 00 B2 83 02 EC 29 00 00 98 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:38]Read from MH i2c: E2 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 03 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [12:18:38]RAPDU: 90 00 [12:18:38]wFMCommunicate OK [12:18:38]wFMCommunicate request_size=4 [12:18:38]MH_SAM_APDU [12:18:38]CAPDU: 80 0D 03 02 [12:18:38]Write to MH i2c: E2 08 00 B4 15 80 0D 03 02 00 00 00 00 44 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:38]Read from MH i2c: E2 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 0B 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 0B 00 B4 15 00 05 3E AC C0 33 5B A5 BB 90 00 E2 [12:18:38]RAPDU: 05 3E AC C0 33 5B A5 BB 90 00 [12:18:38]wFMCommunicate OK [12:18:38]SAM_PROTO_SignData done [12:18:38]FM_MakeSignedData done [12:18:38]CreateOFDProtocolMessage [12:18:38]wFMCommunicate request_size=4 [12:18:38]MH_SAM_APDU [12:18:38]CAPDU: 80 11 00 00 [12:18:38]Write to MH i2c: E2 08 00 B5 15 80 11 00 00 00 00 00 00 44 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:38]Read from MH i2c: E2 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 17 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 17 00 B5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 96 [12:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:18:38]wFMCommunicate OK [12:18:38]CreateOFDProtocolMessage done [12:18:38]OFDSenderStorePacket 63978 [12:18:38]StoreOFDPacket docnum=63978 [12:18: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 99 82 07 01 E4 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1F 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EA F9 00 00 35 04 06 00 9C B2 83 02 EC 29 05 3E AC C0 33 5B A5 BB [12:18:38]CheckFolder [12:18:38]dirname=/storage/ofd_packets [12:18:38]CheckFolder done [12:18:38]ProducePacketName [12:18:38]name=ofd_packets/00063978 [12:18:38]NVStorageSaveData ofd_packets/00063978 [12:18:38]File name is /storage/ofd_packets/00063978 [12:18:38]Write 301 bytes [12:18:38]NVStorageSaveData done [12:18:38]OFDSenderStorePacket done [12:18:38]KKMCreateOFDPacket done [12:18:38]NVStorageSaveData kkm_last_timestamp [12:18:38]File name is /storage/kkm_last_timestamp [12:18:38]Write 4 bytes [12:18:38]NVStorageSaveData done [12:18:38]ExternCall_PrintAddStr [12:18:38]wPrintStart [12:18:38]Write to MH i2c: 01 00 00 B6 15 CB [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 B6 15 00 00 00 00 00 FF 0F E0 [12:18:38]RasterBufferAndPrint [12:18:38]line Счет N : (1)544571 [12:18:38]line ИНН: 02508201610067 [12:18:38]line Контрольно-Кассовый Чек [12:18:38]line ПРОДАЖА [12:18:38]line ТРК (МРК, ГНК) : 22 [12:18:38]line Товар: 2710124130 [12:18:38]line Аи-92-К-5 [12:18:38]line 14.950 * 66.90 [12:18:38]line = 1000.16 [12:18:38]line НДС 12% НСП 1% [12:18:38]line > о реализуемом товаре [12:18:38]line ОКРУГЛЕНИЕ: -0.16 [12:18:38]line ИТОГО: 1000.00 [12:18:38]line Внесено: 1000.00 [12:18:38]line СДАЧА: 0.00 [12:18:38]line НСП 1% : 8.85 [12:18:38]line НДС 12% : 106.21 [12:18:38]line Наличными: 1000.00 [12:18:38]line Безнал.: 0.00 [12:18:38]line Место: АЗС № 117 "Партнер Нефть" [12:18:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:18:38]line СНО: Общий режим [12:18:38]line Чек 63 04.06.2024 12:18 [12:18:38]line Смена: 374 ФФД: 1.0 [12:18:38]line ЗНМ: 0300000031 [12:18:38]line РНМ: 0000000000092737 [12:18:38]line Версия ККМ: 001 [12:18:38]line ФМ: 0000000000875074 [12:18:38]line ФД: 63978 [12:18:38]line ФПД: 172290516118569 [12:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121839&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63978&fm=172290516118569&tin=02508201610067®Number=0000000000092737&sum=100000 [12:18:38]written 0, free lines is 4095 [12:18:38]OFD Sender: Processing packet 63978 [packets to send 14, broken 13] [12:18:38]ProducePacketName [12:18:38]name=ofd_packets/00063978 [12:18:38]OFD Sender: To server: pG, [12:18:38]CommunicateWithHost lk.salyk.kg:30040 [12:18:38]ConnectInit lk.salyk.kg [12:18:38]Connected sock=10 [12:18: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 99 82 07 01 E4 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 1F 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EA F9 00 00 35 04 06 00 9C B2 83 02 EC 29 05 3E AC C0 33 5B A5 BB [12:18: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 3E AB 47 00 77 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EA F9 00 00 F4 03 04 00 ED B1 5E 66 B6 04 01 00 00 4E A0 F1 66 39 C2 60 96 [12:18:39]CommunicateWithHost err = 0 [12:18:39]CheckOFDResponse [12:18:39]1017 (14) - 77093643461234 [12:18:39]1041 (16) - 0000000000875074 [12:18:39]1040 (4) - 63978 [12:18:39]1012 (4) - 04.06.2024 06:19 [12:18:39]1206 (1) - 0 [12:18:39]OFD Sender: Remove packet 63978 [12:18:39]ProducePacketName [12:18:39]name=ofd_packets/00063978 [12:18:39]NVStorageDeleteData [12:18:39]Write to MH i2c: 01 00 00 E1 15 F6 [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: 01 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: 01 07 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: 01 07 00 E1 15 00 00 00 00 00 D7 0C E0 [12:18:39]RasterBufferAndPrint [12:18:39]line [12:18:39]line [12:18:39]line [12:18:39]line [12:18:39]line [12:18:39]written 0, free lines is 3298 [12:18:39]MH_Cut [12:18:39]Write to MH i2c: D1 01 00 E8 15 01 CF [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: D1 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: D1 01 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: D1 01 00 E8 15 00 CE [12:18:39]Write to MH i2c: 01 00 00 E9 15 FE [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]OFD Sender: No OFD packet to send [12:18:39]*** Cut start [12:18:39]*** Partial cut [12:18:39]*** CUTSNS_PIN = 1 [12:18:40]*** CUTSNS_PIN = 0 [12:18:40]*** Brake cut motor [12:18:40]Read from MH i2c: 01 [12:18:40]MH_I2C_Read... [12:18:40]*** Stop cut motor [12:18:40]*** Cut end [12:18:40]Read from MH i2c: 01 07 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 07 00 E9 15 00 00 00 00 00 FF 0F 13 [12:18:40]process_action close_receipt done [12:18:40]requested_data is exist [12:18:40]produce_requested_data [12:18:40]requested_item fm.sn is exist - process it [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 11 00 00 [12:18:40]Write to MH i2c: E2 08 00 EA 15 80 11 00 00 00 00 00 00 79 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 17 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 17 00 EA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CB [12:18: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:18:40]wFMCommunicate OK [12:18:40]requested_item fd.num is exist - process it [12:18:40]SAM_PROTO_GetFieldsCounters [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 13 00 00 [12:18:40]Write to MH i2c: E2 08 00 EB 15 80 13 00 00 00 00 00 00 7C [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 62 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 62 00 EB 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 EA F9 00 00 0E 04 04 00 76 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 B6 [12:18: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 EA F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:40]wFMCommunicate OK [12:18:40]SAM_PROTO_GetFieldsCounters done [12:18:40]requested_item shift.num is exist - process it [12:18:40]requested_item shift.opened is exist - process it [12:18:40]req_shift_opened [12:18:40]FM_GetShiftState [12:18:40]SAM_PROTO_GetShiftState [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 13 01 00 [12:18:40]Write to MH i2c: E2 08 00 EC 15 80 13 01 00 00 00 00 00 7E [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0E 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0E 00 EC 15 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1E [12:18:40]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:18:40]wFMCommunicate OK [12:18:40]SAM_PROTO_GetShiftState done [12:18:40]FM_GetShiftState done [12:18:40]req_shift_opened done [12:18:40]requested_item shift.open_date is exist - process it [12:18:40]req_shift_open_date [12:18:40]req_shift_open_date done [12:18:40]produce_requested_data done [12:18:40]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63978,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:18:40]process_action_free close_receipt [12:18:40]json_value_free [12:18:40]json_value_free done [12:18:40]process_json_proto returns [12:18:40]Send response to host [12:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63978,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:18:40]free response buf [12:18:40]execute_script done [12:18:40]execute_script returns [12:18:40]free content buf [12:18:40]Sock 7.Close socket [12:18:40]Sock 7.Thread stoped [12:18:44]OFD Sender: No OFD packet to send [12:18:44]accept exits with 9 [12:18:44]New connection [12:18:44]New thread 3067055460 created [12:18:44]Thread 3066912100 joined [12:18:44]Waiting for new connection... [12:18:44] Sock 9.Parse request [12:18:44]Sock 9.Check first char [12:18:44]Sock 9.First char is OK [12:18:44]request: POST /json_proto HTTP/1.0 [12:18:44]Method: POST [12:18:44]URL: /json_proto [12:18:44]Method is POST - this is cgi request [12:18:44]url: /json_proto [12:18:44]query_string will be loaded in cgi processing [12:18:44]execute_cgi json_proto POST (null) [12:18:44]execute_cgi path=json_proto method=POST [12:18:44]POST find Content-Length [12:18:44]Host: 172.17.60.69:8080 [12:18:44]Content-Length: 677 [12:18:44]Content-Type: application/json [12:18:44] [12:18:44]POST finish read [12:18:44]Found Content-Length = 677 [12:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544572", "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" ] } } [12:18:44]execute_script... [12:18:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544572", "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" ] } } [12:18:44]POST & json_proto [12:18:44]process_json_proto [12:18:44]json parsed OK: [12:18:44]protocol is kg_v1.0 [12:18:44]action value=close_receipt [12:18:44]process_action close_receipt [12:18:44]cmd_close_receipt [12:18:44]MH_GetDate [12:18:44]Write to MH i2c: F0 00 00 ED 15 F1 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: F0 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: F0 09 00 [12:18:44]MH_I2C_Read... [12:18:44]Read from MH i2c: F0 09 00 ED 15 00 27 06 5F 66 6A 96 4A 66 9C [12:18:44]GetLastDocTimeStamp 1717503519 [12:18:44]current date 1717503527 [12:18:44]FM_GetShiftState [12:18:44]SAM_PROTO_GetShiftState [12:18:44]wFMCommunicate request_size=4 [12:18:44]MH_SAM_APDU [12:18:44]CAPDU: 80 13 01 00 [12:18:44]Write to MH i2c: E2 08 00 EE 15 80 13 01 00 00 00 00 00 80 [12:18:44]Write i2c OK [12:18:44]MH_I2C_Read... [12:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:45]Read from MH i2c: E2 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 0E 00 [12:18:45]MH_I2C_Read... [12:18:45]Read from MH i2c: E2 0E 00 EE 15 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 20 [12:18:45]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:18:45]wFMCommunicate OK [12:18:45]SAM_PROTO_GetShiftState done [12:18:45]FM_GetShiftState done [12:18:45]opened in 1717459574 [12:18:45]opened+sec_in_day 1717545974 [12:18:45]quantity*price = 50041 [12:18:45]sum+1 = 50042 [12:18:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 64 04.06.2024 12:18 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63979 ФПД: 243193710341981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121847&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63979&fm=243193710341981&tin=02508201610067®Number=0000000000092737&sum=50000 [12:18:46]StoreToDocumentArchive [12:18:46]shift 374 fd 63979 [12:18:46]save to /storage/0374/doc_00063979 [12:18:46]save last doc name /storage/0374/doc_00063979 to /storage/kkm_last_doc_name [12:18:46]save OK [12:18:46]Clear old archive folders... [12:18:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:46]tlvbuf is 012E7970 [12:18:46]SAM_PROTO_ClearQueue [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 09 00 00 [12:18:46]Write to MH i2c: E2 08 00 FB 15 80 09 00 00 00 00 00 00 82 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]SAM_PROTO_ClearQueue done [12:18:46]KKMCreateOFDPacket [12:18:46]OFDProtocolAddRootSTLVToBuf [12:18:46]FM_MakeSignedData [12:18:46]FM_MakeSignedData [12:18:46]SAM_PROTO_SignData [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 01 02 [12:18:46]Write to MH i2c: E2 08 00 FC 15 80 0D 01 02 00 00 00 00 8A [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]wFMCommunicate request_size=255 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 27 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EB F9 00 00 35 04 06 00 DD [12:18:46]Write to MH i2c: E2 02 01 FD 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 27 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EB F9 00 00 35 04 06 00 DD 00 00 85 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]wFMCommunicate request_size=10 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 02 02 05 2E F2 B7 6F 5D [12:18:46]Write to MH i2c: E2 0D 00 FE 15 80 0D 02 02 05 00 2E F2 B7 6F 5D 00 00 3A [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [12:18:46]RAPDU: 90 00 [12:18:46]wFMCommunicate OK [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 0D 03 02 [12:18:46]Write to MH i2c: E2 08 00 FF 15 80 0D 03 02 00 00 00 00 8F [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0B 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 0B 00 FF 15 00 D8 58 00 FF FA 54 77 02 90 00 86 [12:18:46]RAPDU: D8 58 00 FF FA 54 77 02 90 00 [12:18:46]wFMCommunicate OK [12:18:46]SAM_PROTO_SignData done [12:18:46]FM_MakeSignedData done [12:18:46]CreateOFDProtocolMessage [12:18:46]wFMCommunicate request_size=4 [12:18:46]MH_SAM_APDU [12:18:46]CAPDU: 80 11 00 00 [12:18:46]Write to MH i2c: E2 08 00 00 16 80 11 00 00 00 00 00 00 90 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:46]Read from MH i2c: E2 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 17 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: E2 17 00 00 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E2 [12:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:18:46]wFMCommunicate OK [12:18:46]CreateOFDProtocolMessage done [12:18:46]OFDSenderStorePacket 63979 [12:18:46]StoreOFDPacket docnum=63979 [12:18: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 0F 01 00 00 17 59 07 01 57 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 27 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EB F9 00 00 35 04 06 00 DD 2E F2 B7 6F 5D D8 58 00 FF FA 54 77 02 [12:18:46]CheckFolder [12:18:46]dirname=/storage/ofd_packets [12:18:46]CheckFolder done [12:18:46]ProducePacketName [12:18:46]name=ofd_packets/00063979 [12:18:46]NVStorageSaveData ofd_packets/00063979 [12:18:46]File name is /storage/ofd_packets/00063979 [12:18:46]Write 301 bytes [12:18:46]NVStorageSaveData done [12:18:46]OFDSenderStorePacket done [12:18:46]KKMCreateOFDPacket done [12:18:46]NVStorageSaveData kkm_last_timestamp [12:18:46]File name is /storage/kkm_last_timestamp [12:18:46]Write 4 bytes [12:18:46]NVStorageSaveData done [12:18:46]ExternCall_PrintAddStr [12:18:46]wPrintStart [12:18:46]Write to MH i2c: 01 00 00 01 16 17 [12:18:46]Write i2c OK [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 07 00 [12:18:46]MH_I2C_Read... [12:18:46]Read from MH i2c: 01 07 00 01 16 00 00 00 00 00 FF 0F 2C [12:18:46]RasterBufferAndPrint [12:18:46]line Счет N : (1)544572 [12:18:46]line ИНН: 02508201610067 [12:18:46]line Контрольно-Кассовый Чек [12:18:46]line ПРОДАЖА [12:18:46]line ТРК (МРК, ГНК) : 12 [12:18:46]line Товар: 2710124130 [12:18:46]line Аи-92-К-5 [12:18:46]line 7.480 * 66.90 [12:18:46]line = 500.41 [12:18:46]line НДС 12% НСП 1% [12:18:46]line > о реализуемом товаре [12:18:46]line ОКРУГЛЕНИЕ: -0.41 [12:18:46]line ИТОГО: 500.00 [12:18:46]line Внесено: 500.00 [12:18:46]line СДАЧА: 0.00 [12:18:46]line НСП 1% : 4.43 [12:18:46]line НДС 12% : 53.14 [12:18:46]line Наличными: 500.00 [12:18:46]line Безнал.: 0.00 [12:18:46]line Место: АЗС № 117 "Партнер Нефть" [12:18:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:18:46]line СНО: Общий режим [12:18:46]line Чек 64 04.06.2024 12:18 [12:18:46]line Смена: 374 ФФД: 1.0 [12:18:46]line ЗНМ: 0300000031 [12:18:46]line РНМ: 0000000000092737 [12:18:46]line Версия ККМ: 001 [12:18:46]line ФМ: 0000000000875074 [12:18:46]line ФД: 63979 [12:18:46]line ФПД: 243193710341981 [12:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121847&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63979&fm=243193710341981&tin=02508201610067®Number=0000000000092737&sum=50000 [12:18:46]OFD Sender: Processing packet 63979 [packets to send 14, broken 13] [12:18:46]ProducePacketName [12:18:46]name=ofd_packets/00063979 [12:18:46]OFD Sender: To server: pG, [12:18:46]CommunicateWithHost lk.salyk.kg:30040 [12:18:46]ConnectInit lk.salyk.kg [12:18:46]written 0, free lines is 4095 [12:18:46]Connected sock=10 [12:18: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 0F 01 00 00 17 59 07 01 57 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 27 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EB F9 00 00 35 04 06 00 DD 2E F2 B7 6F 5D D8 58 00 FF FA 54 77 02 [12:18: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 12 24 47 00 80 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EB F9 00 00 F4 03 04 00 F6 B1 5E 66 B6 04 01 00 00 43 3F 0C C0 5B E7 36 69 [12:18:47]CommunicateWithHost err = 0 [12:18:47]CheckOFDResponse [12:18:47]1017 (14) - 77093643461234 [12:18:47]1041 (16) - 0000000000875074 [12:18:47]1040 (4) - 63979 [12:18:47]1012 (4) - 04.06.2024 06:19 [12:18:47]1206 (1) - 0 [12:18:47]OFD Sender: Remove packet 63979 [12:18:47]ProducePacketName [12:18:47]name=ofd_packets/00063979 [12:18:47]NVStorageDeleteData [12:18:47]Write to MH i2c: 01 00 00 2C 16 42 [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 07 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: 01 07 00 2C 16 00 00 00 00 00 E3 0C 38 [12:18:47]RasterBufferAndPrint [12:18:47]line [12:18:47]line [12:18:47]line [12:18:47]line [12:18:47]line [12:18:47]written 0, free lines is 3317 [12:18:47]MH_Cut [12:18:47]Write to MH i2c: D1 01 00 33 16 01 1B [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: D1 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: D1 01 00 [12:18:47]MH_I2C_Read... [12:18:47]Read from MH i2c: D1 01 00 33 16 00 1A [12:18:47]Write to MH i2c: 01 00 00 34 16 4A [12:18:47]Write i2c OK [12:18:47]MH_I2C_Read... [12:18:47]OFD Sender: No OFD packet to send [12:18:48]*** Cut start [12:18:48]*** Partial cut [12:18:48]*** CUTSNS_PIN = 1 [12:18:48]*** CUTSNS_PIN = 0 [12:18:48]*** Brake cut motor [12:18:48]Read from MH i2c: 01 [12:18:48]MH_I2C_Read... [12:18:48]*** Stop cut motor [12:18:48]*** Cut end [12:18:48]Read from MH i2c: 01 07 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: 01 07 00 34 16 00 00 00 00 00 FF 0F 5F [12:18:48]process_action close_receipt done [12:18:48]requested_data is exist [12:18:48]produce_requested_data [12:18:48]requested_item fm.sn is exist - process it [12:18:48]wFMCommunicate request_size=4 [12:18:48]MH_SAM_APDU [12:18:48]CAPDU: 80 11 00 00 [12:18:48]Write to MH i2c: E2 08 00 35 16 80 11 00 00 00 00 00 00 C5 [12:18:48]Write i2c OK [12:18:48]MH_I2C_Read... [12:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:48]Read from MH i2c: E2 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 17 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 17 00 35 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 17 [12:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:18:48]wFMCommunicate OK [12:18:48]requested_item fd.num is exist - process it [12:18:48]SAM_PROTO_GetFieldsCounters [12:18:48]wFMCommunicate request_size=4 [12:18:48]MH_SAM_APDU [12:18:48]CAPDU: 80 13 00 00 [12:18:48]Write to MH i2c: E2 08 00 36 16 80 13 00 00 00 00 00 00 C8 [12:18:48]Write i2c OK [12:18:48]MH_I2C_Read... [12:18:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:48]Read from MH i2c: E2 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 62 00 [12:18:48]MH_I2C_Read... [12:18:48]Read from MH i2c: E2 62 00 36 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 EB F9 00 00 0E 04 04 00 76 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 06 [12:18: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 EB F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:49]wFMCommunicate OK [12:18:49]SAM_PROTO_GetFieldsCounters done [12:18:49]requested_item shift.num is exist - process it [12:18:49]requested_item shift.opened is exist - process it [12:18:49]req_shift_opened [12:18:49]FM_GetShiftState [12:18:49]SAM_PROTO_GetShiftState [12:18:49]wFMCommunicate request_size=4 [12:18:49]MH_SAM_APDU [12:18:49]CAPDU: 80 13 01 00 [12:18:49]Write to MH i2c: E2 08 00 37 16 80 13 01 00 00 00 00 00 CA [12:18:49]Write i2c OK [12:18:49]MH_I2C_Read... [12:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:49]Read from MH i2c: E2 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0E 00 [12:18:49]MH_I2C_Read... [12:18:49]Read from MH i2c: E2 0E 00 37 16 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6A [12:18:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:18:49]wFMCommunicate OK [12:18:49]SAM_PROTO_GetShiftState done [12:18:49]FM_GetShiftState done [12:18:49]req_shift_opened done [12:18:49]requested_item shift.open_date is exist - process it [12:18:49]req_shift_open_date [12:18:49]req_shift_open_date done [12:18:49]produce_requested_data done [12:18:49]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63979,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:18:49]process_action_free close_receipt [12:18:49]json_value_free [12:18:49]json_value_free done [12:18:49]process_json_proto returns [12:18:49]Send response to host [12:18:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63979,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:18:49]free response buf [12:18:49]execute_script done [12:18:49]execute_script returns [12:18:49]free content buf [12:18:49]Sock 9.Close socket [12:18:49]Sock 9.Thread stoped [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:46]accept exits with 7 [12:19:46]New connection [12:19:46]New thread 3066912100 created [12:19:46]Thread 3067055460 joined [12:19:46]Waiting for new connection... [12:19:46] Sock 7.Parse request [12:19:46]Sock 7.Check first char [12:19:46]Sock 7.First char is OK [12:19:46]request: POST /json_proto HTTP/1.0 [12:19:46]Method: POST [12:19:46]URL: /json_proto [12:19:46]Method is POST - this is cgi request [12:19:46]url: /json_proto [12:19:46]query_string will be loaded in cgi processing [12:19:46]execute_cgi json_proto POST (null) [12:19:46]execute_cgi path=json_proto method=POST [12:19:46]POST find Content-Length [12:19:46]Host: 172.17.60.69:8080 [12:19:46]Content-Length: 921 [12:19:46]Content-Type: application/json [12:19:46] [12:19:46]POST finish read [12:19:46]Found Content-Length = 921 [12:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73539", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:46]execute_script... [12:19:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73539", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:46]POST & json_proto [12:19:46]process_json_proto [12:19:46]json parsed OK: [12:19:46]protocol is kg_v1.0 [12:19:46]action value=close_receipt [12:19:46]process_action close_receipt [12:19:46]cmd_close_receipt [12:19:46]MH_GetDate [12:19:46]Write to MH i2c: F0 00 00 38 16 3D [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: F0 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: F0 09 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: F0 09 00 38 16 00 65 06 5F 66 6A 96 4A 66 26 [12:19:46]GetLastDocTimeStamp 1717503527 [12:19:46]current date 1717503589 [12:19:46]FM_GetShiftState [12:19:46]SAM_PROTO_GetShiftState [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 01 00 [12:19:46]Write to MH i2c: E2 08 00 39 16 80 13 01 00 00 00 00 00 CC [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 39 16 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6C [12:19:46]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetShiftState done [12:19:46]FM_GetShiftState done [12:19:46]opened in 1717459574 [12:19:46]opened+sec_in_day 1717545974 [12:19:46]quantity*price = 7500 [12:19:46]sum+1 = 7501 [12:19:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 65 04.06.2024 12:19 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63980 ФПД: 168885730865111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121949&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63980&fm=168885730865111&tin=02508201610067®Number=0000000000092737&sum=21500 0 [12:19:47]StoreToDocumentArchive [12:19:47]shift 374 fd 63980 [12:19:47]save to /storage/0374/doc_00063980 [12:19:47]save last doc name /storage/0374/doc_00063980 to /storage/kkm_last_doc_name [12:19:47]save OK [12:19:47]Clear old archive folders... [12:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=398 [12:19:47]tlvbuf is 01299F40 [12:19:47]SAM_PROTO_ClearQueue [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 09 00 00 [12:19:47]Write to MH i2c: E2 08 00 46 16 80 09 00 00 00 00 00 00 CE [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]SAM_PROTO_ClearQueue done [12:19:47]KKMCreateOFDPacket [12:19:47]OFDProtocolAddRootSTLVToBuf [12:19:47]FM_MakeSignedData [12:19:47]FM_MakeSignedData [12:19:47]SAM_PROTO_SignData [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 01 02 [12:19:47]Write to MH i2c: E2 08 00 47 16 80 0D 01 02 00 00 00 00 D6 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]wFMCommunicate request_size=255 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 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 FC 53 00 00 00 00 EB 03 26 [12:19:47]Write to MH i2c: E2 02 01 48 16 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 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 FC 53 00 00 00 00 EB 03 26 00 00 B4 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]wFMCommunicate request_size=157 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 65 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EC F9 00 00 35 04 06 00 99 99 C5 FE EF D7 [12:19:47]Write to MH i2c: E2 A0 00 49 16 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 65 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EC F9 00 00 35 04 06 00 99 99 C5 FE EF D7 00 00 BC [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]OFD Sender: No OFD packet to send [12:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 49 16 00 90 00 D3 [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 03 02 [12:19:47]Write to MH i2c: E2 08 00 4A 16 80 0D 03 02 00 00 00 00 DB [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 0B 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 0B 00 4A 16 00 D0 C0 D3 2C FB 30 8B D2 90 00 F3 [12:19:47]RAPDU: D0 C0 D3 2C FB 30 8B D2 90 00 [12:19:47]wFMCommunicate OK [12:19:47]SAM_PROTO_SignData done [12:19:47]FM_MakeSignedData done [12:19:47]CreateOFDProtocolMessage [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 11 00 00 [12:19:47]Write to MH i2c: E2 08 00 4B 16 80 11 00 00 00 00 00 00 DB [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 17 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 17 00 4B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2D [12:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:19:47]wFMCommunicate OK [12:19:47]CreateOFDProtocolMessage done [12:19:47]OFDSenderStorePacket 63980 [12:19:47]StoreOFDPacket docnum=63980 [12:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A2 01 00 00 52 A0 9A 01 81 52 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 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 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 65 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EC F9 00 00 35 04 06 00 99 99 C5 FE EF D7 D0 C0 D3 2C FB 30 8B D2 [12:19:47]CheckFolder [12:19:47]dirname=/storage/ofd_packets [12:19:47]CheckFolder done [12:19:47]ProducePacketName [12:19:47]name=ofd_packets/00063980 [12:19:47]NVStorageSaveData ofd_packets/00063980 [12:19:47]File name is /storage/ofd_packets/00063980 [12:19:47]Write 448 bytes [12:19:47]NVStorageSaveData done [12:19:47]OFDSenderStorePacket done [12:19:47]KKMCreateOFDPacket done [12:19:47]NVStorageSaveData kkm_last_timestamp [12:19:47]File name is /storage/kkm_last_timestamp [12:19:47]Write 4 bytes [12:19:47]NVStorageSaveData done [12:19:47]ExternCall_PrintAddStr [12:19:47]wPrintStart [12:19:47]Write to MH i2c: 01 00 00 4C 16 62 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: 01 [12:19:48]MH_I2C_Read... [12:19:48]OFD Sender: Processing packet 63980 [packets to send 14, broken 13] [12:19:48]ProducePacketName [12:19:48]name=ofd_packets/00063980 [12:19:48]OFD Sender: To server: pG, [12:19:48]CommunicateWithHost lk.salyk.kg:30040 [12:19:48]ConnectInit lk.salyk.kg [12:19:48]Read from MH i2c: 01 07 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 4C 16 00 00 00 00 00 FF 0F 77 [12:19:48]RasterBufferAndPrint [12:19:48]line Счет N : (3)73539 [12:19:48]line ИНН: 02508201610067 [12:19:48]line Контрольно-Кассовый Чек [12:19:48]line ПРОДАЖА [12:19:48]line Товар: 5449000027450 [12:19:48]line Напиток FuzeTea чай манго,ром 0,5л [12:19:48]line 1.000 * 75.00 [12:19:48]line = 75.00 [12:19:48]line НДС 12% НСП 1% [12:19:48]line > о реализуемом товаре [12:19:48]line Товар: 48747059 [12:19:48]line Сигареты Winston Legend Blue [12:19:48]line 1.000 * 140.00 [12:19:48]line = 140.00 [12:19:48]line НДС 12% НСП 1% [12:19:48]line > о реализуемом товаре [12:19:48]line ИТОГО: 215.00 [12:19:48]line НСП 1% : 1.90 [12:19:48]line НДС 12% : 22.83 [12:19:48]line Наличными: 215.00 [12:19:48]line Безнал.: 0.00 [12:19:48]line Место: АЗС № 117 "Партнер Нефть" [12:19:48]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:19:48]line СНО: Общий режим [12:19:48]line Чек 65 04.06.2024 12:19 [12:19:48]line Смена: 374 ФФД: 1.0 [12:19:48]line ЗНМ: 0300000031 [12:19:48]line РНМ: 0000000000092737 [12:19:48]line Версия ККМ: 001 [12:19:48]line ФМ: 0000000000875074 [12:19:48]line ФД: 63980 [12:19:48]line ФПД: 168885730865111 [12:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T121949&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63980&fm=168885730865111&tin=02508201610067®Number=0000000000092737&sum=21500 [12:19:48]line 0 [12:19:48]written 0, free lines is 4095 [12:19:48]Connected sock=10 [12:19:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A2 01 00 00 52 A0 9A 01 81 52 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 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 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 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 65 06 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EC F9 00 00 35 04 06 00 99 99 C5 FE EF D7 D0 C0 D3 2C FB 30 8B D2 [12:19:48]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 48 B1 47 00 E4 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 EC F9 00 00 F4 03 04 00 33 B2 5E 66 B6 04 01 00 00 2D 4F CE 80 85 36 8C CA [12:19:48]CommunicateWithHost err = 0 [12:19:48]CheckOFDResponse [12:19:48]1017 (14) - 77093643461234 [12:19:48]1041 (16) - 0000000000875074 [12:19:48]1040 (4) - 63980 [12:19:48]1012 (4) - 04.06.2024 06:20 [12:19:48]1206 (1) - 0 [12:19:48]OFD Sender: Remove packet 63980 [12:19:48]ProducePacketName [12:19:48]name=ofd_packets/00063980 [12:19:48]NVStorageDeleteData [12:19:48]Write to MH i2c: 01 00 00 7C 16 92 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 7C 16 00 00 00 00 00 4F 0C F4 [12:19:48]RasterBufferAndPrint [12:19:48]line [12:19:48]line [12:19:48]line [12:19:48]line [12:19:48]line [12:19:48]written 0, free lines is 3157 [12:19:48]MH_Cut [12:19:48]Write to MH i2c: D1 01 00 83 16 01 6B [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: D1 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: D1 01 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: D1 01 00 83 16 00 6A [12:19:48]Write to MH i2c: 01 00 00 84 16 9A [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:49]OFD Sender: No OFD packet to send [12:19:49]*** Cut start [12:19:49]*** Partial cut [12:19:49]*** CUTSNS_PIN = 1 [12:19:49]*** CUTSNS_PIN = 0 [12:19:49]*** Brake cut motor [12:19:50]Read from MH i2c: 01 [12:19:50]MH_I2C_Read... [12:19:50]*** Stop cut motor [12:19:50]*** Cut end [12:19:50]Read from MH i2c: 01 07 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: 01 07 00 84 16 00 00 00 00 00 FF 0F AF [12:19:50]process_action close_receipt done [12:19:50]requested_data is exist [12:19:50]produce_requested_data [12:19:50]requested_item fm.sn is exist - process it [12:19:50]wFMCommunicate request_size=4 [12:19:50]MH_SAM_APDU [12:19:50]CAPDU: 80 11 00 00 [12:19:50]Write to MH i2c: E2 08 00 85 16 80 11 00 00 00 00 00 00 15 [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:50]Read from MH i2c: E2 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 17 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 17 00 85 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 67 [12: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 [12:19:50]wFMCommunicate OK [12:19:50]requested_item fd.num is exist - process it [12:19:50]SAM_PROTO_GetFieldsCounters [12:19:50]wFMCommunicate request_size=4 [12:19:50]MH_SAM_APDU [12:19:50]CAPDU: 80 13 00 00 [12:19:50]Write to MH i2c: E2 08 00 86 16 80 13 00 00 00 00 00 00 18 [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:50]Read from MH i2c: E2 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 62 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 62 00 86 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 EC F9 00 00 0E 04 04 00 76 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 5A [12:19:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 EC F9 00 00 0E 04 04 00 76 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 [12:19:50]wFMCommunicate OK [12:19:50]SAM_PROTO_GetFieldsCounters done [12:19:50]requested_item shift.num is exist - process it [12:19:50]requested_item shift.opened is exist - process it [12:19:50]req_shift_opened [12:19:50]FM_GetShiftState [12:19:50]SAM_PROTO_GetShiftState [12:19:50]wFMCommunicate request_size=4 [12:19:50]MH_SAM_APDU [12:19:50]CAPDU: 80 13 01 00 [12:19:50]Write to MH i2c: E2 08 00 87 16 80 13 01 00 00 00 00 00 1A [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:50]Read from MH i2c: E2 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 0E 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 0E 00 87 16 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 BA [12:19:50]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:19:50]wFMCommunicate OK [12:19:50]SAM_PROTO_GetShiftState done [12:19:50]FM_GetShiftState done [12:19:50]req_shift_opened done [12:19:50]requested_item shift.open_date is exist - process it [12:19:50]req_shift_open_date [12:19:50]req_shift_open_date done [12:19:50]produce_requested_data done [12:19:50]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63980,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:19:50]process_action_free close_receipt [12:19:50]json_value_free [12:19:50]json_value_free done [12:19:50]process_json_proto returns [12:19:50]Send response to host [12:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63980,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:19:50]free response buf [12:19:50]execute_script done [12:19:50]execute_script returns [12:19:50]free content buf [12:19:50]Sock 7.Close socket [12:19:50]Sock 7.Thread stoped [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:08]accept exits with 9 [12:21:08]New connection [12:21:08]New thread 3067055460 created [12:21:08]Thread 3066912100 joined [12:21:08]Waiting for new connection... [12:21:08] Sock 9.Parse request [12:21:08]Sock 9.Check first char [12:21:08]Sock 9.First char is OK [12:21:08]request: POST /json_proto HTTP/1.0 [12:21:08]Method: POST [12:21:08]URL: /json_proto [12:21:08]Method is POST - this is cgi request [12:21:08]url: /json_proto [12:21:08]query_string will be loaded in cgi processing [12:21:08]execute_cgi json_proto POST (null) [12:21:08]execute_cgi path=json_proto method=POST [12:21:08]POST find Content-Length [12:21:08]Host: 172.17.60.69:8080 [12:21:08]Content-Length: 1172 [12:21:08]Content-Type: application/json [12:21:08] [12:21:08]POST finish read [12:21:08]Found Content-Length = 1172 [12:21:08]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 : \u0421\u0438\u043A\u0441\u0430\u0439 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)544574\u000A04.06.2024 12:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.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\u000A3886871\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:08]execute_script... [12:21:08]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 : \u0421\u0438\u043A\u0441\u0430\u0439 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)544574\u000A04.06.2024 12:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.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\u000A3886871\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:08]POST & json_proto [12:21:08]process_json_proto [12:21:08]json parsed OK: [12:21:08]protocol is kg_v1.0 [12:21:08]action value=print_text [12:21:08]process_action print_text [12:21:08]cmd_print_text [12:21:08]ExternCall_PrintAddStr [12:21:08]wPrintStart [12:21:08]Write to MH i2c: 01 00 00 88 16 9E [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 07 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 07 00 88 16 00 00 00 00 00 FF 0F B3 [12:21:08]RasterBufferAndPrint [12:21:08]line *****ТОВАРНЫЙ ЧЕК***** [12:21:08]line АЗС 117 [12:21:08]line Партнер нефть [12:21:08]line 02508201610067 [12:21:08]line Кассир : Сиксай К. [12:21:08]line Счет N : (1)544574 [12:21:08]line 04.06.2024 12:15 [12:21:08]line ПРОДАЖА [12:21:08]line ТРК (МРК, ГНК): 42 [12:21:08]line Вид ГСМ : 2710124130 [12:21:08]line Аи-92-К-5 [12:21:08]line 10.000 x 66.90 [12:21:08]line ИТОГ: 669.00 [12:21:08]line Тип оплаты: Талоны: Партнер нефть [12:21:08]line 3886871 [12:21:08]line ______________________ [12:21:08]line (подпись) [12:21:08]written 0, free lines is 4095 [12:21:08]Write to MH i2c: 01 00 00 9C 16 B2 [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 07 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 07 00 9C 16 00 00 00 00 00 11 0E D8 [12:21:08]RasterBufferAndPrint [12:21:08]line [12:21:08]line [12:21:08]line [12:21:08]line [12:21:08]line [12:21:08]written 0, free lines is 3602 [12:21:08]MH_Cut [12:21:08]Write to MH i2c: D1 01 00 A3 16 01 8B [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: D1 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: D1 01 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: D1 01 00 A3 16 00 8A [12:21:08]Write to MH i2c: 01 00 00 A4 16 BA [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:09]OFD Sender: No OFD packet to send [12:21:09]*** Cut start [12:21:09]*** Partial cut [12:21:09]*** CUTSNS_PIN = 1 [12:21:09]*** CUTSNS_PIN = 0 [12:21:09]*** Brake cut motor [12:21:10]Read from MH i2c: 01 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: 01 07 00 [12:21:10]MH_I2C_Read... [12:21:10]*** Stop cut motor [12:21:10]*** Cut end [12:21:10]Read from MH i2c: 01 07 00 A4 16 00 00 00 00 00 FF 0F CF [12:21:10]process_action print_text done [12:21:10]requested_data is exist [12:21:10]produce_requested_data [12:21:10]requested_item fm.sn is exist - process it [12:21:10]wFMCommunicate request_size=4 [12:21:10]MH_SAM_APDU [12:21:10]CAPDU: 80 11 00 00 [12:21:10]Write to MH i2c: E2 08 00 A5 16 80 11 00 00 00 00 00 00 35 [12:21:10]Write i2c OK [12:21:10]MH_I2C_Read... [12:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:10]Read from MH i2c: E2 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 17 00 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 17 00 A5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 87 [12:21: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:21:10]wFMCommunicate OK [12:21:10]requested_item fd.num is exist - process it [12:21:10]SAM_PROTO_GetFieldsCounters [12:21:10]wFMCommunicate request_size=4 [12:21:10]MH_SAM_APDU [12:21:10]CAPDU: 80 13 00 00 [12:21:10]Write to MH i2c: E2 08 00 A6 16 80 13 00 00 00 00 00 00 38 [12:21:10]Write i2c OK [12:21:10]MH_I2C_Read... [12:21:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:10]Read from MH i2c: E2 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 62 00 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 62 00 A6 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 EC F9 00 00 0E 04 04 00 76 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 7A [12:21: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 EC F9 00 00 0E 04 04 00 76 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 [12:21:10]wFMCommunicate OK [12:21:10]SAM_PROTO_GetFieldsCounters done [12:21:10]requested_item shift.num is exist - process it [12:21:10]requested_item shift.opened is exist - process it [12:21:10]req_shift_opened [12:21:10]FM_GetShiftState [12:21:10]SAM_PROTO_GetShiftState [12:21:10]wFMCommunicate request_size=4 [12:21:10]MH_SAM_APDU [12:21:10]CAPDU: 80 13 01 00 [12:21:10]Write to MH i2c: E2 08 00 A7 16 80 13 01 00 00 00 00 00 3A [12:21:10]Write i2c OK [12:21:10]MH_I2C_Read... [12:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:10]Read from MH i2c: E2 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 0E 00 [12:21:10]MH_I2C_Read... [12:21:10]Read from MH i2c: E2 0E 00 A7 16 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 DA [12:21:10]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:21:10]wFMCommunicate OK [12:21:10]SAM_PROTO_GetShiftState done [12:21:10]FM_GetShiftState done [12:21:10]req_shift_opened done [12:21:10]requested_item shift.open_date is exist - process it [12:21:10]req_shift_open_date [12:21:10]req_shift_open_date done [12:21:10]produce_requested_data done [12:21:10]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63980,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:21:10]process_action_free print_text [12:21:10]json_value_free [12:21:10]json_value_free done [12:21:10]process_json_proto returns [12:21:10]Send response to host [12:21:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63980,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:21:10]free response buf [12:21:10]execute_script done [12:21:10]execute_script returns [12:21:10]free content buf [12:21:10]Sock 9.Close socket [12:21:10]Sock 9.Thread stoped [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:26]accept exits with 7 [12:36:26]New connection [12:36:26]New thread 3066912100 created [12:36:26]Thread 3067055460 joined [12:36:26]Waiting for new connection... [12:36:26] Sock 7.Parse request [12:36:26]Sock 7.Check first char [12:36:26]Sock 7.First char is OK [12:36:26]request: POST /json_proto HTTP/1.0 [12:36:26]Method: POST [12:36:26]URL: /json_proto [12:36:26]Method is POST - this is cgi request [12:36:26]url: /json_proto [12:36:26]query_string will be loaded in cgi processing [12:36:26]execute_cgi json_proto POST (null) [12:36:26]execute_cgi path=json_proto method=POST [12:36:26]POST find Content-Length [12:36:26]Host: 172.17.60.69:8080 [12:36:26]Content-Length: 621 [12:36:26]Content-Type: application/json [12:36:26] [12:36:26]POST finish read [12:36:26]Found Content-Length = 621 [12:36:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73540", "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" ] } } [12:36:26]execute_script... [12:36:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73540", "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" ] } } [12:36:26]POST & json_proto [12:36:26]process_json_proto [12:36:26]json parsed OK: [12:36:26]protocol is kg_v1.0 [12:36:26]action value=close_receipt [12:36:26]process_action close_receipt [12:36:26]cmd_close_receipt [12:36:26]MH_GetDate [12:36:26]Write to MH i2c: F0 00 00 A8 16 AD [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: F0 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: F0 09 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: F0 09 00 A8 16 00 4D 0A 5F 66 6A 96 4A 66 82 [12:36:26]GetLastDocTimeStamp 1717503589 [12:36:26]current date 1717504589 [12:36:26]FM_GetShiftState [12:36:26]SAM_PROTO_GetShiftState [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 13 01 00 [12:36:26]Write to MH i2c: E2 08 00 A9 16 80 13 01 00 00 00 00 00 3C [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 0E 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 0E 00 A9 16 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 DC [12:36:26]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:36:26]wFMCommunicate OK [12:36:26]SAM_PROTO_GetShiftState done [12:36:26]FM_GetShiftState done [12:36:26]opened in 1717459574 [12:36:26]opened+sec_in_day 1717545974 [12:36:26]quantity*price = 15000 [12:36:26]sum+1 = 15001 [12:36:26]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 СНО: Общий режим Чек 66 04.06.2024 12:36 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63981 ФПД: 9600514110578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T123629&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63981&fm=9600514110578&tin=02508201610067®Number=0000000000092737&sum=15000 0 [12:36:27]StoreToDocumentArchive [12:36:27]shift 374 fd 63981 [12:36:27]save to /storage/0374/doc_00063981 [12:36:27]save last doc name /storage/0374/doc_00063981 to /storage/kkm_last_doc_name [12:36:27]save OK [12:36:27]Clear old archive folders... [12:36:27]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:36:27]tlvbuf is 01252770 [12:36:27]SAM_PROTO_ClearQueue [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 09 00 00 [12:36:27]Write to MH i2c: E2 08 00 B6 16 80 09 00 00 00 00 00 00 3E [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 B6 16 00 90 00 40 [12:36:28]RAPDU: 90 00 [12:36:28]wFMCommunicate OK [12:36:28]SAM_PROTO_ClearQueue done [12:36:28]KKMCreateOFDPacket [12:36:28]OFDProtocolAddRootSTLVToBuf [12:36:28]FM_MakeSignedData [12:36:28]FM_MakeSignedData [12:36:28]SAM_PROTO_SignData [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 0D 01 02 [12:36:28]Write to MH i2c: E2 08 00 B7 16 80 0D 01 02 00 00 00 00 46 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 B7 16 00 90 00 41 [12:36:28]RAPDU: 90 00 [12:36:28]wFMCommunicate OK [12:36:28]wFMCommunicate request_size=255 [12:36:28]MH_SAM_APDU [12:36:28]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 42 00 00 00 F4 03 04 00 4D 0A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [12:36:28]Write to MH i2c: E2 02 01 B8 16 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 42 00 00 00 F4 03 04 00 4D 0A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 36 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 B8 16 00 90 00 42 [12:36:28]RAPDU: 90 00 [12:36:28]wFMCommunicate OK [12:36:28]wFMCommunicate request_size=33 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 ED F9 00 00 35 04 06 00 08 BB 4B 3B B4 72 [12:36:28]Write to MH i2c: E2 24 00 B9 16 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 ED F9 00 00 35 04 06 00 08 BB 4B 3B B4 72 00 00 2C [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 B9 16 00 90 00 43 [12:36:28]RAPDU: 90 00 [12:36:28]wFMCommunicate OK [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 0D 03 02 [12:36:28]Write to MH i2c: E2 08 00 BA 16 80 0D 03 02 00 00 00 00 4B [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 0B 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 0B 00 BA 16 00 16 70 A7 32 BA AE FD 12 90 00 22 [12:36:28]RAPDU: 16 70 A7 32 BA AE FD 12 90 00 [12:36:28]wFMCommunicate OK [12:36:28]SAM_PROTO_SignData done [12:36:28]FM_MakeSignedData done [12:36:28]CreateOFDProtocolMessage [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 11 00 00 [12:36:28]Write to MH i2c: E2 08 00 BB 16 80 11 00 00 00 00 00 00 4B [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 17 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 17 00 BB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9D [12:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:36:28]wFMCommunicate OK [12:36:28]CreateOFDProtocolMessage done [12:36:28]OFDSenderStorePacket 63981 [12:36:28]StoreOFDPacket docnum=63981 [12:36: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 26 01 00 00 79 E7 1E 01 A7 BE 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 42 00 00 00 F4 03 04 00 4D 0A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 ED F9 00 00 35 04 06 00 08 BB 4B 3B B4 72 16 70 A7 32 BA AE FD 12 [12:36:28]CheckFolder [12:36:28]dirname=/storage/ofd_packets [12:36:28]CheckFolder done [12:36:28]ProducePacketName [12:36:28]name=ofd_packets/00063981 [12:36:28]NVStorageSaveData ofd_packets/00063981 [12:36:28]File name is /storage/ofd_packets/00063981 [12:36:28]Write 324 bytes [12:36:28]NVStorageSaveData done [12:36:28]OFDSenderStorePacket done [12:36:28]KKMCreateOFDPacket done [12:36:28]NVStorageSaveData kkm_last_timestamp [12:36:28]File name is /storage/kkm_last_timestamp [12:36:28]Write 4 bytes [12:36:28]NVStorageSaveData done [12:36:28]ExternCall_PrintAddStr [12:36:28]wPrintStart [12:36:28]Write to MH i2c: 01 00 00 BC 16 D2 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: 01 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: 01 07 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: 01 07 00 BC 16 00 00 00 00 00 FF 0F E7 [12:36:28]RasterBufferAndPrint [12:36:28]line Счет N : (3)73540 [12:36:28]line ИНН: 02508201610067 [12:36:28]line Контрольно-Кассовый Чек [12:36:28]line ПРОДАЖА [12:36:28]line Товар: 46230614 [12:36:28]line Сигареты Richmond Red Edition [12:36:28]line 1.000 * 150.00 [12:36:28]line = 150.00 [12:36:28]line НДС 12% НСП 1% [12:36:28]line > о реализуемом товаре [12:36:28]line ИТОГО: 150.00 [12:36:28]line НСП 1% : 1.33 [12:36:28]line НДС 12% : 15.93 [12:36:28]line Наличными: 150.00 [12:36:28]line Безнал.: 0.00 [12:36:28]line Место: АЗС № 117 "Партнер Нефть" [12:36:28]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:36:28]line СНО: Общий режим [12:36:28]line Чек 66 04.06.2024 12:36 [12:36:28]line Смена: 374 ФФД: 1.0 [12:36:28]line ЗНМ: 0300000031 [12:36:28]line РНМ: 0000000000092737 [12:36:28]line Версия ККМ: 001 [12:36:28]line ФМ: 0000000000875074 [12:36:28]line ФД: 63981 [12:36:28]line ФПД: 9600514110578 [12:36:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T123629&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63981&fm=9600514110578&tin=02508201610067®Number=0000000000092737&sum=15000 [12:36:28]line 0 [12:36:28]OFD Sender: Processing packet 63981 [packets to send 14, broken 13] [12:36:28]ProducePacketName [12:36:28]name=ofd_packets/00063981 [12:36:28]OFD Sender: To server: pG, [12:36:28]CommunicateWithHost lk.salyk.kg:30040 [12:36:28]ConnectInit lk.salyk.kg [12:36:28]written 0, free lines is 4095 [12:36:28]Connected sock=10 [12:36: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 26 01 00 00 79 E7 1E 01 A7 BE 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 42 00 00 00 F4 03 04 00 4D 0A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 ED F9 00 00 35 04 06 00 08 BB 4B 3B B4 72 16 70 A7 32 BA AE FD 12 [12:36: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 B1 36 47 00 27 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 ED F9 00 00 F4 03 04 00 1C B6 5E 66 B6 04 01 00 00 63 AC 7B 78 FC 5A EF 19 [12:36:29]CommunicateWithHost err = 0 [12:36:29]CheckOFDResponse [12:36:29]1017 (14) - 77093643461234 [12:36:29]1041 (16) - 0000000000875074 [12:36:29]1040 (4) - 63981 [12:36:29]1012 (4) - 04.06.2024 06:37 [12:36:29]1206 (1) - 0 [12:36:29]OFD Sender: Remove packet 63981 [12:36:29]ProducePacketName [12:36:29]name=ofd_packets/00063981 [12:36:29]NVStorageDeleteData [12:36:29]Write to MH i2c: 01 00 00 E5 16 FB [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 07 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 07 00 E5 16 00 00 00 00 00 D0 0C DE [12:36:29]RasterBufferAndPrint [12:36:29]line [12:36:29]line [12:36:29]line [12:36:29]line [12:36:29]line [12:36:29]written 0, free lines is 3284 [12:36:29]MH_Cut [12:36:29]Write to MH i2c: D1 01 00 EC 16 01 D4 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: D1 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: D1 01 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: D1 01 00 EC 16 00 D3 [12:36:29]Write to MH i2c: 01 00 00 ED 16 03 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]OFD Sender: No OFD packet to send [12:36:30]*** Cut start [12:36:30]*** Partial cut [12:36:30]*** CUTSNS_PIN = 1 [12:36:30]*** CUTSNS_PIN = 0 [12:36:30]*** Brake cut motor [12:36:30]Read from MH i2c: 01 [12:36:30]MH_I2C_Read... [12:36:30]*** Stop cut motor [12:36:30]*** Cut end [12:36:30]Read from MH i2c: 01 07 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: 01 07 00 ED 16 00 00 00 00 00 FF 0F 18 [12:36:30]process_action close_receipt done [12:36:30]requested_data is exist [12:36:30]produce_requested_data [12:36:30]requested_item fm.sn is exist - process it [12:36:30]wFMCommunicate request_size=4 [12:36:30]MH_SAM_APDU [12:36:30]CAPDU: 80 11 00 00 [12:36:30]Write to MH i2c: E2 08 00 EE 16 80 11 00 00 00 00 00 00 7E [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:30]Read from MH i2c: E2 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 17 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 17 00 EE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D0 [12:36: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:36:30]wFMCommunicate OK [12:36:30]requested_item fd.num is exist - process it [12:36:30]SAM_PROTO_GetFieldsCounters [12:36:30]wFMCommunicate request_size=4 [12:36:30]MH_SAM_APDU [12:36:30]CAPDU: 80 13 00 00 [12:36:30]Write to MH i2c: E2 08 00 EF 16 80 13 00 00 00 00 00 00 81 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:30]Read from MH i2c: E2 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 62 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 62 00 EF 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 ED F9 00 00 0E 04 04 00 76 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 C7 [12:36: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 ED F9 00 00 0E 04 04 00 76 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 [12:36:30]wFMCommunicate OK [12:36:30]SAM_PROTO_GetFieldsCounters done [12:36:30]requested_item shift.num is exist - process it [12:36:30]requested_item shift.opened is exist - process it [12:36:30]req_shift_opened [12:36:30]FM_GetShiftState [12:36:30]SAM_PROTO_GetShiftState [12:36:30]wFMCommunicate request_size=4 [12:36:30]MH_SAM_APDU [12:36:30]CAPDU: 80 13 01 00 [12:36:30]Write to MH i2c: E2 08 00 F0 16 80 13 01 00 00 00 00 00 83 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:30]Read from MH i2c: E2 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 0E 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: E2 0E 00 F0 16 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 23 [12:36:30]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:36:30]wFMCommunicate OK [12:36:30]SAM_PROTO_GetShiftState done [12:36:30]FM_GetShiftState done [12:36:30]req_shift_opened done [12:36:30]requested_item shift.open_date is exist - process it [12:36:30]req_shift_open_date [12:36:30]req_shift_open_date done [12:36:30]produce_requested_data done [12:36:30]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63981,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:36:30]process_action_free close_receipt [12:36:30]json_value_free [12:36:30]json_value_free done [12:36:30]process_json_proto returns [12:36:30]Send response to host [12:36:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63981,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:36:30]free response buf [12:36:30]execute_script done [12:36:30]execute_script returns [12:36:30]free content buf [12:36:30]Sock 7.Close socket [12:36:30]Sock 7.Thread stoped [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:20]accept exits with 9 [12:46:20]New connection [12:46:20]New thread 3067055460 created [12:46:20]Thread 3066912100 joined [12:46:20]Waiting for new connection... [12:46:20] Sock 9.Parse request [12:46:20]Sock 9.Check first char [12:46:20]Sock 9.First char is OK [12:46:20]request: POST /json_proto HTTP/1.0 [12:46:20]Method: POST [12:46:20]URL: /json_proto [12:46:20]Method is POST - this is cgi request [12:46:20]url: /json_proto [12:46:20]query_string will be loaded in cgi processing [12:46:20]execute_cgi json_proto POST (null) [12:46:20]execute_cgi path=json_proto method=POST [12:46:20]POST find Content-Length [12:46:20]Host: 172.17.60.69:8080 [12:46:20]Content-Length: 620 [12:46:20]Content-Type: application/json [12:46:20] [12:46:20]POST finish read [12:46:20]Found Content-Length = 620 [12:46:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73541", "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" ] } } [12:46:20]execute_script... [12:46:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73541", "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" ] } } [12:46:20]POST & json_proto [12:46:20]process_json_proto [12:46:20]json parsed OK: [12:46:20]protocol is kg_v1.0 [12:46:20]action value=close_receipt [12:46:20]process_action close_receipt [12:46:20]cmd_close_receipt [12:46:20]MH_GetDate [12:46:20]Write to MH i2c: F0 00 00 F1 16 F6 [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: F0 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: F0 09 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: F0 09 00 F1 16 00 9F 0C 5F 66 6A 96 4A 66 1F [12:46:20]GetLastDocTimeStamp 1717504589 [12:46:20]current date 1717505183 [12:46:20]FM_GetShiftState [12:46:20]SAM_PROTO_GetShiftState [12:46:20]wFMCommunicate request_size=4 [12:46:20]MH_SAM_APDU [12:46:20]CAPDU: 80 13 01 00 [12:46:20]Write to MH i2c: E2 08 00 F2 16 80 13 01 00 00 00 00 00 85 [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:20]Read from MH i2c: E2 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 0E 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 0E 00 F2 16 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 25 [12:46:20]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:46:20]wFMCommunicate OK [12:46:20]SAM_PROTO_GetShiftState done [12:46:20]FM_GetShiftState done [12:46:20]opened in 1717459574 [12:46:20]opened+sec_in_day 1717545974 [12:46:20]quantity*price = 14000 [12:46:20]sum+1 = 14001 [12:46:20]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 СНО: Общий режим Чек 67 04.06.2024 12:46 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63982 ФПД: 80837458042628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124624&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63982&fm=80837458042628&tin=02508201610067®Number=0000000000092737&sum=14000 0 [12:46:22]StoreToDocumentArchive [12:46:22]shift 374 fd 63982 [12:46:22]save to /storage/0374/doc_00063982 [12:46:22]save last doc name /storage/0374/doc_00063982 to /storage/kkm_last_doc_name [12:46:22]save OK [12:46:22]Clear old archive folders... [12:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:46:22]tlvbuf is 012B5030 [12:46:22]SAM_PROTO_ClearQueue [12:46:22]wFMCommunicate request_size=4 [12:46:22]MH_SAM_APDU [12:46:22]CAPDU: 80 09 00 00 [12:46:22]Write to MH i2c: E2 08 00 FF 16 80 09 00 00 00 00 00 00 87 [12:46:22]Write i2c OK [12:46:22]MH_I2C_Read... [12:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:22]Read from MH i2c: E2 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 03 00 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [12:46:22]RAPDU: 90 00 [12:46:22]wFMCommunicate OK [12:46:22]SAM_PROTO_ClearQueue done [12:46:22]KKMCreateOFDPacket [12:46:22]OFDProtocolAddRootSTLVToBuf [12:46:22]FM_MakeSignedData [12:46:22]FM_MakeSignedData [12:46:22]SAM_PROTO_SignData [12:46:22]wFMCommunicate request_size=4 [12:46:22]MH_SAM_APDU [12:46:22]CAPDU: 80 0D 01 02 [12:46:22]Write to MH i2c: E2 08 00 00 17 80 0D 01 02 00 00 00 00 90 [12:46:22]Write i2c OK [12:46:22]MH_I2C_Read... [12:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:22]Read from MH i2c: E2 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 03 00 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [12:46:22]RAPDU: 90 00 [12:46:22]wFMCommunicate OK [12:46:22]wFMCommunicate request_size=255 [12:46:22]MH_SAM_APDU [12:46:22]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 43 00 00 00 F4 03 04 00 A0 0C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [12:46:22]Write to MH i2c: E2 02 01 01 17 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 43 00 00 00 F4 03 04 00 A0 0C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 9F [12:46:22]Write i2c OK [12:46:22]MH_I2C_Read... [12:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:22]Read from MH i2c: E2 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 03 00 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [12:46:22]RAPDU: 90 00 [12:46:22]wFMCommunicate OK [12:46:22]wFMCommunicate request_size=32 [12:46:22]MH_SAM_APDU [12:46:22]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 EE F9 00 00 35 04 06 00 49 85 6F F8 9F 04 [12:46:22]Write to MH i2c: E2 23 00 02 17 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 EE F9 00 00 35 04 06 00 49 85 6F F8 9F 04 00 00 AE [12:46:22]Write i2c OK [12:46:22]MH_I2C_Read... [12:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:22]Read from MH i2c: E2 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 03 00 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 03 00 02 17 00 90 00 8D [12:46:22]RAPDU: 90 00 [12:46:22]wFMCommunicate OK [12:46:22]wFMCommunicate request_size=4 [12:46:22]MH_SAM_APDU [12:46:22]CAPDU: 80 0D 03 02 [12:46:22]Write to MH i2c: E2 08 00 03 17 80 0D 03 02 00 00 00 00 95 [12:46:22]Write i2c OK [12:46:22]MH_I2C_Read... [12:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:22]Read from MH i2c: E2 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 0B 00 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 0B 00 03 17 00 D5 DA 28 FF 98 A7 26 20 90 00 F1 [12:46:22]RAPDU: D5 DA 28 FF 98 A7 26 20 90 00 [12:46:22]wFMCommunicate OK [12:46:22]SAM_PROTO_SignData done [12:46:22]FM_MakeSignedData done [12:46:22]CreateOFDProtocolMessage [12:46:22]wFMCommunicate request_size=4 [12:46:22]MH_SAM_APDU [12:46:22]CAPDU: 80 11 00 00 [12:46:22]Write to MH i2c: E2 08 00 04 17 80 11 00 00 00 00 00 00 95 [12:46:22]Write i2c OK [12:46:22]MH_I2C_Read... [12:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:22]Read from MH i2c: E2 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 17 00 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: E2 17 00 04 17 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:46: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:46:22]wFMCommunicate OK [12:46:22]CreateOFDProtocolMessage done [12:46:22]OFDSenderStorePacket 63982 [12:46:22]StoreOFDPacket docnum=63982 [12:46: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 25 01 00 00 90 10 1D 01 92 2D 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 43 00 00 00 F4 03 04 00 A0 0C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EE F9 00 00 35 04 06 00 49 85 6F F8 9F 04 D5 DA 28 FF 98 A7 26 20 [12:46:22]CheckFolder [12:46:22]dirname=/storage/ofd_packets [12:46:22]CheckFolder done [12:46:22]ProducePacketName [12:46:22]name=ofd_packets/00063982 [12:46:22]NVStorageSaveData ofd_packets/00063982 [12:46:22]File name is /storage/ofd_packets/00063982 [12:46:22]Write 323 bytes [12:46:22]NVStorageSaveData done [12:46:22]OFDSenderStorePacket done [12:46:22]KKMCreateOFDPacket done [12:46:22]NVStorageSaveData kkm_last_timestamp [12:46:22]File name is /storage/kkm_last_timestamp [12:46:22]Write 4 bytes [12:46:22]NVStorageSaveData done [12:46:22]ExternCall_PrintAddStr [12:46:22]wPrintStart [12:46:22]Write to MH i2c: 01 00 00 05 17 1C [12:46:22]Write i2c OK [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: 01 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: 01 07 00 [12:46:22]MH_I2C_Read... [12:46:22]Read from MH i2c: 01 07 00 05 17 00 00 00 00 00 FF 0F 31 [12:46:22]RasterBufferAndPrint [12:46:22]line Счет N : (3)73541 [12:46:22]line ИНН: 02508201610067 [12:46:22]line Контрольно-Кассовый Чек [12:46:22]line ПРОДАЖА [12:46:22]line Товар: 48747059 [12:46:22]line Сигареты Winston Legend Blue [12:46:22]line 1.000 * 140.00 [12:46:22]line = 140.00 [12:46:22]line НДС 12% НСП 1% [12:46:22]line > о реализуемом товаре [12:46:22]line ИТОГО: 140.00 [12:46:22]line НСП 1% : 1.24 [12:46:22]line НДС 12% : 14.87 [12:46:22]line Наличными: 140.00 [12:46:22]line Безнал.: 0.00 [12:46:22]line Место: АЗС № 117 "Партнер Нефть" [12:46:22]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:46:22]line СНО: Общий режим [12:46:22]line Чек 67 04.06.2024 12:46 [12:46:22]line Смена: 374 ФФД: 1.0 [12:46:22]line ЗНМ: 0300000031 [12:46:22]line РНМ: 0000000000092737 [12:46:22]line Версия ККМ: 001 [12:46:22]line ФМ: 0000000000875074 [12:46:22]line ФД: 63982 [12:46:22]line ФПД: 80837458042628 [12:46:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T124624&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63982&fm=80837458042628&tin=02508201610067®Number=0000000000092737&sum=14000 [12:46:22]line 0 [12:46:22]OFD Sender: Processing packet 63982 [packets to send 14, broken 13] [12:46:22]ProducePacketName [12:46:22]name=ofd_packets/00063982 [12:46:22]OFD Sender: To server: pG, [12:46:22]CommunicateWithHost lk.salyk.kg:30040 [12:46:22]ConnectInit lk.salyk.kg [12:46:22]written 0, free lines is 4095 [12:46:23]Connected sock=10 [12:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 90 10 1D 01 92 2D 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 43 00 00 00 F4 03 04 00 A0 0C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EE F9 00 00 35 04 06 00 49 85 6F F8 9F 04 D5 DA 28 FF 98 A7 26 20 [12:46: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 28 7D 47 00 B4 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EE F9 00 00 F4 03 04 00 6E B8 5E 66 B6 04 01 00 00 7E E8 EB DF E9 91 22 A2 [12:46:23]CommunicateWithHost err = 0 [12:46:23]CheckOFDResponse [12:46:23]1017 (14) - 77093643461234 [12:46:23]1041 (16) - 0000000000875074 [12:46:23]1040 (4) - 63982 [12:46:23]1012 (4) - 04.06.2024 06:47 [12:46:23]1206 (1) - 0 [12:46:23]OFD Sender: Remove packet 63982 [12:46:23]ProducePacketName [12:46:23]name=ofd_packets/00063982 [12:46:23]NVStorageDeleteData [12:46:23]Write to MH i2c: 01 00 00 2E 17 45 [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: 01 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: 01 07 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: 01 07 00 2E 17 00 00 00 00 00 DA 0C 32 [12:46:23]RasterBufferAndPrint [12:46:23]line [12:46:23]line [12:46:23]line [12:46:23]line [12:46:23]line [12:46:23]written 0, free lines is 3296 [12:46:23]MH_Cut [12:46:23]Write to MH i2c: D1 01 00 35 17 01 1E [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: D1 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: D1 01 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: D1 01 00 35 17 00 1D [12:46:23]Write to MH i2c: 01 00 00 36 17 4D [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]OFD Sender: No OFD packet to send [12:46:24]*** Cut start [12:46:24]*** Partial cut [12:46:24]*** CUTSNS_PIN = 1 [12:46:24]*** CUTSNS_PIN = 0 [12:46:24]*** Brake cut motor [12:46:24]Read from MH i2c: 01 [12:46:24]MH_I2C_Read... [12:46:24]*** Stop cut motor [12:46:24]*** Cut end [12:46:24]Read from MH i2c: 01 07 00 [12:46:24]MH_I2C_Read... [12:46:24]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 FF 0F 62 [12:46:24]process_action close_receipt done [12:46:24]requested_data is exist [12:46:24]produce_requested_data [12:46:24]requested_item fm.sn is exist - process it [12:46:24]wFMCommunicate request_size=4 [12:46:24]MH_SAM_APDU [12:46:24]CAPDU: 80 11 00 00 [12:46:24]Write to MH i2c: E2 08 00 37 17 80 11 00 00 00 00 00 00 C8 [12:46:24]Write i2c OK [12:46:24]MH_I2C_Read... [12:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:24]Read from MH i2c: E2 [12:46:24]MH_I2C_Read... [12:46:24]Read from MH i2c: E2 17 00 [12:46:24]MH_I2C_Read... [12:46:24]Read from MH i2c: E2 17 00 37 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1A [12:46:24]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:24]wFMCommunicate OK [12:46:24]requested_item fd.num is exist - process it [12:46:24]SAM_PROTO_GetFieldsCounters [12:46:24]wFMCommunicate request_size=4 [12:46:24]MH_SAM_APDU [12:46:24]CAPDU: 80 13 00 00 [12:46:24]Write to MH i2c: E2 08 00 38 17 80 13 00 00 00 00 00 00 CB [12:46:24]Write i2c OK [12:46:24]MH_I2C_Read... [12:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:25]Read from MH i2c: E2 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 62 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 62 00 38 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 EE F9 00 00 0E 04 04 00 76 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 15 [12:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 EE F9 00 00 0E 04 04 00 76 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:46:25]wFMCommunicate OK [12:46:25]SAM_PROTO_GetFieldsCounters done [12:46:25]requested_item shift.num is exist - process it [12:46:25]requested_item shift.opened is exist - process it [12:46:25]req_shift_opened [12:46:25]FM_GetShiftState [12:46:25]SAM_PROTO_GetShiftState [12:46:25]wFMCommunicate request_size=4 [12:46:25]MH_SAM_APDU [12:46:25]CAPDU: 80 13 01 00 [12:46:25]Write to MH i2c: E2 08 00 39 17 80 13 01 00 00 00 00 00 CD [12:46:25]Write i2c OK [12:46:25]MH_I2C_Read... [12:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:25]Read from MH i2c: E2 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 0E 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 0E 00 39 17 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6D [12:46:25]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:46:25]wFMCommunicate OK [12:46:25]SAM_PROTO_GetShiftState done [12:46:25]FM_GetShiftState done [12:46:25]req_shift_opened done [12:46:25]requested_item shift.open_date is exist - process it [12:46:25]req_shift_open_date [12:46:25]req_shift_open_date done [12:46:25]produce_requested_data done [12:46:25]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63982,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:46:25]process_action_free close_receipt [12:46:25]json_value_free [12:46:25]json_value_free done [12:46:25]process_json_proto returns [12:46:25]Send response to host [12:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63982,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:46:25]free response buf [12:46:25]execute_script done [12:46:25]execute_script returns [12:46:25]free content buf [12:46:25]Sock 9.Close socket [12:46:25]Sock 9.Thread stoped [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51: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:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:00]accept exits with 7 [12:57:00]New connection [12:57:00]New thread 3066912100 created [12:57:00]Thread 3067055460 joined [12:57:00]Waiting for new connection... [12:57:00] Sock 7.Parse request [12:57:00]Sock 7.Check first char [12:57:00]Sock 7.First char is OK [12:57:00]request: POST /json_proto HTTP/1.0 [12:57:00]Method: POST [12:57:00]URL: /json_proto [12:57:00]Method is POST - this is cgi request [12:57:00]url: /json_proto [12:57:00]query_string will be loaded in cgi processing [12:57:00]execute_cgi json_proto POST (null) [12:57:00]execute_cgi path=json_proto method=POST [12:57:00]POST find Content-Length [12:57:00]Host: 172.17.60.69:8080 [12:57:00]Content-Length: 623 [12:57:00]Content-Type: application/json [12:57:00] [12:57:00]POST finish read [12:57:00]Found Content-Length = 623 [12:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73542", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver 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" ] } } [12:57:00]execute_script... [12: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)73542", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver 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" ] } } [12:57:00]POST & json_proto [12:57:00]process_json_proto [12:57:00]json parsed OK: [12:57:00]protocol is kg_v1.0 [12:57:00]action value=close_receipt [12:57:00]process_action close_receipt [12:57:00]cmd_close_receipt [12:57:00]MH_GetDate [12:57:00]Write to MH i2c: F0 00 00 3A 17 40 [12:57:00]Write i2c OK [12:57:00]MH_I2C_Read... [12:57:00]Read from MH i2c: F0 [12:57:00]MH_I2C_Read... [12:57:00]Read from MH i2c: F0 09 00 [12:57:00]MH_I2C_Read... [12:57:00]Read from MH i2c: F0 09 00 3A 17 00 1F 0F 5F 66 6A 96 4A 66 EC [12:57:00]GetLastDocTimeStamp 1717505184 [12:57:00]current date 1717505823 [12:57:00]FM_GetShiftState [12:57:00]SAM_PROTO_GetShiftState [12:57:00]wFMCommunicate request_size=4 [12:57:00]MH_SAM_APDU [12:57:00]CAPDU: 80 13 01 00 [12:57:00]Write to MH i2c: E2 08 00 3B 17 80 13 01 00 00 00 00 00 CF [12:57:00]Write i2c OK [12:57:00]MH_I2C_Read... [12:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:00]Read from MH i2c: E2 [12:57:00]MH_I2C_Read... [12:57:00]Read from MH i2c: E2 0E 00 [12:57:00]MH_I2C_Read... [12:57:00]Read from MH i2c: E2 0E 00 3B 17 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6F [12:57:00]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:57:00]wFMCommunicate OK [12:57:00]SAM_PROTO_GetShiftState done [12:57:00]FM_GetShiftState done [12:57:00]opened in 1717459574 [12:57:00]opened+sec_in_day 1717545974 [12:57:00]quantity*price = 15100 [12:57:00]sum+1 = 15101 [12:57:00]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 СНО: Общий режим Чек 68 04.06.2024 12:57 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63983 ФПД: 13724828301015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125703&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63983&fm=13724828301015&tin=02508201610067®Number=0000000000092737&sum=15100 0 [12:57:01]StoreToDocumentArchive [12:57:01]shift 374 fd 63983 [12:57:01]save to /storage/0374/doc_00063983 [12:57:01]save last doc name /storage/0374/doc_00063983 to /storage/kkm_last_doc_name [12:57:01]save OK [12:57:01]Clear old archive folders... [12:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:57:01]tlvbuf is 012829A0 [12:57:01]SAM_PROTO_ClearQueue [12:57:01]wFMCommunicate request_size=4 [12:57:01]MH_SAM_APDU [12:57:01]CAPDU: 80 09 00 00 [12:57:01]Write to MH i2c: E2 08 00 48 17 80 09 00 00 00 00 00 00 D1 [12:57:01]Write i2c OK [12:57:01]MH_I2C_Read... [12:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:01]Read from MH i2c: E2 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 03 00 [12:57:01]MH_I2C_Read... [12:57:01]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [12:57:01]RAPDU: 90 00 [12:57:01]wFMCommunicate OK [12:57:01]SAM_PROTO_ClearQueue done [12:57:01]KKMCreateOFDPacket [12:57:01]OFDProtocolAddRootSTLVToBuf [12:57:01]FM_MakeSignedData [12:57:01]FM_MakeSignedData [12:57:01]SAM_PROTO_SignData [12:57:01]wFMCommunicate request_size=4 [12:57:01]MH_SAM_APDU [12:57:01]CAPDU: 80 0D 01 02 [12:57:01]Write to MH i2c: E2 08 00 49 17 80 0D 01 02 00 00 00 00 D9 [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:02]Read from MH i2c: E2 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 03 00 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 03 00 49 17 00 90 00 D4 [12:57:02]RAPDU: 90 00 [12:57:02]wFMCommunicate OK [12:57:02]wFMCommunicate request_size=255 [12:57:02]MH_SAM_APDU [12:57:02]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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 44 00 00 00 F4 03 04 00 1F 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [12:57:02]Write to MH i2c: E2 02 01 4A 17 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 44 00 00 00 F4 03 04 00 1F 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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 DC [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:02]Read from MH i2c: E2 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 03 00 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [12:57:02]RAPDU: 90 00 [12:57:02]wFMCommunicate OK [12:57:02]wFMCommunicate request_size=35 [12:57:02]MH_SAM_APDU [12:57:02]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EF F9 00 00 35 04 06 00 0C 7B 8F 83 F6 D7 [12:57:02]Write to MH i2c: E2 26 00 4B 17 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EF F9 00 00 35 04 06 00 0C 7B 8F 83 F6 D7 00 00 1C [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:02]Read from MH i2c: E2 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 03 00 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [12:57:02]RAPDU: 90 00 [12:57:02]wFMCommunicate OK [12:57:02]wFMCommunicate request_size=4 [12:57:02]MH_SAM_APDU [12:57:02]CAPDU: 80 0D 03 02 [12:57:02]Write to MH i2c: E2 08 00 4C 17 80 0D 03 02 00 00 00 00 DE [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:02]Read from MH i2c: E2 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 0B 00 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 0B 00 4C 17 00 60 3A 75 7A 56 75 9A 56 90 00 23 [12:57:02]RAPDU: 60 3A 75 7A 56 75 9A 56 90 00 [12:57:02]wFMCommunicate OK [12:57:02]SAM_PROTO_SignData done [12:57:02]FM_MakeSignedData done [12:57:02]CreateOFDProtocolMessage [12:57:02]wFMCommunicate request_size=4 [12:57:02]MH_SAM_APDU [12:57:02]CAPDU: 80 11 00 00 [12:57:02]Write to MH i2c: E2 08 00 4D 17 80 11 00 00 00 00 00 00 DE [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:02]Read from MH i2c: E2 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 17 00 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: E2 17 00 4D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 30 [12:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:57:02]wFMCommunicate OK [12:57:02]CreateOFDProtocolMessage done [12:57:02]OFDSenderStorePacket 63983 [12:57:02]StoreOFDPacket docnum=63983 [12:57: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 28 01 00 00 D0 0D 20 01 66 28 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 44 00 00 00 F4 03 04 00 1F 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EF F9 00 00 35 04 06 00 0C 7B 8F 83 F6 D7 60 3A 75 7A 56 75 9A 56 [12:57:02]CheckFolder [12:57:02]dirname=/storage/ofd_packets [12:57:02]CheckFolder done [12:57:02]ProducePacketName [12:57:02]name=ofd_packets/00063983 [12:57:02]NVStorageSaveData ofd_packets/00063983 [12:57:02]File name is /storage/ofd_packets/00063983 [12:57:02]Write 326 bytes [12:57:02]NVStorageSaveData done [12:57:02]OFDSenderStorePacket done [12:57:02]KKMCreateOFDPacket done [12:57:02]NVStorageSaveData kkm_last_timestamp [12:57:02]File name is /storage/kkm_last_timestamp [12:57:02]Write 4 bytes [12:57:02]NVStorageSaveData done [12:57:02]ExternCall_PrintAddStr [12:57:02]wPrintStart [12:57:02]Write to MH i2c: 01 00 00 4E 17 65 [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: 01 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: 01 07 00 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: 01 07 00 4E 17 00 00 00 00 00 FF 0F 7A [12:57:02]RasterBufferAndPrint [12:57:02]line Счет N : (3)73542 [12:57:02]line ИНН: 02508201610067 [12:57:02]line Контрольно-Кассовый Чек [12:57:02]line ПРОДАЖА [12:57:02]line Товар: 48742245 [12:57:02]line Сигареты Parliament Silver Blue [12:57:02]line 1.000 * 151.00 [12:57:02]line = 151.00 [12:57:02]line НДС 12% НСП 1% [12:57:02]line > о реализуемом товаре [12:57:02]line ИТОГО: 151.00 [12:57:02]line НСП 1% : 1.34 [12:57:02]line НДС 12% : 16.03 [12:57:02]line Наличными: 151.00 [12:57:02]line Безнал.: 0.00 [12:57:02]line Место: АЗС № 117 "Партнер Нефть" [12:57:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:57:02]line СНО: Общий режим [12:57:02]line Чек 68 04.06.2024 12:57 [12:57:02]line Смена: 374 ФФД: 1.0 [12:57:02]line ЗНМ: 0300000031 [12:57:02]line РНМ: 0000000000092737 [12:57:02]line Версия ККМ: 001 [12:57:02]line ФМ: 0000000000875074 [12:57:02]line ФД: 63983 [12:57:02]line ФПД: 13724828301015 [12:57:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125703&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63983&fm=13724828301015&tin=02508201610067®Number=0000000000092737&sum=15100 [12:57:02]line 0 [12:57:02]written 0, free lines is 4095 [12:57:02]OFD Sender: Processing packet 63983 [packets to send 14, broken 13] [12:57:02]ProducePacketName [12:57:02]name=ofd_packets/00063983 [12:57:02]OFD Sender: To server: pG, [12:57:02]CommunicateWithHost lk.salyk.kg:30040 [12:57:02]ConnectInit lk.salyk.kg [12:57:02]Connected sock=10 [12: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 28 01 00 00 D0 0D 20 01 66 28 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 44 00 00 00 F4 03 04 00 1F 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 EF F9 00 00 35 04 06 00 0C 7B 8F 83 F6 D7 60 3A 75 7A 56 75 9A 56 [12: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 3D 25 47 00 6C 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 EF F9 00 00 F4 03 04 00 ED BA 5E 66 B6 04 01 00 00 E4 20 22 0C 61 28 51 E1 [12:57:02]CommunicateWithHost err = 0 [12:57:02]CheckOFDResponse [12:57:02]1017 (14) - 77093643461234 [12:57:02]1041 (16) - 0000000000875074 [12:57:02]1040 (4) - 63983 [12:57:02]1012 (4) - 04.06.2024 06:57 [12:57:02]1206 (1) - 0 [12:57:02]OFD Sender: Remove packet 63983 [12:57:02]ProducePacketName [12:57:02]name=ofd_packets/00063983 [12:57:02]NVStorageDeleteData [12:57:02]Write to MH i2c: 01 00 00 77 17 8E [12:57:02]Write i2c OK [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: 01 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: 01 07 00 [12:57:02]MH_I2C_Read... [12:57:02]Read from MH i2c: 01 07 00 77 17 00 00 00 00 00 DA 0C 7B [12:57:02]RasterBufferAndPrint [12:57:02]line [12:57:02]line [12:57:02]line [12:57:02]line [12:57:02]line [12:57:02]written 0, free lines is 3299 [12:57:03]MH_Cut [12:57:03]Write to MH i2c: D1 01 00 7E 17 01 67 [12:57:03]Write i2c OK [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: D1 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: D1 01 00 [12:57:03]MH_I2C_Read... [12:57:03]Read from MH i2c: D1 01 00 7E 17 00 66 [12:57:03]Write to MH i2c: 01 00 00 7F 17 96 [12:57:03]Write i2c OK [12:57:03]MH_I2C_Read... [12:57:03]OFD Sender: No OFD packet to send [12:57:03]*** Cut start [12:57:03]*** Partial cut [12:57:03]*** CUTSNS_PIN = 1 [12:57:03]*** CUTSNS_PIN = 0 [12:57:04]*** Brake cut motor [12:57:04]Read from MH i2c: 01 [12:57:04]MH_I2C_Read... [12:57:04]*** Stop cut motor [12:57:04]*** Cut end [12:57:04]Read from MH i2c: 01 07 00 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: 01 07 00 7F 17 00 00 00 00 00 FF 0F AB [12:57:04]process_action close_receipt done [12:57:04]requested_data is exist [12:57:04]produce_requested_data [12:57:04]requested_item fm.sn is exist - process it [12:57:04]wFMCommunicate request_size=4 [12:57:04]MH_SAM_APDU [12:57:04]CAPDU: 80 11 00 00 [12:57:04]Write to MH i2c: E2 08 00 80 17 80 11 00 00 00 00 00 00 11 [12:57:04]Write i2c OK [12:57:04]MH_I2C_Read... [12:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:04]Read from MH i2c: E2 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 17 00 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 17 00 80 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 63 [12: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 [12:57:04]wFMCommunicate OK [12:57:04]requested_item fd.num is exist - process it [12:57:04]SAM_PROTO_GetFieldsCounters [12:57:04]wFMCommunicate request_size=4 [12:57:04]MH_SAM_APDU [12:57:04]CAPDU: 80 13 00 00 [12:57:04]Write to MH i2c: E2 08 00 81 17 80 13 00 00 00 00 00 00 14 [12:57:04]Write i2c OK [12:57:04]MH_I2C_Read... [12:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:04]Read from MH i2c: E2 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 62 00 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 62 00 81 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 EF F9 00 00 0E 04 04 00 76 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 62 [12: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 EF F9 00 00 0E 04 04 00 76 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:57:04]wFMCommunicate OK [12:57:04]SAM_PROTO_GetFieldsCounters done [12:57:04]requested_item shift.num is exist - process it [12:57:04]requested_item shift.opened is exist - process it [12:57:04]req_shift_opened [12:57:04]FM_GetShiftState [12:57:04]SAM_PROTO_GetShiftState [12:57:04]wFMCommunicate request_size=4 [12:57:04]MH_SAM_APDU [12:57:04]CAPDU: 80 13 01 00 [12:57:04]Write to MH i2c: E2 08 00 82 17 80 13 01 00 00 00 00 00 16 [12:57:04]Write i2c OK [12:57:04]MH_I2C_Read... [12:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:04]Read from MH i2c: E2 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 0E 00 [12:57:04]MH_I2C_Read... [12:57:04]Read from MH i2c: E2 0E 00 82 17 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B6 [12:57:04]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:57:04]wFMCommunicate OK [12:57:04]SAM_PROTO_GetShiftState done [12:57:04]FM_GetShiftState done [12:57:04]req_shift_opened done [12:57:04]requested_item shift.open_date is exist - process it [12:57:04]req_shift_open_date [12:57:04]req_shift_open_date done [12:57:04]produce_requested_data done [12:57:04]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63983,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:57:04]process_action_free close_receipt [12:57:04]json_value_free [12:57:04]json_value_free done [12:57:04]process_json_proto returns [12:57:04]Send response to host [12:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63983,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:57:04]free response buf [12:57:04]execute_script done [12:57:04]execute_script returns [12:57:04]free content buf [12:57:04]Sock 7.Close socket [12:57:04]Sock 7.Thread stoped [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:14]accept exits with 9 [12:57:14]New connection [12:57:14]New thread 3067055460 created [12:57:14]Thread 3066912100 joined [12:57:14]Waiting for new connection... [12:57:14] Sock 9.Parse request [12:57:14]Sock 9.Check first char [12:57:14]Sock 9.First char is OK [12:57:14]request: POST /json_proto HTTP/1.0 [12:57:14]Method: POST [12:57:14]URL: /json_proto [12:57:14]Method is POST - this is cgi request [12:57:14]url: /json_proto [12:57:14]query_string will be loaded in cgi processing [12:57:14]execute_cgi json_proto POST (null) [12:57:14]execute_cgi path=json_proto method=POST [12:57:14]POST find Content-Length [12:57:14]Host: 172.17.60.69:8080 [12:57:14]Content-Length: 620 [12:57:14]Content-Type: application/json [12:57:14] [12:57:14]POST finish read [12:57:14]Found Content-Length = 620 [12:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73543", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:14]execute_script... [12:57:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73543", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:14]POST & json_proto [12:57:14]process_json_proto [12:57:14]json parsed OK: [12:57:14]protocol is kg_v1.0 [12:57:14]action value=close_receipt [12:57:14]process_action close_receipt [12:57:14]cmd_close_receipt [12:57:14]MH_GetDate [12:57:14]Write to MH i2c: F0 00 00 83 17 89 [12:57:14]Write i2c OK [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: F0 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: F0 09 00 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: F0 09 00 83 17 00 2D 0F 5F 66 6A 96 4A 66 43 [12:57:14]GetLastDocTimeStamp 1717505823 [12:57:14]current date 1717505837 [12:57:14]FM_GetShiftState [12:57:14]SAM_PROTO_GetShiftState [12:57:14]wFMCommunicate request_size=4 [12:57:14]MH_SAM_APDU [12:57:14]CAPDU: 80 13 01 00 [12:57:14]Write to MH i2c: E2 08 00 84 17 80 13 01 00 00 00 00 00 18 [12:57:14]Write i2c OK [12:57:14]MH_I2C_Read... [12:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:14]Read from MH i2c: E2 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: E2 0E 00 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: E2 0E 00 84 17 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B8 [12:57:14]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:57:14]wFMCommunicate OK [12:57:14]SAM_PROTO_GetShiftState done [12:57:14]FM_GetShiftState done [12:57:14]opened in 1717459574 [12:57:14]opened+sec_in_day 1717545974 [12:57:14]quantity*price = 28000 [12:57:14]sum+1 = 28001 [12:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 69 04.06.2024 12:57 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63984 ФПД: 229987463824582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125718&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63984&fm=229987463824582&tin=02508201610067®Number=0000000000092737&sum=28000 0 [12:57:16]StoreToDocumentArchive [12:57:16]shift 374 fd 63984 [12:57:16]save to /storage/0374/doc_00063984 [12:57:16]save last doc name /storage/0374/doc_00063984 to /storage/kkm_last_doc_name [12:57:16]save OK [12:57:16]Clear old archive folders... [12:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:57:16]tlvbuf is 012DC6F0 [12:57:16]SAM_PROTO_ClearQueue [12:57:16]wFMCommunicate request_size=4 [12:57:16]MH_SAM_APDU [12:57:16]CAPDU: 80 09 00 00 [12:57:16]Write to MH i2c: E2 08 00 91 17 80 09 00 00 00 00 00 00 1A [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:16]Read from MH i2c: E2 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 03 00 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 03 00 91 17 00 90 00 1C [12:57:16]RAPDU: 90 00 [12:57:16]wFMCommunicate OK [12:57:16]SAM_PROTO_ClearQueue done [12:57:16]KKMCreateOFDPacket [12:57:16]OFDProtocolAddRootSTLVToBuf [12:57:16]FM_MakeSignedData [12:57:16]FM_MakeSignedData [12:57:16]SAM_PROTO_SignData [12:57:16]wFMCommunicate request_size=4 [12:57:16]MH_SAM_APDU [12:57:16]CAPDU: 80 0D 01 02 [12:57:16]Write to MH i2c: E2 08 00 92 17 80 0D 01 02 00 00 00 00 22 [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:16]Read from MH i2c: E2 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 03 00 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 03 00 92 17 00 90 00 1D [12:57:16]RAPDU: 90 00 [12:57:16]wFMCommunicate OK [12:57:16]wFMCommunicate request_size=255 [12:57:16]MH_SAM_APDU [12:57:16]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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2E 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [12:57:16]Write to MH i2c: E2 02 01 93 17 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2E 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 B5 [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:16]Read from MH i2c: E2 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 03 00 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 03 00 93 17 00 90 00 1E [12:57:16]RAPDU: 90 00 [12:57:16]wFMCommunicate OK [12:57:16]wFMCommunicate request_size=32 [12:57:16]MH_SAM_APDU [12:57:16]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 F0 F9 00 00 35 04 06 00 D1 2C 21 15 84 C6 [12:57:16]Write to MH i2c: E2 23 00 94 17 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 F0 F9 00 00 35 04 06 00 D1 2C 21 15 84 C6 00 00 E7 [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:16]Read from MH i2c: E2 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 03 00 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 03 00 94 17 00 90 00 1F [12:57:16]RAPDU: 90 00 [12:57:16]wFMCommunicate OK [12:57:16]wFMCommunicate request_size=4 [12:57:16]MH_SAM_APDU [12:57:16]CAPDU: 80 0D 03 02 [12:57:16]Write to MH i2c: E2 08 00 95 17 80 0D 03 02 00 00 00 00 27 [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:16]Read from MH i2c: E2 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 0B 00 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 0B 00 95 17 00 87 E1 21 85 8E 4E 8D BA 90 00 59 [12:57:16]RAPDU: 87 E1 21 85 8E 4E 8D BA 90 00 [12:57:16]wFMCommunicate OK [12:57:16]SAM_PROTO_SignData done [12:57:16]FM_MakeSignedData done [12:57:16]CreateOFDProtocolMessage [12:57:16]wFMCommunicate request_size=4 [12:57:16]MH_SAM_APDU [12:57:16]CAPDU: 80 11 00 00 [12:57:16]Write to MH i2c: E2 08 00 96 17 80 11 00 00 00 00 00 00 27 [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:16]Read from MH i2c: E2 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 17 00 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: E2 17 00 96 17 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:57: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:57:16]wFMCommunicate OK [12:57:16]CreateOFDProtocolMessage done [12:57:16]OFDSenderStorePacket 63984 [12:57:16]StoreOFDPacket docnum=63984 [12:57: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 25 01 00 00 BA ED 1D 01 8F 12 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2E 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F0 F9 00 00 35 04 06 00 D1 2C 21 15 84 C6 87 E1 21 85 8E 4E 8D BA [12:57:16]CheckFolder [12:57:16]dirname=/storage/ofd_packets [12:57:16]CheckFolder done [12:57:16]ProducePacketName [12:57:16]name=ofd_packets/00063984 [12:57:16]NVStorageSaveData ofd_packets/00063984 [12:57:16]File name is /storage/ofd_packets/00063984 [12:57:16]Write 323 bytes [12:57:16]NVStorageSaveData done [12:57:16]OFDSenderStorePacket done [12:57:16]KKMCreateOFDPacket done [12:57:16]NVStorageSaveData kkm_last_timestamp [12:57:16]File name is /storage/kkm_last_timestamp [12:57:16]Write 4 bytes [12:57:16]NVStorageSaveData done [12:57:16]ExternCall_PrintAddStr [12:57:16]wPrintStart [12:57:16]Write to MH i2c: 01 00 00 97 17 AE [12:57:16]Write i2c OK [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: 01 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: 01 07 00 [12:57:16]MH_I2C_Read... [12:57:16]Read from MH i2c: 01 07 00 97 17 00 00 00 00 00 FF 0F C3 [12:57:16]RasterBufferAndPrint [12:57:16]line Счет N : (3)73543 [12:57:16]line ИНН: 02508201610067 [12:57:16]line Контрольно-Кассовый Чек [12:57:16]line ПРОДАЖА [12:57:16]line Товар: 48747059 [12:57:16]line Сигареты Winston Legend Blue [12:57:16]line 2.000 * 140.00 [12:57:16]line = 280.00 [12:57:16]line НДС 12% НСП 1% [12:57:16]line > о реализуемом товаре [12:57:16]line ИТОГО: 280.00 [12:57:16]line НСП 1% : 2.48 [12:57:16]line НДС 12% : 29.73 [12:57:16]line Наличными: 280.00 [12:57:16]line Безнал.: 0.00 [12:57:16]line Место: АЗС № 117 "Партнер Нефть" [12:57:16]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:57:16]line СНО: Общий режим [12:57:16]line Чек 69 04.06.2024 12:57 [12:57:16]line Смена: 374 ФФД: 1.0 [12:57:16]line ЗНМ: 0300000031 [12:57:16]line РНМ: 0000000000092737 [12:57:16]line Версия ККМ: 001 [12:57:16]line ФМ: 0000000000875074 [12:57:16]line ФД: 63984 [12:57:16]line ФПД: 229987463824582 [12:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125718&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63984&fm=229987463824582&tin=02508201610067®Number=0000000000092737&sum=28000 [12:57:16]line 0 [12:57:16]OFD Sender: Processing packet 63984 [packets to send 14, broken 13] [12:57:16]ProducePacketName [12:57:16]name=ofd_packets/00063984 [12:57:16]OFD Sender: To server: pG, [12:57:16]CommunicateWithHost lk.salyk.kg:30040 [12:57:16]ConnectInit lk.salyk.kg [12:57:16]written 0, free lines is 4095 [12:57:17]Connected sock=10 [12:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 25 01 00 00 BA ED 1D 01 8F 12 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 2E 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F0 F9 00 00 35 04 06 00 D1 2C 21 15 84 C6 87 E1 21 85 8E 4E 8D BA [12:57: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 6A 7D 47 00 21 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 F0 F9 00 00 F4 03 04 00 FC BA 5E 66 B6 04 01 00 00 3B A8 F6 F4 C9 DA DA 13 [12:57:17]CommunicateWithHost err = 0 [12:57:17]CheckOFDResponse [12:57:17]1017 (14) - 77093643461234 [12:57:17]1041 (16) - 0000000000875074 [12:57:17]1040 (4) - 63984 [12:57:17]1012 (4) - 04.06.2024 06:58 [12:57:17]1206 (1) - 0 [12:57:17]OFD Sender: Remove packet 63984 [12:57:17]ProducePacketName [12:57:17]name=ofd_packets/00063984 [12:57:17]NVStorageDeleteData [12:57:17]Write to MH i2c: 01 00 00 C0 17 D7 [12:57:17]Write i2c OK [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: 01 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: 01 07 00 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: 01 07 00 C0 17 00 00 00 00 00 E1 0C CB [12:57:17]RasterBufferAndPrint [12:57:17]line [12:57:17]line [12:57:17]line [12:57:17]line [12:57:17]line [12:57:17]written 0, free lines is 3303 [12:57:17]MH_Cut [12:57:17]Write to MH i2c: D1 01 00 C7 17 01 B0 [12:57:17]Write i2c OK [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: D1 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: D1 01 00 [12:57:17]MH_I2C_Read... [12:57:17]Read from MH i2c: D1 01 00 C7 17 00 AF [12:57:17]Write to MH i2c: 01 00 00 C8 17 DF [12:57:17]Write i2c OK [12:57:17]MH_I2C_Read... [12:57:17]OFD Sender: No OFD packet to send [12:57:18]*** Cut start [12:57:18]*** Partial cut [12:57:18]*** CUTSNS_PIN = 1 [12:57:18]*** CUTSNS_PIN = 0 [12:57:18]*** Brake cut motor [12:57:18]Read from MH i2c: 01 [12:57:18]MH_I2C_Read... [12:57:18]*** Stop cut motor [12:57:18]*** Cut end [12:57:18]Read from MH i2c: 01 07 00 [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: 01 07 00 C8 17 00 00 00 00 00 FF 0F F4 [12:57:18]process_action close_receipt done [12:57:18]requested_data is exist [12:57:18]produce_requested_data [12:57:18]requested_item fm.sn is exist - process it [12:57:18]wFMCommunicate request_size=4 [12:57:18]MH_SAM_APDU [12:57:18]CAPDU: 80 11 00 00 [12:57:18]Write to MH i2c: E2 08 00 C9 17 80 11 00 00 00 00 00 00 5A [12:57:18]Write i2c OK [12:57:18]MH_I2C_Read... [12:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:18]Read from MH i2c: E2 [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: E2 17 00 [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: E2 17 00 C9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AC [12:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:57:18]wFMCommunicate OK [12:57:18]requested_item fd.num is exist - process it [12:57:18]SAM_PROTO_GetFieldsCounters [12:57:18]wFMCommunicate request_size=4 [12:57:18]MH_SAM_APDU [12:57:18]CAPDU: 80 13 00 00 [12:57:18]Write to MH i2c: E2 08 00 CA 17 80 13 00 00 00 00 00 00 5D [12:57:18]Write i2c OK [12:57:18]MH_I2C_Read... [12:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:18]Read from MH i2c: E2 [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: E2 62 00 [12:57:18]MH_I2C_Read... [12:57:18]Read from MH i2c: E2 62 00 CA 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 F0 F9 00 00 0E 04 04 00 76 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 AF [12:57:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 F0 F9 00 00 0E 04 04 00 76 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:57:18]wFMCommunicate OK [12:57:18]SAM_PROTO_GetFieldsCounters done [12:57:18]requested_item shift.num is exist - process it [12:57:18]requested_item shift.opened is exist - process it [12:57:18]req_shift_opened [12:57:18]FM_GetShiftState [12:57:18]SAM_PROTO_GetShiftState [12:57:18]wFMCommunicate request_size=4 [12:57:18]MH_SAM_APDU [12:57:18]CAPDU: 80 13 01 00 [12:57:18]Write to MH i2c: E2 08 00 CB 17 80 13 01 00 00 00 00 00 5F [12:57:18]Write i2c OK [12:57:18]MH_I2C_Read... [12:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:19]Read from MH i2c: E2 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 0E 00 [12:57:19]MH_I2C_Read... [12:57:19]Read from MH i2c: E2 0E 00 CB 17 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 FF [12:57:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:57:19]wFMCommunicate OK [12:57:19]SAM_PROTO_GetShiftState done [12:57:19]FM_GetShiftState done [12:57:19]req_shift_opened done [12:57:19]requested_item shift.open_date is exist - process it [12:57:19]req_shift_open_date [12:57:19]req_shift_open_date done [12:57:19]produce_requested_data done [12:57:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63984,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:57:19]process_action_free close_receipt [12:57:19]json_value_free [12:57:19]json_value_free done [12:57:19]process_json_proto returns [12:57:19]Send response to host [12:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63984,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:57:19]free response buf [12:57:19]execute_script done [12:57:19]execute_script returns [12:57:19]free content buf [12:57:19]Sock 9.Close socket [12:57:19]Sock 9.Thread stoped [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:33]accept exits with 7 [12:59:33]New connection [12:59:33]New thread 3066912100 created [12:59:33]Thread 3067055460 joined [12:59:33]Waiting for new connection... [12:59:33] Sock 7.Parse request [12:59:33]Sock 7.Check first char [12:59:33]Sock 7.First char is OK [12:59:33]request: POST /json_proto HTTP/1.0 [12:59:33]Method: POST [12:59:33]URL: /json_proto [12:59:33]Method is POST - this is cgi request [12:59:33]url: /json_proto [12:59:33]query_string will be loaded in cgi processing [12:59:33]execute_cgi json_proto POST (null) [12:59:33]execute_cgi path=json_proto method=POST [12:59:33]POST find Content-Length [12:59:33]Host: 172.17.60.69:8080 [12:59:33]Content-Length: 622 [12:59:33]Content-Type: application/json [12:59:33] [12:59:33]POST finish read [12:59:33]Found Content-Length = 622 [12:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73544", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "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" ] } } [12:59:33]execute_script... [12:59: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)73544", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "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" ] } } [12:59:33]POST & json_proto [12:59:33]process_json_proto [12:59:33]json parsed OK: [12:59:33]protocol is kg_v1.0 [12:59:33]action value=close_receipt [12:59:33]process_action close_receipt [12:59:33]cmd_close_receipt [12:59:33]MH_GetDate [12:59:33]Write to MH i2c: F0 00 00 CC 17 D2 [12:59:33]Write i2c OK [12:59:33]MH_I2C_Read... [12:59:33]Read from MH i2c: F0 [12:59:33]MH_I2C_Read... [12:59:33]Read from MH i2c: F0 09 00 [12:59:33]MH_I2C_Read... [12:59:33]Read from MH i2c: F0 09 00 CC 17 00 B9 0F 5F 66 6A 96 4A 66 18 [12:59:33]GetLastDocTimeStamp 1717505838 [12:59:33]current date 1717505977 [12:59:33]FM_GetShiftState [12:59:33]SAM_PROTO_GetShiftState [12:59:33]wFMCommunicate request_size=4 [12:59:33]MH_SAM_APDU [12:59:33]CAPDU: 80 13 01 00 [12:59:33]Write to MH i2c: E2 08 00 CD 17 80 13 01 00 00 00 00 00 61 [12:59:33]Write i2c OK [12:59:33]MH_I2C_Read... [12:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:33]Read from MH i2c: E2 [12:59:33]MH_I2C_Read... [12:59:33]Read from MH i2c: E2 0E 00 [12:59:33]MH_I2C_Read... [12:59:33]Read from MH i2c: E2 0E 00 CD 17 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 01 [12:59:33]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:59:33]wFMCommunicate OK [12:59:33]SAM_PROTO_GetShiftState done [12:59:33]FM_GetShiftState done [12:59:33]opened in 1717459574 [12:59:33]opened+sec_in_day 1717545974 [12:59:33]quantity*price = 26000 [12:59:33]sum+1 = 26001 [12:59:33]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 СНО: Общий режим Чек 70 04.06.2024 12:59 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63985 ФПД: 124014113318590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125937&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63985&fm=124014113318590&tin=02508201610067®Number=0000000000092737&sum=26000 0 [12:59:35]StoreToDocumentArchive [12:59:35]shift 374 fd 63985 [12:59:35]save to /storage/0374/doc_00063985 [12:59:35]save last doc name /storage/0374/doc_00063985 to /storage/kkm_last_doc_name [12:59:35]save OK [12:59:35]Clear old archive folders... [12:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:59:35]tlvbuf is 012DC6F0 [12:59:35]SAM_PROTO_ClearQueue [12:59:35]wFMCommunicate request_size=4 [12:59:35]MH_SAM_APDU [12:59:35]CAPDU: 80 09 00 00 [12:59:35]Write to MH i2c: E2 08 00 DA 17 80 09 00 00 00 00 00 00 63 [12:59:35]Write i2c OK [12:59:35]MH_I2C_Read... [12:59:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:35]Read from MH i2c: E2 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 03 00 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [12:59:35]RAPDU: 90 00 [12:59:35]wFMCommunicate OK [12:59:35]SAM_PROTO_ClearQueue done [12:59:35]KKMCreateOFDPacket [12:59:35]OFDProtocolAddRootSTLVToBuf [12:59:35]FM_MakeSignedData [12:59:35]FM_MakeSignedData [12:59:35]SAM_PROTO_SignData [12:59:35]wFMCommunicate request_size=4 [12:59:35]MH_SAM_APDU [12:59:35]CAPDU: 80 0D 01 02 [12:59:35]Write to MH i2c: E2 08 00 DB 17 80 0D 01 02 00 00 00 00 6B [12:59:35]Write i2c OK [12:59:35]MH_I2C_Read... [12:59:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:35]Read from MH i2c: E2 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 03 00 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 03 00 DB 17 00 90 00 66 [12:59:35]RAPDU: 90 00 [12:59:35]wFMCommunicate OK [12:59:35]wFMCommunicate request_size=255 [12:59:35]MH_SAM_APDU [12:59:35]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 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 46 00 00 00 F4 03 04 00 B9 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 [12:59:35]Write to MH i2c: E2 02 01 DC 17 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 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 46 00 00 00 F4 03 04 00 B9 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 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 3C [12:59:35]Write i2c OK [12:59:35]MH_I2C_Read... [12:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:35]Read from MH i2c: E2 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 03 00 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 03 00 DC 17 00 90 00 67 [12:59:35]RAPDU: 90 00 [12:59:35]wFMCommunicate OK [12:59:35]wFMCommunicate request_size=34 [12:59:35]MH_SAM_APDU [12:59:35]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F1 F9 00 00 35 04 06 00 70 CA 49 2B E6 BE [12:59:35]Write to MH i2c: E2 25 00 DD 17 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F1 F9 00 00 35 04 06 00 70 CA 49 2B E6 BE 00 00 6A [12:59:35]Write i2c OK [12:59:35]MH_I2C_Read... [12:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:35]Read from MH i2c: E2 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 03 00 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 03 00 DD 17 00 90 00 68 [12:59:35]RAPDU: 90 00 [12:59:35]wFMCommunicate OK [12:59:35]wFMCommunicate request_size=4 [12:59:35]MH_SAM_APDU [12:59:35]CAPDU: 80 0D 03 02 [12:59:35]Write to MH i2c: E2 08 00 DE 17 80 0D 03 02 00 00 00 00 70 [12:59:35]Write i2c OK [12:59:35]MH_I2C_Read... [12:59:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:35]Read from MH i2c: E2 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 0B 00 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 0B 00 DE 17 00 6A E3 06 20 9A 3B 3D 01 90 00 F7 [12:59:35]RAPDU: 6A E3 06 20 9A 3B 3D 01 90 00 [12:59:35]wFMCommunicate OK [12:59:35]SAM_PROTO_SignData done [12:59:35]FM_MakeSignedData done [12:59:35]CreateOFDProtocolMessage [12:59:35]wFMCommunicate request_size=4 [12:59:35]MH_SAM_APDU [12:59:35]CAPDU: 80 11 00 00 [12:59:35]Write to MH i2c: E2 08 00 DF 17 80 11 00 00 00 00 00 00 70 [12:59:35]Write i2c OK [12:59:35]MH_I2C_Read... [12:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:35]Read from MH i2c: E2 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 17 00 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: E2 17 00 DF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C2 [12:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:59:35]wFMCommunicate OK [12:59:35]CreateOFDProtocolMessage done [12:59:35]OFDSenderStorePacket 63985 [12:59:35]StoreOFDPacket docnum=63985 [12:59: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 27 01 00 00 24 14 1F 01 A0 F2 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 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 46 00 00 00 F4 03 04 00 B9 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F1 F9 00 00 35 04 06 00 70 CA 49 2B E6 BE 6A E3 06 20 9A 3B 3D 01 [12:59:35]CheckFolder [12:59:35]dirname=/storage/ofd_packets [12:59:35]CheckFolder done [12:59:35]ProducePacketName [12:59:35]name=ofd_packets/00063985 [12:59:35]NVStorageSaveData ofd_packets/00063985 [12:59:35]File name is /storage/ofd_packets/00063985 [12:59:35]Write 325 bytes [12:59:35]NVStorageSaveData done [12:59:35]OFDSenderStorePacket done [12:59:35]KKMCreateOFDPacket done [12:59:35]NVStorageSaveData kkm_last_timestamp [12:59:35]File name is /storage/kkm_last_timestamp [12:59:35]Write 4 bytes [12:59:35]NVStorageSaveData done [12:59:35]ExternCall_PrintAddStr [12:59:35]wPrintStart [12:59:35]Write to MH i2c: 01 00 00 E0 17 F7 [12:59:35]Write i2c OK [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: 01 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: 01 07 00 [12:59:35]MH_I2C_Read... [12:59:35]Read from MH i2c: 01 07 00 E0 17 00 00 00 00 00 FF 0F 0C [12:59:35]RasterBufferAndPrint [12:59:35]line Счет N : (3)73544 [12:59:35]line ИНН: 02508201610067 [12:59:35]line Контрольно-Кассовый Чек [12:59:35]line ПРОДАЖА [12:59:35]line Товар: 48741415 [12:59:35]line Сигареты LD Super Slims Violet [12:59:35]line 2.000 * 130.00 [12:59:35]line = 260.00 [12:59:35]line НДС 12% НСП 1% [12:59:35]line > о реализуемом товаре [12:59:35]line ИТОГО: 260.00 [12:59:35]line НСП 1% : 2.30 [12:59:35]line НДС 12% : 27.61 [12:59:35]line Наличными: 260.00 [12:59:35]line Безнал.: 0.00 [12:59:35]line Место: АЗС № 117 "Партнер Нефть" [12:59:35]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [12:59:35]line СНО: Общий режим [12:59:35]line Чек 70 04.06.2024 12:59 [12:59:35]line Смена: 374 ФФД: 1.0 [12:59:35]line ЗНМ: 0300000031 [12:59:35]line РНМ: 0000000000092737 [12:59:35]line Версия ККМ: 001 [12:59:35]line ФМ: 0000000000875074 [12:59:35]line ФД: 63985 [12:59:35]line ФПД: 124014113318590 [12:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T125937&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63985&fm=124014113318590&tin=02508201610067®Number=0000000000092737&sum=26000 [12:59:35]line 0 [12:59:35]OFD Sender: Processing packet 63985 [packets to send 14, broken 13] [12:59:35]ProducePacketName [12:59:35]name=ofd_packets/00063985 [12:59:35]OFD Sender: To server: pG, [12:59:35]CommunicateWithHost lk.salyk.kg:30040 [12:59:35]ConnectInit lk.salyk.kg [12:59:35]written 0, free lines is 4095 [12:59:36]Connected sock=10 [12:59: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 27 01 00 00 24 14 1F 01 A0 F2 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 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 46 00 00 00 F4 03 04 00 B9 0F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F1 F9 00 00 35 04 06 00 70 CA 49 2B E6 BE 6A E3 06 20 9A 3B 3D 01 [12:59: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 19 52 47 00 4B 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 F1 F9 00 00 F4 03 04 00 87 BB 5E 66 B6 04 01 00 00 93 E9 03 58 5F D1 3C F9 [12:59:36]CommunicateWithHost err = 0 [12:59:36]CheckOFDResponse [12:59:36]1017 (14) - 77093643461234 [12:59:36]1041 (16) - 0000000000875074 [12:59:36]1040 (4) - 63985 [12:59:36]1012 (4) - 04.06.2024 07:00 [12:59:36]1206 (1) - 0 [12:59:36]OFD Sender: Remove packet 63985 [12:59:36]ProducePacketName [12:59:36]name=ofd_packets/00063985 [12:59:36]NVStorageDeleteData [12:59:36]Write to MH i2c: 01 00 00 09 18 21 [12:59:36]Write i2c OK [12:59:36]MH_I2C_Read... [12:59:36]Read from MH i2c: 01 [12:59:36]MH_I2C_Read... [12:59:36]Read from MH i2c: 01 07 00 [12:59:36]MH_I2C_Read... [12:59:36]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 E4 0C 18 [12:59:36]RasterBufferAndPrint [12:59:36]line [12:59:36]line [12:59:36]line [12:59:36]line [12:59:36]line [12:59:36]written 0, free lines is 3307 [12:59:36]MH_Cut [12:59:36]Write to MH i2c: D1 01 00 10 18 01 FA [12:59:36]Write i2c OK [12:59:36]MH_I2C_Read... [12:59:36]Read from MH i2c: D1 [12:59:36]MH_I2C_Read... [12:59:36]Read from MH i2c: D1 01 00 [12:59:36]MH_I2C_Read... [12:59:36]Read from MH i2c: D1 01 00 10 18 00 F9 [12:59:36]Write to MH i2c: 01 00 00 11 18 29 [12:59:36]Write i2c OK [12:59:36]MH_I2C_Read... [12:59:36]OFD Sender: No OFD packet to send [12:59:37]*** Cut start [12:59:37]*** Partial cut [12:59:37]*** CUTSNS_PIN = 1 [12:59:37]*** CUTSNS_PIN = 0 [12:59:37]*** Brake cut motor [12:59:37]Read from MH i2c: 01 [12:59:37]MH_I2C_Read... [12:59:37]*** Stop cut motor [12:59:37]*** Cut end [12:59:37]Read from MH i2c: 01 07 00 [12:59:37]MH_I2C_Read... [12:59:37]Read from MH i2c: 01 07 00 11 18 00 00 00 00 00 FF 0F 3E [12:59:37]process_action close_receipt done [12:59:37]requested_data is exist [12:59:37]produce_requested_data [12:59:37]requested_item fm.sn is exist - process it [12:59:37]wFMCommunicate request_size=4 [12:59:37]MH_SAM_APDU [12:59:37]CAPDU: 80 11 00 00 [12:59:37]Write to MH i2c: E2 08 00 12 18 80 11 00 00 00 00 00 00 A4 [12:59:37]Write i2c OK [12:59:37]MH_I2C_Read... [12:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:37]Read from MH i2c: E2 [12:59:37]MH_I2C_Read... [12:59:37]Read from MH i2c: E2 17 00 [12:59:37]MH_I2C_Read... [12:59:37]Read from MH i2c: E2 17 00 12 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F6 [12:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [12:59:37]wFMCommunicate OK [12:59:37]requested_item fd.num is exist - process it [12:59:37]SAM_PROTO_GetFieldsCounters [12:59:37]wFMCommunicate request_size=4 [12:59:37]MH_SAM_APDU [12:59:37]CAPDU: 80 13 00 00 [12:59:37]Write to MH i2c: E2 08 00 13 18 80 13 00 00 00 00 00 00 A7 [12:59:37]Write i2c OK [12:59:37]MH_I2C_Read... [12:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:38]Read from MH i2c: E2 [12:59:38]MH_I2C_Read... [12:59:38]Read from MH i2c: E2 62 00 [12:59:38]MH_I2C_Read... [12:59:38]Read from MH i2c: E2 62 00 13 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 F1 F9 00 00 0E 04 04 00 76 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 FD [12:59: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 F1 F9 00 00 0E 04 04 00 76 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:59:38]wFMCommunicate OK [12:59:38]SAM_PROTO_GetFieldsCounters done [12:59:38]requested_item shift.num is exist - process it [12:59:38]requested_item shift.opened is exist - process it [12:59:38]req_shift_opened [12:59:38]FM_GetShiftState [12:59:38]SAM_PROTO_GetShiftState [12:59:38]wFMCommunicate request_size=4 [12:59:38]MH_SAM_APDU [12:59:38]CAPDU: 80 13 01 00 [12:59:38]Write to MH i2c: E2 08 00 14 18 80 13 01 00 00 00 00 00 A9 [12:59:38]Write i2c OK [12:59:38]MH_I2C_Read... [12:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:38]Read from MH i2c: E2 [12:59:38]MH_I2C_Read... [12:59:38]Read from MH i2c: E2 0E 00 [12:59:38]MH_I2C_Read... [12:59:38]Read from MH i2c: E2 0E 00 14 18 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 49 [12:59:38]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [12:59:38]wFMCommunicate OK [12:59:38]SAM_PROTO_GetShiftState done [12:59:38]FM_GetShiftState done [12:59:38]req_shift_opened done [12:59:38]requested_item shift.open_date is exist - process it [12:59:38]req_shift_open_date [12:59:38]req_shift_open_date done [12:59:38]produce_requested_data done [12:59:38]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63985,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [12:59:38]process_action_free close_receipt [12:59:38]json_value_free [12:59:38]json_value_free done [12:59:38]process_json_proto returns [12:59:38]Send response to host [12:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63985,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [12:59:38]free response buf [12:59:38]execute_script done [12:59:38]execute_script returns [12:59:38]free content buf [12:59:38]Sock 7.Close socket [12:59:38]Sock 7.Thread stoped [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]accept exits with 9 [13:02:36]New connection [13:02:36]New thread 3067055460 created [13:02:36]Thread 3066912100 joined [13:02:36]Waiting for new connection... [13:02:36] Sock 9.Parse request [13:02:36]Sock 9.Check first char [13:02:36]Sock 9.First char is OK [13:02:36]request: POST /json_proto HTTP/1.0 [13:02:36]Method: POST [13:02:36]URL: /json_proto [13:02:36]Method is POST - this is cgi request [13:02:36]url: /json_proto [13:02:36]query_string will be loaded in cgi processing [13:02:36]execute_cgi json_proto POST (null) [13:02:36]execute_cgi path=json_proto method=POST [13:02:36]POST find Content-Length [13:02:36]Host: 172.17.60.69:8080 [13:02:36]Content-Length: 620 [13:02:36]Content-Type: application/json [13:02:36] [13:02:36]POST finish read [13:02:36]Found Content-Length = 620 [13:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73545", "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" ] } } [13:02:36]execute_script... [13:02: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)73545", "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" ] } } [13:02:36]POST & json_proto [13:02:36]process_json_proto [13:02:36]json parsed OK: [13:02:36]protocol is kg_v1.0 [13:02:36]action value=close_receipt [13:02:36]process_action close_receipt [13:02:36]cmd_close_receipt [13:02:36]MH_GetDate [13:02:36]Write to MH i2c: F0 00 00 15 18 1C [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: F0 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: F0 09 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: F0 09 00 15 18 00 6F 10 5F 66 6A 96 4A 66 19 [13:02:36]GetLastDocTimeStamp 1717505977 [13:02:36]current date 1717506159 [13:02:36]FM_GetShiftState [13:02:36]SAM_PROTO_GetShiftState [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 13 01 00 [13:02:36]Write to MH i2c: E2 08 00 16 18 80 13 01 00 00 00 00 00 AB [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 0E 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 0E 00 16 18 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 4B [13:02:36]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:02:36]wFMCommunicate OK [13:02:36]SAM_PROTO_GetShiftState done [13:02:36]FM_GetShiftState done [13:02:36]opened in 1717459574 [13:02:36]opened+sec_in_day 1717545974 [13:02:36]quantity*price = 13000 [13:02:36]sum+1 = 13001 [13:02:36]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 СНО: Общий режим Чек 71 04.06.2024 13:02 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63986 ФПД: 200018811986507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130240&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63986&fm=200018811986507&tin=02508201610067®Number=0000000000092737&sum=13000 0 [13:02:38]StoreToDocumentArchive [13:02:38]shift 374 fd 63986 [13:02:38]save to /storage/0374/doc_00063986 [13:02:38]save last doc name /storage/0374/doc_00063986 to /storage/kkm_last_doc_name [13:02:38]save OK [13:02:38]Clear old archive folders... [13:02:38]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:02:38]tlvbuf is B6EC1530 [13:02:38]SAM_PROTO_ClearQueue [13:02:38]wFMCommunicate request_size=4 [13:02:38]MH_SAM_APDU [13:02:38]CAPDU: 80 09 00 00 [13:02:38]Write to MH i2c: E2 08 00 23 18 80 09 00 00 00 00 00 00 AD [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:38]Read from MH i2c: E2 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 03 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [13:02:38]RAPDU: 90 00 [13:02:38]wFMCommunicate OK [13:02:38]SAM_PROTO_ClearQueue done [13:02:38]KKMCreateOFDPacket [13:02:38]OFDProtocolAddRootSTLVToBuf [13:02:38]FM_MakeSignedData [13:02:38]FM_MakeSignedData [13:02:38]SAM_PROTO_SignData [13:02:38]wFMCommunicate request_size=4 [13:02:38]MH_SAM_APDU [13:02:38]CAPDU: 80 0D 01 02 [13:02:38]Write to MH i2c: E2 08 00 24 18 80 0D 01 02 00 00 00 00 B5 [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:38]Read from MH i2c: E2 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 03 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 03 00 24 18 00 90 00 B0 [13:02:38]RAPDU: 90 00 [13:02:38]wFMCommunicate OK [13:02:38]wFMCommunicate request_size=255 [13:02:38]MH_SAM_APDU [13:02:38]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 47 00 00 00 F4 03 04 00 70 10 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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:02:38]Write to MH i2c: E2 02 01 25 18 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 47 00 00 00 F4 03 04 00 70 10 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 B5 [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:38]Read from MH i2c: E2 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 03 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [13:02:38]RAPDU: 90 00 [13:02:38]wFMCommunicate OK [13:02:38]wFMCommunicate request_size=32 [13:02:38]MH_SAM_APDU [13:02:38]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 F2 F9 00 00 35 04 06 00 B5 EA 82 3C A2 4B [13:02:38]Write to MH i2c: E2 23 00 26 18 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 F2 F9 00 00 35 04 06 00 B5 EA 82 3C A2 4B 00 00 49 [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:38]Read from MH i2c: E2 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 03 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 03 00 26 18 00 90 00 B2 [13:02:38]RAPDU: 90 00 [13:02:38]wFMCommunicate OK [13:02:38]wFMCommunicate request_size=4 [13:02:38]MH_SAM_APDU [13:02:38]CAPDU: 80 0D 03 02 [13:02:38]Write to MH i2c: E2 08 00 27 18 80 0D 03 02 00 00 00 00 BA [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:38]Read from MH i2c: E2 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 0B 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 0B 00 27 18 00 30 0A 55 CD 18 97 EC 9C 90 00 4E [13:02:38]RAPDU: 30 0A 55 CD 18 97 EC 9C 90 00 [13:02:38]wFMCommunicate OK [13:02:38]SAM_PROTO_SignData done [13:02:38]FM_MakeSignedData done [13:02:38]CreateOFDProtocolMessage [13:02:38]wFMCommunicate request_size=4 [13:02:38]MH_SAM_APDU [13:02:38]CAPDU: 80 11 00 00 [13:02:38]Write to MH i2c: E2 08 00 28 18 80 11 00 00 00 00 00 00 BA [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:38]Read from MH i2c: E2 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 17 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: E2 17 00 28 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0C [13:02:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:02:38]wFMCommunicate OK [13:02:38]CreateOFDProtocolMessage done [13:02:38]OFDSenderStorePacket 63986 [13:02:38]StoreOFDPacket docnum=63986 [13:02: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 25 01 00 00 3A 73 1D 01 EF 75 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 47 00 00 00 F4 03 04 00 70 10 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F2 F9 00 00 35 04 06 00 B5 EA 82 3C A2 4B 30 0A 55 CD 18 97 EC 9C [13:02:38]CheckFolder [13:02:38]dirname=/storage/ofd_packets [13:02:38]CheckFolder done [13:02:38]ProducePacketName [13:02:38]name=ofd_packets/00063986 [13:02:38]NVStorageSaveData ofd_packets/00063986 [13:02:38]File name is /storage/ofd_packets/00063986 [13:02:38]Write 323 bytes [13:02:38]NVStorageSaveData done [13:02:38]OFDSenderStorePacket done [13:02:38]KKMCreateOFDPacket done [13:02:38]NVStorageSaveData kkm_last_timestamp [13:02:38]File name is /storage/kkm_last_timestamp [13:02:38]Write 4 bytes [13:02:38]NVStorageSaveData done [13:02:38]OFD Sender: Processing packet 63986 [packets to send 14, broken 13] [13:02:38]ProducePacketName [13:02:38]name=ofd_packets/00063986 [13:02:38]OFD Sender: To server: pG, [13:02:38]CommunicateWithHost lk.salyk.kg:30040 [13:02:38]ConnectInit lk.salyk.kg [13:02:38]ExternCall_PrintAddStr [13:02:38]wPrintStart [13:02:38]Write to MH i2c: 01 00 00 29 18 41 [13:02:38]Write i2c OK [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: 01 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: 01 07 00 [13:02:38]MH_I2C_Read... [13:02:38]Read from MH i2c: 01 07 00 29 18 00 00 00 00 00 FF 0F 56 [13:02:38]RasterBufferAndPrint [13:02:38]line Счет N : (3)73545 [13:02:38]line ИНН: 02508201610067 [13:02:38]line Контрольно-Кассовый Чек [13:02:38]line ПРОДАЖА [13:02:38]line Товар: 4780014240406 [13:02:38]line Сигареты Sovereign Blue [13:02:38]line 1.000 * 130.00 [13:02:38]line = 130.00 [13:02:38]line НДС 12% НСП 1% [13:02:38]line > о реализуемом товаре [13:02:38]line ИТОГО: 130.00 [13:02:38]line НСП 1% : 1.15 [13:02:38]line НДС 12% : 13.80 [13:02:38]line Наличными: 130.00 [13:02:38]line Безнал.: 0.00 [13:02:38]line Место: АЗС № 117 "Партнер Нефть" [13:02:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:02:38]line СНО: Общий режим [13:02:38]line Чек 71 04.06.2024 13:02 [13:02:38]line Смена: 374 ФФД: 1.0 [13:02:38]line ЗНМ: 0300000031 [13:02:38]line РНМ: 0000000000092737 [13:02:38]line Версия ККМ: 001 [13:02:38]line ФМ: 0000000000875074 [13:02:38]line ФД: 63986 [13:02:38]line ФПД: 200018811986507 [13:02:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130240&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63986&fm=200018811986507&tin=02508201610067®Number=0000000000092737&sum=13000 [13:02:38]line 0 [13:02:38]Connected sock=11 [13:02: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 3A 73 1D 01 EF 75 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 47 00 00 00 F4 03 04 00 70 10 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F2 F9 00 00 35 04 06 00 B5 EA 82 3C A2 4B 30 0A 55 CD 18 97 EC 9C [13:02:38]written 0, free lines is 4095 [13:02: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 D4 47 00 15 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 F2 F9 00 00 F4 03 04 00 3E BC 5E 66 B6 04 01 00 00 32 82 F4 A1 F7 0D 06 9D [13:02:39]CommunicateWithHost err = 0 [13:02:39]CheckOFDResponse [13:02:39]1017 (14) - 77093643461234 [13:02:39]1041 (16) - 0000000000875074 [13:02:39]1040 (4) - 63986 [13:02:39]1012 (4) - 04.06.2024 07:03 [13:02:39]1206 (1) - 0 [13:02:39]OFD Sender: Remove packet 63986 [13:02:39]ProducePacketName [13:02:39]name=ofd_packets/00063986 [13:02:39]NVStorageDeleteData [13:02:39]Write to MH i2c: 01 00 00 51 18 69 [13:02:39]Write i2c OK [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: 01 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: 01 07 00 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: 01 07 00 51 18 00 00 00 00 00 FF 0C 7B [13:02:39]RasterBufferAndPrint [13:02:39]line [13:02:39]line [13:02:39]line [13:02:39]line [13:02:39]line [13:02:39]written 0, free lines is 3333 [13:02:39]MH_Cut [13:02:39]Write to MH i2c: D1 01 00 58 18 01 42 [13:02:39]Write i2c OK [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: D1 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: D1 01 00 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: D1 01 00 58 18 00 41 [13:02:39]Write to MH i2c: 01 00 00 59 18 71 [13:02:39]Write i2c OK [13:02:39]MH_I2C_Read... [13:02:39]OFD Sender: No OFD packet to send [13:02:40]*** Cut start [13:02:40]*** Partial cut [13:02:40]*** CUTSNS_PIN = 1 [13:02:40]*** CUTSNS_PIN = 0 [13:02:40]*** Brake cut motor [13:02:40]Read from MH i2c: 01 [13:02:40]MH_I2C_Read... [13:02:40]*** Stop cut motor [13:02:40]*** Cut end [13:02:40]Read from MH i2c: 01 07 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: 01 07 00 59 18 00 00 00 00 00 FF 0F 86 [13:02:40]process_action close_receipt done [13:02:40]requested_data is exist [13:02:40]produce_requested_data [13:02:40]requested_item fm.sn is exist - process it [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 11 00 00 [13:02:40]Write to MH i2c: E2 08 00 5A 18 80 11 00 00 00 00 00 00 EC [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:40]Read from MH i2c: E2 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 17 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 17 00 5A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3E [13:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:02:40]wFMCommunicate OK [13:02:40]requested_item fd.num is exist - process it [13:02:40]SAM_PROTO_GetFieldsCounters [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 13 00 00 [13:02:40]Write to MH i2c: E2 08 00 5B 18 80 13 00 00 00 00 00 00 EF [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:40]Read from MH i2c: E2 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 62 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 62 00 5B 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 F2 F9 00 00 0E 04 04 00 76 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 49 [13:02: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 F2 F9 00 00 0E 04 04 00 76 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 [13:02:40]wFMCommunicate OK [13:02:40]SAM_PROTO_GetFieldsCounters done [13:02:40]requested_item shift.num is exist - process it [13:02:40]requested_item shift.opened is exist - process it [13:02:40]req_shift_opened [13:02:40]FM_GetShiftState [13:02:40]SAM_PROTO_GetShiftState [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 13 01 00 [13:02:40]Write to MH i2c: E2 08 00 5C 18 80 13 01 00 00 00 00 00 F1 [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0E 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 0E 00 5C 18 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 91 [13:02:41]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:02:41]wFMCommunicate OK [13:02:41]SAM_PROTO_GetShiftState done [13:02:41]FM_GetShiftState done [13:02:41]req_shift_opened done [13:02:41]requested_item shift.open_date is exist - process it [13:02:41]req_shift_open_date [13:02:41]req_shift_open_date done [13:02:41]produce_requested_data done [13:02:41]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63986,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:02:41]process_action_free close_receipt [13:02:41]json_value_free [13:02:41]json_value_free done [13:02:41]process_json_proto returns [13:02:41]Send response to host [13:02:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63986,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:02:41]free response buf [13:02:41]execute_script done [13:02:41]execute_script returns [13:02:41]free content buf [13:02:41]Sock 9.Close socket [13:02:41]Sock 9.Thread stoped [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:49]accept exits with 7 [13:04:49]New connection [13:04:49]New thread 3066912100 created [13:04:49]Thread 3067055460 joined [13:04:49]Waiting for new connection... [13:04:49] Sock 7.Parse request [13:04:49]Sock 7.Check first char [13:04:49]Sock 7.First char is OK [13:04:49]request: POST /json_proto HTTP/1.0 [13:04:49]Method: POST [13:04:49]URL: /json_proto [13:04:49]Method is POST - this is cgi request [13:04:49]url: /json_proto [13:04:49]query_string will be loaded in cgi processing [13:04:49]execute_cgi json_proto POST (null) [13:04:49]execute_cgi path=json_proto method=POST [13:04:49]POST find Content-Length [13:04:49]Host: 172.17.60.69:8080 [13:04:49]Content-Length: 683 [13:04:49]Content-Type: application/json [13:04:49] [13:04:49]POST finish read [13:04:49]Found Content-Length = 683 [13:04:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63983, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73542", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver 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": "63983" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:49]execute_script... [13:04:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 63983, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73542", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver 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": "63983" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:49]POST & json_proto [13:04:49]process_json_proto [13:04:49]json parsed OK: [13:04:49]protocol is kg_v1.0 [13:04:49]action value=close_receipt [13:04:49]process_action close_receipt [13:04:49]cmd_close_receipt [13:04:49]MH_GetDate [13:04:49]Write to MH i2c: F0 00 00 5D 18 64 [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: F0 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: F0 09 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: F0 09 00 5D 18 00 F4 10 5F 66 6A 96 4A 66 E6 [13:04:49]GetLastDocTimeStamp 1717506160 [13:04:49]current date 1717506292 [13:04:49]FM_GetShiftState [13:04:49]SAM_PROTO_GetShiftState [13:04:49]wFMCommunicate request_size=4 [13:04:49]MH_SAM_APDU [13:04:49]CAPDU: 80 13 01 00 [13:04:49]Write to MH i2c: E2 08 00 5E 18 80 13 01 00 00 00 00 00 F3 [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:49]Read from MH i2c: E2 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 0E 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 0E 00 5E 18 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 93 [13:04:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:04:49]wFMCommunicate OK [13:04:49]SAM_PROTO_GetShiftState done [13:04:49]FM_GetShiftState done [13:04:49]opened in 1717459574 [13:04:49]opened+sec_in_day 1717545974 [13:04:49]quantity*price = 15100 [13:04:49]sum+1 = 15101 [13:04:49]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 СНО: Общий режим Чек 72 04.06.2024 13:04 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 63983 ФМ осн.: 0000000000875074 ФМ: 0000000000875074 ФД: 63987 ФПД: 225943861414669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130452&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63987&fm=225943861414669&tin=02508201610067®Number=0000000000092737&sum=15100 63983 [13:04:51]StoreToDocumentArchive [13:04:51]shift 374 fd 63987 [13:04:51]save to /storage/0374/doc_00063987 [13:04:51]save last doc name /storage/0374/doc_00063987 to /storage/kkm_last_doc_name [13:04:51]save OK [13:04:51]Clear old archive folders... [13:04:51]ProcessDocumentItem done err = 0, tmpTLVsize=304 [13:04:51]tlvbuf is 012CA8D0 [13:04:51]SAM_PROTO_ClearQueue [13:04:51]wFMCommunicate request_size=4 [13:04:51]MH_SAM_APDU [13:04:51]CAPDU: 80 09 00 00 [13:04:51]Write to MH i2c: E2 08 00 6D 18 80 09 00 00 00 00 00 00 F7 [13:04:51]Write i2c OK [13:04:51]MH_I2C_Read... [13:04:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:51]Read from MH i2c: E2 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 03 00 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 03 00 6D 18 00 90 00 F9 [13:04:51]RAPDU: 90 00 [13:04:51]wFMCommunicate OK [13:04:51]SAM_PROTO_ClearQueue done [13:04:51]KKMCreateOFDPacket [13:04:51]OFDProtocolAddRootSTLVToBuf [13:04:51]FM_MakeSignedData [13:04:51]FM_MakeSignedData [13:04:51]SAM_PROTO_SignData [13:04:51]wFMCommunicate request_size=4 [13:04:51]MH_SAM_APDU [13:04:51]CAPDU: 80 0D 01 02 [13:04:51]Write to MH i2c: E2 08 00 6E 18 80 0D 01 02 00 00 00 00 FF [13:04:51]Write i2c OK [13:04:51]MH_I2C_Read... [13:04:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:51]Read from MH i2c: E2 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 03 00 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [13:04:51]RAPDU: 90 00 [13:04:51]wFMCommunicate OK [13:04:51]wFMCommunicate request_size=255 [13:04:51]MH_SAM_APDU [13:04:51]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 02 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 48 00 00 00 F4 03 04 00 F4 10 5F 66 0E 04 04 00 76 01 00 00 B9 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 EF F9 00 00 [13:04:51]Write to MH i2c: E2 02 01 6F 18 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 02 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 48 00 00 00 F4 03 04 00 F4 10 5F 66 0E 04 04 00 76 01 00 00 B9 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 EF F9 00 00 00 00 2B [13:04:51]Write i2c OK [13:04:51]MH_I2C_Read... [13:04:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:51]Read from MH i2c: E2 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 03 00 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [13:04:51]RAPDU: 90 00 [13:04:51]wFMCommunicate OK [13:04:51]wFMCommunicate request_size=63 [13:04:51]MH_SAM_APDU [13:04:51]CAPDU: 80 0D 02 02 3A 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 F3 F9 00 00 35 04 06 00 CD 7E A7 99 4B 0D [13:04:51]Write to MH i2c: E2 42 00 70 18 80 0D 02 02 3A 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 F3 F9 00 00 35 04 06 00 CD 7E A7 99 4B 0D 00 00 3B [13:04:51]Write i2c OK [13:04:51]MH_I2C_Read... [13:04:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:51]Read from MH i2c: E2 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 03 00 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [13:04:51]RAPDU: 90 00 [13:04:51]wFMCommunicate OK [13:04:51]wFMCommunicate request_size=4 [13:04:51]MH_SAM_APDU [13:04:51]CAPDU: 80 0D 03 02 [13:04:51]Write to MH i2c: E2 08 00 71 18 80 0D 03 02 00 00 00 00 04 [13:04:51]Write i2c OK [13:04:51]MH_I2C_Read... [13:04:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:51]Read from MH i2c: E2 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 0B 00 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 0B 00 71 18 00 22 3E 83 03 37 D2 D3 48 90 00 0F [13:04:51]RAPDU: 22 3E 83 03 37 D2 D3 48 90 00 [13:04:51]wFMCommunicate OK [13:04:51]SAM_PROTO_SignData done [13:04:51]FM_MakeSignedData done [13:04:51]CreateOFDProtocolMessage [13:04:51]wFMCommunicate request_size=4 [13:04:51]MH_SAM_APDU [13:04:51]CAPDU: 80 11 00 00 [13:04:51]Write to MH i2c: E2 08 00 72 18 80 11 00 00 00 00 00 00 04 [13:04:51]Write i2c OK [13:04:51]MH_I2C_Read... [13:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:51]Read from MH i2c: E2 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 17 00 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 17 00 72 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 56 [13:04:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:04:51]wFMCommunicate OK [13:04:51]CreateOFDProtocolMessage done [13:04:51]OFDSenderStorePacket 63987 [13:04:51]StoreOFDPacket docnum=63987 [13:04: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 44 01 00 00 E0 E6 3C 01 D5 0E 5A 03 01 00 03 00 30 01 1E 04 01 00 02 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 48 00 00 00 F4 03 04 00 F4 10 5F 66 0E 04 04 00 76 01 00 00 B9 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 EF F9 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 F3 F9 00 00 35 04 06 00 CD 7E A7 99 4B 0D 22 3E 83 03 37 D2 D3 48 [13:04:51]CheckFolder [13:04:51]dirname=/storage/ofd_packets [13:04:51]CheckFolder done [13:04:51]ProducePacketName [13:04:51]name=ofd_packets/00063987 [13:04:51]NVStorageSaveData ofd_packets/00063987 [13:04:51]File name is /storage/ofd_packets/00063987 [13:04:51]Write 354 bytes [13:04:51]NVStorageSaveData done [13:04:51]OFDSenderStorePacket done [13:04:51]KKMCreateOFDPacket done [13:04:51]NVStorageSaveData kkm_last_timestamp [13:04:51]File name is /storage/kkm_last_timestamp [13:04:51]OFD Sender: Processing packet 63987 [packets to send 14, broken 13] [13:04:51]ProducePacketName [13:04:51]name=ofd_packets/00063987 [13:04:51]OFD Sender: To server: pG, [13:04:51]CommunicateWithHost lk.salyk.kg:30040 [13:04:51]ConnectInit lk.salyk.kg [13:04:51]Write 4 bytes [13:04:51]NVStorageSaveData done [13:04:51]ExternCall_PrintAddStr [13:04:51]wPrintStart [13:04:51]Write to MH i2c: 01 00 00 73 18 8B [13:04:51]Write i2c OK [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: 01 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: 01 07 00 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: 01 07 00 73 18 00 00 00 00 00 FF 0F A0 [13:04:51]RasterBufferAndPrint [13:04:51]line Счет N : (3)73542 [13:04:51]line ИНН: 02508201610067 [13:04:51]line Контрольно-Кассовый Чек [13:04:51]line ВОЗВРАТ ПРОДАЖИ [13:04:51]line Товар: 48742245 [13:04:51]line Сигареты Parliament Silver Blue [13:04:51]line 1.000 * 151.00 [13:04:51]line = 151.00 [13:04:51]line НДС 12% НСП 1% [13:04:51]line > о реализуемом товаре [13:04:51]line ИТОГО: 151.00 [13:04:51]line НСП 1% : 1.34 [13:04:51]line НДС 12% : 16.03 [13:04:51]line Наличными: 151.00 [13:04:51]line Безнал.: 0.00 [13:04:51]line Место: АЗС № 117 "Партнер Нефть" [13:04:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:04:51]line СНО: Общий режим [13:04:51]line Чек 72 04.06.2024 13:04 [13:04:51]line Смена: 374 ФФД: 1.0 [13:04:51]line ЗНМ: 0300000031 [13:04:51]line РНМ: 0000000000092737 [13:04:51]line Версия ККМ: 001 [13:04:51]line ФД осн.: 63983 [13:04:51]line ФМ осн.: 0000000000875074 [13:04:51]line ФМ: 0000000000875074 [13:04:51]line ФД: 63987 [13:04:51]line ФПД: 225943861414669 [13:04:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130452&type=2&operation_type=1&fn_number=0000000000875074&fd_number=63987&fm=225943861414669&tin=02508201610067®Number=0000000000092737&sum=15100 [13:04:51]line 63983 [13:04:51]Connected sock=11 [13:04:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 44 01 00 00 E0 E6 3C 01 D5 0E 5A 03 01 00 03 00 30 01 1E 04 01 00 02 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 written 0, free lines is 4095 [13:04:51]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 48 00 00 00 F4 03 04 00 F4 10 5F 66 0E 04 04 00 76 01 00 00 B9 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 EF F9 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 F3 F9 00 00 35 04 06 00 CD 7E A7 99 4B 0D 22 3E 83 03 37 D2 D3 48 [13:04:52]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 12 47 00 E1 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F3 F9 00 00 F4 03 04 00 C3 BC 5E 66 B6 04 01 00 00 47 EE 2D D3 BE CE 3D DF [13:04:52]CommunicateWithHost err = 0 [13:04:52]CheckOFDResponse [13:04:52]1017 (14) - 77093643461234 [13:04:52]1041 (16) - 0000000000875074 [13:04:52]1040 (4) - 63987 [13:04:52]1012 (4) - 04.06.2024 07:05 [13:04:52]1206 (1) - 0 [13:04:52]OFD Sender: Remove packet 63987 [13:04:52]ProducePacketName [13:04:52]name=ofd_packets/00063987 [13:04:52]NVStorageDeleteData [13:04:52]Write to MH i2c: 01 00 00 9E 18 B6 [13:04:52]Write i2c OK [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: 01 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: 01 07 00 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 BA 0C 83 [13:04:52]RasterBufferAndPrint [13:04:52]line [13:04:52]line [13:04:52]line [13:04:52]line [13:04:52]line [13:04:52]written 0, free lines is 3268 [13:04:52]MH_Cut [13:04:52]Write to MH i2c: D1 01 00 A5 18 01 8F [13:04:52]Write i2c OK [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: D1 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: D1 01 00 [13:04:52]MH_I2C_Read... [13:04:52]Read from MH i2c: D1 01 00 A5 18 00 8E [13:04:52]Write to MH i2c: 01 00 00 A6 18 BE [13:04:52]Write i2c OK [13:04:52]MH_I2C_Read... [13:04:52]OFD Sender: No OFD packet to send [13:04:53]*** Cut start [13:04:53]*** Partial cut [13:04:53]*** CUTSNS_PIN = 1 [13:04:53]*** CUTSNS_PIN = 0 [13:04:53]*** Brake cut motor [13:04:53]Read from MH i2c: 01 [13:04:53]MH_I2C_Read... [13:04:53]*** Stop cut motor [13:04:53]*** Cut end [13:04:53]Read from MH i2c: 01 07 00 [13:04:53]MH_I2C_Read... [13:04:53]Read from MH i2c: 01 07 00 A6 18 00 00 00 00 00 FF 0F D3 [13:04:53]process_action close_receipt done [13:04:53]requested_data is exist [13:04:53]produce_requested_data [13:04:53]requested_item fm.sn is exist - process it [13:04:53]wFMCommunicate request_size=4 [13:04:53]MH_SAM_APDU [13:04:53]CAPDU: 80 11 00 00 [13:04:53]Write to MH i2c: E2 08 00 A7 18 80 11 00 00 00 00 00 00 39 [13:04:53]Write i2c OK [13:04:53]MH_I2C_Read... [13:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:53]Read from MH i2c: E2 [13:04:53]MH_I2C_Read... [13:04:53]Read from MH i2c: E2 17 00 [13:04:53]MH_I2C_Read... [13:04:53]Read from MH i2c: E2 17 00 A7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8B [13:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:04:53]wFMCommunicate OK [13:04:53]requested_item fd.num is exist - process it [13:04:53]SAM_PROTO_GetFieldsCounters [13:04:53]wFMCommunicate request_size=4 [13:04:53]MH_SAM_APDU [13:04:53]CAPDU: 80 13 00 00 [13:04:53]Write to MH i2c: E2 08 00 A8 18 80 13 00 00 00 00 00 00 3C [13:04:53]Write i2c OK [13:04:53]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 62 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 62 00 A8 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 F3 F9 00 00 0E 04 04 00 76 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 9A [13:04: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 F3 F9 00 00 0E 04 04 00 76 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 [13:04:54]wFMCommunicate OK [13:04:54]SAM_PROTO_GetFieldsCounters done [13:04:54]requested_item shift.num is exist - process it [13:04:54]requested_item shift.opened is exist - process it [13:04:54]req_shift_opened [13:04:54]FM_GetShiftState [13:04:54]SAM_PROTO_GetShiftState [13:04:54]wFMCommunicate request_size=4 [13:04:54]MH_SAM_APDU [13:04:54]CAPDU: 80 13 01 00 [13:04:54]Write to MH i2c: E2 08 00 A9 18 80 13 01 00 00 00 00 00 3E [13:04:54]Write i2c OK [13:04:54]MH_I2C_Read... [13:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:54]Read from MH i2c: E2 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 0E 00 [13:04:54]MH_I2C_Read... [13:04:54]Read from MH i2c: E2 0E 00 A9 18 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 DE [13:04:54]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:04:54]wFMCommunicate OK [13:04:54]SAM_PROTO_GetShiftState done [13:04:54]FM_GetShiftState done [13:04:54]req_shift_opened done [13:04:54]requested_item shift.open_date is exist - process it [13:04:54]req_shift_open_date [13:04:54]req_shift_open_date done [13:04:54]produce_requested_data done [13:04:54]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63987,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:04:54]process_action_free close_receipt [13:04:54]json_value_free [13:04:54]json_value_free done [13:04:54]process_json_proto returns [13:04:54]Send response to host [13:04:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63987,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:04:54]free response buf [13:04:54]execute_script done [13:04:54]execute_script returns [13:04:54]free content buf [13:04:54]Sock 7.Close socket [13:04:54]Sock 7.Thread stoped [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:29]accept exits with 9 [13:06:29]New connection [13:06:29]New thread 3067055460 created [13:06:29]Thread 3066912100 joined [13:06:29]Waiting for new connection... [13:06:29] Sock 9.Parse request [13:06:29]Sock 9.Check first char [13:06:29]Sock 9.First char is OK [13:06:29]request: POST /json_proto HTTP/1.0 [13:06:29]Method: POST [13:06:29]URL: /json_proto [13:06:29]Method is POST - this is cgi request [13:06:29]url: /json_proto [13:06:29]query_string will be loaded in cgi processing [13:06:29]execute_cgi json_proto POST (null) [13:06:29]execute_cgi path=json_proto method=POST [13:06:29]POST find Content-Length [13:06:29]Host: 172.17.60.69:8080 [13:06:29]Content-Length: 824 [13:06:29]Content-Type: application/json [13:06:29] [13:06:29]POST finish read [13:06:29]Found Content-Length = 824 [13:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73546", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:29]execute_script... [13:06: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)73546", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:29]POST & json_proto [13:06:29]process_json_proto [13:06:29]json parsed OK: [13:06:29]protocol is kg_v1.0 [13:06:29]action value=close_receipt [13:06:29]process_action close_receipt [13:06:29]cmd_close_receipt [13:06:29]MH_GetDate [13:06:29]Write to MH i2c: F0 00 00 AA 18 B1 [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: F0 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: F0 09 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: F0 09 00 AA 18 00 58 11 5F 66 6A 96 4A 66 98 [13:06:29]GetLastDocTimeStamp 1717506292 [13:06:29]current date 1717506392 [13:06:29]FM_GetShiftState [13:06:29]SAM_PROTO_GetShiftState [13:06:29]wFMCommunicate request_size=4 [13:06:29]MH_SAM_APDU [13:06:29]CAPDU: 80 13 01 00 [13:06:29]Write to MH i2c: E2 08 00 AB 18 80 13 01 00 00 00 00 00 40 [13:06:29]Write i2c OK [13:06:29]MH_I2C_Read... [13:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:29]Read from MH i2c: E2 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 0E 00 [13:06:29]MH_I2C_Read... [13:06:29]Read from MH i2c: E2 0E 00 AB 18 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 E0 [13:06:29]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:06:29]wFMCommunicate OK [13:06:29]SAM_PROTO_GetShiftState done [13:06:29]FM_GetShiftState done [13:06:29]opened in 1717459574 [13:06:29]opened+sec_in_day 1717545974 [13:06:29]quantity*price = 15100 [13:06:29]sum+1 = 15101 [13:06:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 73 04.06.2024 13:06 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63988 ФПД: 274916346501529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130632&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63988&fm=274916346501529&tin=02508201610067®Number=0000000000092737&sum=15100 0 [13:06:30]StoreToDocumentArchive [13:06:30]shift 374 fd 63988 [13:06:30]save to /storage/0374/doc_00063988 [13:06:30]save last doc name /storage/0374/doc_00063988 to /storage/kkm_last_doc_name [13:06:30]save OK [13:06:30]Clear old archive folders... [13:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:06:30]tlvbuf is 01299790 [13:06:30]SAM_PROTO_ClearQueue [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 09 00 00 [13:06:30]Write to MH i2c: E2 08 00 B8 18 80 09 00 00 00 00 00 00 42 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [13:06:30]RAPDU: 90 00 [13:06:30]wFMCommunicate OK [13:06:30]SAM_PROTO_ClearQueue done [13:06:30]KKMCreateOFDPacket [13:06:30]OFDProtocolAddRootSTLVToBuf [13:06:30]FM_MakeSignedData [13:06:30]FM_MakeSignedData [13:06:30]SAM_PROTO_SignData [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 0D 01 02 [13:06:30]Write to MH i2c: E2 08 00 B9 18 80 0D 01 02 00 00 00 00 4A [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [13:06:31]RAPDU: 90 00 [13:06:31]wFMCommunicate OK [13:06:31]wFMCommunicate request_size=255 [13:06:31]MH_SAM_APDU [13:06:31]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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 58 11 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [13:06:31]Write to MH i2c: E2 02 01 BA 18 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 58 11 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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 8D [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [13:06:31]RAPDU: 90 00 [13:06:31]wFMCommunicate OK [13:06:31]wFMCommunicate request_size=35 [13:06:31]MH_SAM_APDU [13:06:31]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F4 F9 00 00 35 04 06 00 FA 08 F3 2D 19 99 [13:06:31]Write to MH i2c: E2 26 00 BB 18 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F4 F9 00 00 35 04 06 00 FA 08 F3 2D 19 99 00 00 00 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [13:06:31]RAPDU: 90 00 [13:06:31]wFMCommunicate OK [13:06:31]wFMCommunicate request_size=4 [13:06:31]MH_SAM_APDU [13:06:31]CAPDU: 80 0D 03 02 [13:06:31]Write to MH i2c: E2 08 00 BC 18 80 0D 03 02 00 00 00 00 4F [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 0B 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 0B 00 BC 18 00 9F 03 CE 42 02 B3 FA 15 90 00 C6 [13:06:31]RAPDU: 9F 03 CE 42 02 B3 FA 15 90 00 [13:06:31]wFMCommunicate OK [13:06:31]SAM_PROTO_SignData done [13:06:31]FM_MakeSignedData done [13:06:31]CreateOFDProtocolMessage [13:06:31]wFMCommunicate request_size=4 [13:06:31]MH_SAM_APDU [13:06:31]CAPDU: 80 11 00 00 [13:06:31]Write to MH i2c: E2 08 00 BD 18 80 11 00 00 00 00 00 00 4F [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 17 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 17 00 BD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A1 [13:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:06:31]wFMCommunicate OK [13:06:31]CreateOFDProtocolMessage done [13:06:31]OFDSenderStorePacket 63988 [13:06:31]StoreOFDPacket docnum=63988 [13:06: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 28 01 00 00 5A DE 20 01 AB 04 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 58 11 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F4 F9 00 00 35 04 06 00 FA 08 F3 2D 19 99 9F 03 CE 42 02 B3 FA 15 [13:06:31]CheckFolder [13:06:31]dirname=/storage/ofd_packets [13:06:31]CheckFolder done [13:06:31]ProducePacketName [13:06:31]name=ofd_packets/00063988 [13:06:31]NVStorageSaveData ofd_packets/00063988 [13:06:31]File name is /storage/ofd_packets/00063988 [13:06:31]Write 326 bytes [13:06:31]NVStorageSaveData done [13:06:31]OFDSenderStorePacket done [13:06:31]KKMCreateOFDPacket done [13:06:31]NVStorageSaveData kkm_last_timestamp [13:06:31]File name is /storage/kkm_last_timestamp [13:06:31]Write 4 bytes [13:06:31]NVStorageSaveData done [13:06:31]OFD Sender: Processing packet 63988 [packets to send 14, broken 13] [13:06:31]ProducePacketName [13:06:31]name=ofd_packets/00063988 [13:06:31]OFD Sender: To server: pG, [13:06:31]CommunicateWithHost lk.salyk.kg:30040 [13:06:31]ConnectInit lk.salyk.kg [13:06:31]ExternCall_PrintAddStr [13:06:31]wPrintStart [13:06:31]Write to MH i2c: 01 00 00 BE 18 D6 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 BE 18 00 00 00 00 00 FF 0F EB [13:06:31]RasterBufferAndPrint [13:06:31]line Счет N : (3)73546 [13:06:31]line ИНН: 02508201610067 [13:06:31]line Контрольно-Кассовый Чек [13:06:31]line ПРОДАЖА [13:06:31]line Товар: 48742245 [13:06:31]line Сигареты Parliament Silver Blue [13:06:31]line 1.000 * 151.00 [13:06:31]line = 151.00 [13:06:31]line НДС 12% НСП 1% [13:06:31]line > о реализуемом товаре [13:06:31]line ИТОГО: 151.00 [13:06:31]line НСП 1% : 1.34 [13:06:31]line НДС 12% : 16.03 [13:06:31]line Наличными: 0.00 [13:06:31]line Безнал.: 151.00 [13:06:31]line Место: АЗС № 117 "Партнер Нефть" [13:06:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:06:31]line СНО: Общий режим [13:06:31]line Чек 73 04.06.2024 13:06 [13:06:31]line Смена: 374 ФФД: 1.0 [13:06:31]line ЗНМ: 0300000031 [13:06:31]line РНМ: 0000000000092737 [13:06:31]line Версия ККМ: 001 [13:06:31]line Платежная система: АКБ Кыргызстан [13:06:31]line ФМ: 0000000000875074 [13:06:31]line ФД: 63988 [13:06:31]line ФПД: 274916346501529 [13:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130632&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63988&fm=274916346501529&tin=02508201610067®Number=0000000000092737&sum=15100 [13:06:31]line 0 [13:06:31]Connected sock=11 [13:06: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 28 01 00 00 5A DE 20 01 AB 04 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 58 11 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F4 F9 00 00 35 04 06 00 FA 08 F3 2D 19 99 9F 03 CE 42 02 B3 FA 15 [13:06:31]written 0, free lines is 4095 [13:06: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 A5 6C 47 00 3B 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 F4 F9 00 00 F4 03 04 00 26 BD 5E 66 B6 04 01 00 00 A3 83 0F AF 3D B7 F4 9C [13:06:32]CommunicateWithHost err = 0 [13:06:32]CheckOFDResponse [13:06:32]1017 (14) - 77093643461234 [13:06:32]1041 (16) - 0000000000875074 [13:06:32]1040 (4) - 63988 [13:06:32]1012 (4) - 04.06.2024 07:07 [13:06:32]1206 (1) - 0 [13:06:32]OFD Sender: Remove packet 63988 [13:06:32]ProducePacketName [13:06:32]name=ofd_packets/00063988 [13:06:32]NVStorageDeleteData [13:06:32]Write to MH i2c: 01 00 00 E9 18 01 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 07 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 07 00 E9 18 00 00 00 00 00 AC 0C C0 [13:06:32]RasterBufferAndPrint [13:06:32]line [13:06:32]line [13:06:32]line [13:06:32]line [13:06:32]line [13:06:32]written 0, free lines is 3253 [13:06:32]MH_Cut [13:06:32]Write to MH i2c: D1 01 00 F0 18 01 DA [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: D1 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: D1 01 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: D1 01 00 F0 18 00 D9 [13:06:32]Write to MH i2c: 01 00 00 F1 18 09 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]OFD Sender: No OFD packet to send [13:06:33]*** Cut start [13:06:33]*** Partial cut [13:06:33]*** CUTSNS_PIN = 1 [13:06:33]*** CUTSNS_PIN = 0 [13:06:33]*** Brake cut motor [13:06:33]Read from MH i2c: 01 [13:06:33]MH_I2C_Read... [13:06:33]*** Stop cut motor [13:06:33]*** Cut end [13:06:33]Read from MH i2c: 01 07 00 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: 01 07 00 F1 18 00 00 00 00 00 FF 0F 1E [13:06:33]process_action close_receipt done [13:06:33]requested_data is exist [13:06:33]produce_requested_data [13:06:33]requested_item fm.sn is exist - process it [13:06:33]wFMCommunicate request_size=4 [13:06:33]MH_SAM_APDU [13:06:33]CAPDU: 80 11 00 00 [13:06:33]Write to MH i2c: E2 08 00 F2 18 80 11 00 00 00 00 00 00 84 [13:06:33]Write i2c OK [13:06:33]MH_I2C_Read... [13:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:33]Read from MH i2c: E2 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 17 00 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 17 00 F2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [13: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 [13:06:33]wFMCommunicate OK [13:06:33]requested_item fd.num is exist - process it [13:06:33]SAM_PROTO_GetFieldsCounters [13:06:33]wFMCommunicate request_size=4 [13:06:33]MH_SAM_APDU [13:06:33]CAPDU: 80 13 00 00 [13:06:33]Write to MH i2c: E2 08 00 F3 18 80 13 00 00 00 00 00 00 87 [13:06:33]Write i2c OK [13:06:33]MH_I2C_Read... [13:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:33]Read from MH i2c: E2 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 62 00 [13:06:33]MH_I2C_Read... [13:06:33]Read from MH i2c: E2 62 00 F3 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 F4 F9 00 00 0E 04 04 00 76 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 E9 [13:06: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 F4 F9 00 00 0E 04 04 00 76 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 [13:06:33]wFMCommunicate OK [13:06:33]SAM_PROTO_GetFieldsCounters done [13:06:33]requested_item shift.num is exist - process it [13:06:33]requested_item shift.opened is exist - process it [13:06:33]req_shift_opened [13:06:33]FM_GetShiftState [13:06:33]SAM_PROTO_GetShiftState [13:06:33]wFMCommunicate request_size=4 [13:06:33]MH_SAM_APDU [13:06:33]CAPDU: 80 13 01 00 [13:06:33]Write to MH i2c: E2 08 00 F4 18 80 13 01 00 00 00 00 00 89 [13:06:33]Write i2c OK [13:06:33]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 0E 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 0E 00 F4 18 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 29 [13:06:34]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:06:34]wFMCommunicate OK [13:06:34]SAM_PROTO_GetShiftState done [13:06:34]FM_GetShiftState done [13:06:34]req_shift_opened done [13:06:34]requested_item shift.open_date is exist - process it [13:06:34]req_shift_open_date [13:06:34]req_shift_open_date done [13:06:34]produce_requested_data done [13:06:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63988,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:06:34]process_action_free close_receipt [13:06:34]json_value_free [13:06:34]json_value_free done [13:06:34]process_json_proto returns [13:06:34]Send response to host [13:06:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63988,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:06:34]free response buf [13:06:34]execute_script done [13:06:34]execute_script returns [13:06:34]free content buf [13:06:34]Sock 9.Close socket [13:06:34]Sock 9.Thread stoped [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:08]accept exits with 7 [13:09:08]New connection [13:09:08]New thread 3066912100 created [13:09:08]Thread 3067055460 joined [13:09:08]Waiting for new connection... [13:09:08] Sock 7.Parse request [13:09:08]Sock 7.Check first char [13:09:08]Sock 7.First char is OK [13:09:08]request: POST /json_proto HTTP/1.0 [13:09:08]Method: POST [13:09:08]URL: /json_proto [13:09:08]Method is POST - this is cgi request [13:09:08]url: /json_proto [13:09:08]query_string will be loaded in cgi processing [13:09:08]execute_cgi json_proto POST (null) [13:09:08]execute_cgi path=json_proto method=POST [13:09:08]POST find Content-Length [13:09:08]Host: 172.17.60.69:8080 [13:09:08]Content-Length: 896 [13:09:08]Content-Type: application/json [13:09:08] [13:09:08]POST finish read [13:09:08]Found Content-Length = 896 [13:09:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73547", "tax_sys" : 0, "items" : [ { "code": "4870002329913", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:08]execute_script... [13:09:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73547", "tax_sys" : 0, "items" : [ { "code": "4870002329913", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:08]POST & json_proto [13:09:08]process_json_proto [13:09:08]json parsed OK: [13:09:08]protocol is kg_v1.0 [13:09:08]action value=close_receipt [13:09:08]process_action close_receipt [13:09:08]cmd_close_receipt [13:09:08]MH_GetDate [13:09:08]Write to MH i2c: F0 00 00 F5 18 FC [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: F0 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: F0 09 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: F0 09 00 F5 18 00 F7 11 5F 66 6A 96 4A 66 82 [13:09:08]GetLastDocTimeStamp 1717506392 [13:09:08]current date 1717506551 [13:09:08]FM_GetShiftState [13:09:08]SAM_PROTO_GetShiftState [13:09:08]wFMCommunicate request_size=4 [13:09:08]MH_SAM_APDU [13:09:08]CAPDU: 80 13 01 00 [13:09:08]Write to MH i2c: E2 08 00 F6 18 80 13 01 00 00 00 00 00 8B [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:08]Read from MH i2c: E2 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 0E 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 0E 00 F6 18 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 2B [13:09:08]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:09:08]wFMCommunicate OK [13:09:08]SAM_PROTO_GetShiftState done [13:09:08]FM_GetShiftState done [13:09:08]opened in 1717459574 [13:09:08]opened+sec_in_day 1717545974 [13:09:08]quantity*price = 15000 [13:09:08]sum+1 = 15001 [13:09:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.27 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 74 04.06.2024 13:09 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63989 ФПД: 100961610092314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130911&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63989&fm=100961610092314&tin=02508201610067®Number=0000000000092737&sum=28500 0 [13:09:09]StoreToDocumentArchive [13:09:09]shift 374 fd 63989 [13:09:09]save to /storage/0374/doc_00063989 [13:09:09]save last doc name /storage/0374/doc_00063989 to /storage/kkm_last_doc_name [13:09:09]save OK [13:09:09]Clear old archive folders... [13:09:09]ProcessDocumentItem done err = 0, tmpTLVsize=392 [13:09:09]tlvbuf is 012CA8D0 [13:09:09]SAM_PROTO_ClearQueue [13:09:09]wFMCommunicate request_size=4 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 09 00 00 [13:09:09]Write to MH i2c: E2 08 00 03 19 80 09 00 00 00 00 00 00 8E [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 03 19 00 90 00 90 [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]SAM_PROTO_ClearQueue done [13:09:09]KKMCreateOFDPacket [13:09:09]OFDProtocolAddRootSTLVToBuf [13:09:09]FM_MakeSignedData [13:09:09]FM_MakeSignedData [13:09:09]SAM_PROTO_SignData [13:09:09]wFMCommunicate request_size=4 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 01 02 [13:09:09]Write to MH i2c: E2 08 00 04 19 80 0D 01 02 00 00 00 00 96 [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 04 19 00 90 00 91 [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]wFMCommunicate request_size=255 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 31 33 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [13:09:09]Write to MH i2c: E2 02 01 05 19 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 31 33 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 60 [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 05 19 00 90 00 92 [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]wFMCommunicate request_size=151 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 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 F7 11 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F5 F9 00 00 35 04 06 00 5B D2 F4 E7 CF 1A [13:09:09]Write to MH i2c: E2 9A 00 06 19 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 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 F7 11 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F5 F9 00 00 35 04 06 00 5B D2 F4 E7 CF 1A 00 00 FB [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 06 19 00 90 00 93 [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]wFMCommunicate request_size=4 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 03 02 [13:09:09]Write to MH i2c: E2 08 00 07 19 80 0D 03 02 00 00 00 00 9B [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 0B 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 0B 00 07 19 00 29 D1 01 39 63 B2 57 F2 90 00 2E [13:09:09]RAPDU: 29 D1 01 39 63 B2 57 F2 90 00 [13:09:09]wFMCommunicate OK [13:09:09]SAM_PROTO_SignData done [13:09:09]FM_MakeSignedData done [13:09:09]CreateOFDProtocolMessage [13:09:09]wFMCommunicate request_size=4 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 11 00 00 [13:09:09]Write to MH i2c: E2 08 00 08 19 80 11 00 00 00 00 00 00 9B [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 17 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 17 00 08 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 ED [13:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:09:09]wFMCommunicate OK [13:09:09]CreateOFDProtocolMessage done [13:09:09]OFDSenderStorePacket 63989 [13:09:09]StoreOFDPacket docnum=63989 [13:09: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 9C 01 00 00 75 F7 94 01 06 27 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 31 33 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 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 F7 11 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F5 F9 00 00 35 04 06 00 5B D2 F4 E7 CF 1A 29 D1 01 39 63 B2 57 F2 [13:09:09]CheckFolder [13:09:09]dirname=/storage/ofd_packets [13:09:09]CheckFolder done [13:09:09]ProducePacketName [13:09:09]name=ofd_packets/00063989 [13:09:09]NVStorageSaveData ofd_packets/00063989 [13:09:09]File name is /storage/ofd_packets/00063989 [13:09:09]Write 442 bytes [13:09:09]NVStorageSaveData done [13:09:09]OFDSenderStorePacket done [13:09:09]KKMCreateOFDPacket done [13:09:09]NVStorageSaveData kkm_last_timestamp [13:09:09]File name is /storage/kkm_last_timestamp [13:09:09]Write 4 bytes [13:09:09]NVStorageSaveData done [13:09:09]ExternCall_PrintAddStr [13:09:09]wPrintStart [13:09:09]Write to MH i2c: 01 00 00 09 19 22 [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 07 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 07 00 09 19 00 00 00 00 00 FF 0F 37 [13:09:09]RasterBufferAndPrint [13:09:09]line Счет N : (3)73547 [13:09:09]line ИНН: 02508201610067 [13:09:10]line Контрольно-Кассовый Чек [13:09:10]line ПРОДАЖА [13:09:10]line Товар: 4870002329913 [13:09:10]line Напиток Lipton IceTea 0,5л зел чай [13:09:10]line 2.000 * 75.00 [13:09:10]line = 150.00 [13:09:10]line НДС 12% НСП 1% [13:09:10]line > о реализуемом товаре [13:09:10]line Товар: 48745000 [13:09:10]line Сигареты Winston Purple Mix [13:09:10]line 1.000 * 135.00 [13:09:10]line = 135.00 [13:09:10]line НДС 12% НСП 1% [13:09:10]line > о реализуемом товаре [13:09:10]line ИТОГО: 285.00 [13:09:10]line НСП 1% : 2.52 [13:09:10]line НДС 12% : 30.27 [13:09:10]line Наличными: 285.00 [13:09:10]line Безнал.: 0.00 [13:09:10]line Место: АЗС № 117 "Партнер Нефть" [13:09:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:09:10]line СНО: Общий режим [13:09:10]line Чек 74 04.06.2024 13:09 [13:09:10]line Смена: 374 ФФД: 1.0 [13:09:10]line ЗНМ: 0300000031 [13:09:10]line РНМ: 0000000000092737 [13:09:10]line Версия ККМ: 001 [13:09:10]line ФМ: 0000000000875074 [13:09:10]line ФД: 63989 [13:09:10]line ФПД: 100961610092314 [13:09:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T130911&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63989&fm=100961610092314&tin=02508201610067®Number=0000000000092737&sum=28500 [13:09:10]line 0 [13:09:10]OFD Sender: Processing packet 63989 [packets to send 14, broken 13] [13:09:10]ProducePacketName [13:09:10]name=ofd_packets/00063989 [13:09:10]OFD Sender: To server: pG, [13:09:10]CommunicateWithHost lk.salyk.kg:30040 [13:09:10]ConnectInit lk.salyk.kg [13:09:10]written 0, free lines is 4095 [13:09:10]Connected sock=10 [13:09:10]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 9C 01 00 00 75 F7 94 01 06 27 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 31 33 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 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 F7 11 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F5 F9 00 00 35 04 06 00 5B D2 F4 E7 CF 1A 29 D1 01 39 63 B2 57 F2 [13:09:10]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 E3 85 47 00 FD 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F5 F9 00 00 F4 03 04 00 C5 BD 5E 66 B6 04 01 00 00 D4 04 79 BD 39 EA 44 23 [13:09:10]CommunicateWithHost err = 0 [13:09:10]CheckOFDResponse [13:09:10]1017 (14) - 77093643461234 [13:09:10]1041 (16) - 0000000000875074 [13:09:10]1040 (4) - 63989 [13:09:10]1012 (4) - 04.06.2024 07:09 [13:09:10]1206 (1) - 0 [13:09:10]OFD Sender: Remove packet 63989 [13:09:10]ProducePacketName [13:09:10]name=ofd_packets/00063989 [13:09:10]NVStorageDeleteData [13:09:10]Write to MH i2c: 01 00 00 38 19 51 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 07 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 07 00 38 19 00 00 00 00 00 7C 0C E0 [13:09:10]RasterBufferAndPrint [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]written 0, free lines is 3206 [13:09:10]MH_Cut [13:09:10]Write to MH i2c: D1 01 00 3F 19 01 2A [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 01 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 01 00 3F 19 00 29 [13:09:10]Write to MH i2c: 01 00 00 40 19 59 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:11]OFD Sender: No OFD packet to send [13:09:11]*** Cut start [13:09:11]*** Partial cut [13:09:11]*** CUTSNS_PIN = 1 [13:09:11]*** CUTSNS_PIN = 0 [13:09:11]*** Brake cut motor [13:09:12]Read from MH i2c: 01 [13:09:12]MH_I2C_Read... [13:09:12]*** Stop cut motor [13:09:12]*** Cut end [13:09:12]Read from MH i2c: 01 07 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 07 00 40 19 00 00 00 00 00 FF 0F 6E [13:09:12]process_action close_receipt done [13:09:12]requested_data is exist [13:09:12]produce_requested_data [13:09:12]requested_item fm.sn is exist - process it [13:09:12]wFMCommunicate request_size=4 [13:09:12]MH_SAM_APDU [13:09:12]CAPDU: 80 11 00 00 [13:09:12]Write to MH i2c: E2 08 00 41 19 80 11 00 00 00 00 00 00 D4 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:12]Read from MH i2c: E2 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 17 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 17 00 41 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 26 [13: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 [13:09:12]wFMCommunicate OK [13:09:12]requested_item fd.num is exist - process it [13:09:12]SAM_PROTO_GetFieldsCounters [13:09:12]wFMCommunicate request_size=4 [13:09:12]MH_SAM_APDU [13:09:12]CAPDU: 80 13 00 00 [13:09:12]Write to MH i2c: E2 08 00 42 19 80 13 00 00 00 00 00 00 D7 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:12]Read from MH i2c: E2 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 62 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 62 00 42 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 F5 F9 00 00 0E 04 04 00 76 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 3D [13: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 F5 F9 00 00 0E 04 04 00 76 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 [13:09:12]wFMCommunicate OK [13:09:12]SAM_PROTO_GetFieldsCounters done [13:09:12]requested_item shift.num is exist - process it [13:09:12]requested_item shift.opened is exist - process it [13:09:12]req_shift_opened [13:09:12]FM_GetShiftState [13:09:12]SAM_PROTO_GetShiftState [13:09:12]wFMCommunicate request_size=4 [13:09:12]MH_SAM_APDU [13:09:12]CAPDU: 80 13 01 00 [13:09:12]Write to MH i2c: E2 08 00 43 19 80 13 01 00 00 00 00 00 D9 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 [13:09:12]MH_I2C_Read... [13:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:12]Read from MH i2c: E2 0E 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: E2 0E 00 43 19 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 79 [13:09:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:09:12]wFMCommunicate OK [13:09:12]SAM_PROTO_GetShiftState done [13:09:12]FM_GetShiftState done [13:09:12]req_shift_opened done [13:09:12]requested_item shift.open_date is exist - process it [13:09:12]req_shift_open_date [13:09:12]req_shift_open_date done [13:09:12]produce_requested_data done [13:09:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63989,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:09:12]process_action_free close_receipt [13:09:12]json_value_free [13:09:12]json_value_free done [13:09:12]process_json_proto returns [13:09:12]Send response to host [13:09:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63989,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:09:12]free response buf [13:09:12]execute_script done [13:09:12]execute_script returns [13:09:12]free content buf [13:09:12]Sock 7.Close socket [13:09:12]Sock 7.Thread stoped [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:35]accept exits with 9 [13:14:35]New connection [13:14:35]New thread 3067055460 created [13:14:35]Thread 3066912100 joined [13:14:35]Waiting for new connection... [13:14:35] Sock 9.Parse request [13:14:35]Sock 9.Check first char [13:14:35]Sock 9.First char is OK [13:14:35]request: POST /json_proto HTTP/1.0 [13:14:35]Method: POST [13:14:35]URL: /json_proto [13:14:35]Method is POST - this is cgi request [13:14:35]url: /json_proto [13:14:35]query_string will be loaded in cgi processing [13:14:35]execute_cgi json_proto POST (null) [13:14:35]execute_cgi path=json_proto method=POST [13:14:35]POST find Content-Length [13:14:35]Host: 172.17.60.69:8080 [13:14:35]Content-Length: 828 [13:14:35]Content-Type: application/json [13:14:35] [13:14:35]POST finish read [13:14:35]Found Content-Length = 828 [13:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73548", "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 }]} ], "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" ] } } [13:14:35]execute_script... [13:14: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)73548", "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 }]} ], "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" ] } } [13:14:35]POST & json_proto [13:14:35]process_json_proto [13:14:35]json parsed OK: [13:14:35]protocol is kg_v1.0 [13:14:35]action value=close_receipt [13:14:35]process_action close_receipt [13:14:35]cmd_close_receipt [13:14:35]MH_GetDate [13:14:35]Write to MH i2c: F0 00 00 44 19 4C [13:14:35]Write i2c OK [13:14:35]MH_I2C_Read... [13:14:35]Read from MH i2c: F0 [13:14:35]MH_I2C_Read... [13:14:35]Read from MH i2c: F0 09 00 [13:14:35]MH_I2C_Read... [13:14:35]Read from MH i2c: F0 09 00 44 19 00 3E 13 5F 66 6A 96 4A 66 1B [13:14:35]GetLastDocTimeStamp 1717506551 [13:14:35]current date 1717506878 [13:14:35]FM_GetShiftState [13:14:35]SAM_PROTO_GetShiftState [13:14:35]wFMCommunicate request_size=4 [13:14:35]MH_SAM_APDU [13:14:35]CAPDU: 80 13 01 00 [13:14:35]Write to MH i2c: E2 08 00 45 19 80 13 01 00 00 00 00 00 DB [13:14:35]Write i2c OK [13:14:35]MH_I2C_Read... [13:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:35]Read from MH i2c: E2 [13:14:35]MH_I2C_Read... [13:14:35]Read from MH i2c: E2 0E 00 [13:14:35]MH_I2C_Read... [13:14:35]Read from MH i2c: E2 0E 00 45 19 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7B [13:14:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:14:35]wFMCommunicate OK [13:14:35]SAM_PROTO_GetShiftState done [13:14:35]FM_GetShiftState done [13:14:35]opened in 1717459574 [13:14:35]opened+sec_in_day 1717545974 [13:14:35]quantity*price = 13000 [13:14:35]sum+1 = 13001 [13:14:35]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 СНО: Общий режим Чек 75 04.06.2024 13:14 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63990 ФПД: 260131613092581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131438&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63990&fm=260131613092581&tin=02508201610067®Number=0000000000092737&sum=13000 0 [13:14:36]StoreToDocumentArchive [13:14:36]shift 374 fd 63990 [13:14:36]save to /storage/0374/doc_00063990 [13:14:36]save last doc name /storage/0374/doc_00063990 to /storage/kkm_last_doc_name [13:14:36]save OK [13:14:36]Clear old archive folders... [13:14:36]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:14:36]tlvbuf is 01283030 [13:14:36]SAM_PROTO_ClearQueue [13:14:36]wFMCommunicate request_size=4 [13:14:36]MH_SAM_APDU [13:14:36]CAPDU: 80 09 00 00 [13:14:36]Write to MH i2c: E2 08 00 52 19 80 09 00 00 00 00 00 00 DD [13:14:36]Write i2c OK [13:14:36]MH_I2C_Read... [13:14:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:36]Read from MH i2c: E2 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 03 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 52 19 00 90 00 DF [13:14:37]RAPDU: 90 00 [13:14:37]wFMCommunicate OK [13:14:37]SAM_PROTO_ClearQueue done [13:14:37]KKMCreateOFDPacket [13:14:37]OFDProtocolAddRootSTLVToBuf [13:14:37]FM_MakeSignedData [13:14:37]FM_MakeSignedData [13:14:37]SAM_PROTO_SignData [13:14:37]wFMCommunicate request_size=4 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 0D 01 02 [13:14:37]Write to MH i2c: E2 08 00 53 19 80 0D 01 02 00 00 00 00 E5 [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 53 19 00 90 00 E0 [13:14:37]RAPDU: 90 00 [13:14:37]wFMCommunicate OK [13:14:37]wFMCommunicate request_size=255 [13:14:37]MH_SAM_APDU [13:14:37]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 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 4B 00 00 00 F4 03 04 00 3E 13 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [13:14:37]Write to MH i2c: E2 02 01 54 19 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 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 4B 00 00 00 F4 03 04 00 3E 13 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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 DB [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 54 19 00 90 00 E1 [13:14:37]RAPDU: 90 00 [13:14:37]wFMCommunicate OK [13:14:37]wFMCommunicate request_size=35 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F6 F9 00 00 35 04 06 00 EC 96 9C 64 AA E5 [13:14:37]Write to MH i2c: E2 26 00 55 19 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F6 F9 00 00 35 04 06 00 EC 96 9C 64 AA E5 00 00 DA [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 03 00 55 19 00 90 00 E2 [13:14:37]RAPDU: 90 00 [13:14:37]wFMCommunicate OK [13:14:37]wFMCommunicate request_size=4 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 0D 03 02 [13:14:37]Write to MH i2c: E2 08 00 56 19 80 0D 03 02 00 00 00 00 EA [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 0B 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 0B 00 56 19 00 E1 D8 22 68 3F AD 8F 59 90 00 02 [13:14:37]RAPDU: E1 D8 22 68 3F AD 8F 59 90 00 [13:14:37]wFMCommunicate OK [13:14:37]SAM_PROTO_SignData done [13:14:37]FM_MakeSignedData done [13:14:37]CreateOFDProtocolMessage [13:14:37]wFMCommunicate request_size=4 [13:14:37]MH_SAM_APDU [13:14:37]CAPDU: 80 11 00 00 [13:14:37]Write to MH i2c: E2 08 00 57 19 80 11 00 00 00 00 00 00 EA [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:37]Read from MH i2c: E2 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 17 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: E2 17 00 57 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3C [13:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:14:37]wFMCommunicate OK [13:14:37]CreateOFDProtocolMessage done [13:14:37]OFDSenderStorePacket 63990 [13:14:37]StoreOFDPacket docnum=63990 [13:14: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 28 01 00 00 1A 0D 20 01 B0 C8 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 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 4B 00 00 00 F4 03 04 00 3E 13 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F6 F9 00 00 35 04 06 00 EC 96 9C 64 AA E5 E1 D8 22 68 3F AD 8F 59 [13:14:37]CheckFolder [13:14:37]dirname=/storage/ofd_packets [13:14:37]CheckFolder done [13:14:37]ProducePacketName [13:14:37]name=ofd_packets/00063990 [13:14:37]NVStorageSaveData ofd_packets/00063990 [13:14:37]File name is /storage/ofd_packets/00063990 [13:14:37]Write 326 bytes [13:14:37]NVStorageSaveData done [13:14:37]OFDSenderStorePacket done [13:14:37]KKMCreateOFDPacket done [13:14:37]NVStorageSaveData kkm_last_timestamp [13:14:37]File name is /storage/kkm_last_timestamp [13:14:37]Write 4 bytes [13:14:37]NVStorageSaveData done [13:14:37]ExternCall_PrintAddStr [13:14:37]wPrintStart [13:14:37]Write to MH i2c: 01 00 00 58 19 71 [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: 01 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: 01 07 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: 01 07 00 58 19 00 00 00 00 00 FF 0F 86 [13:14:37]RasterBufferAndPrint [13:14:37]line Счет N : (3)73548 [13:14:37]line ИНН: 02508201610067 [13:14:37]line Контрольно-Кассовый Чек [13:14:37]line ПРОДАЖА [13:14:37]line Товар: 2000036230011 [13:14:37]line Кофе Латте XL(GABB TRADE) [13:14:37]line 1.000 * 130.00 [13:14:37]line = 130.00 [13:14:37]line НДС 12% НСП 1% [13:14:37]line > о реализуемом товаре [13:14:37]line ИТОГО: 130.00 [13:14:37]line НСП 1% : 1.15 [13:14:37]line НДС 12% : 13.80 [13:14:37]line Наличными: 0.00 [13:14:37]line Безнал.: 130.00 [13:14:37]line Место: АЗС № 117 "Партнер Нефть" [13:14:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:14:37]line СНО: Общий режим [13:14:37]line Чек 75 04.06.2024 13:14 [13:14:37]line Смена: 374 ФФД: 1.0 [13:14:37]line ЗНМ: 0300000031 [13:14:37]line РНМ: 0000000000092737 [13:14:37]line Версия ККМ: 001 [13:14:37]line Платежная система: АКБ Кыргызстан [13:14:37]line ФМ: 0000000000875074 [13:14:37]line ФД: 63990 [13:14:37]line ФПД: 260131613092581 [13:14:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131438&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63990&fm=260131613092581&tin=02508201610067®Number=0000000000092737&sum=13000 [13:14:37]line 0 [13:14:37]OFD Sender: Processing packet 63990 [packets to send 14, broken 13] [13:14:37]ProducePacketName [13:14:37]name=ofd_packets/00063990 [13:14:37]OFD Sender: To server: pG, [13:14:37]CommunicateWithHost lk.salyk.kg:30040 [13:14:37]ConnectInit lk.salyk.kg [13:14:37]written 0, free lines is 4095 [13:14:37]Connected sock=11 [13:14: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 28 01 00 00 1A 0D 20 01 B0 C8 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 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 4B 00 00 00 F4 03 04 00 3E 13 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F6 F9 00 00 35 04 06 00 EC 96 9C 64 AA E5 E1 D8 22 68 3F AD 8F 59 [13:14: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 4A 0E 47 00 E5 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F6 F9 00 00 F4 03 04 00 0D BF 5E 66 B6 04 01 00 00 AE 31 7E 46 91 2B DE 55 [13:14:38]CommunicateWithHost err = 0 [13:14:38]CheckOFDResponse [13:14:38]1017 (14) - 77093643461234 [13:14:38]1041 (16) - 0000000000875074 [13:14:38]1040 (4) - 63990 [13:14:38]1012 (4) - 04.06.2024 07:15 [13:14:38]1206 (1) - 0 [13:14:38]OFD Sender: Remove packet 63990 [13:14:38]ProducePacketName [13:14:38]name=ofd_packets/00063990 [13:14:38]NVStorageDeleteData [13:14:38]Write to MH i2c: 01 00 00 82 19 9B [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 07 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 07 00 82 19 00 00 00 00 00 DD 0C 8B [13:14:38]RasterBufferAndPrint [13:14:38]line [13:14:38]line [13:14:38]line [13:14:38]line [13:14:38]line [13:14:38]written 0, free lines is 3299 [13:14:38]MH_Cut [13:14:38]Write to MH i2c: D1 01 00 89 19 01 74 [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: D1 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: D1 01 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: D1 01 00 89 19 00 73 [13:14:38]Write to MH i2c: 01 00 00 8A 19 A3 [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:38]OFD Sender: No OFD packet to send [13:14:39]*** Cut start [13:14:39]*** Partial cut [13:14:39]*** CUTSNS_PIN = 1 [13:14:39]*** CUTSNS_PIN = 0 [13:14:39]*** Brake cut motor [13:14:39]Read from MH i2c: 01 [13:14:39]MH_I2C_Read... [13:14:39]*** Stop cut motor [13:14:39]*** Cut end [13:14:39]Read from MH i2c: 01 07 00 [13:14:39]MH_I2C_Read... [13:14:39]Read from MH i2c: 01 07 00 8A 19 00 00 00 00 00 FF 0F B8 [13:14:39]process_action close_receipt done [13:14:39]requested_data is exist [13:14:39]produce_requested_data [13:14:39]requested_item fm.sn is exist - process it [13:14:39]wFMCommunicate request_size=4 [13:14:39]MH_SAM_APDU [13:14:39]CAPDU: 80 11 00 00 [13:14:39]Write to MH i2c: E2 08 00 8B 19 80 11 00 00 00 00 00 00 1E [13:14:39]Write i2c OK [13:14:39]MH_I2C_Read... [13:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:39]Read from MH i2c: E2 [13:14:39]MH_I2C_Read... [13:14:39]Read from MH i2c: E2 17 00 [13:14:39]MH_I2C_Read... [13:14:39]Read from MH i2c: E2 17 00 8B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 70 [13:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:14:39]wFMCommunicate OK [13:14:39]requested_item fd.num is exist - process it [13:14:39]SAM_PROTO_GetFieldsCounters [13:14:39]wFMCommunicate request_size=4 [13:14:39]MH_SAM_APDU [13:14:39]CAPDU: 80 13 00 00 [13:14:39]Write to MH i2c: E2 08 00 8C 19 80 13 00 00 00 00 00 00 21 [13:14:39]Write i2c OK [13:14:39]MH_I2C_Read... [13:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:39]Read from MH i2c: E2 [13:14:39]MH_I2C_Read... [13:14:39]Read from MH i2c: E2 62 00 [13:14:39]MH_I2C_Read... [13:14:39]Read from MH i2c: E2 62 00 8C 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 F6 F9 00 00 0E 04 04 00 76 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 8B [13:14: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 F6 F9 00 00 0E 04 04 00 76 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 [13:14:39]wFMCommunicate OK [13:14:39]SAM_PROTO_GetFieldsCounters done [13:14:39]requested_item shift.num is exist - process it [13:14:39]requested_item shift.opened is exist - process it [13:14:39]req_shift_opened [13:14:39]FM_GetShiftState [13:14:39]SAM_PROTO_GetShiftState [13:14:39]wFMCommunicate request_size=4 [13:14:39]MH_SAM_APDU [13:14:39]CAPDU: 80 13 01 00 [13:14:39]Write to MH i2c: E2 08 00 8D 19 80 13 01 00 00 00 00 00 23 [13:14:39]Write i2c OK [13:14:39]MH_I2C_Read... [13:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:39]Read from MH i2c: E2 [13:14:39]MH_I2C_Read... [13:14:39]Read from MH i2c: E2 0E 00 [13:14:39]MH_I2C_Read... [13:14:39]Read from MH i2c: E2 0E 00 8D 19 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C3 [13:14:39]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:14:39]wFMCommunicate OK [13:14:39]SAM_PROTO_GetShiftState done [13:14:39]FM_GetShiftState done [13:14:39]req_shift_opened done [13:14:39]requested_item shift.open_date is exist - process it [13:14:39]req_shift_open_date [13:14:39]req_shift_open_date done [13:14:39]produce_requested_data done [13:14:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63990,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:14:39]process_action_free close_receipt [13:14:39]json_value_free [13:14:39]json_value_free done [13:14:39]process_json_proto returns [13:14:39]Send response to host [13:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63990,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:14:40]free response buf [13:14:40]execute_script done [13:14:40]execute_script returns [13:14:40]free content buf [13:14:40]Sock 9.Close socket [13:14:40]Sock 9.Thread stoped [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:28]accept exits with 7 [13:15:28]New connection [13:15:28]New thread 3066912100 created [13:15:28]Thread 3067055460 joined [13:15:28]Waiting for new connection... [13:15:28] Sock 7.Parse request [13:15:28]Sock 7.Check first char [13:15:28]Sock 7.First char is OK [13:15:28]request: POST /json_proto HTTP/1.0 [13:15:28]Method: POST [13:15:28]URL: /json_proto [13:15:28]Method is POST - this is cgi request [13:15:28]url: /json_proto [13:15:28]query_string will be loaded in cgi processing [13:15:28]execute_cgi json_proto POST (null) [13:15:28]execute_cgi path=json_proto method=POST [13:15:28]POST find Content-Length [13:15:28]Host: 172.17.60.69:8080 [13:15:28]Content-Length: 616 [13:15:28]Content-Type: application/json [13:15:28] [13:15:28]POST finish read [13:15:28]Found Content-Length = 616 [13:15:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73549", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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:15:28]execute_script... [13:15:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73549", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS 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:15:28]POST & json_proto [13:15:28]process_json_proto [13:15:28]json parsed OK: [13:15:28]protocol is kg_v1.0 [13:15:28]action value=close_receipt [13:15:28]process_action close_receipt [13:15:28]cmd_close_receipt [13:15:28]MH_GetDate [13:15:28]Write to MH i2c: F0 00 00 8E 19 96 [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: F0 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: F0 09 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: F0 09 00 8E 19 00 74 13 5F 66 6A 96 4A 66 9B [13:15:28]GetLastDocTimeStamp 1717506878 [13:15:28]current date 1717506932 [13:15:28]FM_GetShiftState [13:15:28]SAM_PROTO_GetShiftState [13:15:28]wFMCommunicate request_size=4 [13:15:28]MH_SAM_APDU [13:15:28]CAPDU: 80 13 01 00 [13:15:28]Write to MH i2c: E2 08 00 8F 19 80 13 01 00 00 00 00 00 25 [13:15:28]Write i2c OK [13:15:28]MH_I2C_Read... [13:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:28]Read from MH i2c: E2 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 0E 00 [13:15:28]MH_I2C_Read... [13:15:28]Read from MH i2c: E2 0E 00 8F 19 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C5 [13:15:28]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:15:28]wFMCommunicate OK [13:15:28]SAM_PROTO_GetShiftState done [13:15:28]FM_GetShiftState done [13:15:28]opened in 1717459574 [13:15:28]opened+sec_in_day 1717545974 [13:15:28]quantity*price = 14000 [13:15:28]sum+1 = 14001 [13:15:28]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 СНО: Общий режим Чек 76 04.06.2024 13:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63991 ФПД: 251077778926924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131532&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63991&fm=251077778926924&tin=02508201610067®Number=0000000000092737&sum=14000 0 [13:15:30]StoreToDocumentArchive [13:15:30]shift 374 fd 63991 [13:15:30]save to /storage/0374/doc_00063991 [13:15:30]save last doc name /storage/0374/doc_00063991 to /storage/kkm_last_doc_name [13:15:30]save OK [13:15:30]Clear old archive folders... [13:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:15:30]tlvbuf is 01282730 [13:15:30]SAM_PROTO_ClearQueue [13:15:30]wFMCommunicate request_size=4 [13:15:30]MH_SAM_APDU [13:15:30]CAPDU: 80 09 00 00 [13:15:30]Write to MH i2c: E2 08 00 9C 19 80 09 00 00 00 00 00 00 27 [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:30]Read from MH i2c: E2 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 03 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 03 00 9C 19 00 90 00 29 [13:15:30]RAPDU: 90 00 [13:15:30]wFMCommunicate OK [13:15:30]SAM_PROTO_ClearQueue done [13:15:30]KKMCreateOFDPacket [13:15:30]OFDProtocolAddRootSTLVToBuf [13:15:30]FM_MakeSignedData [13:15:30]FM_MakeSignedData [13:15:30]SAM_PROTO_SignData [13:15:30]wFMCommunicate request_size=4 [13:15:30]MH_SAM_APDU [13:15:30]CAPDU: 80 0D 01 02 [13:15:30]Write to MH i2c: E2 08 00 9D 19 80 0D 01 02 00 00 00 00 2F [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:30]Read from MH i2c: E2 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 03 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 03 00 9D 19 00 90 00 2A [13:15:30]RAPDU: 90 00 [13:15:30]wFMCommunicate OK [13:15:30]wFMCommunicate request_size=255 [13:15:30]MH_SAM_APDU [13:15:30]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 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 4C 00 00 00 F4 03 04 00 74 13 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [13:15:30]Write to MH i2c: E2 02 01 9E 19 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 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 4C 00 00 00 F4 03 04 00 74 13 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 2C [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:30]Read from MH i2c: E2 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 03 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 03 00 9E 19 00 90 00 2B [13:15:30]RAPDU: 90 00 [13:15:30]wFMCommunicate OK [13:15:30]wFMCommunicate request_size=28 [13:15:30]MH_SAM_APDU [13:15:30]CAPDU: 80 0D 02 02 17 37 35 30 37 34 10 04 04 00 F7 F9 00 00 35 04 06 00 E4 5A 99 D2 ED 4C [13:15:30]Write to MH i2c: E2 1F 00 9F 19 80 0D 02 02 17 00 37 35 30 37 34 10 04 04 00 F7 F9 00 00 35 04 06 00 E4 5A 99 D2 ED 4C 00 00 90 [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 [13:15:30]MH_I2C_Read... [13:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:30]Read from MH i2c: E2 03 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 03 00 9F 19 00 90 00 2C [13:15:30]RAPDU: 90 00 [13:15:30]wFMCommunicate OK [13:15:30]wFMCommunicate request_size=4 [13:15:30]MH_SAM_APDU [13:15:30]CAPDU: 80 0D 03 02 [13:15:30]Write to MH i2c: E2 08 00 A0 19 80 0D 03 02 00 00 00 00 34 [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:30]Read from MH i2c: E2 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 0B 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 0B 00 A0 19 00 27 47 DB DF 92 FB 93 26 90 00 A3 [13:15:30]RAPDU: 27 47 DB DF 92 FB 93 26 90 00 [13:15:30]wFMCommunicate OK [13:15:30]SAM_PROTO_SignData done [13:15:30]FM_MakeSignedData done [13:15:30]CreateOFDProtocolMessage [13:15:30]wFMCommunicate request_size=4 [13:15:30]MH_SAM_APDU [13:15:30]CAPDU: 80 11 00 00 [13:15:30]Write to MH i2c: E2 08 00 A1 19 80 11 00 00 00 00 00 00 34 [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:30]Read from MH i2c: E2 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 17 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 17 00 A1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 86 [13:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:15:30]wFMCommunicate OK [13:15:30]CreateOFDProtocolMessage done [13:15:30]OFDSenderStorePacket 63991 [13:15:30]StoreOFDPacket docnum=63991 [13:15: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 21 01 00 00 C9 7E 19 01 D8 6E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 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 4C 00 00 00 F4 03 04 00 74 13 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F7 F9 00 00 35 04 06 00 E4 5A 99 D2 ED 4C 27 47 DB DF 92 FB 93 26 [13:15:30]CheckFolder [13:15:30]dirname=/storage/ofd_packets [13:15:30]CheckFolder done [13:15:30]ProducePacketName [13:15:30]name=ofd_packets/00063991 [13:15:30]NVStorageSaveData ofd_packets/00063991 [13:15:30]File name is /storage/ofd_packets/00063991 [13:15:30]Write 319 bytes [13:15:30]NVStorageSaveData done [13:15:30]OFDSenderStorePacket done [13:15:30]KKMCreateOFDPacket done [13:15:30]NVStorageSaveData kkm_last_timestamp [13:15:30]File name is /storage/kkm_last_timestamp [13:15:30]Write 4 bytes [13:15:30]NVStorageSaveData done [13:15:30]ExternCall_PrintAddStr [13:15:30]wPrintStart [13:15:30]Write to MH i2c: 01 00 00 A2 19 BB [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: 01 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: 01 07 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: 01 07 00 A2 19 00 00 00 00 00 FF 0F D0 [13:15:30]RasterBufferAndPrint [13:15:30]line Счет N : (3)73549 [13:15:30]line ИНН: 02508201610067 [13:15:30]line Контрольно-Кассовый Чек [13:15:30]line ПРОДАЖА [13:15:30]line Товар: 47803008 [13:15:30]line Сигареты Winston XS Blue [13:15:30]line 1.000 * 140.00 [13:15:30]line = 140.00 [13:15:30]line НДС 12% НСП 1% [13:15:30]line > о реализуемом товаре [13:15:30]line ИТОГО: 140.00 [13:15:30]line НСП 1% : 1.24 [13:15:30]line НДС 12% : 14.87 [13:15:30]line Наличными: 140.00 [13:15:30]line Безнал.: 0.00 [13:15:30]line Место: АЗС № 117 "Партнер Нефть" [13:15:30]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:15:30]line СНО: Общий режим [13:15:30]line Чек 76 04.06.2024 13:15 [13:15:30]line Смена: 374 ФФД: 1.0 [13:15:30]line ЗНМ: 0300000031 [13:15:30]line РНМ: 0000000000092737 [13:15:30]line Версия ККМ: 001 [13:15:30]line ФМ: 0000000000875074 [13:15:30]line ФД: 63991 [13:15:30]line ФПД: 251077778926924 [13:15:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T131532&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63991&fm=251077778926924&tin=02508201610067®Number=0000000000092737&sum=14000 [13:15:30]line 0 [13:15:30]OFD Sender: Processing packet 63991 [packets to send 14, broken 13] [13:15:30]ProducePacketName [13:15:30]name=ofd_packets/00063991 [13:15:30]OFD Sender: To server: pG, [13:15:30]CommunicateWithHost lk.salyk.kg:30040 [13:15:30]ConnectInit lk.salyk.kg [13:15:30]written 0, free lines is 4095 [13:15:31]Connected sock=10 [13:15: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 21 01 00 00 C9 7E 19 01 D8 6E 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 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 4C 00 00 00 F4 03 04 00 74 13 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F7 F9 00 00 35 04 06 00 E4 5A 99 D2 ED 4C 27 47 DB DF 92 FB 93 26 [13:15: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 4C 58 47 00 F1 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 F7 F9 00 00 F4 03 04 00 42 BF 5E 66 B6 04 01 00 00 2A AD 68 7D 5F EC 02 E6 [13:15:31]CommunicateWithHost err = 0 [13:15:31]CheckOFDResponse [13:15:31]1017 (14) - 77093643461234 [13:15:31]1041 (16) - 0000000000875074 [13:15:31]1040 (4) - 63991 [13:15:31]1012 (4) - 04.06.2024 07:16 [13:15:31]1206 (1) - 0 [13:15:31]OFD Sender: Remove packet 63991 [13:15:31]ProducePacketName [13:15:31]name=ofd_packets/00063991 [13:15:31]NVStorageDeleteData [13:15:31]Write to MH i2c: 01 00 00 CA 19 E3 [13:15:31]Write i2c OK [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: 01 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: 01 07 00 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: 01 07 00 CA 19 00 00 00 00 00 F6 0C EC [13:15:31]RasterBufferAndPrint [13:15:31]line [13:15:31]line [13:15:31]line [13:15:31]line [13:15:31]line [13:15:31]written 0, free lines is 3323 [13:15:31]MH_Cut [13:15:31]Write to MH i2c: D1 01 00 D1 19 01 BC [13:15:31]Write i2c OK [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: D1 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: D1 01 00 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: D1 01 00 D1 19 00 BB [13:15:31]Write to MH i2c: 01 00 00 D2 19 EB [13:15:31]Write i2c OK [13:15:31]MH_I2C_Read... [13:15:31]OFD Sender: No OFD packet to send [13:15:32]*** Cut start [13:15:32]*** Partial cut [13:15:32]*** CUTSNS_PIN = 1 [13:15:32]*** CUTSNS_PIN = 0 [13:15:32]*** Brake cut motor [13:15:32]Read from MH i2c: 01 [13:15:32]MH_I2C_Read... [13:15:32]*** Stop cut motor [13:15:32]*** Cut end [13:15:32]Read from MH i2c: 01 07 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: 01 07 00 D2 19 00 00 00 00 00 FF 0F 00 [13:15:32]process_action close_receipt done [13:15:32]requested_data is exist [13:15:32]produce_requested_data [13:15:32]requested_item fm.sn is exist - process it [13:15:32]wFMCommunicate request_size=4 [13:15:32]MH_SAM_APDU [13:15:32]CAPDU: 80 11 00 00 [13:15:32]Write to MH i2c: E2 08 00 D3 19 80 11 00 00 00 00 00 00 66 [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 [13:15:32]MH_I2C_Read... [13:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:32]Read from MH i2c: E2 17 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 17 00 D3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B8 [13:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:15:32]wFMCommunicate OK [13:15:32]requested_item fd.num is exist - process it [13:15:32]SAM_PROTO_GetFieldsCounters [13:15:32]wFMCommunicate request_size=4 [13:15:32]MH_SAM_APDU [13:15:32]CAPDU: 80 13 00 00 [13:15:32]Write to MH i2c: E2 08 00 D4 19 80 13 00 00 00 00 00 00 69 [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:32]Read from MH i2c: E2 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 62 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 62 00 D4 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 F7 F9 00 00 0E 04 04 00 76 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 D7 [13:15:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 F7 F9 00 00 0E 04 04 00 76 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 [13:15:32]wFMCommunicate OK [13:15:32]SAM_PROTO_GetFieldsCounters done [13:15:32]requested_item shift.num is exist - process it [13:15:32]requested_item shift.opened is exist - process it [13:15:32]req_shift_opened [13:15:32]FM_GetShiftState [13:15:32]SAM_PROTO_GetShiftState [13:15:32]wFMCommunicate request_size=4 [13:15:32]MH_SAM_APDU [13:15:32]CAPDU: 80 13 01 00 [13:15:32]Write to MH i2c: E2 08 00 D5 19 80 13 01 00 00 00 00 00 6B [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:32]Read from MH i2c: E2 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 0E 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 0E 00 D5 19 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0B [13:15:32]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:15:32]wFMCommunicate OK [13:15:32]SAM_PROTO_GetShiftState done [13:15:32]FM_GetShiftState done [13:15:32]req_shift_opened done [13:15:32]requested_item shift.open_date is exist - process it [13:15:32]req_shift_open_date [13:15:32]req_shift_open_date done [13:15:32]produce_requested_data done [13:15:32]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63991,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:15:32]process_action_free close_receipt [13:15:32]json_value_free [13:15:32]json_value_free done [13:15:32]process_json_proto returns [13:15:32]Send response to host [13:15:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63991,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:15:32]free response buf [13:15:32]execute_script done [13:15:32]execute_script returns [13:15:32]free content buf [13:15:32]Sock 7.Close socket [13:15:32]Sock 7.Thread stoped [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:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21: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:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [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:55]accept exits with 9 [13:31:55]New connection [13:31:55]New thread 3067055460 created [13:31:55]Thread 3066912100 joined [13:31:55]Waiting for new connection... [13:31:55] Sock 9.Parse request [13:31:55]Sock 9.Check first char [13:31:55]Sock 9.First char is OK [13:31:55]request: POST /json_proto HTTP/1.0 [13:31:55]Method: POST [13:31:55]URL: /json_proto [13:31:55]Method is POST - this is cgi request [13:31:55]url: /json_proto [13:31:55]query_string will be loaded in cgi processing [13:31:55]execute_cgi json_proto POST (null) [13:31:55]execute_cgi path=json_proto method=POST [13:31:55]POST find Content-Length [13:31:55]Host: 172.17.60.69:8080 [13:31:55]Content-Length: 620 [13:31:55]Content-Type: application/json [13:31:55] [13:31:55]POST finish read [13:31:55]Found Content-Length = 620 [13:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73550", "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" ] } } [13:31:55]execute_script... [13:31:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73550", "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" ] } } [13:31:55]POST & json_proto [13:31:55]process_json_proto [13:31:55]json parsed OK: [13:31:55]protocol is kg_v1.0 [13:31:55]action value=close_receipt [13:31:55]process_action close_receipt [13:31:55]cmd_close_receipt [13:31:55]MH_GetDate [13:31:55]Write to MH i2c: F0 00 00 D6 19 DE [13:31:55]Write i2c OK [13:31:55]MH_I2C_Read... [13:31:55]Read from MH i2c: F0 [13:31:55]MH_I2C_Read... [13:31:55]Read from MH i2c: F0 09 00 [13:31:55]MH_I2C_Read... [13:31:55]Read from MH i2c: F0 09 00 D6 19 00 4E 17 5F 66 6A 96 4A 66 C1 [13:31:55]GetLastDocTimeStamp 1717506932 [13:31:55]current date 1717507918 [13:31:55]FM_GetShiftState [13:31:55]SAM_PROTO_GetShiftState [13:31:55]wFMCommunicate request_size=4 [13:31:55]MH_SAM_APDU [13:31:55]CAPDU: 80 13 01 00 [13:31:55]Write to MH i2c: E2 08 00 D7 19 80 13 01 00 00 00 00 00 6D [13:31:55]Write i2c OK [13:31:55]MH_I2C_Read... [13:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:55]Read from MH i2c: E2 [13:31:55]MH_I2C_Read... [13:31:55]Read from MH i2c: E2 0E 00 [13:31:55]MH_I2C_Read... [13:31:55]Read from MH i2c: E2 0E 00 D7 19 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0D [13:31:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:31:55]wFMCommunicate OK [13:31:55]SAM_PROTO_GetShiftState done [13:31:55]FM_GetShiftState done [13:31:55]opened in 1717459574 [13:31:55]opened+sec_in_day 1717545974 [13:31:55]quantity*price = 14000 [13:31:55]sum+1 = 14001 [13:31:55]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 СНО: Общий режим Чек 77 04.06.2024 13:31 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63992 ФПД: 251521135481014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133159&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63992&fm=251521135481014&tin=02508201610067®Number=0000000000092737&sum=14000 0 [13:31:56]StoreToDocumentArchive [13:31:56]shift 374 fd 63992 [13:31:56]save to /storage/0374/doc_00063992 [13:31:56]save last doc name /storage/0374/doc_00063992 to /storage/kkm_last_doc_name [13:31:56]save OK [13:31:56]Clear old archive folders... [13:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:31:56]tlvbuf is B6EDA2E0 [13:31:56]SAM_PROTO_ClearQueue [13:31:56]wFMCommunicate request_size=4 [13:31:56]MH_SAM_APDU [13:31:56]CAPDU: 80 09 00 00 [13:31:56]Write to MH i2c: E2 08 00 E4 19 80 09 00 00 00 00 00 00 6F [13:31:56]Write i2c OK [13:31:56]MH_I2C_Read... [13:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:56]Read from MH i2c: E2 [13:31:56]MH_I2C_Read... [13:31:56]Read from MH i2c: E2 03 00 [13:31:56]MH_I2C_Read... [13:31:56]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [13:31:56]RAPDU: 90 00 [13:31:56]wFMCommunicate OK [13:31:56]SAM_PROTO_ClearQueue done [13:31:56]KKMCreateOFDPacket [13:31:56]OFDProtocolAddRootSTLVToBuf [13:31:56]FM_MakeSignedData [13:31:56]FM_MakeSignedData [13:31:56]SAM_PROTO_SignData [13:31:56]wFMCommunicate request_size=4 [13:31:56]MH_SAM_APDU [13:31:56]CAPDU: 80 0D 01 02 [13:31:56]Write to MH i2c: E2 08 00 E5 19 80 0D 01 02 00 00 00 00 77 [13:31:56]Write i2c OK [13:31:56]MH_I2C_Read... [13:31:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:57]Read from MH i2c: E2 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 03 00 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 03 00 E5 19 00 90 00 72 [13:31:57]RAPDU: 90 00 [13:31:57]wFMCommunicate OK [13:31:57]wFMCommunicate request_size=255 [13:31:57]MH_SAM_APDU [13:31:57]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 4D 00 00 00 F4 03 04 00 4F 17 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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:31:57]Write to MH i2c: E2 02 01 E6 19 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 4D 00 00 00 F4 03 04 00 4F 17 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 5E [13:31:57]Write i2c OK [13:31:57]MH_I2C_Read... [13:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:57]Read from MH i2c: E2 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 03 00 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [13:31:57]RAPDU: 90 00 [13:31:57]wFMCommunicate OK [13:31:57]wFMCommunicate request_size=32 [13:31:57]MH_SAM_APDU [13:31:57]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 F8 F9 00 00 35 04 06 00 E4 C1 D3 EF 10 B6 [13:31:57]Write to MH i2c: E2 23 00 E7 19 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 F8 F9 00 00 35 04 06 00 E4 C1 D3 EF 10 B6 00 00 F4 [13:31:57]Write i2c OK [13:31:57]MH_I2C_Read... [13:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:57]Read from MH i2c: E2 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 03 00 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [13:31:57]RAPDU: 90 00 [13:31:57]wFMCommunicate OK [13:31:57]wFMCommunicate request_size=4 [13:31:57]MH_SAM_APDU [13:31:57]CAPDU: 80 0D 03 02 [13:31:57]Write to MH i2c: E2 08 00 E8 19 80 0D 03 02 00 00 00 00 7C [13:31:57]Write i2c OK [13:31:57]MH_I2C_Read... [13:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:57]Read from MH i2c: E2 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 0B 00 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 0B 00 E8 19 00 5F BF 57 E4 25 B6 99 45 90 00 8F [13:31:57]RAPDU: 5F BF 57 E4 25 B6 99 45 90 00 [13:31:57]wFMCommunicate OK [13:31:57]SAM_PROTO_SignData done [13:31:57]FM_MakeSignedData done [13:31:57]CreateOFDProtocolMessage [13:31:57]wFMCommunicate request_size=4 [13:31:57]MH_SAM_APDU [13:31:57]CAPDU: 80 11 00 00 [13:31:57]Write to MH i2c: E2 08 00 E9 19 80 11 00 00 00 00 00 00 7C [13:31:57]Write i2c OK [13:31:57]MH_I2C_Read... [13:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:57]Read from MH i2c: E2 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 17 00 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: E2 17 00 E9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CE [13:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:31:57]wFMCommunicate OK [13:31:57]CreateOFDProtocolMessage done [13:31:57]OFDSenderStorePacket 63992 [13:31:57]StoreOFDPacket docnum=63992 [13:31: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 25 01 00 00 78 CD 1D 01 B8 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 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 4D 00 00 00 F4 03 04 00 4F 17 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F8 F9 00 00 35 04 06 00 E4 C1 D3 EF 10 B6 5F BF 57 E4 25 B6 99 45 [13:31:57]CheckFolder [13:31:57]dirname=/storage/ofd_packets [13:31:57]CheckFolder done [13:31:57]ProducePacketName [13:31:57]name=ofd_packets/00063992 [13:31:57]NVStorageSaveData ofd_packets/00063992 [13:31:57]File name is /storage/ofd_packets/00063992 [13:31:57]Write 323 bytes [13:31:57]NVStorageSaveData done [13:31:57]OFDSenderStorePacket done [13:31:57]KKMCreateOFDPacket done [13:31:57]NVStorageSaveData kkm_last_timestamp [13:31:57]File name is /storage/kkm_last_timestamp [13:31:57]Write 4 bytes [13:31:57]NVStorageSaveData done [13:31:57]ExternCall_PrintAddStr [13:31:57]wPrintStart [13:31:57]Write to MH i2c: 01 00 00 EA 19 03 [13:31:57]Write i2c OK [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: 01 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: 01 07 00 [13:31:57]MH_I2C_Read... [13:31:57]Read from MH i2c: 01 07 00 EA 19 00 00 00 00 00 FF 0F 18 [13:31:57]RasterBufferAndPrint [13:31:57]line Счет N : (3)73550 [13:31:57]line ИНН: 02508201610067 [13:31:57]line Контрольно-Кассовый Чек [13:31:57]line ПРОДАЖА [13:31:57]line Товар: 48743570 [13:31:57]line Сигареты Winston XStyle Blue [13:31:57]line 1.000 * 140.00 [13:31:57]line = 140.00 [13:31:57]line НДС 12% НСП 1% [13:31:57]line > о реализуемом товаре [13:31:57]line ИТОГО: 140.00 [13:31:57]line НСП 1% : 1.24 [13:31:57]line НДС 12% : 14.87 [13:31:57]line Наличными: 140.00 [13:31:57]line Безнал.: 0.00 [13:31:57]line Место: АЗС № 117 "Партнер Нефть" [13:31:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:31:57]line СНО: Общий режим [13:31:57]line Чек 77 04.06.2024 13:31 [13:31:57]line Смена: 374 ФФД: 1.0 [13:31:57]line ЗНМ: 0300000031 [13:31:57]line РНМ: 0000000000092737 [13:31:57]line Версия ККМ: 001 [13:31:57]line ФМ: 0000000000875074 [13:31:57]line ФД: 63992 [13:31:57]line ФПД: 251521135481014 [13:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133159&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63992&fm=251521135481014&tin=02508201610067®Number=0000000000092737&sum=14000 [13:31:57]line 0 [13:31:57]OFD Sender: Processing packet 63992 [packets to send 14, broken 13] [13:31:57]ProducePacketName [13:31:57]name=ofd_packets/00063992 [13:31:57]OFD Sender: To server: pG, [13:31:57]CommunicateWithHost lk.salyk.kg:30040 [13:31:57]ConnectInit lk.salyk.kg [13:31:57]written 0, free lines is 4095 [13:31:57]Connected sock=10 [13:31:57]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 78 CD 1D 01 B8 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 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 4D 00 00 00 F4 03 04 00 4F 17 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F8 F9 00 00 35 04 06 00 E4 C1 D3 EF 10 B6 5F BF 57 E4 25 B6 99 45 [13:31: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 8F 40 47 00 5E 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 F8 F9 00 00 F4 03 04 00 1D C3 5E 66 B6 04 01 00 00 8F A0 93 FA 1C 2B 2B C0 [13:31:58]CommunicateWithHost err = 0 [13:31:58]CheckOFDResponse [13:31:58]1017 (14) - 77093643461234 [13:31:58]1041 (16) - 0000000000875074 [13:31:58]1040 (4) - 63992 [13:31:58]1012 (4) - 04.06.2024 07:32 [13:31:58]1206 (1) - 0 [13:31:58]OFD Sender: Remove packet 63992 [13:31:58]ProducePacketName [13:31:58]name=ofd_packets/00063992 [13:31:58]NVStorageDeleteData [13:31:58]Write to MH i2c: 01 00 00 12 1A 2C [13:31:58]Write i2c OK [13:31:58]MH_I2C_Read... [13:31:58]Read from MH i2c: 01 [13:31:58]MH_I2C_Read... [13:31:58]Read from MH i2c: 01 07 00 [13:31:58]MH_I2C_Read... [13:31:58]Read from MH i2c: 01 07 00 12 1A 00 00 00 00 00 E0 0C 1F [13:31:58]RasterBufferAndPrint [13:31:58]line [13:31:58]line [13:31:58]line [13:31:58]line [13:31:58]line [13:31:58]written 0, free lines is 3302 [13:31:58]MH_Cut [13:31:58]Write to MH i2c: D1 01 00 19 1A 01 05 [13:31:58]Write i2c OK [13:31:58]MH_I2C_Read... [13:31:58]Read from MH i2c: D1 [13:31:58]MH_I2C_Read... [13:31:58]Read from MH i2c: D1 01 00 [13:31:58]MH_I2C_Read... [13:31:58]Read from MH i2c: D1 01 00 19 1A 00 04 [13:31:58]Write to MH i2c: 01 00 00 1A 1A 34 [13:31:58]Write i2c OK [13:31:58]MH_I2C_Read... [13:31:58]OFD Sender: No OFD packet to send [13:31:59]*** Cut start [13:31:59]*** Partial cut [13:31:59]*** CUTSNS_PIN = 1 [13:31:59]*** CUTSNS_PIN = 0 [13:31:59]*** Brake cut motor [13:31:59]Read from MH i2c: 01 [13:31:59]MH_I2C_Read... [13:31:59]*** Stop cut motor [13:31:59]*** Cut end [13:31:59]Read from MH i2c: 01 07 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: 01 07 00 1A 1A 00 00 00 00 00 FF 0F 49 [13:31:59]process_action close_receipt done [13:31:59]requested_data is exist [13:31:59]produce_requested_data [13:31:59]requested_item fm.sn is exist - process it [13:31:59]wFMCommunicate request_size=4 [13:31:59]MH_SAM_APDU [13:31:59]CAPDU: 80 11 00 00 [13:31:59]Write to MH i2c: E2 08 00 1B 1A 80 11 00 00 00 00 00 00 AF [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:59]Read from MH i2c: E2 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 17 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 17 00 1B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 01 [13:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:31:59]wFMCommunicate OK [13:31:59]requested_item fd.num is exist - process it [13:31:59]SAM_PROTO_GetFieldsCounters [13:31:59]wFMCommunicate request_size=4 [13:31:59]MH_SAM_APDU [13:31:59]CAPDU: 80 13 00 00 [13:31:59]Write to MH i2c: E2 08 00 1C 1A 80 13 00 00 00 00 00 00 B2 [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:59]Read from MH i2c: E2 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 62 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 62 00 1C 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 F8 F9 00 00 0E 04 04 00 76 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 24 [13:31: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 F8 F9 00 00 0E 04 04 00 76 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 [13:31:59]wFMCommunicate OK [13:31:59]SAM_PROTO_GetFieldsCounters done [13:31:59]requested_item shift.num is exist - process it [13:31:59]requested_item shift.opened is exist - process it [13:31:59]req_shift_opened [13:31:59]FM_GetShiftState [13:31:59]SAM_PROTO_GetShiftState [13:31:59]wFMCommunicate request_size=4 [13:31:59]MH_SAM_APDU [13:31:59]CAPDU: 80 13 01 00 [13:31:59]Write to MH i2c: E2 08 00 1D 1A 80 13 01 00 00 00 00 00 B4 [13:31:59]Write i2c OK [13:31:59]MH_I2C_Read... [13:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:59]Read from MH i2c: E2 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 0E 00 [13:31:59]MH_I2C_Read... [13:31:59]Read from MH i2c: E2 0E 00 1D 1A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 54 [13:31:59]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:31:59]wFMCommunicate OK [13:31:59]SAM_PROTO_GetShiftState done [13:31:59]FM_GetShiftState done [13:31:59]req_shift_opened done [13:31:59]requested_item shift.open_date is exist - process it [13:31:59]req_shift_open_date [13:31:59]req_shift_open_date done [13:31:59]produce_requested_data done [13:31:59]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63992,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:31:59]process_action_free close_receipt [13:31:59]json_value_free [13:31:59]json_value_free done [13:31:59]process_json_proto returns [13:31:59]Send response to host [13:31:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63992,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:31:59]free response buf [13:31:59]execute_script done [13:31:59]execute_script returns [13:31:59]free content buf [13:31:59]Sock 9.Close socket [13:31:59]Sock 9.Thread stoped [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]accept exits with 7 [13:32:53]New connection [13:32:53]New thread 3066912100 created [13:32:53]Thread 3067055460 joined [13:32:53]Waiting for new connection... [13:32:53] Sock 7.Parse request [13:32:53]Sock 7.Check first char [13:32:53]Sock 7.First char is OK [13:32:53]request: POST /json_proto HTTP/1.0 [13:32:53]Method: POST [13:32:53]URL: /json_proto [13:32:53]Method is POST - this is cgi request [13:32:53]url: /json_proto [13:32:53]query_string will be loaded in cgi processing [13:32:53]execute_cgi json_proto POST (null) [13:32:53]execute_cgi path=json_proto method=POST [13:32:53]POST find Content-Length [13:32:53]Host: 172.17.60.69:8080 [13:32:53]Content-Length: 835 [13:32:53]Content-Type: application/json [13:32:53] [13:32:53]POST finish read [13:32:53]Found Content-Length = 835 [13:32:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73551", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:53]execute_script... [13:32: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)73551", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:53]POST & json_proto [13:32:53]process_json_proto [13:32:53]json parsed OK: [13:32:53]protocol is kg_v1.0 [13:32:53]action value=close_receipt [13:32:53]process_action close_receipt [13:32:53]cmd_close_receipt [13:32:53]MH_GetDate [13:32:53]Write to MH i2c: F0 00 00 1E 1A 27 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: F0 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: F0 09 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: F0 09 00 1E 1A 00 88 17 5F 66 6A 96 4A 66 44 [13:32:53]GetLastDocTimeStamp 1717507919 [13:32:53]current date 1717507976 [13:32:53]FM_GetShiftState [13:32:53]SAM_PROTO_GetShiftState [13:32:53]wFMCommunicate request_size=4 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 13 01 00 [13:32:53]Write to MH i2c: E2 08 00 1F 1A 80 13 01 00 00 00 00 00 B6 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 0E 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 0E 00 1F 1A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 56 [13:32:53]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:32:53]wFMCommunicate OK [13:32:53]SAM_PROTO_GetShiftState done [13:32:53]FM_GetShiftState done [13:32:53]opened in 1717459574 [13:32:53]opened+sec_in_day 1717545974 [13:32:53]quantity*price = 11000 [13:32:53]sum+1 = 11001 [13:32:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113270 Жев Orbit арбуз 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 78 04.06.2024 13:32 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63993 ФПД: 196931845521083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133256&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63993&fm=196931845521083&tin=02508201610067®Number=0000000000092737&sum=15500 0 [13:32:54]StoreToDocumentArchive [13:32:54]shift 374 fd 63993 [13:32:54]save to /storage/0374/doc_00063993 [13:32:54]save last doc name /storage/0374/doc_00063993 to /storage/kkm_last_doc_name [13:32:54]save OK [13:32:54]Clear old archive folders... [13:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=356 [13:32:54]tlvbuf is B6EF3490 [13:32:54]SAM_PROTO_ClearQueue [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 09 00 00 [13:32:54]Write to MH i2c: E2 08 00 2C 1A 80 09 00 00 00 00 00 00 B8 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 2C 1A 00 90 00 BA [13:32:54]RAPDU: 90 00 [13:32:54]wFMCommunicate OK [13:32:54]SAM_PROTO_ClearQueue done [13:32:54]KKMCreateOFDPacket [13:32:54]OFDProtocolAddRootSTLVToBuf [13:32:54]FM_MakeSignedData [13:32:54]FM_MakeSignedData [13:32:54]SAM_PROTO_SignData [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 0D 01 02 [13:32:54]Write to MH i2c: E2 08 00 2D 1A 80 0D 01 02 00 00 00 00 C0 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 2D 1A 00 90 00 BB [13:32:54]RAPDU: 90 00 [13:32:54]wFMCommunicate OK [13:32:54]wFMCommunicate request_size=255 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 0D 02 02 FA 03 00 64 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 [13:32:54]Write to MH i2c: E2 02 01 2E 1A 80 0D 02 02 FA 00 03 00 64 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 A9 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 2E 1A 00 90 00 BC [13:32:54]RAPDU: 90 00 [13:32:54]wFMCommunicate OK [13:32:54]wFMCommunicate request_size=115 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 0D 02 02 6E 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 88 17 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F9 F9 00 00 35 04 06 00 B3 1B C4 B2 7E BB [13:32:54]Write to MH i2c: E2 76 00 2F 1A 80 0D 02 02 6E 00 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 88 17 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F9 F9 00 00 35 04 06 00 B3 1B C4 B2 7E BB 00 00 2A [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 2F 1A 00 90 00 BD [13:32:54]RAPDU: 90 00 [13:32:54]wFMCommunicate OK [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 0D 03 02 [13:32:54]Write to MH i2c: E2 08 00 30 1A 80 0D 03 02 00 00 00 00 C5 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 0B 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 0B 00 30 1A 00 B9 4C C3 61 5A B0 7F 48 90 00 C0 [13:32:54]RAPDU: B9 4C C3 61 5A B0 7F 48 90 00 [13:32:54]wFMCommunicate OK [13:32:54]SAM_PROTO_SignData done [13:32:54]FM_MakeSignedData done [13:32:54]CreateOFDProtocolMessage [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 11 00 00 [13:32:54]Write to MH i2c: E2 08 00 31 1A 80 11 00 00 00 00 00 00 C5 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 31 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 17 [13:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:32:54]wFMCommunicate OK [13:32:54]CreateOFDProtocolMessage done [13:32:54]OFDSenderStorePacket 63993 [13:32:54]StoreOFDPacket docnum=63993 [13:32: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 78 01 00 00 0B 91 70 01 C1 6D 5A 03 01 00 03 00 64 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 88 17 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F9 F9 00 00 35 04 06 00 B3 1B C4 B2 7E BB B9 4C C3 61 5A B0 7F 48 [13:32:54]CheckFolder [13:32:54]dirname=/storage/ofd_packets [13:32:54]CheckFolder done [13:32:54]ProducePacketName [13:32:54]name=ofd_packets/00063993 [13:32:54]NVStorageSaveData ofd_packets/00063993 [13:32:54]File name is /storage/ofd_packets/00063993 [13:32:54]Write 406 bytes [13:32:54]NVStorageSaveData done [13:32:54]OFDSenderStorePacket done [13:32:54]KKMCreateOFDPacket done [13:32:54]NVStorageSaveData kkm_last_timestamp [13:32:54]File name is /storage/kkm_last_timestamp [13:32:54]Write 4 bytes [13:32:54]NVStorageSaveData done [13:32:54]ExternCall_PrintAddStr [13:32:54]wPrintStart [13:32:54]Write to MH i2c: 01 00 00 32 1A 4C [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 07 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 07 00 32 1A 00 00 00 00 00 FF 0F 61 [13:32:54]RasterBufferAndPrint [13:32:54]line Счет N : (3)73551 [13:32:54]line ИНН: 02508201610067 [13:32:54]line Контрольно-Кассовый Чек [13:32:54]line ПРОДАЖА [13:32:54]line Товар: 4870001570071 [13:32:54]line Напиток Pepsi 1л [13:32:54]line 1.000 * 110.00 [13:32:54]line = 110.00 [13:32:54]line НДС 12% НСП 1% [13:32:55]line > о реализуемом товаре [13:32:55]line Товар: 42113270 [13:32:55]line Жев Orbit арбуз [13:32:55]line 1.000 * 45.00 [13:32:55]line = 45.00 [13:32:55]line НДС 12% НСП 1% [13:32:55]line > о реализуемом товаре [13:32:55]line ИТОГО: 155.00 [13:32:55]line НСП 1% : 1.37 [13:32:55]line НДС 12% : 16.46 [13:32:55]line Наличными: 155.00 [13:32:55]line Безнал.: 0.00 [13:32:55]line Место: АЗС № 117 "Партнер Нефть" [13:32:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:32:55]line СНО: Общий режим [13:32:55]line Чек 78 04.06.2024 13:32 [13:32:55]line Смена: 374 ФФД: 1.0 [13:32:55]line ЗНМ: 0300000031 [13:32:55]line РНМ: 0000000000092737 [13:32:55]line Версия ККМ: 001 [13:32:55]line ФМ: 0000000000875074 [13:32:55]line ФД: 63993 [13:32:55]line ФПД: 196931845521083 [13:32:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T133256&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63993&fm=196931845521083&tin=02508201610067®Number=0000000000092737&sum=15500 [13:32:55]line 0 [13:32:55]OFD Sender: Processing packet 63993 [packets to send 14, broken 13] [13:32:55]ProducePacketName [13:32:55]name=ofd_packets/00063993 [13:32:55]OFD Sender: To server: pG, [13:32:55]CommunicateWithHost lk.salyk.kg:30040 [13:32:55]ConnectInit lk.salyk.kg [13:32:55]written 0, free lines is 4095 [13:32:55]Connected sock=10 [13:32: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 78 01 00 00 0B 91 70 01 C1 6D 5A 03 01 00 03 00 64 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 88 17 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 F9 F9 00 00 35 04 06 00 B3 1B C4 B2 7E BB B9 4C C3 61 5A B0 7F 48 [13:32: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 CA F9 47 00 ED 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 F9 F9 00 00 F4 03 04 00 56 C3 5E 66 B6 04 01 00 00 CF B3 DE 1C 89 56 4E 17 [13:32:55]CommunicateWithHost err = 0 [13:32:55]CheckOFDResponse [13:32:55]1017 (14) - 77093643461234 [13:32:55]1041 (16) - 0000000000875074 [13:32:55]1040 (4) - 63993 [13:32:55]1012 (4) - 04.06.2024 07:33 [13:32:55]1206 (1) - 0 [13:32:55]OFD Sender: Remove packet 63993 [13:32:55]ProducePacketName [13:32:55]name=ofd_packets/00063993 [13:32:55]NVStorageDeleteData [13:32:55]Write to MH i2c: 01 00 00 60 1A 7A [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: 01 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: 01 07 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: 01 07 00 60 1A 00 00 00 00 00 AA 0C 37 [13:32:55]RasterBufferAndPrint [13:32:55]line [13:32:55]line [13:32:55]line [13:32:55]line [13:32:55]line [13:32:55]written 0, free lines is 3247 [13:32:55]MH_Cut [13:32:55]Write to MH i2c: D1 01 00 67 1A 01 53 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: D1 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: D1 01 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: D1 01 00 67 1A 00 52 [13:32:55]Write to MH i2c: 01 00 00 68 1A 82 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:56]OFD Sender: No OFD packet to send [13:32:56]*** Cut start [13:32:56]*** Partial cut [13:32:56]*** CUTSNS_PIN = 1 [13:32:56]*** CUTSNS_PIN = 0 [13:32:56]*** Brake cut motor [13:32:57]Read from MH i2c: 01 [13:32:57]MH_I2C_Read... [13:32:57]*** Stop cut motor [13:32:57]*** Cut end [13:32:57]Read from MH i2c: 01 07 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: 01 07 00 68 1A 00 00 00 00 00 FF 0F 97 [13:32:57]process_action close_receipt done [13:32:57]requested_data is exist [13:32:57]produce_requested_data [13:32:57]requested_item fm.sn is exist - process it [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 11 00 00 [13:32:57]Write to MH i2c: E2 08 00 69 1A 80 11 00 00 00 00 00 00 FD [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 17 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 17 00 69 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4F [13:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:32:57]wFMCommunicate OK [13:32:57]requested_item fd.num is exist - process it [13:32:57]SAM_PROTO_GetFieldsCounters [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 13 00 00 [13:32:57]Write to MH i2c: E2 08 00 6A 1A 80 13 00 00 00 00 00 00 00 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 62 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 62 00 6A 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 F9 F9 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [13:32:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 F9 F9 00 00 0E 04 04 00 76 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 [13:32:57]wFMCommunicate OK [13:32:57]SAM_PROTO_GetFieldsCounters done [13:32:57]requested_item shift.num is exist - process it [13:32:57]requested_item shift.opened is exist - process it [13:32:57]req_shift_opened [13:32:57]FM_GetShiftState [13:32:57]SAM_PROTO_GetShiftState [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 13 01 00 [13:32:57]Write to MH i2c: E2 08 00 6B 1A 80 13 01 00 00 00 00 00 02 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 0E 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 0E 00 6B 1A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A2 [13:32:57]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:32:57]wFMCommunicate OK [13:32:57]SAM_PROTO_GetShiftState done [13:32:57]FM_GetShiftState done [13:32:57]req_shift_opened done [13:32:57]requested_item shift.open_date is exist - process it [13:32:57]req_shift_open_date [13:32:57]req_shift_open_date done [13:32:57]produce_requested_data done [13:32:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63993,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:32:57]process_action_free close_receipt [13:32:57]json_value_free [13:32:57]json_value_free done [13:32:57]process_json_proto returns [13:32:57]Send response to host [13:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63993,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:32:57]free response buf [13:32:57]execute_script done [13:32:57]execute_script returns [13:32:57]free content buf [13:32:57]Sock 7.Close socket [13:32:57]Sock 7.Thread stoped [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:41]accept exits with 9 [13:42:41]New connection [13:42:41]New thread 3067055460 created [13:42:41]Thread 3066912100 joined [13:42:41]Waiting for new connection... [13:42:41] Sock 9.Parse request [13:42:41]Sock 9.Check first char [13:42:41]Sock 9.First char is OK [13:42:41]request: POST /json_proto HTTP/1.0 [13:42:41]Method: POST [13:42:41]URL: /json_proto [13:42:41]Method is POST - this is cgi request [13:42:41]url: /json_proto [13:42:41]query_string will be loaded in cgi processing [13:42:41]execute_cgi json_proto POST (null) [13:42:41]execute_cgi path=json_proto method=POST [13:42:41]POST find Content-Length [13:42:41]Host: 172.17.60.69:8080 [13:42:41]Content-Length: 670 [13:42:41]Content-Type: application/json [13:42:41] [13:42:41]POST finish read [13:42:41]Found Content-Length = 670 [13:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 9.580, "sum" : 650.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:41]execute_script... [13:42:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 9.580, "sum" : 650.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:41]POST & json_proto [13:42:41]process_json_proto [13:42:41]json parsed OK: [13:42:41]protocol is kg_v1.0 [13:42:41]action value=close_receipt [13:42:41]process_action close_receipt [13:42:41]cmd_close_receipt [13:42:41]MH_GetDate [13:42:41]Write to MH i2c: F0 00 00 6C 1A 75 [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: F0 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: F0 09 00 [13:42:41]MH_I2C_Read... [13:42:41]Read from MH i2c: F0 09 00 6C 1A 00 D5 19 5F 66 6A 96 4A 66 E1 [13:42:41]GetLastDocTimeStamp 1717507976 [13:42:41]current date 1717508565 [13:42:41]FM_GetShiftState [13:42:41]SAM_PROTO_GetShiftState [13:42:41]wFMCommunicate request_size=4 [13:42:41]MH_SAM_APDU [13:42:41]CAPDU: 80 13 01 00 [13:42:41]Write to MH i2c: E2 08 00 6D 1A 80 13 01 00 00 00 00 00 04 [13:42:41]Write i2c OK [13:42:41]MH_I2C_Read... [13:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:42]Read from MH i2c: E2 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 0E 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 0E 00 6D 1A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A4 [13:42:42]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:42:42]wFMCommunicate OK [13:42:42]SAM_PROTO_GetShiftState done [13:42:42]FM_GetShiftState done [13:42:42]opened in 1717459574 [13:42:42]opened+sec_in_day 1717545974 [13:42:42]quantity*price = 65048 [13:42:42]sum+1 = 65049 [13:42:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.08 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 79 04.06.2024 13:42 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63994 ФПД: 234248092692097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134245&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63994&fm=234248092692097&tin=02508201610067®Number=0000000000092737&sum=65000 [13:42:43]StoreToDocumentArchive [13:42:43]shift 374 fd 63994 [13:42:43]save to /storage/0374/doc_00063994 [13:42:43]save last doc name /storage/0374/doc_00063994 to /storage/kkm_last_doc_name [13:42:43]save OK [13:42:43]Clear old archive folders... [13:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:42:43]tlvbuf is 012DCB50 [13:42:43]SAM_PROTO_ClearQueue [13:42:43]wFMCommunicate request_size=4 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 09 00 00 [13:42:43]Write to MH i2c: E2 08 00 7A 1A 80 09 00 00 00 00 00 00 06 [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:43]Read from MH i2c: E2 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 03 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 03 00 7A 1A 00 90 00 08 [13:42:43]RAPDU: 90 00 [13:42:43]wFMCommunicate OK [13:42:43]SAM_PROTO_ClearQueue done [13:42:43]KKMCreateOFDPacket [13:42:43]OFDProtocolAddRootSTLVToBuf [13:42:43]FM_MakeSignedData [13:42:43]FM_MakeSignedData [13:42:43]SAM_PROTO_SignData [13:42:43]wFMCommunicate request_size=4 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 0D 01 02 [13:42:43]Write to MH i2c: E2 08 00 7B 1A 80 0D 01 02 00 00 00 00 0E [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:43]Read from MH i2c: E2 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 03 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 03 00 7B 1A 00 90 00 09 [13:42:43]RAPDU: 90 00 [13:42:43]wFMCommunicate OK [13:42:43]wFMCommunicate request_size=255 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 D5 19 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FA F9 00 00 35 04 06 00 [13:42:43]Write to MH i2c: E2 02 01 7C 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 D5 19 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FA F9 00 00 35 04 06 00 00 00 8C [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:43]Read from MH i2c: E2 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 03 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 03 00 7C 1A 00 90 00 0A [13:42:43]RAPDU: 90 00 [13:42:43]wFMCommunicate OK [13:42:43]wFMCommunicate request_size=11 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 0D 02 02 06 D5 0C 22 5A AE 81 [13:42:43]Write to MH i2c: E2 0E 00 7D 1A 80 0D 02 02 06 00 D5 0C 22 5A AE 81 00 00 A9 [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:43]Read from MH i2c: E2 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 03 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 03 00 7D 1A 00 90 00 0B [13:42:43]RAPDU: 90 00 [13:42:43]wFMCommunicate OK [13:42:43]wFMCommunicate request_size=4 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 0D 03 02 [13:42:43]Write to MH i2c: E2 08 00 7E 1A 80 0D 03 02 00 00 00 00 13 [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:43]Read from MH i2c: E2 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 0B 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 0B 00 7E 1A 00 E2 4B 1F C2 2B 3D F1 6C 90 00 E7 [13:42:43]RAPDU: E2 4B 1F C2 2B 3D F1 6C 90 00 [13:42:43]wFMCommunicate OK [13:42:43]SAM_PROTO_SignData done [13:42:43]FM_MakeSignedData done [13:42:43]CreateOFDProtocolMessage [13:42:43]wFMCommunicate request_size=4 [13:42:43]MH_SAM_APDU [13:42:43]CAPDU: 80 11 00 00 [13:42:43]Write to MH i2c: E2 08 00 7F 1A 80 11 00 00 00 00 00 00 13 [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:43]Read from MH i2c: E2 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 17 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: E2 17 00 7F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 65 [13:42:43]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:43]wFMCommunicate OK [13:42:43]CreateOFDProtocolMessage done [13:42:43]OFDSenderStorePacket 63994 [13:42:43]StoreOFDPacket docnum=63994 [13:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 01 00 00 2D 15 08 01 9C BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 D5 19 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FA F9 00 00 35 04 06 00 D5 0C 22 5A AE 81 E2 4B 1F C2 2B 3D F1 6C [13:42:43]CheckFolder [13:42:43]dirname=/storage/ofd_packets [13:42:43]CheckFolder done [13:42:43]ProducePacketName [13:42:43]name=ofd_packets/00063994 [13:42:43]NVStorageSaveData ofd_packets/00063994 [13:42:43]File name is /storage/ofd_packets/00063994 [13:42:43]Write 302 bytes [13:42:43]NVStorageSaveData done [13:42:43]OFDSenderStorePacket done [13:42:43]KKMCreateOFDPacket done [13:42:43]NVStorageSaveData kkm_last_timestamp [13:42:43]File name is /storage/kkm_last_timestamp [13:42:43]Write 4 bytes [13:42:43]NVStorageSaveData done [13:42:43]ExternCall_PrintAddStr [13:42:43]wPrintStart [13:42:43]Write to MH i2c: 01 00 00 80 1A 9A [13:42:43]Write i2c OK [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 07 00 [13:42:43]MH_I2C_Read... [13:42:43]Read from MH i2c: 01 07 00 80 1A 00 00 00 00 00 FF 0F AF [13:42:43]RasterBufferAndPrint [13:42:43]line Счет N : (1)544678 [13:42:43]line ИНН: 02508201610067 [13:42:43]line Контрольно-Кассовый Чек [13:42:43]line ПРОДАЖА [13:42:43]line ТРК (МРК, ГНК) : 34 [13:42:43]line Товар: 2710124130 [13:42:43]line SUPER 92-К-5 [13:42:43]line 9.580 * 67.90 [13:42:43]line = 650.48 [13:42:43]line НДС 12% НСП 1% [13:42:43]line > о реализуемом товаре [13:42:43]line ОКРУГЛЕНИЕ: -0.48 [13:42:43]line ИТОГО: 650.00 [13:42:43]line Внесено: 650.00 [13:42:43]line СДАЧА: 0.00 [13:42:43]line НСП 1% : 5.76 [13:42:43]line НДС 12% : 69.08 [13:42:43]line Наличными: 650.00 [13:42:43]line Безнал.: 0.00 [13:42:43]line Место: АЗС № 117 "Партнер Нефть" [13:42:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:42:43]line СНО: Общий режим [13:42:43]line Чек 79 04.06.2024 13:42 [13:42:43]line Смена: 374 ФФД: 1.0 [13:42:43]line ЗНМ: 0300000031 [13:42:43]line РНМ: 0000000000092737 [13:42:43]line Версия ККМ: 001 [13:42:43]line ФМ: 0000000000875074 [13:42:43]line ФД: 63994 [13:42:43]line ФПД: 234248092692097 [13:42:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T134245&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63994&fm=234248092692097&tin=02508201610067®Number=0000000000092737&sum=65000 [13:42:43]OFD Sender: Processing packet 63994 [packets to send 14, broken 13] [13:42:43]ProducePacketName [13:42:43]name=ofd_packets/00063994 [13:42:43]OFD Sender: To server: pG, [13:42:43]CommunicateWithHost lk.salyk.kg:30040 [13:42:43]ConnectInit lk.salyk.kg [13:42:43]written 0, free lines is 4095 [13:42:44]Connected sock=10 [13:42:44]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 10 01 00 00 2D 15 08 01 9C BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 25 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 18 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 D5 19 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FA F9 00 00 35 04 06 00 D5 0C 22 5A AE 81 E2 4B 1F C2 2B 3D F1 6C [13:42:44]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 A5 47 00 25 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FA F9 00 00 F4 03 04 00 A3 C5 5E 66 B6 04 01 00 00 F1 48 6F 73 EA FC A6 E9 [13:42:44]CommunicateWithHost err = 0 [13:42:44]CheckOFDResponse [13:42:44]1017 (14) - 77093643461234 [13:42:44]1041 (16) - 0000000000875074 [13:42:44]1040 (4) - 63994 [13:42:44]1012 (4) - 04.06.2024 07:43 [13:42:44]1206 (1) - 0 [13:42:44]OFD Sender: Remove packet 63994 [13:42:44]ProducePacketName [13:42:44]name=ofd_packets/00063994 [13:42:44]NVStorageDeleteData [13:42:44]Write to MH i2c: 01 00 00 AB 1A C5 [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: 01 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: 01 07 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: 01 07 00 AB 1A 00 00 00 00 00 D7 0C AF [13:42:44]RasterBufferAndPrint [13:42:44]line [13:42:44]line [13:42:44]line [13:42:44]line [13:42:44]line [13:42:44]written 0, free lines is 3290 [13:42:44]MH_Cut [13:42:44]Write to MH i2c: D1 01 00 B2 1A 01 9E [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: D1 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: D1 01 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: D1 01 00 B2 1A 00 9D [13:42:44]Write to MH i2c: 01 00 00 B3 1A CD [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]OFD Sender: No OFD packet to send [13:42:45]*** Cut start [13:42:45]*** Partial cut [13:42:45]*** CUTSNS_PIN = 1 [13:42:45]*** CUTSNS_PIN = 0 [13:42:45]*** Brake cut motor [13:42:45]Read from MH i2c: 01 [13:42:45]MH_I2C_Read... [13:42:45]*** Stop cut motor [13:42:45]*** Cut end [13:42:45]Read from MH i2c: 01 07 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: 01 07 00 B3 1A 00 00 00 00 00 FF 0F E2 [13:42:45]process_action close_receipt done [13:42:45]requested_data is exist [13:42:45]produce_requested_data [13:42:45]requested_item fm.sn is exist - process it [13:42:45]wFMCommunicate request_size=4 [13:42:45]MH_SAM_APDU [13:42:45]CAPDU: 80 11 00 00 [13:42:45]Write to MH i2c: E2 08 00 B4 1A 80 11 00 00 00 00 00 00 48 [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:45]Read from MH i2c: E2 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 17 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 17 00 B4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9A [13:42:45]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:45]wFMCommunicate OK [13:42:45]requested_item fd.num is exist - process it [13:42:45]SAM_PROTO_GetFieldsCounters [13:42:45]wFMCommunicate request_size=4 [13:42:45]MH_SAM_APDU [13:42:45]CAPDU: 80 13 00 00 [13:42:45]Write to MH i2c: E2 08 00 B5 1A 80 13 00 00 00 00 00 00 4B [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 62 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 62 00 B5 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 FA F9 00 00 0E 04 04 00 76 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 C5 [13:42:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 FA F9 00 00 0E 04 04 00 76 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 [13:42:46]wFMCommunicate OK [13:42:46]SAM_PROTO_GetFieldsCounters done [13:42:46]requested_item shift.num is exist - process it [13:42:46]requested_item shift.opened is exist - process it [13:42:46]req_shift_opened [13:42:46]FM_GetShiftState [13:42:46]SAM_PROTO_GetShiftState [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 13 01 00 [13:42:46]Write to MH i2c: E2 08 00 B6 1A 80 13 01 00 00 00 00 00 4D [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 0E 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 0E 00 B6 1A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 ED [13:42:46]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:42:46]wFMCommunicate OK [13:42:46]SAM_PROTO_GetShiftState done [13:42:46]FM_GetShiftState done [13:42:46]req_shift_opened done [13:42:46]requested_item shift.open_date is exist - process it [13:42:46]req_shift_open_date [13:42:46]req_shift_open_date done [13:42:46]produce_requested_data done [13:42:46]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63994,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:42:46]process_action_free close_receipt [13:42:46]json_value_free [13:42:46]json_value_free done [13:42:46]process_json_proto returns [13:42:46]Send response to host [13:42:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63994,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:42:46]free response buf [13:42:46]execute_script done [13:42:46]execute_script returns [13:42:46]free content buf [13:42:46]Sock 9.Close socket [13:42:46]Sock 9.Thread stoped [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:49]accept exits with 7 [13:51:49]New connection [13:51:49]New thread 3066912100 created [13:51:49]Thread 3067055460 joined [13:51:49]Waiting for new connection... [13:51:49] Sock 7.Parse request [13:51:49]Sock 7.Check first char [13:51:49]Sock 7.First char is OK [13:51:49]request: POST /json_proto HTTP/1.0 [13:51:49]Method: POST [13:51:49]URL: /json_proto [13:51:49]Method is POST - this is cgi request [13:51:49]url: /json_proto [13:51:49]query_string will be loaded in cgi processing [13:51:49]execute_cgi json_proto POST (null) [13:51:49]execute_cgi path=json_proto method=POST [13:51:49]POST find Content-Length [13:51:49]Host: 172.17.60.69:8080 [13:51:49]Content-Length: 824 [13:51:49]Content-Type: application/json [13:51:49] [13:51:49]POST finish read [13:51:49]Found Content-Length = 824 [13:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73552", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 2.000, "sum" : 286.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" : 286.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:49]execute_script... [13:51: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)73552", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 2.000, "sum" : 286.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" : 286.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:49]POST & json_proto [13:51:49]process_json_proto [13:51:49]json parsed OK: [13:51:49]protocol is kg_v1.0 [13:51:49]action value=close_receipt [13:51:49]process_action close_receipt [13:51:49]cmd_close_receipt [13:51:49]MH_GetDate [13:51:49]Write to MH i2c: F0 00 00 B7 1A C0 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: F0 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: F0 09 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: F0 09 00 B7 1A 00 F9 1B 5F 66 6A 96 4A 66 52 [13:51:49]GetLastDocTimeStamp 1717508565 [13:51:49]current date 1717509113 [13:51:49]FM_GetShiftState [13:51:49]SAM_PROTO_GetShiftState [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 13 01 00 [13:51:49]Write to MH i2c: E2 08 00 B8 1A 80 13 01 00 00 00 00 00 4F [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0E 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0E 00 B8 1A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 EF [13:51:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_GetShiftState done [13:51:49]FM_GetShiftState done [13:51:49]opened in 1717459574 [13:51:49]opened+sec_in_day 1717545974 [13:51:49]quantity*price = 28600 [13:51:49]sum+1 = 28601 [13:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 286.00 НСП 1% : 2.53 НДС 12% : 30.37 Наличными: 0.00 Безнал.: 286.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 80 04.06.2024 13:51 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63995 ФПД: 43194788882541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135153&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63995&fm=43194788882541&tin=02508201610067®Number=0000000000092737&sum=28600 0 [13:51:51]StoreToDocumentArchive [13:51:51]shift 374 fd 63995 [13:51:51]save to /storage/0374/doc_00063995 [13:51:51]save last doc name /storage/0374/doc_00063995 to /storage/kkm_last_doc_name [13:51:51]save OK [13:51:51]Clear old archive folders... [13:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:51:51]tlvbuf is B6DC1060 [13:51:51]SAM_PROTO_ClearQueue [13:51:51]wFMCommunicate request_size=4 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 09 00 00 [13:51:51]Write to MH i2c: E2 08 00 C5 1A 80 09 00 00 00 00 00 00 51 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 C5 1A 00 90 00 53 [13:51:51]RAPDU: 90 00 [13:51:51]wFMCommunicate OK [13:51:51]SAM_PROTO_ClearQueue done [13:51:51]KKMCreateOFDPacket [13:51:51]OFDProtocolAddRootSTLVToBuf [13:51:51]FM_MakeSignedData [13:51:51]FM_MakeSignedData [13:51:51]SAM_PROTO_SignData [13:51:51]wFMCommunicate request_size=4 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 0D 01 02 [13:51:51]Write to MH i2c: E2 08 00 C6 1A 80 0D 01 02 00 00 00 00 59 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 C6 1A 00 90 00 54 [13:51:51]RAPDU: 90 00 [13:51:51]wFMCommunicate OK [13:51:51]wFMCommunicate request_size=255 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 B8 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 6F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F9 1B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 [13:51:51]Write to MH i2c: E2 02 01 C7 1A 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 B8 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 6F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F9 1B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 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 E6 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 C7 1A 00 90 00 55 [13:51:51]RAPDU: 90 00 [13:51:51]wFMCommunicate OK [13:51:51]wFMCommunicate request_size=35 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FB F9 00 00 35 04 06 00 27 49 12 0C 28 6D [13:51:51]Write to MH i2c: E2 26 00 C8 1A 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FB F9 00 00 35 04 06 00 27 49 12 0C 28 6D 00 00 65 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 C8 1A 00 90 00 56 [13:51:51]RAPDU: 90 00 [13:51:51]wFMCommunicate OK [13:51:51]wFMCommunicate request_size=4 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 0D 03 02 [13:51:51]Write to MH i2c: E2 08 00 C9 1A 80 0D 03 02 00 00 00 00 5E [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 0B 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 0B 00 C9 1A 00 8A 04 3D 53 42 79 48 70 90 00 F0 [13:51:51]RAPDU: 8A 04 3D 53 42 79 48 70 90 00 [13:51:51]wFMCommunicate OK [13:51:51]SAM_PROTO_SignData done [13:51:51]FM_MakeSignedData done [13:51:51]CreateOFDProtocolMessage [13:51:51]wFMCommunicate request_size=4 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 11 00 00 [13:51:51]Write to MH i2c: E2 08 00 CA 1A 80 11 00 00 00 00 00 00 5E [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 17 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 17 00 CA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B0 [13:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:51:51]wFMCommunicate OK [13:51:51]CreateOFDProtocolMessage done [13:51:51]OFDSenderStorePacket 63995 [13:51:51]StoreOFDPacket docnum=63995 [13:51: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 28 01 00 00 3D 6B 20 01 4C DD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 B8 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 6F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F9 1B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FB F9 00 00 35 04 06 00 27 49 12 0C 28 6D 8A 04 3D 53 42 79 48 70 [13:51:51]CheckFolder [13:51:51]dirname=/storage/ofd_packets [13:51:51]CheckFolder done [13:51:51]ProducePacketName [13:51:51]name=ofd_packets/00063995 [13:51:51]NVStorageSaveData ofd_packets/00063995 [13:51:51]File name is /storage/ofd_packets/00063995 [13:51:51]Write 326 bytes [13:51:51]NVStorageSaveData done [13:51:51]OFDSenderStorePacket done [13:51:51]KKMCreateOFDPacket done [13:51:51]NVStorageSaveData kkm_last_timestamp [13:51:51]File name is /storage/kkm_last_timestamp [13:51:51]Write 4 bytes [13:51:51]NVStorageSaveData done [13:51:51]ExternCall_PrintAddStr [13:51:51]wPrintStart [13:51:51]Write to MH i2c: 01 00 00 CB 1A E5 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 07 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 07 00 CB 1A 00 00 00 00 00 FF 0F FA [13:51:51]RasterBufferAndPrint [13:51:51]line Счет N : (3)73552 [13:51:51]line ИНН: 02508201610067 [13:51:51]line Контрольно-Кассовый Чек [13:51:51]line ПРОДАЖА [13:51:51]line Товар: 48744683 [13:51:51]line Сигареты Winston XStyle Caster+ [13:51:51]line 2.000 * 143.00 [13:51:51]line = 286.00 [13:51:51]line НДС 12% НСП 1% [13:51:51]line > о реализуемом товаре [13:51:51]line ИТОГО: 286.00 [13:51:51]line НСП 1% : 2.53 [13:51:51]line НДС 12% : 30.37 [13:51:51]line Наличными: 0.00 [13:51:51]line Безнал.: 286.00 [13:51:51]line Место: АЗС № 117 "Партнер Нефть" [13:51:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [13:51:51]line СНО: Общий режим [13:51:51]line Чек 80 04.06.2024 13:51 [13:51:51]line Смена: 374 ФФД: 1.0 [13:51:51]line ЗНМ: 0300000031 [13:51:51]line РНМ: 0000000000092737 [13:51:51]line Версия ККМ: 001 [13:51:51]line Платежная система: АКБ Кыргызстан [13:51:51]line ФМ: 0000000000875074 [13:51:51]line ФД: 63995 [13:51:51]line ФПД: 43194788882541 [13:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T135153&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63995&fm=43194788882541&tin=02508201610067®Number=0000000000092737&sum=28600 [13:51:51]line 0 [13:51:51]OFD Sender: Processing packet 63995 [packets to send 14, broken 13] [13:51:51]ProducePacketName [13:51:51]name=ofd_packets/00063995 [13:51:51]OFD Sender: To server: pG, [13:51:51]CommunicateWithHost lk.salyk.kg:30040 [13:51:51]ConnectInit lk.salyk.kg [13:51:51]written 0, free lines is 4095 [13:51:52]Connected sock=10 [13:51:52]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 3D 6B 20 01 4C DD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 B8 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 6F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F9 1B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FB F9 00 00 35 04 06 00 27 49 12 0C 28 6D 8A 04 3D 53 42 79 48 70 [13:51:52]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 DA 47 00 CC 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FB F9 00 00 F4 03 04 00 C7 C7 5E 66 B6 04 01 00 00 4A 70 0F 6A 91 CB 0D C6 [13:51:52]CommunicateWithHost err = 0 [13:51:52]CheckOFDResponse [13:51:52]1017 (14) - 77093643461234 [13:51:52]1041 (16) - 0000000000875074 [13:51:52]1040 (4) - 63995 [13:51:52]1012 (4) - 04.06.2024 07:52 [13:51:52]1206 (1) - 0 [13:51:52]OFD Sender: Remove packet 63995 [13:51:52]ProducePacketName [13:51:52]name=ofd_packets/00063995 [13:51:52]NVStorageDeleteData [13:51:52]Write to MH i2c: 01 00 00 F6 1A 10 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: 01 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: 01 07 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: 01 07 00 F6 1A 00 00 00 00 00 C4 0C E7 [13:51:52]RasterBufferAndPrint [13:51:52]line [13:51:52]line [13:51:52]line [13:51:52]line [13:51:52]line [13:51:52]written 0, free lines is 3274 [13:51:52]MH_Cut [13:51:52]Write to MH i2c: D1 01 00 FD 1A 01 E9 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: D1 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: D1 01 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: D1 01 00 FD 1A 00 E8 [13:51:52]Write to MH i2c: 01 00 00 FE 1A 18 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]OFD Sender: No OFD packet to send [13:51:53]*** Cut start [13:51:53]*** Partial cut [13:51:53]*** CUTSNS_PIN = 1 [13:51:53]*** CUTSNS_PIN = 0 [13:51:53]*** Brake cut motor [13:51:53]Read from MH i2c: 01 [13:51:53]MH_I2C_Read... [13:51:53]*** Stop cut motor [13:51:53]*** Cut end [13:51:53]Read from MH i2c: 01 07 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: 01 07 00 FE 1A 00 00 00 00 00 FF 0F 2D [13:51:53]process_action close_receipt done [13:51:53]requested_data is exist [13:51:53]produce_requested_data [13:51:53]requested_item fm.sn is exist - process it [13:51:53]wFMCommunicate request_size=4 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 11 00 00 [13:51:53]Write to MH i2c: E2 08 00 FF 1A 80 11 00 00 00 00 00 00 93 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 17 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 17 00 FF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E5 [13:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [13:51:53]wFMCommunicate OK [13:51:53]requested_item fd.num is exist - process it [13:51:53]SAM_PROTO_GetFieldsCounters [13:51:53]wFMCommunicate request_size=4 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 13 00 00 [13:51:53]Write to MH i2c: E2 08 00 00 1B 80 13 00 00 00 00 00 00 97 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:54]Read from MH i2c: E2 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: E2 62 00 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: E2 62 00 00 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 FB F9 00 00 0E 04 04 00 76 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 15 [13:51: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 FB F9 00 00 0E 04 04 00 76 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:51:54]wFMCommunicate OK [13:51:54]SAM_PROTO_GetFieldsCounters done [13:51:54]requested_item shift.num is exist - process it [13:51:54]requested_item shift.opened is exist - process it [13:51:54]req_shift_opened [13:51:54]FM_GetShiftState [13:51:54]SAM_PROTO_GetShiftState [13:51:54]wFMCommunicate request_size=4 [13:51:54]MH_SAM_APDU [13:51:54]CAPDU: 80 13 01 00 [13:51:54]Write to MH i2c: E2 08 00 01 1B 80 13 01 00 00 00 00 00 99 [13:51:54]Write i2c OK [13:51:54]MH_I2C_Read... [13:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:54]Read from MH i2c: E2 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: E2 0E 00 [13:51:54]MH_I2C_Read... [13:51:54]Read from MH i2c: E2 0E 00 01 1B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 39 [13:51:54]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [13:51:54]wFMCommunicate OK [13:51:54]SAM_PROTO_GetShiftState done [13:51:54]FM_GetShiftState done [13:51:54]req_shift_opened done [13:51:54]requested_item shift.open_date is exist - process it [13:51:54]req_shift_open_date [13:51:54]req_shift_open_date done [13:51:54]produce_requested_data done [13:51:54]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63995,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [13:51:54]process_action_free close_receipt [13:51:54]json_value_free [13:51:54]json_value_free done [13:51:54]process_json_proto returns [13:51:54]Send response to host [13:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63995,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [13:51:54]free response buf [13:51:54]execute_script done [13:51:54]execute_script returns [13:51:54]free content buf [13:51:54]Sock 7.Close socket [13:51:54]Sock 7.Thread stoped [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:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06: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:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]int [14:17:08]Write to MH i2c: 01 00 00 02 1B 1D [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 07 00 [14:17:08]MH_I2C_Read... [14:17:08]*** FLAG_PRN_PAP1 set [14:17:08]*** FLAG_PRN_PAP1 reset [14:17:08]Read from MH i2c: 01 07 00 02 1B 00 00 00 00 00 FF 0F 32 [14:17:08]state=0 [14:17:08]int [14:17:08]Write to MH i2c: 01 00 00 03 1B 1E [14:17:08]*** FLAG_PRN_PAP1 set [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 07 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 07 00 03 1B 00 01 00 00 00 FF 0F 34 [14:17:08]state=0 [14:17:08]No paper [14:17:08]int [14:17:08]Write to MH i2c: 01 00 00 04 1B 1F [14:17:08]*** FLAG_PRN_PAP2 set [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 07 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: 01 07 00 04 1B 00 03 00 00 00 FF 0F 37 [14:17:08]state=0 [14:17:08]No paper [14:17:08]Cover opened [14:17:08]OFD Sender: No OFD packet to send [14:17:10]int [14:17:10]Write to MH i2c: 01 00 00 05 1B 20 [14:17:10]Write i2c OK [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: 01 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: 01 07 00 [14:17:10]MH_I2C_Read... [14:17:10]*** FLAG_PRN_PAP2 reset [14:17:10]*** FLAG_PRN_PAP1 reset [14:17:10]Read from MH i2c: 01 07 00 05 1B 00 00 00 00 00 FF 0F 35 [14:17:10]state=3 [14:17:10]Cover closed [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:19]accept exits with 9 [14:21:19]New connection [14:21:19]New thread 3067055460 created [14:21:19]Thread 3066912100 joined [14:21:19]Waiting for new connection... [14:21:19] Sock 9.Parse request [14:21:19]Sock 9.Check first char [14:21:19]Sock 9.First char is OK [14:21:19]request: POST /json_proto HTTP/1.0 [14:21:19]Method: POST [14:21:19]URL: /json_proto [14:21:19]Method is POST - this is cgi request [14:21:19]url: /json_proto [14:21:19]query_string will be loaded in cgi processing [14:21:19]execute_cgi json_proto POST (null) [14:21:19]execute_cgi path=json_proto method=POST [14:21:19]POST find Content-Length [14:21:19]Host: 172.17.60.69:8080 [14:21:19]Content-Length: 983 [14:21:19]Content-Type: application/json [14:21:19] [14:21:19]POST finish read [14:21:19]Found Content-Length = 983 [14:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73553", "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" : 1.000, "sum" : 155.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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:19]execute_script... [14:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73553", "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" : 1.000, "sum" : 155.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" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:19]POST & json_proto [14:21:19]process_json_proto [14:21:19]json parsed OK: [14:21:19]protocol is kg_v1.0 [14:21:19]action value=close_receipt [14:21:19]process_action close_receipt [14:21:19]cmd_close_receipt [14:21:19]MH_GetDate [14:21:19]Write to MH i2c: F0 00 00 06 1B 10 [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: F0 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: F0 09 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: F0 09 00 06 1B 00 E3 22 5F 66 6A 96 4A 66 93 [14:21:19]GetLastDocTimeStamp 1717509113 [14:21:19]current date 1717510883 [14:21:19]FM_GetShiftState [14:21:19]SAM_PROTO_GetShiftState [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 13 01 00 [14:21:19]Write to MH i2c: E2 08 00 07 1B 80 13 01 00 00 00 00 00 9F [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0E 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0E 00 07 1B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 3F [14:21:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:21:19]wFMCommunicate OK [14:21:19]SAM_PROTO_GetShiftState done [14:21:19]FM_GetShiftState done [14:21:19]opened in 1717459574 [14:21:19]opened+sec_in_day 1717545974 [14:21:19]quantity*price = 15500 [14:21:19]sum+1 = 15501 [14:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 0.00 Безнал.: 155.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 81 04.06.2024 14:21 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63996 ФПД: 118773789609246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142123&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63996&fm=118773789609246&tin=02508201610067®Number=0000000000092737&sum=15500 0 [14:21:21]StoreToDocumentArchive [14:21:21]shift 374 fd 63996 [14:21:21]save to /storage/0374/doc_00063996 [14:21:21]save last doc name /storage/0374/doc_00063996 to /storage/kkm_last_doc_name [14:21:21]save OK [14:21:21]Clear old archive folders... [14:21:21]ProcessDocumentItem done err = 0, tmpTLVsize=319 [14:21:21]tlvbuf is B6F71480 [14:21:21]SAM_PROTO_ClearQueue [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 09 00 00 [14:21:21]Write to MH i2c: E2 08 00 14 1B 80 09 00 00 00 00 00 00 A1 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 14 1B 00 90 00 A3 [14:21:21]RAPDU: 90 00 [14:21:21]wFMCommunicate OK [14:21:21]SAM_PROTO_ClearQueue done [14:21:21]KKMCreateOFDPacket [14:21:21]OFDProtocolAddRootSTLVToBuf [14:21:21]FM_MakeSignedData [14:21:21]FM_MakeSignedData [14:21:21]SAM_PROTO_SignData [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 0D 01 02 [14:21:21]Write to MH i2c: E2 08 00 15 1B 80 0D 01 02 00 00 00 00 A9 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 15 1B 00 90 00 A4 [14:21:21]RAPDU: 90 00 [14:21:21]wFMCommunicate OK [14:21:21]wFMCommunicate request_size=255 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 0D 02 02 FA 03 00 3F 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 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E3 22 [14:21:21]Write to MH i2c: E2 02 01 16 1B 80 0D 02 02 FA 00 03 00 3F 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 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E3 22 00 00 9E [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 16 1B 00 90 00 A5 [14:21:21]RAPDU: 90 00 [14:21:21]wFMCommunicate OK [14:21:21]wFMCommunicate request_size=78 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 0D 02 02 49 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FC F9 00 00 35 04 06 00 6C 06 2D 89 CD 1E [14:21:21]Write to MH i2c: E2 51 00 17 1B 80 0D 02 02 49 00 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FC F9 00 00 35 04 06 00 6C 06 2D 89 CD 1E 00 00 2F [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 03 00 17 1B 00 90 00 A6 [14:21:21]RAPDU: 90 00 [14:21:21]wFMCommunicate OK [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 0D 03 02 [14:21:21]Write to MH i2c: E2 08 00 18 1B 80 0D 03 02 00 00 00 00 AE [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 0B 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 0B 00 18 1B 00 45 99 EE 07 EA 4B 85 DC 90 00 18 [14:21:21]RAPDU: 45 99 EE 07 EA 4B 85 DC 90 00 [14:21:21]wFMCommunicate OK [14:21:21]SAM_PROTO_SignData done [14:21:21]FM_MakeSignedData done [14:21:21]CreateOFDProtocolMessage [14:21:21]wFMCommunicate request_size=4 [14:21:21]MH_SAM_APDU [14:21:21]CAPDU: 80 11 00 00 [14:21:21]Write to MH i2c: E2 08 00 19 1B 80 11 00 00 00 00 00 00 AE [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:21]Read from MH i2c: E2 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 17 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: E2 17 00 19 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 00 [14: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 [14:21:21]wFMCommunicate OK [14:21:21]CreateOFDProtocolMessage done [14:21:21]OFDSenderStorePacket 63996 [14:21:21]StoreOFDPacket docnum=63996 [14:21: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 53 01 00 00 F3 4B 4B 01 73 85 5A 03 01 00 03 00 3F 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 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E3 22 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FC F9 00 00 35 04 06 00 6C 06 2D 89 CD 1E 45 99 EE 07 EA 4B 85 DC [14:21:21]CheckFolder [14:21:21]dirname=/storage/ofd_packets [14:21:21]CheckFolder done [14:21:21]ProducePacketName [14:21:21]name=ofd_packets/00063996 [14:21:21]NVStorageSaveData ofd_packets/00063996 [14:21:21]File name is /storage/ofd_packets/00063996 [14:21:21]Write 369 bytes [14:21:21]NVStorageSaveData done [14:21:21]OFDSenderStorePacket done [14:21:21]KKMCreateOFDPacket done [14:21:21]NVStorageSaveData kkm_last_timestamp [14:21:21]File name is /storage/kkm_last_timestamp [14:21:21]Write 4 bytes [14:21:21]NVStorageSaveData done [14:21:21]ExternCall_PrintAddStr [14:21:21]wPrintStart [14:21:21]Write to MH i2c: 01 00 00 1A 1B 35 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 07 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 07 00 1A 1B 00 00 00 00 00 FF 0F 4A [14:21:21]RasterBufferAndPrint [14:21:21]line Счет N : (3)73553 [14:21:21]line ИНН: 02508201610067 [14:21:21]line Контрольно-Кассовый Чек [14:21:21]line ПРОДАЖА [14:21:21]line Товар: 4860114390161 [14:21:21]line Напиток безалкогольный газированный Груш [14:21:21]line 1.000 * 155.00 [14:21:21]line = 155.00 [14:21:21]line НДС 12% НСП 1% [14:21:21]line > о реализуемом товаре [14:21:21]line ИТОГО: 155.00 [14:21:21]line НСП 1% : 1.37 [14:21:21]line НДС 12% : 16.46 [14:21:21]line Наличными: 0.00 [14:21:21]line Безнал.: 155.00 [14:21:21]line Место: АЗС № 117 "Партнер Нефть" [14:21:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:21:21]line СНО: Общий режим [14:21:21]line Чек 81 04.06.2024 14:21 [14:21:21]line Смена: 374 ФФД: 1.0 [14:21:21]line ЗНМ: 0300000031 [14:21:21]line РНМ: 0000000000092737 [14:21:21]line Версия ККМ: 001 [14:21:21]line Платежная система: АКБ Кыргызстан [14:21:21]line ФМ: 0000000000875074 [14:21:22]line ФД: 63996 [14:21:22]line ФПД: 118773789609246 [14:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142123&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63996&fm=118773789609246&tin=02508201610067®Number=0000000000092737&sum=15500 [14:21:22]line 0 [14:21:22]OFD Sender: Processing packet 63996 [packets to send 14, broken 13] [14:21:22]ProducePacketName [14:21:22]name=ofd_packets/00063996 [14:21:22]OFD Sender: To server: pG, [14:21:22]CommunicateWithHost lk.salyk.kg:30040 [14:21:22]ConnectInit lk.salyk.kg [14:21:22]written 0, free lines is 4095 [14:21:22]Connected sock=10 [14: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 53 01 00 00 F3 4B 4B 01 73 85 5A 03 01 00 03 00 3F 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 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E3 22 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FC F9 00 00 35 04 06 00 6C 06 2D 89 CD 1E 45 99 EE 07 EA 4B 85 DC [14:21: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 4E CF 47 00 AA 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FC F9 00 00 F4 03 04 00 B1 CE 5E 66 B6 04 01 00 00 E2 3F 35 39 B6 CA B5 04 [14:21:22]CommunicateWithHost err = 0 [14:21:22]CheckOFDResponse [14:21:22]1017 (14) - 77093643461234 [14:21:22]1041 (16) - 0000000000875074 [14:21:22]1040 (4) - 63996 [14:21:22]1012 (4) - 04.06.2024 08:22 [14:21:22]1206 (1) - 0 [14:21:22]OFD Sender: Remove packet 63996 [14:21:22]ProducePacketName [14:21:22]name=ofd_packets/00063996 [14:21:22]NVStorageDeleteData [14:21:22]Write to MH i2c: 01 00 00 45 1B 60 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: 01 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: 01 07 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: 01 07 00 45 1B 00 00 00 00 00 C6 0C 39 [14:21:22]RasterBufferAndPrint [14:21:22]line [14:21:22]line [14:21:22]line [14:21:22]line [14:21:22]line [14:21:22]written 0, free lines is 3277 [14:21:22]MH_Cut [14:21:22]Write to MH i2c: D1 01 00 4C 1B 01 39 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: D1 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: D1 01 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: D1 01 00 4C 1B 00 38 [14:21:22]Write to MH i2c: 01 00 00 4D 1B 68 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]OFD Sender: No OFD packet to send [14:21:23]*** Cut start [14:21:23]*** Partial cut [14:21:23]*** CUTSNS_PIN = 1 [14:21:23]*** CUTSNS_PIN = 0 [14:21:23]*** Brake cut motor [14:21:23]Read from MH i2c: 01 [14:21:23]MH_I2C_Read... [14:21:23]*** Stop cut motor [14:21:23]*** Cut end [14:21:23]Read from MH i2c: 01 07 00 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: 01 07 00 4D 1B 00 00 00 00 00 FF 0F 7D [14:21:23]process_action close_receipt done [14:21:23]requested_data is exist [14:21:23]produce_requested_data [14:21:23]requested_item fm.sn is exist - process it [14:21:23]wFMCommunicate request_size=4 [14:21:23]MH_SAM_APDU [14:21:23]CAPDU: 80 11 00 00 [14:21:23]Write to MH i2c: E2 08 00 4E 1B 80 11 00 00 00 00 00 00 E3 [14:21:23]Write i2c OK [14:21:23]MH_I2C_Read... [14:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:24]Read from MH i2c: E2 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 17 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 17 00 4E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 35 [14:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:21:24]wFMCommunicate OK [14:21:24]requested_item fd.num is exist - process it [14:21:24]SAM_PROTO_GetFieldsCounters [14:21:24]wFMCommunicate request_size=4 [14:21:24]MH_SAM_APDU [14:21:24]CAPDU: 80 13 00 00 [14:21:24]Write to MH i2c: E2 08 00 4F 1B 80 13 00 00 00 00 00 00 E6 [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:24]Read from MH i2c: E2 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 62 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 62 00 4F 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 FC F9 00 00 0E 04 04 00 76 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 68 [14:21: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 FC F9 00 00 0E 04 04 00 76 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 [14:21:24]wFMCommunicate OK [14:21:24]SAM_PROTO_GetFieldsCounters done [14:21:24]requested_item shift.num is exist - process it [14:21:24]requested_item shift.opened is exist - process it [14:21:24]req_shift_opened [14:21:24]FM_GetShiftState [14:21:24]SAM_PROTO_GetShiftState [14:21:24]wFMCommunicate request_size=4 [14:21:24]MH_SAM_APDU [14:21:24]CAPDU: 80 13 01 00 [14:21:24]Write to MH i2c: E2 08 00 50 1B 80 13 01 00 00 00 00 00 E8 [14:21:24]Write i2c OK [14:21:24]MH_I2C_Read... [14:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:24]Read from MH i2c: E2 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 0E 00 [14:21:24]MH_I2C_Read... [14:21:24]Read from MH i2c: E2 0E 00 50 1B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 88 [14:21:24]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:21:24]wFMCommunicate OK [14:21:24]SAM_PROTO_GetShiftState done [14:21:24]FM_GetShiftState done [14:21:24]req_shift_opened done [14:21:24]requested_item shift.open_date is exist - process it [14:21:24]req_shift_open_date [14:21:24]req_shift_open_date done [14:21:24]produce_requested_data done [14:21:24]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63996,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [14:21:24]process_action_free close_receipt [14:21:24]json_value_free [14:21:24]json_value_free done [14:21:24]process_json_proto returns [14:21:24]Send response to host [14:21:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63996,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [14:21:24]free response buf [14:21:24]execute_script done [14:21:24]execute_script returns [14:21:24]free content buf [14:21:24]Sock 9.Close socket [14:21:24]Sock 9.Thread stoped [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:24]accept exits with 7 [14:23:24]New connection [14:23:24]New thread 3066912100 created [14:23:24]Thread 3067055460 joined [14:23:24]Waiting for new connection... [14:23:24] Sock 7.Parse request [14:23:24]Sock 7.Check first char [14:23:24]Sock 7.First char is OK [14:23:24]request: POST /json_proto HTTP/1.0 [14:23:24]Method: POST [14:23:24]URL: /json_proto [14:23:24]Method is POST - this is cgi request [14:23:24]url: /json_proto [14:23:24]query_string will be loaded in cgi processing [14:23:24]execute_cgi json_proto POST (null) [14:23:24]execute_cgi path=json_proto method=POST [14:23:24]POST find Content-Length [14:23:24]Host: 172.17.60.69:8080 [14:23:24]Content-Length: 947 [14:23:24]Content-Type: application/json [14:23:24] [14:23:24]POST finish read [14:23:24]Found Content-Length = 947 [14:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73554", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:24]execute_script... [14:23: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)73554", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 502.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:24]POST & json_proto [14:23:24]process_json_proto [14:23:24]json parsed OK: [14:23:24]protocol is kg_v1.0 [14:23:24]action value=close_receipt [14:23:24]process_action close_receipt [14:23:24]cmd_close_receipt [14:23:24]MH_GetDate [14:23:24]Write to MH i2c: F0 00 00 51 1B 5B [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: F0 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: F0 09 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: F0 09 00 51 1B 00 60 23 5F 66 6A 96 4A 66 5C [14:23:24]GetLastDocTimeStamp 1717510883 [14:23:24]current date 1717511008 [14:23:24]FM_GetShiftState [14:23:24]SAM_PROTO_GetShiftState [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 13 01 00 [14:23:24]Write to MH i2c: E2 08 00 52 1B 80 13 01 00 00 00 00 00 EA [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 0E 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 0E 00 52 1B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 8A [14:23:24]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:23:24]wFMCommunicate OK [14:23:24]SAM_PROTO_GetShiftState done [14:23:24]FM_GetShiftState done [14:23:24]opened in 1717459574 [14:23:24]opened+sec_in_day 1717545974 [14:23:24]quantity*price = 50200 [14:23:24]sum+1 = 50201 [14:23:24]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 СНО: Общий режим Чек 82 04.06.2024 14:23 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63997 ФПД: 249482836429157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142328&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63997&fm=249482836429157&tin=02508201610067®Number=0000000000092737&sum=50200 0 [14:23:26]StoreToDocumentArchive [14:23:26]shift 374 fd 63997 [14:23:26]save to /storage/0374/doc_00063997 [14:23:26]save last doc name /storage/0374/doc_00063997 to /storage/kkm_last_doc_name [14:23:26]save OK [14:23:26]Clear old archive folders... [14:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=307 [14:23:26]tlvbuf is B6EDA1D0 [14:23:26]SAM_PROTO_ClearQueue [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 09 00 00 [14:23:26]Write to MH i2c: E2 08 00 5F 1B 80 09 00 00 00 00 00 00 EC [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 5F 1B 00 90 00 EE [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]SAM_PROTO_ClearQueue done [14:23:26]KKMCreateOFDPacket [14:23:26]OFDProtocolAddRootSTLVToBuf [14:23:26]FM_MakeSignedData [14:23:26]FM_MakeSignedData [14:23:26]SAM_PROTO_SignData [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 0D 01 02 [14:23:26]Write to MH i2c: E2 08 00 60 1B 80 0D 01 02 00 00 00 00 F4 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 60 1B 00 90 00 EF [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]wFMCommunicate request_size=255 [14:23:26]MH_SAM_APDU [14:23:26]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 52 00 00 00 F4 03 04 00 60 23 5F 66 0E 04 04 00 76 01 00 00 B9 04 [14:23:26]Write to MH i2c: E2 02 01 61 1B 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 52 00 00 00 F4 03 04 00 60 23 5F 66 0E 04 04 00 76 01 00 00 B9 04 00 00 85 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 61 1B 00 90 00 F0 [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]wFMCommunicate request_size=66 [14:23:26]MH_SAM_APDU [14:23:26]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 FD F9 00 00 35 04 06 00 E2 E7 3F D7 C9 65 [14:23:26]Write to MH i2c: E2 45 00 62 1B 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 FD F9 00 00 35 04 06 00 E2 E7 3F D7 C9 65 00 00 4E [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 62 1B 00 90 00 F1 [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 0D 03 02 [14:23:26]Write to MH i2c: E2 08 00 63 1B 80 0D 03 02 00 00 00 00 F9 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 0B 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 0B 00 63 1B 00 CB 75 F3 07 4A 6F 4A EF 90 00 26 [14:23:26]RAPDU: CB 75 F3 07 4A 6F 4A EF 90 00 [14:23:26]wFMCommunicate OK [14:23:26]SAM_PROTO_SignData done [14:23:26]FM_MakeSignedData done [14:23:26]CreateOFDProtocolMessage [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 11 00 00 [14:23:26]Write to MH i2c: E2 08 00 64 1B 80 11 00 00 00 00 00 00 F9 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 17 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 17 00 64 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4B [14:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:23:26]wFMCommunicate OK [14:23:26]CreateOFDProtocolMessage done [14:23:26]OFDSenderStorePacket 63997 [14:23:26]StoreOFDPacket docnum=63997 [14:23:26]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 81 5C 3F 01 35 12 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 52 00 00 00 F4 03 04 00 60 23 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FD F9 00 00 35 04 06 00 E2 E7 3F D7 C9 65 CB 75 F3 07 4A 6F 4A EF [14:23:26]CheckFolder [14:23:26]dirname=/storage/ofd_packets [14:23:26]CheckFolder done [14:23:26]ProducePacketName [14:23:26]name=ofd_packets/00063997 [14:23:26]NVStorageSaveData ofd_packets/00063997 [14:23:26]File name is /storage/ofd_packets/00063997 [14:23:26]Write 357 bytes [14:23:26]NVStorageSaveData done [14:23:26]OFDSenderStorePacket done [14:23:26]KKMCreateOFDPacket done [14:23:26]NVStorageSaveData kkm_last_timestamp [14:23:26]File name is /storage/kkm_last_timestamp [14:23:26]Write 4 bytes [14:23:26]NVStorageSaveData done [14:23:26]ExternCall_PrintAddStr [14:23:26]wPrintStart [14:23:26]Write to MH i2c: 01 00 00 65 1B 80 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: 01 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: 01 07 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: 01 07 00 65 1B 00 00 00 00 00 FF 0F 95 [14:23:26]RasterBufferAndPrint [14:23:26]line Счет N : (3)73554 [14:23:26]line ИНН: 02508201610067 [14:23:26]line Контрольно-Кассовый Чек [14:23:26]line ПРОДАЖА [14:23:26]line Товар: 2000028410025 [14:23:26]line Очки солнцезащитные в ассортименте [14:23:26]line 1.000 * 502.00 [14:23:26]line = 502.00 [14:23:26]line НДС 12% НСП 1% [14:23:26]line > о реализуемом товаре [14:23:26]line ИТОГО: 502.00 [14:23:26]line НСП 1% : 4.44 [14:23:26]line НДС 12% : 53.31 [14:23:26]line Наличными: 0.00 [14:23:26]line Безнал.: 502.00 [14:23:26]line Место: АЗС № 117 "Партнер Нефть" [14:23:26]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:23:26]line СНО: Общий режим [14:23:26]line Чек 82 04.06.2024 14:23 [14:23:26]line Смена: 374 ФФД: 1.0 [14:23:26]line ЗНМ: 0300000031 [14:23:26]line РНМ: 0000000000092737 [14:23:26]line Версия ККМ: 001 [14:23:26]line Платежная система: АКБ Кыргызстан [14:23:26]line ФМ: 0000000000875074 [14:23:26]line ФД: 63997 [14:23:26]line ФПД: 249482836429157 [14:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T142328&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63997&fm=249482836429157&tin=02508201610067®Number=0000000000092737&sum=50200 [14:23:26]line 0 [14:23:26]OFD Sender: Processing packet 63997 [packets to send 14, broken 13] [14:23:26]ProducePacketName [14:23:26]name=ofd_packets/00063997 [14:23:26]OFD Sender: To server: pG, [14:23:26]CommunicateWithHost lk.salyk.kg:30040 [14:23:26]ConnectInit lk.salyk.kg [14:23:26]written 0, free lines is 4095 [14:23:27]Connected sock=11 [14:23: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 47 01 00 00 81 5C 3F 01 35 12 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 52 00 00 00 F4 03 04 00 60 23 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FD F9 00 00 35 04 06 00 E2 E7 3F D7 C9 65 CB 75 F3 07 4A 6F 4A EF [14:23: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 5C D8 47 00 05 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FD F9 00 00 F4 03 04 00 2E CF 5E 66 B6 04 01 00 00 A7 9A EF C7 8F 5E 01 A6 [14:23:27]CommunicateWithHost err = 0 [14:23:27]CheckOFDResponse [14:23:27]1017 (14) - 77093643461234 [14:23:27]1041 (16) - 0000000000875074 [14:23:27]1040 (4) - 63997 [14:23:27]1012 (4) - 04.06.2024 08:24 [14:23:27]1206 (1) - 0 [14:23:27]OFD Sender: Remove packet 63997 [14:23:27]ProducePacketName [14:23:27]name=ofd_packets/00063997 [14:23:27]NVStorageDeleteData [14:23:27]Write to MH i2c: 01 00 00 90 1B AB [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 07 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 07 00 90 1B 00 00 00 00 00 C5 0C 83 [14:23:27]RasterBufferAndPrint [14:23:27]line [14:23:27]line [14:23:27]line [14:23:27]line [14:23:27]line [14:23:27]written 0, free lines is 3276 [14:23:27]MH_Cut [14:23:27]Write to MH i2c: D1 01 00 97 1B 01 84 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: D1 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: D1 01 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: D1 01 00 97 1B 00 83 [14:23:27]Write to MH i2c: 01 00 00 98 1B B3 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]OFD Sender: No OFD packet to send [14:23:28]*** Cut start [14:23:28]*** Partial cut [14:23:28]*** CUTSNS_PIN = 1 [14:23:28]*** CUTSNS_PIN = 0 [14:23:28]*** Brake cut motor [14:23:28]Read from MH i2c: 01 [14:23:28]MH_I2C_Read... [14:23:28]*** Stop cut motor [14:23:28]*** Cut end [14:23:28]Read from MH i2c: 01 07 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: 01 07 00 98 1B 00 00 00 00 00 FF 0F C8 [14:23:28]process_action close_receipt done [14:23:28]requested_data is exist [14:23:28]produce_requested_data [14:23:28]requested_item fm.sn is exist - process it [14:23:28]wFMCommunicate request_size=4 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 11 00 00 [14:23:28]Write to MH i2c: E2 08 00 99 1B 80 11 00 00 00 00 00 00 2E [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 17 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 17 00 99 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 80 [14:23: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:23:28]wFMCommunicate OK [14:23:28]requested_item fd.num is exist - process it [14:23:28]SAM_PROTO_GetFieldsCounters [14:23:28]wFMCommunicate request_size=4 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 13 00 00 [14:23:28]Write to MH i2c: E2 08 00 9A 1B 80 13 00 00 00 00 00 00 31 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 62 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 62 00 9A 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 FD F9 00 00 0E 04 04 00 76 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 B7 [14:23: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 FD F9 00 00 0E 04 04 00 76 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 [14:23:29]wFMCommunicate OK [14:23:29]SAM_PROTO_GetFieldsCounters done [14:23:29]requested_item shift.num is exist - process it [14:23:29]requested_item shift.opened is exist - process it [14:23:29]req_shift_opened [14:23:29]FM_GetShiftState [14:23:29]SAM_PROTO_GetShiftState [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 13 01 00 [14:23:29]Write to MH i2c: E2 08 00 9B 1B 80 13 01 00 00 00 00 00 33 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 0E 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 0E 00 9B 1B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D3 [14:23:29]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:23:29]wFMCommunicate OK [14:23:29]SAM_PROTO_GetShiftState done [14:23:29]FM_GetShiftState done [14:23:29]req_shift_opened done [14:23:29]requested_item shift.open_date is exist - process it [14:23:29]req_shift_open_date [14:23:29]req_shift_open_date done [14:23:29]produce_requested_data done [14:23:29]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63997,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [14:23:29]process_action_free close_receipt [14:23:29]json_value_free [14:23:29]json_value_free done [14:23:29]process_json_proto returns [14:23:29]Send response to host [14:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63997,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [14:23:29]free response buf [14:23:29]execute_script done [14:23:29]execute_script returns [14:23:29]free content buf [14:23:29]Sock 7.Close socket [14:23:29]Sock 7.Thread stoped [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:01]accept exits with 9 [14:39:01]New connection [14:39:01]New thread 3067055460 created [14:39:01]Thread 3066912100 joined [14:39:01]Waiting for new connection... [14:39:01] Sock 9.Parse request [14:39:01]Sock 9.Check first char [14:39:01]Sock 9.First char is OK [14:39:01]request: POST /json_proto HTTP/1.0 [14:39:01]Method: POST [14:39:01]URL: /json_proto [14:39:01]Method is POST - this is cgi request [14:39:01]url: /json_proto [14:39:01]query_string will be loaded in cgi processing [14:39:01]execute_cgi json_proto POST (null) [14:39:01]execute_cgi path=json_proto method=POST [14:39:01]POST find Content-Length [14:39:01]Host: 172.17.60.69:8080 [14:39:01]Content-Length: 835 [14:39:01]Content-Type: application/json [14:39:01] [14:39:01]POST finish read [14:39:01]Found Content-Length = 835 [14:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73555", "tax_sys" : 0, "items" : [ { "code": "4607969940024", "name": "Bizon \u044D\u043D\u0435\u0440. \u043D\u0430\u043F\u0438\u0442\u043E\u043A Black", "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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:01]execute_script... [14:39:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73555", "tax_sys" : 0, "items" : [ { "code": "4607969940024", "name": "Bizon \u044D\u043D\u0435\u0440. \u043D\u0430\u043F\u0438\u0442\u043E\u043A Black", "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" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:01]POST & json_proto [14:39:01]process_json_proto [14:39:01]json parsed OK: [14:39:01]protocol is kg_v1.0 [14:39:01]action value=close_receipt [14:39:01]process_action close_receipt [14:39:01]cmd_close_receipt [14:39:01]MH_GetDate [14:39:01]Write to MH i2c: F0 00 00 9C 1B A6 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: F0 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: F0 09 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: F0 09 00 9C 1B 00 09 27 5F 66 6A 96 4A 66 54 [14:39:01]GetLastDocTimeStamp 1717511008 [14:39:01]current date 1717511945 [14:39:01]FM_GetShiftState [14:39:01]SAM_PROTO_GetShiftState [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 13 01 00 [14:39:01]Write to MH i2c: E2 08 00 9D 1B 80 13 01 00 00 00 00 00 35 [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:02]Read from MH i2c: E2 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: E2 0E 00 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: E2 0E 00 9D 1B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D5 [14:39:02]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:39:02]wFMCommunicate OK [14:39:02]SAM_PROTO_GetShiftState done [14:39:02]FM_GetShiftState done [14:39:02]opened in 1717459574 [14:39:02]opened+sec_in_day 1717545974 [14:39:02]quantity*price = 8500 [14:39:02]sum+1 = 8501 [14:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 83 04.06.2024 14:39 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 63998 ФПД: 90442578043110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143905&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63998&fm=90442578043110&tin=02508201610067®Number=0000000000092737&sum=8500 0 [14:39:03]StoreToDocumentArchive [14:39:03]shift 374 fd 63998 [14:39:03]save to /storage/0374/doc_00063998 [14:39:03]save last doc name /storage/0374/doc_00063998 to /storage/kkm_last_doc_name [14:39:03]save OK [14:39:03]Clear old archive folders... [14:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:39:03]tlvbuf is 012EFD60 [14:39:03]SAM_PROTO_ClearQueue [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 09 00 00 [14:39:03]Write to MH i2c: E2 08 00 AA 1B 80 09 00 00 00 00 00 00 37 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 AA 1B 00 90 00 39 [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]SAM_PROTO_ClearQueue done [14:39:03]KKMCreateOFDPacket [14:39:03]OFDProtocolAddRootSTLVToBuf [14:39:03]FM_MakeSignedData [14:39:03]FM_MakeSignedData [14:39:03]SAM_PROTO_SignData [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 01 02 [14:39:03]Write to MH i2c: E2 08 00 AB 1B 80 0D 01 02 00 00 00 00 3F [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 AB 1B 00 90 00 3A [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]wFMCommunicate request_size=255 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 39 36 39 39 34 30 30 32 34 06 04 24 00 42 69 7A 6F 6E 20 D1 8D D0 BD D0 B5 D1 80 2E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 42 6C 61 63 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 09 27 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 [14:39:03]Write to MH i2c: E2 02 01 AC 1B 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 39 36 39 39 34 30 30 32 34 06 04 24 00 42 69 7A 6F 6E 20 D1 8D D0 BD D0 B5 D1 80 2E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 42 6C 61 63 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 09 27 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 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 55 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 AC 1B 00 90 00 3B [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]wFMCommunicate request_size=37 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FE F9 00 00 35 04 06 00 52 41 CD BC A0 E6 [14:39:03]Write to MH i2c: E2 28 00 AD 1B 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FE F9 00 00 35 04 06 00 52 41 CD BC A0 E6 00 00 31 [14:39:03]OFD Sender: No OFD packet to send [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 AD 1B 00 90 00 3C [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 03 02 [14:39:03]Write to MH i2c: E2 08 00 AE 1B 80 0D 03 02 00 00 00 00 44 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 0B 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 0B 00 AE 1B 00 16 C2 EF 1B 5F 29 86 0C 90 00 41 [14:39:03]RAPDU: 16 C2 EF 1B 5F 29 86 0C 90 00 [14:39:03]wFMCommunicate OK [14:39:03]SAM_PROTO_SignData done [14:39:03]FM_MakeSignedData done [14:39:03]CreateOFDProtocolMessage [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 11 00 00 [14:39:03]Write to MH i2c: E2 08 00 AF 1B 80 11 00 00 00 00 00 00 44 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 17 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 17 00 AF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 96 [14:39: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:39:03]wFMCommunicate OK [14:39:03]CreateOFDProtocolMessage done [14:39:03]OFDSenderStorePacket 63998 [14:39:03]StoreOFDPacket docnum=63998 [14:39:03]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 CD AA 22 01 91 21 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 39 36 39 39 34 30 30 32 34 06 04 24 00 42 69 7A 6F 6E 20 D1 8D D0 BD D0 B5 D1 80 2E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 42 6C 61 63 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 09 27 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FE F9 00 00 35 04 06 00 52 41 CD BC A0 E6 16 C2 EF 1B 5F 29 86 0C [14:39:03]CheckFolder [14:39:03]dirname=/storage/ofd_packets [14:39:03]CheckFolder done [14:39:03]ProducePacketName [14:39:03]name=ofd_packets/00063998 [14:39:03]NVStorageSaveData ofd_packets/00063998 [14:39:03]File name is /storage/ofd_packets/00063998 [14:39:03]Write 328 bytes [14:39:03]NVStorageSaveData done [14:39:03]OFDSenderStorePacket done [14:39:03]KKMCreateOFDPacket done [14:39:03]NVStorageSaveData kkm_last_timestamp [14:39:03]File name is /storage/kkm_last_timestamp [14:39:03]Write 4 bytes [14:39:03]NVStorageSaveData done [14:39:03]ExternCall_PrintAddStr [14:39:03]wPrintStart [14:39:03]Write to MH i2c: 01 00 00 B0 1B CB [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 07 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 07 00 B0 1B 00 00 00 00 00 FF 0F E0 [14:39:03]RasterBufferAndPrint [14:39:03]line Счет N : (3)73555 [14:39:03]line ИНН: 02508201610067 [14:39:03]line Контрольно-Кассовый Чек [14:39:03]line ПРОДАЖА [14:39:03]line Товар: 4607969940024 [14:39:03]line Bizon энер. напиток Black [14:39:03]line 1.000 * 85.00 [14:39:03]line = 85.00 [14:39:03]line НДС 12% НСП 1% [14:39:03]line > о реализуемом товаре [14:39:03]line ИТОГО: 85.00 [14:39:03]line НСП 1% : 0.75 [14:39:03]line НДС 12% : 9.03 [14:39:03]line Наличными: 0.00 [14:39:03]line Безнал.: 85.00 [14:39:03]line Место: АЗС № 117 "Партнер Нефть" [14:39:03]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:39:03]line СНО: Общий режим [14:39:03]line Чек 83 04.06.2024 14:39 [14:39:03]line Смена: 374 ФФД: 1.0 [14:39:03]line ЗНМ: 0300000031 [14:39:03]line РНМ: 0000000000092737 [14:39:03]line Версия ККМ: 001 [14:39:03]line Платежная система: АКБ Кыргызстан [14:39:03]line ФМ: 0000000000875074 [14:39:03]line ФД: 63998 [14:39:03]line ФПД: 90442578043110 [14:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T143905&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63998&fm=90442578043110&tin=02508201610067®Number=0000000000092737&sum=8500 [14:39:04]line 0 [14:39:04]OFD Sender: Processing packet 63998 [packets to send 14, broken 13] [14:39:04]ProducePacketName [14:39:04]name=ofd_packets/00063998 [14:39:04]OFD Sender: To server: pG, [14:39:04]CommunicateWithHost lk.salyk.kg:30040 [14:39:04]ConnectInit lk.salyk.kg [14:39:04]written 0, free lines is 4095 [14:39:04]Connected sock=11 [14:39: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 2A 01 00 00 CD AA 22 01 91 21 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 39 36 39 39 34 30 30 32 34 06 04 24 00 42 69 7A 6F 6E 20 D1 8D D0 BD D0 B5 D1 80 2E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 42 6C 61 63 6B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 09 27 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FE F9 00 00 35 04 06 00 52 41 CD BC A0 E6 16 C2 EF 1B 5F 29 86 0C [14:39: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 75 02 47 00 F0 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FE F9 00 00 F4 03 04 00 D7 D2 5E 66 B6 04 01 00 00 AF B0 1D 9F A4 A5 B5 5E [14:39:04]CommunicateWithHost err = 0 [14:39:04]CheckOFDResponse [14:39:04]1017 (14) - 77093643461234 [14:39:04]1041 (16) - 0000000000875074 [14:39:04]1040 (4) - 63998 [14:39:04]1012 (4) - 04.06.2024 08:39 [14:39:04]1206 (1) - 0 [14:39:04]OFD Sender: Remove packet 63998 [14:39:04]ProducePacketName [14:39:04]name=ofd_packets/00063998 [14:39:04]NVStorageDeleteData [14:39:04]Write to MH i2c: 01 00 00 DA 1B F5 [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: 01 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: 01 07 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: 01 07 00 DA 1B 00 00 00 00 00 FC 0C 04 [14:39:04]RasterBufferAndPrint [14:39:04]line [14:39:04]line [14:39:04]line [14:39:04]line [14:39:04]line [14:39:04]written 0, free lines is 3328 [14:39:04]MH_Cut [14:39:04]Write to MH i2c: D1 01 00 E1 1B 01 CE [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: D1 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: D1 01 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: D1 01 00 E1 1B 00 CD [14:39:04]Write to MH i2c: 01 00 00 E2 1B FD [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]OFD Sender: No OFD packet to send [14:39:05]*** Cut start [14:39:05]*** Partial cut [14:39:05]*** CUTSNS_PIN = 1 [14:39:05]*** CUTSNS_PIN = 0 [14:39:05]*** Brake cut motor [14:39:05]Read from MH i2c: 01 [14:39:05]MH_I2C_Read... [14:39:05]*** Stop cut motor [14:39:05]*** Cut end [14:39:05]Read from MH i2c: 01 07 00 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: 01 07 00 E2 1B 00 00 00 00 00 FF 0F 12 [14:39:05]process_action close_receipt done [14:39:05]requested_data is exist [14:39:05]produce_requested_data [14:39:05]requested_item fm.sn is exist - process it [14:39:05]wFMCommunicate request_size=4 [14:39:05]MH_SAM_APDU [14:39:05]CAPDU: 80 11 00 00 [14:39:05]Write to MH i2c: E2 08 00 E3 1B 80 11 00 00 00 00 00 00 78 [14:39:05]Write i2c OK [14:39:05]MH_I2C_Read... [14:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:05]Read from MH i2c: E2 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 17 00 [14:39:05]MH_I2C_Read... [14:39:05]Read from MH i2c: E2 17 00 E3 1B 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:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:39:05]wFMCommunicate OK [14:39:05]requested_item fd.num is exist - process it [14:39:05]SAM_PROTO_GetFieldsCounters [14:39:05]wFMCommunicate request_size=4 [14:39:05]MH_SAM_APDU [14:39:05]CAPDU: 80 13 00 00 [14:39:05]Write to MH i2c: E2 08 00 E4 1B 80 13 00 00 00 00 00 00 7B [14:39:05]Write i2c OK [14:39:05]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 62 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 62 00 E4 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 FE F9 00 00 0E 04 04 00 76 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 05 [14:39: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 FE F9 00 00 0E 04 04 00 76 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 [14:39:06]wFMCommunicate OK [14:39:06]SAM_PROTO_GetFieldsCounters done [14:39:06]requested_item shift.num is exist - process it [14:39:06]requested_item shift.opened is exist - process it [14:39:06]req_shift_opened [14:39:06]FM_GetShiftState [14:39:06]SAM_PROTO_GetShiftState [14:39:06]wFMCommunicate request_size=4 [14:39:06]MH_SAM_APDU [14:39:06]CAPDU: 80 13 01 00 [14:39:06]Write to MH i2c: E2 08 00 E5 1B 80 13 01 00 00 00 00 00 7D [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 0E 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 0E 00 E5 1B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1D [14:39:06]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:39:06]wFMCommunicate OK [14:39:06]SAM_PROTO_GetShiftState done [14:39:06]FM_GetShiftState done [14:39:06]req_shift_opened done [14:39:06]requested_item shift.open_date is exist - process it [14:39:06]req_shift_open_date [14:39:06]req_shift_open_date done [14:39:06]produce_requested_data done [14:39:06]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63998,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [14:39:06]process_action_free close_receipt [14:39:06]json_value_free [14:39:06]json_value_free done [14:39:06]process_json_proto returns [14:39:06]Send response to host [14:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63998,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [14:39:06]free response buf [14:39:06]execute_script done [14:39:06]execute_script returns [14:39:06]free content buf [14:39:06]Sock 9.Close socket [14:39:06]Sock 9.Thread stoped [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:50]accept exits with 7 [14:42:50]New connection [14:42:50]New thread 3066912100 created [14:42:50]Thread 3067055460 joined [14:42:50]Waiting for new connection... [14:42:50] Sock 7.Parse request [14:42:50]Sock 7.Check first char [14:42:50]Sock 7.First char is OK [14:42:50]request: POST /json_proto HTTP/1.0 [14:42:50]Method: POST [14:42:50]URL: /json_proto [14:42:50]Method is POST - this is cgi request [14:42:50]url: /json_proto [14:42:50]query_string will be loaded in cgi processing [14:42:50]execute_cgi json_proto POST (null) [14:42:50]execute_cgi path=json_proto method=POST [14:42:50]POST find Content-Length [14:42:50]Host: 172.17.60.69:8080 [14:42:50]Content-Length: 996 [14:42:50]Content-Type: application/json [14:42:50] [14:42:50]POST finish read [14:42:50]Found Content-Length = 996 [14:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73556", "tax_sys" : 0, "items" : [ { "code": "4000417211002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT \u043C\u043E\u043B \u043A\u0430\u0440\u0430\u043C.\u043C\u0443\u0441\u0441 100\u0433", "price" : 209.00, "quantity" : 1.000, "sum" : 209.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:50]execute_script... [14:42:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73556", "tax_sys" : 0, "items" : [ { "code": "4000417211002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT \u043C\u043E\u043B \u043A\u0430\u0440\u0430\u043C.\u043C\u0443\u0441\u0441 100\u0433", "price" : 209.00, "quantity" : 1.000, "sum" : 209.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:50]POST & json_proto [14:42:50]process_json_proto [14:42:50]json parsed OK: [14:42:50]protocol is kg_v1.0 [14:42:50]action value=close_receipt [14:42:50]process_action close_receipt [14:42:50]cmd_close_receipt [14:42:50]MH_GetDate [14:42:50]Write to MH i2c: F0 00 00 E6 1B F0 [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: F0 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: F0 09 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: F0 09 00 E6 1B 00 ED 27 5F 66 6A 96 4A 66 82 [14:42:50]GetLastDocTimeStamp 1717511945 [14:42:50]current date 1717512173 [14:42:50]FM_GetShiftState [14:42:50]SAM_PROTO_GetShiftState [14:42:50]wFMCommunicate request_size=4 [14:42:50]MH_SAM_APDU [14:42:50]CAPDU: 80 13 01 00 [14:42:50]Write to MH i2c: E2 08 00 E7 1B 80 13 01 00 00 00 00 00 7F [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:50]Read from MH i2c: E2 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 0E 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 0E 00 E7 1B 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1F [14:42:50]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:42:50]wFMCommunicate OK [14:42:50]SAM_PROTO_GetShiftState done [14:42:50]FM_GetShiftState done [14:42:50]opened in 1717459574 [14:42:50]opened+sec_in_day 1717545974 [14:42:50]quantity*price = 20900 [14:42:50]sum+1 = 20901 [14:42:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521148 Напиток MAXI чай зел лимон 0.45л 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 279.00 НСП 1% : 2.47 НДС 12% : 29.62 Наличными: 279.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 84 04.06.2024 14:42 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 63999 ФПД: 150746780125076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T144253&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63999&fm=150746780125076&tin=02508201610067®Number=0000000000092737&sum=27900 0 [14:42:51]StoreToDocumentArchive [14:42:51]shift 374 fd 63999 [14:42:51]save to /storage/0374/doc_00063999 [14:42:51]save last doc name /storage/0374/doc_00063999 to /storage/kkm_last_doc_name [14:42:51]save OK [14:42:51]Clear old archive folders... [14:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=425 [14:42:51]tlvbuf is 012D87C0 [14:42:51]SAM_PROTO_ClearQueue [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 09 00 00 [14:42:51]Write to MH i2c: E2 08 00 F4 1B 80 09 00 00 00 00 00 00 81 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 F4 1B 00 90 00 83 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]SAM_PROTO_ClearQueue done [14:42:51]KKMCreateOFDPacket [14:42:51]OFDProtocolAddRootSTLVToBuf [14:42:51]FM_MakeSignedData [14:42:51]FM_MakeSignedData [14:42:51]SAM_PROTO_SignData [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 0D 01 02 [14:42:51]Write to MH i2c: E2 08 00 F5 1B 80 0D 01 02 00 00 00 00 89 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 F5 1B 00 90 00 84 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]wFMCommunicate request_size=255 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 0D 02 02 FA 03 00 A9 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 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 [14:42:51]Write to MH i2c: E2 02 01 F6 1B 80 0D 02 02 FA 00 03 00 A9 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 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 00 00 06 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 F6 1B 00 90 00 85 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]wFMCommunicate request_size=184 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 0D 02 02 B3 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0B 00 00 00 00 07 04 06 00 FC 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 27 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FF F9 00 00 35 04 06 00 89 1A 78 47 C7 94 [14:42:51]Write to MH i2c: E2 BB 00 F7 1B 80 0D 02 02 B3 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0B 00 00 00 00 07 04 06 00 FC 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 27 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FF F9 00 00 35 04 06 00 89 1A 78 47 C7 94 00 00 B5 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 03 00 F7 1B 00 90 00 86 [14:42:51]RAPDU: 90 00 [14:42:51]wFMCommunicate OK [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 0D 03 02 [14:42:51]Write to MH i2c: E2 08 00 F8 1B 80 0D 03 02 00 00 00 00 8E [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 0B 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 0B 00 F8 1B 00 D8 4E 5F 5D C2 77 5A F2 90 00 F6 [14:42:51]RAPDU: D8 4E 5F 5D C2 77 5A F2 90 00 [14:42:51]wFMCommunicate OK [14:42:51]SAM_PROTO_SignData done [14:42:51]FM_MakeSignedData done [14:42:51]CreateOFDProtocolMessage [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 11 00 00 [14:42:51]Write to MH i2c: E2 08 00 F9 1B 80 11 00 00 00 00 00 00 8E [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 17 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 17 00 F9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E0 [14:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:42:51]wFMCommunicate OK [14:42:51]CreateOFDProtocolMessage done [14:42:51]OFDSenderStorePacket 63999 [14:42:51]StoreOFDPacket docnum=63999 [14:42: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 BD 01 00 00 33 D2 B5 01 42 55 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 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 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0B 00 00 00 00 07 04 06 00 FC 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 27 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FF F9 00 00 35 04 06 00 89 1A 78 47 C7 94 D8 4E 5F 5D C2 77 5A F2 [14:42:51]CheckFolder [14:42:51]dirname=/storage/ofd_packets [14:42:51]CheckFolder done [14:42:51]ProducePacketName [14:42:51]name=ofd_packets/00063999 [14:42:51]NVStorageSaveData ofd_packets/00063999 [14:42:51]File name is /storage/ofd_packets/00063999 [14:42:51]Write 475 bytes [14:42:51]NVStorageSaveData done [14:42:51]OFDSenderStorePacket done [14:42:51]KKMCreateOFDPacket done [14:42:51]NVStorageSaveData kkm_last_timestamp [14:42:51]File name is /storage/kkm_last_timestamp [14:42:51]Write 4 bytes [14:42:51]NVStorageSaveData done [14:42:51]ExternCall_PrintAddStr [14:42:51]wPrintStart [14:42:51]Write to MH i2c: 01 00 00 FA 1B 15 [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 07 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 07 00 FA 1B 00 00 00 00 00 FF 0F 2A [14:42:52]RasterBufferAndPrint [14:42:52]line Счет N : (3)73556 [14:42:52]line ИНН: 02508201610067 [14:42:52]line Контрольно-Кассовый Чек [14:42:52]line ПРОДАЖА [14:42:52]line Товар: 4000417211002 [14:42:52]line Шоколад Ritter SPORT мол карам.мусс 100г [14:42:52]line 1.000 * 209.00 [14:42:52]line = 209.00 [14:42:52]line НДС 12% НСП 1% [14:42:52]line > о реализуемом товаре [14:42:52]line Товар: 4870202521148 [14:42:52]line Напиток MAXI чай зел лимон 0.45л [14:42:52]line 1.000 * 70.00 [14:42:52]line = 70.00 [14:42:52]line НДС 12% НСП 1% [14:42:52]line > о реализуемом товаре [14:42:52]line ИТОГО: 279.00 [14:42:52]line НСП 1% : 2.47 [14:42:52]line НДС 12% : 29.62 [14:42:52]line Наличными: 279.00 [14:42:52]line Безнал.: 0.00 [14:42:52]line Место: АЗС № 117 "Партнер Нефть" [14:42:52]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:42:52]line СНО: Общий режим [14:42:52]line Чек 84 04.06.2024 14:42 [14:42:52]line Смена: 374 ФФД: 1.0 [14:42:52]line ЗНМ: 0300000031 [14:42:52]line РНМ: 0000000000092737 [14:42:52]line Версия ККМ: 001 [14:42:52]line ФМ: 0000000000875074 [14:42:52]line ФД: 63999 [14:42:52]line ФПД: 150746780125076 [14:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T144253&type=1&operation_type=1&fn_number=0000000000875074&fd_number=63999&fm=150746780125076&tin=02508201610067®Number=0000000000092737&sum=27900 [14:42:52]line 0 [14:42:52]OFD Sender: Processing packet 63999 [packets to send 14, broken 13] [14:42:52]ProducePacketName [14:42:52]name=ofd_packets/00063999 [14:42:52]OFD Sender: To server: pG, [14:42:52]CommunicateWithHost lk.salyk.kg:30040 [14:42:52]ConnectInit lk.salyk.kg [14:42:52]written 0, free lines is 4095 [14:42:52]Connected sock=10 [14:42:52]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 BD 01 00 00 33 D2 B5 01 42 55 5A 03 01 00 03 00 A9 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 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 FC 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 0B 00 00 00 00 07 04 06 00 FC 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 ED 27 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 FF F9 00 00 35 04 06 00 89 1A 78 47 C7 94 D8 4E 5F 5D C2 77 5A F2 [14:42:52]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 CD 47 00 31 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 FF F9 00 00 F4 03 04 00 BB D3 5E 66 B6 04 01 00 00 6C 27 66 EF B7 6E A4 BA [14:42:52]CommunicateWithHost err = 0 [14:42:52]CheckOFDResponse [14:42:52]1017 (14) - 77093643461234 [14:42:52]1041 (16) - 0000000000875074 [14:42:52]1040 (4) - 63999 [14:42:52]1012 (4) - 04.06.2024 08:43 [14:42:52]1206 (1) - 0 [14:42:52]OFD Sender: Remove packet 63999 [14:42:52]ProducePacketName [14:42:52]name=ofd_packets/00063999 [14:42:52]NVStorageDeleteData [14:42:52]Write to MH i2c: 01 00 00 2A 1C 46 [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: 01 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: 01 07 00 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: 01 07 00 2A 1C 00 00 00 00 00 6F 0C C8 [14:42:52]RasterBufferAndPrint [14:42:52]line [14:42:52]line [14:42:52]line [14:42:52]line [14:42:52]line [14:42:52]written 0, free lines is 3192 [14:42:52]MH_Cut [14:42:52]Write to MH i2c: D1 01 00 31 1C 01 1F [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: D1 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: D1 01 00 [14:42:52]MH_I2C_Read... [14:42:52]Read from MH i2c: D1 01 00 31 1C 00 1E [14:42:52]Write to MH i2c: 01 00 00 32 1C 4E [14:42:52]Write i2c OK [14:42:52]MH_I2C_Read... [14:42:53]OFD Sender: No OFD packet to send [14:42:53]*** Cut start [14:42:53]*** Partial cut [14:42:53]*** CUTSNS_PIN = 1 [14:42:53]*** CUTSNS_PIN = 0 [14:42:53]*** Brake cut motor [14:42:54]Read from MH i2c: 01 [14:42:54]MH_I2C_Read... [14:42:54]*** Stop cut motor [14:42:54]*** Cut end [14:42:54]Read from MH i2c: 01 07 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: 01 07 00 32 1C 00 00 00 00 00 FF 0F 63 [14:42:54]process_action close_receipt done [14:42:54]requested_data is exist [14:42:54]produce_requested_data [14:42:54]requested_item fm.sn is exist - process it [14:42:54]wFMCommunicate request_size=4 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 11 00 00 [14:42:54]Write to MH i2c: E2 08 00 33 1C 80 11 00 00 00 00 00 00 C9 [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 17 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 17 00 33 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1B [14:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:42:54]wFMCommunicate OK [14:42:54]requested_item fd.num is exist - process it [14:42:54]SAM_PROTO_GetFieldsCounters [14:42:54]wFMCommunicate request_size=4 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 13 00 00 [14:42:54]Write to MH i2c: E2 08 00 34 1C 80 13 00 00 00 00 00 00 CC [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 62 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 62 00 34 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 FF F9 00 00 0E 04 04 00 76 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 5A [14:42:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 FF F9 00 00 0E 04 04 00 76 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 [14:42:54]wFMCommunicate OK [14:42:54]SAM_PROTO_GetFieldsCounters done [14:42:54]requested_item shift.num is exist - process it [14:42:54]requested_item shift.opened is exist - process it [14:42:54]req_shift_opened [14:42:54]FM_GetShiftState [14:42:54]SAM_PROTO_GetShiftState [14:42:54]wFMCommunicate request_size=4 [14:42:54]MH_SAM_APDU [14:42:54]CAPDU: 80 13 01 00 [14:42:54]Write to MH i2c: E2 08 00 35 1C 80 13 01 00 00 00 00 00 CE [14:42:54]Write i2c OK [14:42:54]MH_I2C_Read... [14:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:54]Read from MH i2c: E2 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 0E 00 [14:42:54]MH_I2C_Read... [14:42:54]Read from MH i2c: E2 0E 00 35 1C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6E [14:42:54]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:42:54]wFMCommunicate OK [14:42:54]SAM_PROTO_GetShiftState done [14:42:54]FM_GetShiftState done [14:42:54]req_shift_opened done [14:42:54]requested_item shift.open_date is exist - process it [14:42:54]req_shift_open_date [14:42:54]req_shift_open_date done [14:42:54]produce_requested_data done [14:42:54]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":63999,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [14:42:54]process_action_free close_receipt [14:42:54]json_value_free [14:42:54]json_value_free done [14:42:54]process_json_proto returns [14:42:54]Send response to host [14:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":63999,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [14:42:54]free response buf [14:42:54]execute_script done [14:42:54]execute_script returns [14:42:54]free content buf [14:42:54]Sock 7.Close socket [14:42:54]Sock 7.Thread stoped [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:49]accept exits with 9 [14:50:49]New connection [14:50:49]New thread 3067055460 created [14:50:49]Thread 3066912100 joined [14:50:49]Waiting for new connection... [14:50:49] Sock 9.Parse request [14:50:49]Sock 9.Check first char [14:50:49]Sock 9.First char is OK [14:50:49]request: POST /json_proto HTTP/1.0 [14:50:49]Method: POST [14:50:49]URL: /json_proto [14:50:49]Method is POST - this is cgi request [14:50:49]url: /json_proto [14:50:49]query_string will be loaded in cgi processing [14:50:49]execute_cgi json_proto POST (null) [14:50:49]execute_cgi path=json_proto method=POST [14:50:49]POST find Content-Length [14:50:49]Host: 172.17.60.69:8080 [14:50:49]Content-Length: 833 [14:50:49]Content-Type: application/json [14:50:49] [14:50:49]POST finish read [14:50:49]Found Content-Length = 833 [14:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73557", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:49]execute_script... [14: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)73557", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:49]POST & json_proto [14:50:49]process_json_proto [14:50:49]json parsed OK: [14:50:49]protocol is kg_v1.0 [14:50:49]action value=close_receipt [14:50:49]process_action close_receipt [14:50:49]cmd_close_receipt [14:50:49]MH_GetDate [14:50:49]Write to MH i2c: F0 00 00 36 1C 41 [14:50:49]Write i2c OK [14:50:49]MH_I2C_Read... [14:50:49]Read from MH i2c: F0 [14:50:49]MH_I2C_Read... [14:50:49]Read from MH i2c: F0 09 00 [14:50:49]MH_I2C_Read... [14:50:49]Read from MH i2c: F0 09 00 36 1C 00 CD 29 5F 66 6A 96 4A 66 B5 [14:50:49]GetLastDocTimeStamp 1717512173 [14:50:49]current date 1717512653 [14:50:49]FM_GetShiftState [14:50:49]SAM_PROTO_GetShiftState [14:50:49]wFMCommunicate request_size=4 [14:50:49]MH_SAM_APDU [14:50:49]CAPDU: 80 13 01 00 [14:50:49]Write to MH i2c: E2 08 00 37 1C 80 13 01 00 00 00 00 00 D0 [14:50:49]Write i2c OK [14:50:49]MH_I2C_Read... [14:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:49]Read from MH i2c: E2 [14:50:49]MH_I2C_Read... [14:50:49]Read from MH i2c: E2 0E 00 [14:50:49]MH_I2C_Read... [14:50:49]Read from MH i2c: E2 0E 00 37 1C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 70 [14:50:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:50:49]wFMCommunicate OK [14:50:49]SAM_PROTO_GetShiftState done [14:50:49]FM_GetShiftState done [14:50:49]opened in 1717459574 [14:50:49]opened+sec_in_day 1717545974 [14:50:49]quantity*price = 8500 [14:50:49]sum+1 = 8501 [14:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 85 04.06.2024 14:50 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 64000 ФПД: 267681195604844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145053&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64000&fm=267681195604844&tin=02508201610067®Number=0000000000092737&sum=8500 0 [14:50:51]StoreToDocumentArchive [14:50:51]shift 374 fd 64000 [14:50:51]save to /storage/0374/doc_00064000 [14:50:51]save last doc name /storage/0374/doc_00064000 to /storage/kkm_last_doc_name [14:50:51]save OK [14:50:51]Clear old archive folders... [14:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=288 [14:50:51]tlvbuf is 012AB550 [14:50:51]SAM_PROTO_ClearQueue [14:50:51]wFMCommunicate request_size=4 [14:50:51]MH_SAM_APDU [14:50:51]CAPDU: 80 09 00 00 [14:50:51]Write to MH i2c: E2 08 00 44 1C 80 09 00 00 00 00 00 00 D2 [14:50:51]Write i2c OK [14:50:51]MH_I2C_Read... [14:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:51]Read from MH i2c: E2 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 44 1C 00 90 00 D4 [14:50:51]RAPDU: 90 00 [14:50:51]wFMCommunicate OK [14:50:51]SAM_PROTO_ClearQueue done [14:50:51]KKMCreateOFDPacket [14:50:51]OFDProtocolAddRootSTLVToBuf [14:50:51]FM_MakeSignedData [14:50:51]FM_MakeSignedData [14:50:51]SAM_PROTO_SignData [14:50:51]wFMCommunicate request_size=4 [14:50:51]MH_SAM_APDU [14:50:51]CAPDU: 80 0D 01 02 [14:50:51]Write to MH i2c: E2 08 00 45 1C 80 0D 01 02 00 00 00 00 DA [14:50:51]Write i2c OK [14:50:51]MH_I2C_Read... [14:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:51]Read from MH i2c: E2 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 45 1C 00 90 00 D5 [14:50:51]RAPDU: 90 00 [14:50:51]wFMCommunicate OK [14:50:51]wFMCommunicate request_size=255 [14:50:51]MH_SAM_APDU [14:50:51]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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 CD 29 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [14:50:51]Write to MH i2c: E2 02 01 46 1C 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 CD 29 5F 66 0E 04 04 00 76 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 29 [14:50:51]Write i2c OK [14:50:51]MH_I2C_Read... [14:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:51]Read from MH i2c: E2 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 46 1C 00 90 00 D6 [14:50:51]RAPDU: 90 00 [14:50:51]wFMCommunicate OK [14:50:51]wFMCommunicate request_size=47 [14:50:51]MH_SAM_APDU [14:50:51]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 00 FA 00 00 35 04 06 00 F3 74 62 93 BB 6C [14:50:51]Write to MH i2c: E2 32 00 47 1C 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 00 FA 00 00 35 04 06 00 F3 74 62 93 BB 6C 00 00 1C [14:50:51]Write i2c OK [14:50:51]MH_I2C_Read... [14:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:51]Read from MH i2c: E2 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 03 00 47 1C 00 90 00 D7 [14:50:51]RAPDU: 90 00 [14:50:51]wFMCommunicate OK [14:50:51]wFMCommunicate request_size=4 [14:50:51]MH_SAM_APDU [14:50:51]CAPDU: 80 0D 03 02 [14:50:51]Write to MH i2c: E2 08 00 48 1C 80 0D 03 02 00 00 00 00 DF [14:50:51]Write i2c OK [14:50:51]MH_I2C_Read... [14:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:51]Read from MH i2c: E2 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 0B 00 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 0B 00 48 1C 00 74 C5 7D EA DA AB D6 13 90 00 EE [14:50:51]RAPDU: 74 C5 7D EA DA AB D6 13 90 00 [14:50:51]wFMCommunicate OK [14:50:51]SAM_PROTO_SignData done [14:50:51]FM_MakeSignedData done [14:50:51]CreateOFDProtocolMessage [14:50:51]wFMCommunicate request_size=4 [14:50:51]MH_SAM_APDU [14:50:51]CAPDU: 80 11 00 00 [14:50:51]Write to MH i2c: E2 08 00 49 1C 80 11 00 00 00 00 00 00 DF [14:50:51]Write i2c OK [14:50:51]MH_I2C_Read... [14:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:51]Read from MH i2c: E2 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 17 00 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: E2 17 00 49 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 31 [14: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 [14:50:51]wFMCommunicate OK [14:50:51]CreateOFDProtocolMessage done [14:50:51]OFDSenderStorePacket 64000 [14:50:51]StoreOFDPacket docnum=64000 [14: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 34 01 00 00 FA 8A 2C 01 D2 78 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 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 CD 29 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 FA 00 00 35 04 06 00 F3 74 62 93 BB 6C 74 C5 7D EA DA AB D6 13 [14:50:51]CheckFolder [14:50:51]dirname=/storage/ofd_packets [14:50:51]CheckFolder done [14:50:51]ProducePacketName [14:50:51]name=ofd_packets/00064000 [14:50:51]NVStorageSaveData ofd_packets/00064000 [14:50:51]File name is /storage/ofd_packets/00064000 [14:50:51]Write 338 bytes [14:50:51]NVStorageSaveData done [14:50:51]OFDSenderStorePacket done [14:50:51]KKMCreateOFDPacket done [14:50:51]NVStorageSaveData kkm_last_timestamp [14:50:51]File name is /storage/kkm_last_timestamp [14:50:51]Write 4 bytes [14:50:51]NVStorageSaveData done [14:50:51]OFD Sender: Processing packet 64000 [packets to send 14, broken 13] [14:50:51]ProducePacketName [14:50:51]name=ofd_packets/00064000 [14:50:51]OFD Sender: To server: pG, [14:50:51]CommunicateWithHost lk.salyk.kg:30040 [14:50:51]ConnectInit lk.salyk.kg [14:50:51]ExternCall_PrintAddStr [14:50:51]wPrintStart [14:50:51]Write to MH i2c: 01 00 00 4A 1C 66 [14:50:51]Write i2c OK [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: 01 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: 01 07 00 [14:50:51]MH_I2C_Read... [14:50:51]Read from MH i2c: 01 07 00 4A 1C 00 00 00 00 00 FF 0F 7B [14:50:51]RasterBufferAndPrint [14:50:51]line Счет N : (3)73557 [14:50:51]line ИНН: 02508201610067 [14:50:51]line Контрольно-Кассовый Чек [14:50:51]line ПРОДАЖА [14:50:51]line Товар: 4700000481453 [14:50:51]line Напиток энерг Nitro Max 0,45 ж/б [14:50:51]line 1.000 * 85.00 [14:50:51]line = 85.00 [14:50:51]line НДС 12% НСП 1% [14:50:51]line > о реализуемом товаре [14:50:51]line ИТОГО: 85.00 [14:50:51]line НСП 1% : 0.75 [14:50:51]line НДС 12% : 9.03 [14:50:51]line Наличными: 0.00 [14:50:51]line Безнал.: 85.00 [14:50:51]line Место: АЗС № 117 "Партнер Нефть" [14:50:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:50:51]line СНО: Общий режим [14:50:51]line Чек 85 04.06.2024 14:50 [14:50:51]line Смена: 374 ФФД: 1.0 [14:50:51]line ЗНМ: 0300000031 [14:50:51]line РНМ: 0000000000092737 [14:50:51]line Версия ККМ: 001 [14:50:51]line Платежная система: Бакай Банк [14:50:51]line ФМ: 0000000000875074 [14:50:51]line ФД: 64000 [14:50:51]line ФПД: 267681195604844 [14:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145053&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64000&fm=267681195604844&tin=02508201610067®Number=0000000000092737&sum=8500 [14:50:51]line 0 [14:50:51]Connected sock=11 [14: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 34 01 00 00 FA 8A 2C 01 D2 78 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 written 0, free lines is 4095 [14:50:52]BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 CD 29 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 FA 00 00 35 04 06 00 F3 74 62 93 BB 6C 74 C5 7D EA DA AB D6 13 [14:50:52]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 38 57 47 00 9D 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 00 FA 00 00 F4 03 04 00 9B D5 5E 66 B6 04 01 00 00 E5 9C F7 CB 3A 96 FD 94 [14:50:52]CommunicateWithHost err = 0 [14:50:52]CheckOFDResponse [14:50:52]1017 (14) - 77093643461234 [14:50:52]1041 (16) - 0000000000875074 [14:50:52]1040 (4) - 64000 [14:50:52]1012 (4) - 04.06.2024 08:51 [14:50:52]1206 (1) - 0 [14:50:52]OFD Sender: Remove packet 64000 [14:50:52]ProducePacketName [14:50:52]name=ofd_packets/00064000 [14:50:52]NVStorageDeleteData [14:50:52]Write to MH i2c: 01 00 00 75 1C 91 [14:50:52]Write i2c OK [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: 01 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: 01 07 00 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: 01 07 00 75 1C 00 00 00 00 00 B8 0C 5C [14:50:52]RasterBufferAndPrint [14:50:52]line [14:50:52]line [14:50:52]line [14:50:52]line [14:50:52]line [14:50:52]written 0, free lines is 3264 [14:50:52]MH_Cut [14:50:52]Write to MH i2c: D1 01 00 7C 1C 01 6A [14:50:52]Write i2c OK [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: D1 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: D1 01 00 [14:50:52]MH_I2C_Read... [14:50:52]Read from MH i2c: D1 01 00 7C 1C 00 69 [14:50:52]Write to MH i2c: 01 00 00 7D 1C 99 [14:50:52]Write i2c OK [14:50:52]MH_I2C_Read... [14:50:52]OFD Sender: No OFD packet to send [14:50:53]*** Cut start [14:50:53]*** Partial cut [14:50:53]*** CUTSNS_PIN = 1 [14:50:53]*** CUTSNS_PIN = 0 [14:50:53]*** Brake cut motor [14:50:53]Read from MH i2c: 01 [14:50:53]MH_I2C_Read... [14:50:53]*** Stop cut motor [14:50:53]*** Cut end [14:50:53]Read from MH i2c: 01 07 00 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: 01 07 00 7D 1C 00 00 00 00 00 FF 0F AE [14:50:53]process_action close_receipt done [14:50:53]requested_data is exist [14:50:53]produce_requested_data [14:50:53]requested_item fm.sn is exist - process it [14:50:53]wFMCommunicate request_size=4 [14:50:53]MH_SAM_APDU [14:50:53]CAPDU: 80 11 00 00 [14:50:53]Write to MH i2c: E2 08 00 7E 1C 80 11 00 00 00 00 00 00 14 [14:50:53]Write i2c OK [14:50:53]MH_I2C_Read... [14:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:53]Read from MH i2c: E2 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: E2 17 00 [14:50:53]MH_I2C_Read... [14:50:53]Read from MH i2c: E2 17 00 7E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 66 [14: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 [14:50:53]wFMCommunicate OK [14:50:53]requested_item fd.num is exist - process it [14:50:53]SAM_PROTO_GetFieldsCounters [14:50:53]wFMCommunicate request_size=4 [14:50:53]MH_SAM_APDU [14:50:53]CAPDU: 80 13 00 00 [14:50:53]Write to MH i2c: E2 08 00 7F 1C 80 13 00 00 00 00 00 00 17 [14:50:53]Write i2c OK [14:50:53]MH_I2C_Read... [14:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:54]Read from MH i2c: E2 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 62 00 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 62 00 7F 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 00 FA 00 00 0E 04 04 00 76 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 AA [14:50: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 00 FA 00 00 0E 04 04 00 76 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:50:54]wFMCommunicate OK [14:50:54]SAM_PROTO_GetFieldsCounters done [14:50:54]requested_item shift.num is exist - process it [14:50:54]requested_item shift.opened is exist - process it [14:50:54]req_shift_opened [14:50:54]FM_GetShiftState [14:50:54]SAM_PROTO_GetShiftState [14:50:54]wFMCommunicate request_size=4 [14:50:54]MH_SAM_APDU [14:50:54]CAPDU: 80 13 01 00 [14:50:54]Write to MH i2c: E2 08 00 80 1C 80 13 01 00 00 00 00 00 19 [14:50:54]Write i2c OK [14:50:54]MH_I2C_Read... [14:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:54]Read from MH i2c: E2 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 0E 00 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: E2 0E 00 80 1C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B9 [14:50:54]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:50:54]wFMCommunicate OK [14:50:54]SAM_PROTO_GetShiftState done [14:50:54]FM_GetShiftState done [14:50:54]req_shift_opened done [14:50:54]requested_item shift.open_date is exist - process it [14:50:54]req_shift_open_date [14:50:54]req_shift_open_date done [14:50:54]produce_requested_data done [14:50:54]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64000,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [14:50:54]process_action_free close_receipt [14:50:54]json_value_free [14:50:54]json_value_free done [14:50:54]process_json_proto returns [14:50:54]Send response to host [14:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64000,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [14:50:54]free response buf [14:50:54]execute_script done [14:50:54]execute_script returns [14:50:54]free content buf [14:50:54]Sock 9.Close socket [14:50:54]Sock 9.Thread stoped [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [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:30]accept exits with 10 [14:53:30]New connection [14:53:30]New thread 3066912100 created [14:53:30]Thread 3067055460 joined [14:53:30]Waiting for new connection... [14:53:30] Sock 10.Parse request [14:53:30]Sock 10.Check first char [14:53:30]Sock 10.First char is OK [14:53:30]request: POST /json_proto HTTP/1.0 [14:53:30]Method: POST [14:53:30]URL: /json_proto [14:53:30]Method is POST - this is cgi request [14:53:30]url: /json_proto [14:53:30]query_string will be loaded in cgi processing [14:53:30]execute_cgi json_proto POST (null) [14:53:30]execute_cgi path=json_proto method=POST [14:53:30]POST find Content-Length [14:53:30]Host: 172.17.60.69:8080 [14:53:30]Content-Length: 657 [14:53:30]Content-Type: application/json [14:53:30] [14:53:30]POST finish read [14:53:30]Found Content-Length = 657 [14:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73558", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:30]execute_script... [14:53: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)73558", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:30]POST & json_proto [14:53:30]process_json_proto [14:53:30]json parsed OK: [14:53:30]protocol is kg_v1.0 [14:53:30]action value=close_receipt [14:53:30]process_action close_receipt [14:53:30]cmd_close_receipt [14:53:30]MH_GetDate [14:53:30]Write to MH i2c: F0 00 00 81 1C 8C [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: F0 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: F0 09 00 [14:53:30]MH_I2C_Read... [14:53:30]Read from MH i2c: F0 09 00 81 1C 00 6E 2A 5F 66 6A 96 4A 66 A2 [14:53:30]GetLastDocTimeStamp 1717512653 [14:53:30]current date 1717512814 [14:53:30]FM_GetShiftState [14:53:30]SAM_PROTO_GetShiftState [14:53:30]wFMCommunicate request_size=4 [14:53:30]MH_SAM_APDU [14:53:30]CAPDU: 80 13 01 00 [14:53:30]Write to MH i2c: E2 08 00 82 1C 80 13 01 00 00 00 00 00 1B [14:53:30]Write i2c OK [14:53:30]MH_I2C_Read... [14:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:31]Read from MH i2c: E2 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: E2 0E 00 [14:53:31]MH_I2C_Read... [14:53:31]Read from MH i2c: E2 0E 00 82 1C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 BB [14:53:31]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:53:31]wFMCommunicate OK [14:53:31]SAM_PROTO_GetShiftState done [14:53:31]FM_GetShiftState done [14:53:31]opened in 1717459574 [14:53:31]opened+sec_in_day 1717545974 [14:53:31]quantity*price = 14100 [14:53:31]sum+1 = 14101 [14:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 86 04.06.2024 14:53 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64001 ФПД: 237305266107995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145334&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64001&fm=237305266107995&tin=02508201610067®Number=0000000000092737&sum=14100 0 [14:53:32]StoreToDocumentArchive [14:53:32]shift 374 fd 64001 [14:53:32]save to /storage/0374/doc_00064001 [14:53:32]save last doc name /storage/0374/doc_00064001 to /storage/kkm_last_doc_name [14:53:32]save OK [14:53:32]Clear old archive folders... [14:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=294 [14:53:32]tlvbuf is B6EDA0E0 [14:53:32]SAM_PROTO_ClearQueue [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 09 00 00 [14:53:32]Write to MH i2c: E2 08 00 8F 1C 80 09 00 00 00 00 00 00 1D [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:32]Read from MH i2c: E2 03 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 03 00 8F 1C 00 90 00 1F [14:53:32]RAPDU: 90 00 [14:53:32]wFMCommunicate OK [14:53:32]SAM_PROTO_ClearQueue done [14:53:32]KKMCreateOFDPacket [14:53:32]OFDProtocolAddRootSTLVToBuf [14:53:32]FM_MakeSignedData [14:53:32]FM_MakeSignedData [14:53:32]SAM_PROTO_SignData [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 0D 01 02 [14:53:32]Write to MH i2c: E2 08 00 90 1C 80 0D 01 02 00 00 00 00 25 [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 03 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 03 00 90 1C 00 90 00 20 [14:53:32]RAPDU: 90 00 [14:53:32]wFMCommunicate OK [14:53:32]wFMCommunicate request_size=255 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 6E 2A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [14:53:32]Write to MH i2c: E2 02 01 91 1C 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 6E 2A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 F8 [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 03 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 03 00 91 1C 00 90 00 21 [14:53:32]RAPDU: 90 00 [14:53:32]wFMCommunicate OK [14:53:32]wFMCommunicate request_size=53 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 01 FA 00 00 35 04 06 00 D7 D3 F0 16 F6 5B [14:53:32]Write to MH i2c: E2 38 00 92 1C 80 0D 02 02 30 00 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 01 FA 00 00 35 04 06 00 D7 D3 F0 16 F6 5B 00 00 1B [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 03 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 03 00 92 1C 00 90 00 22 [14:53:32]RAPDU: 90 00 [14:53:32]wFMCommunicate OK [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 0D 03 02 [14:53:32]Write to MH i2c: E2 08 00 93 1C 80 0D 03 02 00 00 00 00 2A [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0B 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0B 00 93 1C 00 82 E6 02 87 AD FC 62 D4 90 00 FB [14:53:32]RAPDU: 82 E6 02 87 AD FC 62 D4 90 00 [14:53:32]wFMCommunicate OK [14:53:32]SAM_PROTO_SignData done [14:53:32]FM_MakeSignedData done [14:53:32]CreateOFDProtocolMessage [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 11 00 00 [14:53:32]Write to MH i2c: E2 08 00 94 1C 80 11 00 00 00 00 00 00 2A [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 17 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 17 00 94 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7C [14:53:32]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:32]wFMCommunicate OK [14:53:32]CreateOFDProtocolMessage done [14:53:32]OFDSenderStorePacket 64001 [14:53:32]StoreOFDPacket docnum=64001 [14:53: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 3A 01 00 00 D3 16 32 01 90 BB 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 6E 2A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 01 FA 00 00 35 04 06 00 D7 D3 F0 16 F6 5B 82 E6 02 87 AD FC 62 D4 [14:53:32]CheckFolder [14:53:32]dirname=/storage/ofd_packets [14:53:32]CheckFolder done [14:53:32]ProducePacketName [14:53:32]name=ofd_packets/00064001 [14:53:32]NVStorageSaveData ofd_packets/00064001 [14:53:32]File name is /storage/ofd_packets/00064001 [14:53:32]Write 344 bytes [14:53:32]NVStorageSaveData done [14:53:32]OFDSenderStorePacket done [14:53:32]KKMCreateOFDPacket done [14:53:32]NVStorageSaveData kkm_last_timestamp [14:53:32]File name is /storage/kkm_last_timestamp [14:53:32]Write 4 bytes [14:53:32]NVStorageSaveData done [14:53:32]ExternCall_PrintAddStr [14:53:32]wPrintStart [14:53:32]Write to MH i2c: 01 00 00 95 1C B1 [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: 01 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: 01 07 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: 01 07 00 95 1C 00 00 00 00 00 FF 0F C6 [14:53:32]RasterBufferAndPrint [14:53:32]line Счет N : (3)73558 [14:53:32]line ИНН: 02508201610067 [14:53:32]line Контрольно-Кассовый Чек [14:53:32]line ПРОДАЖА [14:53:32]line Товар: 4870216764968 [14:53:32]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [14:53:32]line 1.000 * 141.00 [14:53:32]line = 141.00 [14:53:32]line НДС 12% НСП 1% [14:53:32]line > о реализуемом товаре [14:53:32]line ИТОГО: 141.00 [14:53:32]line НСП 1% : 1.25 [14:53:32]line НДС 12% : 14.97 [14:53:32]line Наличными: 141.00 [14:53:32]line Безнал.: 0.00 [14:53:32]line Место: АЗС № 117 "Партнер Нефть" [14:53:32]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:53:32]line СНО: Общий режим [14:53:32]line Чек 86 04.06.2024 14:53 [14:53:32]line Смена: 374 ФФД: 1.0 [14:53:32]line ЗНМ: 0300000031 [14:53:32]line РНМ: 0000000000092737 [14:53:32]line Версия ККМ: 001 [14:53:32]line ФМ: 0000000000875074 [14:53:32]line ФД: 64001 [14:53:32]line ФПД: 237305266107995 [14:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145334&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64001&fm=237305266107995&tin=02508201610067®Number=0000000000092737&sum=14100 [14:53:33]line 0 [14:53:33]OFD Sender: Processing packet 64001 [packets to send 14, broken 13] [14:53:33]ProducePacketName [14:53:33]name=ofd_packets/00064001 [14:53:33]OFD Sender: To server: pG, [14:53:33]CommunicateWithHost lk.salyk.kg:30040 [14:53:33]ConnectInit lk.salyk.kg [14:53:33]written 0, free lines is 4095 [14:53:33]Connected sock=9 [14:53: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 3A 01 00 00 D3 16 32 01 90 BB 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 6E 2A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 01 FA 00 00 35 04 06 00 D7 D3 F0 16 F6 5B 82 E6 02 87 AD FC 62 D4 [14:53: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 FF 5F 47 00 99 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 01 FA 00 00 F4 03 04 00 3C D6 5E 66 B6 04 01 00 00 E1 6D 40 04 E0 2A A6 C3 [14:53:33]CommunicateWithHost err = 0 [14:53:33]CheckOFDResponse [14:53:33]1017 (14) - 77093643461234 [14:53:33]1041 (16) - 0000000000875074 [14:53:33]1040 (4) - 64001 [14:53:33]1012 (4) - 04.06.2024 08:54 [14:53:33]1206 (1) - 0 [14:53:33]OFD Sender: Remove packet 64001 [14:53:33]ProducePacketName [14:53:33]name=ofd_packets/00064001 [14:53:33]NVStorageDeleteData [14:53:33]Write to MH i2c: 01 00 00 BE 1C DA [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: 01 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: 01 07 00 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: 01 07 00 BE 1C 00 00 00 00 00 FE 0C EB [14:53:33]RasterBufferAndPrint [14:53:33]line [14:53:33]line [14:53:33]line [14:53:33]line [14:53:33]line [14:53:33]written 0, free lines is 3336 [14:53:33]MH_Cut [14:53:33]Write to MH i2c: D1 01 00 C5 1C 01 B3 [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: D1 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: D1 01 00 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: D1 01 00 C5 1C 00 B2 [14:53:33]Write to MH i2c: 01 00 00 C6 1C E2 [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]OFD Sender: No OFD packet to send [14:53:34]*** Cut start [14:53:34]*** Partial cut [14:53:34]*** CUTSNS_PIN = 1 [14:53:34]*** CUTSNS_PIN = 0 [14:53:34]*** Brake cut motor [14:53:34]Read from MH i2c: 01 [14:53:34]MH_I2C_Read... [14:53:34]*** Stop cut motor [14:53:34]*** Cut end [14:53:34]Read from MH i2c: 01 07 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: 01 07 00 C6 1C 00 00 00 00 00 FF 0F F7 [14:53:34]process_action close_receipt done [14:53:34]requested_data is exist [14:53:34]produce_requested_data [14:53:34]requested_item fm.sn is exist - process it [14:53:34]wFMCommunicate request_size=4 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 11 00 00 [14:53:34]Write to MH i2c: E2 08 00 C7 1C 80 11 00 00 00 00 00 00 5D [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:34]Read from MH i2c: E2 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 17 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 17 00 C7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AF [14:53: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:53:34]wFMCommunicate OK [14:53:34]requested_item fd.num is exist - process it [14:53:34]SAM_PROTO_GetFieldsCounters [14:53:34]wFMCommunicate request_size=4 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 13 00 00 [14:53:34]Write to MH i2c: E2 08 00 C8 1C 80 13 00 00 00 00 00 00 60 [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 62 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 62 00 C8 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 01 FA 00 00 0E 04 04 00 76 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 F7 [14:53: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 01 FA 00 00 0E 04 04 00 76 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:53:35]wFMCommunicate OK [14:53:35]SAM_PROTO_GetFieldsCounters done [14:53:35]requested_item shift.num is exist - process it [14:53:35]requested_item shift.opened is exist - process it [14:53:35]req_shift_opened [14:53:35]FM_GetShiftState [14:53:35]SAM_PROTO_GetShiftState [14:53:35]wFMCommunicate request_size=4 [14:53:35]MH_SAM_APDU [14:53:35]CAPDU: 80 13 01 00 [14:53:35]Write to MH i2c: E2 08 00 C9 1C 80 13 01 00 00 00 00 00 62 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 0E 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 0E 00 C9 1C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 02 [14:53:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:53:35]wFMCommunicate OK [14:53:35]SAM_PROTO_GetShiftState done [14:53:35]FM_GetShiftState done [14:53:35]req_shift_opened done [14:53:35]requested_item shift.open_date is exist - process it [14:53:35]req_shift_open_date [14:53:35]req_shift_open_date done [14:53:35]produce_requested_data done [14:53:35]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64001,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [14:53:35]process_action_free close_receipt [14:53:35]json_value_free [14:53:35]json_value_free done [14:53:35]process_json_proto returns [14:53:35]Send response to host [14:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64001,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [14:53:35]free response buf [14:53:35]execute_script done [14:53:35]execute_script returns [14:53:35]free content buf [14:53:35]Sock 10.Close socket [14:53:35]Sock 10.Thread stoped [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:41]accept exits with 7 [14:55:41]New connection [14:55:41]New thread 3067055460 created [14:55:41]Thread 3066912100 joined [14:55:41]Waiting for new connection... [14:55:41] Sock 7.Parse request [14:55:41]Sock 7.Check first char [14:55:41]Sock 7.First char is OK [14:55:41]request: POST /json_proto HTTP/1.0 [14:55:41]Method: POST [14:55:41]URL: /json_proto [14:55:41]Method is POST - this is cgi request [14:55:41]url: /json_proto [14:55:41]query_string will be loaded in cgi processing [14:55:41]execute_cgi json_proto POST (null) [14:55:41]execute_cgi path=json_proto method=POST [14:55:41]POST find Content-Length [14:55:41]Host: 172.17.60.69:8080 [14:55:41]Content-Length: 1200 [14:55:41]Content-Type: application/json [14:55:41] [14:55:41]POST finish read [14:55:41]Found Content-Length = 1200 [14:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73559", "tax_sys" : 0, "items" : [ { "code": "4000417703002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT EN \u0446\u0435\u043B.\u043C\u0438\u043D\u0434 100\u0433", "price" : 255.00, "quantity" : 2.000, "sum" : 510.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" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1025.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:41]execute_script... [14:55: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)73559", "tax_sys" : 0, "items" : [ { "code": "4000417703002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT EN \u0446\u0435\u043B.\u043C\u0438\u043D\u0434 100\u0433", "price" : 255.00, "quantity" : 2.000, "sum" : 510.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" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 1025.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:41]POST & json_proto [14:55:41]process_json_proto [14:55:41]json parsed OK: [14:55:41]protocol is kg_v1.0 [14:55:41]action value=close_receipt [14:55:41]process_action close_receipt [14:55:41]cmd_close_receipt [14:55:41]MH_GetDate [14:55:41]Write to MH i2c: F0 00 00 CA 1C D5 [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: F0 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: F0 09 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: F0 09 00 CA 1C 00 F0 2A 5F 66 6A 96 4A 66 6D [14:55:41]GetLastDocTimeStamp 1717512814 [14:55:41]current date 1717512944 [14:55:41]FM_GetShiftState [14:55:41]SAM_PROTO_GetShiftState [14:55:41]wFMCommunicate request_size=4 [14:55:41]MH_SAM_APDU [14:55:41]CAPDU: 80 13 01 00 [14:55:41]Write to MH i2c: E2 08 00 CB 1C 80 13 01 00 00 00 00 00 64 [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:41]Read from MH i2c: E2 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 0E 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: E2 0E 00 CB 1C 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 04 [14:55:41]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:55:41]wFMCommunicate OK [14:55:41]SAM_PROTO_GetShiftState done [14:55:41]FM_GetShiftState done [14:55:41]opened in 1717459574 [14:55:41]opened+sec_in_day 1717545974 [14:55:41]quantity*price = 51000 [14:55:41]sum+1 = 51001 [14:55:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 125.00 = 250.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 9002490206550 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1025.00 НСП 1% : 9.06 НДС 12% : 108.85 Наличными: 1025.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 87 04.06.2024 14:55 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64002 ФПД: 85598601659401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145544&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64002&fm=85598601659401&tin=02508201610067®Number=0000000000092737&sum=102500 0 [14:55:42]StoreToDocumentArchive [14:55:42]shift 374 fd 64002 [14:55:42]save to /storage/0374/doc_00064002 [14:55:42]save last doc name /storage/0374/doc_00064002 to /storage/kkm_last_doc_name [14:55:42]save OK [14:55:42]Clear old archive folders... [14:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=520 [14:55:42]tlvbuf is 012AB7E0 [14:55:42]SAM_PROTO_ClearQueue [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 09 00 00 [14:55:42]Write to MH i2c: E2 08 00 D8 1C 80 09 00 00 00 00 00 00 66 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:42]Read from MH i2c: E2 03 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 D8 1C 00 90 00 68 [14:55:42]RAPDU: 90 00 [14:55:42]wFMCommunicate OK [14:55:42]SAM_PROTO_ClearQueue done [14:55:42]KKMCreateOFDPacket [14:55:42]OFDProtocolAddRootSTLVToBuf [14:55:42]FM_MakeSignedData [14:55:42]FM_MakeSignedData [14:55:42]SAM_PROTO_SignData [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 0D 01 02 [14:55:42]Write to MH i2c: E2 08 00 D9 1C 80 0D 01 02 00 00 00 00 6E [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:42]Read from MH i2c: E2 03 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 03 00 D9 1C 00 90 00 69 [14:55:42]RAPDU: 90 00 [14:55:42]wFMCommunicate OK [14:55:42]wFMCommunicate request_size=255 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 0D 02 02 FA 03 00 08 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 33 30 30 32 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D1 86 D0 B5 D0 BB 2E D0 BC D0 B8 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 6E 00 8A [14:55:42]Write to MH i2c: E2 02 01 DA 1C 80 0D 02 02 FA 00 03 00 08 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 33 30 30 32 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D1 86 D0 B5 D0 BB 2E D0 BC D0 B8 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 23 04 6E 00 8A 00 00 BD [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 DA 1C 00 90 00 6A [14:55:43]RAPDU: 90 00 [14:55:43]wFMCommunicate OK [14:55:43]wFMCommunicate request_size=255 [14:55:43]MH_SAM_APDU [14:55:43]CAPDU: 80 0D 02 02 FA 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 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 2A 00 00 00 00 07 04 06 00 64 90 01 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 F0 2A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [14:55:43]Write to MH i2c: E2 02 01 DB 1C 80 0D 02 02 FA 00 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 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 2A 00 00 00 00 07 04 06 00 64 90 01 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 F0 2A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 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 46 [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 DB 1C 00 90 00 6B [14:55:43]RAPDU: 90 00 [14:55:43]wFMCommunicate OK [14:55:43]wFMCommunicate request_size=29 [14:55:43]MH_SAM_APDU [14:55:43]CAPDU: 80 0D 02 02 18 38 37 35 30 37 34 10 04 04 00 02 FA 00 00 35 04 06 00 4D D9 FA 3E C4 09 [14:55:43]Write to MH i2c: E2 20 00 DC 1C 80 0D 02 02 18 00 38 37 35 30 37 34 10 04 04 00 02 FA 00 00 35 04 06 00 4D D9 FA 3E C4 09 00 00 5F [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 03 00 DC 1C 00 90 00 6C [14:55:43]RAPDU: 90 00 [14:55:43]wFMCommunicate OK [14:55:43]wFMCommunicate request_size=4 [14:55:43]MH_SAM_APDU [14:55:43]CAPDU: 80 0D 03 02 [14:55:43]Write to MH i2c: E2 08 00 DD 1C 80 0D 03 02 00 00 00 00 74 [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 0B 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 0B 00 DD 1C 00 49 FA 79 AD FA E8 9C D7 90 00 33 [14:55:43]RAPDU: 49 FA 79 AD FA E8 9C D7 90 00 [14:55:43]wFMCommunicate OK [14:55:43]SAM_PROTO_SignData done [14:55:43]FM_MakeSignedData done [14:55:43]CreateOFDProtocolMessage [14:55:43]wFMCommunicate request_size=4 [14:55:43]MH_SAM_APDU [14:55:43]CAPDU: 80 11 00 00 [14:55:43]Write to MH i2c: E2 08 00 DE 1C 80 11 00 00 00 00 00 00 74 [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 17 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 17 00 DE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C6 [14:55: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:55:43]wFMCommunicate OK [14:55:43]CreateOFDProtocolMessage done [14:55:43]OFDSenderStorePacket 64002 [14:55:43]StoreOFDPacket docnum=64002 [14:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 1C 02 00 00 6D 5A 14 02 90 4D 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 33 30 30 32 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D1 86 D0 B5 D0 BB 2E D0 BC D0 B8 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 2A 00 00 00 00 07 04 06 00 64 90 01 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 F0 2A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 02 FA 00 00 35 04 06 00 4D D9 FA 3E C4 09 49 FA 79 AD FA E8 9C D7 [14:55:43]CheckFolder [14:55:43]dirname=/storage/ofd_packets [14:55:43]CheckFolder done [14:55:43]ProducePacketName [14:55:43]name=ofd_packets/00064002 [14:55:43]NVStorageSaveData ofd_packets/00064002 [14:55:43]File name is /storage/ofd_packets/00064002 [14:55:43]Write 570 bytes [14:55:43]NVStorageSaveData done [14:55:43]OFDSenderStorePacket done [14:55:43]KKMCreateOFDPacket done [14:55:43]NVStorageSaveData kkm_last_timestamp [14:55:43]File name is /storage/kkm_last_timestamp [14:55:43]Write 4 bytes [14:55:43]NVStorageSaveData done [14:55:43]ExternCall_PrintAddStr [14:55:43]wPrintStart [14:55:43]Write to MH i2c: 01 00 00 DF 1C FB [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 07 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 07 00 DF 1C 00 00 00 00 00 FF 0F 10 [14:55:43]RasterBufferAndPrint [14:55:43]line Счет N : (3)73559 [14:55:43]line ИНН: 02508201610067 [14:55:43]line Контрольно-Кассовый Чек [14:55:43]line ПРОДАЖА [14:55:43]line Товар: 4000417703002 [14:55:43]line Шоколад Ritter SPORT EN цел.минд 100г [14:55:43]line 2.000 * 255.00 [14:55:43]line = 510.00 [14:55:43]line НДС 12% НСП 1% [14:55:43]line > о реализуемом товаре [14:55:43]line Товар: 2000036220012 [14:55:43]line Кофе Капучино XL(GABB TRADE) [14:55:43]line 2.000 * 125.00 [14:55:43]line = 250.00 [14:55:43]line НДС 12% НСП 1% [14:55:43]line > о реализуемом товаре [14:55:43]line Товар: 9002490206550 [14:55:43]line Энерг напиток Red Bull 0,355л [14:55:43]line 1.000 * 265.00 [14:55:43]line = 265.00 [14:55:43]line НДС 12% НСП 1% [14:55:43]line > о реализуемом товаре [14:55:43]line ИТОГО: 1025.00 [14:55:43]line НСП 1% : 9.06 [14:55:43]line НДС 12% : 108.85 [14:55:43]line Наличными: 1025.00 [14:55:43]line Безнал.: 0.00 [14:55:43]line Место: АЗС № 117 "Партнер Нефть" [14:55:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [14:55:43]line СНО: Общий режим [14:55:43]line Чек 87 04.06.2024 14:55 [14:55:43]line Смена: 374 ФФД: 1.0 [14:55:43]line ЗНМ: 0300000031 [14:55:43]line РНМ: 0000000000092737 [14:55:43]line Версия ККМ: 001 [14:55:43]line ФМ: 0000000000875074 [14:55:43]line ФД: 64002 [14:55:43]line ФПД: 85598601659401 [14:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T145544&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64002&fm=85598601659401&tin=02508201610067®Number=0000000000092737&sum=102500 [14:55:44]line 0 [14:55:44]OFD Sender: Processing packet 64002 [packets to send 14, broken 13] [14:55:44]ProducePacketName [14:55:44]name=ofd_packets/00064002 [14:55:44]OFD Sender: To server: pG, [14:55:44]CommunicateWithHost lk.salyk.kg:30040 [14:55:44]ConnectInit lk.salyk.kg [14:55:44]written 0, free lines is 4095 [14:55:44]Connected sock=10 [14:55:44]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 1C 02 00 00 6D 5A 14 02 90 4D 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 33 30 30 32 06 04 34 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D1 86 D0 B5 D0 BB 2E D0 BC D0 B8 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 2A 00 00 00 00 07 04 06 00 64 90 01 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 F0 2A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 02 FA 00 00 35 04 06 00 4D D9 FA 3E C4 09 49 FA 79 AD FA E8 9C D7 [14:55:44]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 72 12 47 00 FF 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 02 FA 00 00 F4 03 04 00 BF D6 5E 66 B6 04 01 00 00 E9 3D 74 35 85 CC BF A3 [14:55:44]CommunicateWithHost err = 0 [14:55:44]CheckOFDResponse [14:55:44]1017 (14) - 77093643461234 [14:55:44]1041 (16) - 0000000000875074 [14:55:44]1040 (4) - 64002 [14:55:44]1012 (4) - 04.06.2024 08:56 [14:55:44]1206 (1) - 0 [14:55:44]OFD Sender: Remove packet 64002 [14:55:44]ProducePacketName [14:55:44]name=ofd_packets/00064002 [14:55:44]NVStorageDeleteData [14:55:44]Write to MH i2c: 01 00 00 15 1D 32 [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: 01 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: 01 07 00 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: 01 07 00 15 1D 00 00 00 00 00 1F 0C 64 [14:55:44]RasterBufferAndPrint [14:55:44]line [14:55:44]line [14:55:44]line [14:55:44]line [14:55:44]line [14:55:44]written 0, free lines is 3112 [14:55:44]MH_Cut [14:55:44]Write to MH i2c: D1 01 00 1C 1D 01 0B [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: D1 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: D1 01 00 [14:55:44]MH_I2C_Read... [14:55:44]Read from MH i2c: D1 01 00 1C 1D 00 0A [14:55:44]Write to MH i2c: 01 00 00 1D 1D 3A [14:55:44]Write i2c OK [14:55:44]MH_I2C_Read... [14:55:44]OFD Sender: No OFD packet to send [14:55:45]*** Cut start [14:55:45]*** Partial cut [14:55:45]*** CUTSNS_PIN = 1 [14:55:45]*** CUTSNS_PIN = 0 [14:55:45]*** Brake cut motor [14:55:46]Read from MH i2c: 01 [14:55:46]MH_I2C_Read... [14:55:46]*** Stop cut motor [14:55:46]*** Cut end [14:55:46]Read from MH i2c: 01 07 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: 01 07 00 1D 1D 00 00 00 00 00 FF 0F 4F [14:55:46]process_action close_receipt done [14:55:46]requested_data is exist [14:55:46]produce_requested_data [14:55:46]requested_item fm.sn is exist - process it [14:55:46]wFMCommunicate request_size=4 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 11 00 00 [14:55:46]Write to MH i2c: E2 08 00 1E 1D 80 11 00 00 00 00 00 00 B5 [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 17 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 17 00 1E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 07 [14:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [14:55:46]wFMCommunicate OK [14:55:46]requested_item fd.num is exist - process it [14:55:46]SAM_PROTO_GetFieldsCounters [14:55:46]wFMCommunicate request_size=4 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 13 00 00 [14:55:46]Write to MH i2c: E2 08 00 1F 1D 80 13 00 00 00 00 00 00 B8 [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 62 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 62 00 1F 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 02 FA 00 00 0E 04 04 00 76 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 53 [14:55:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 02 FA 00 00 0E 04 04 00 76 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:55:46]wFMCommunicate OK [14:55:46]SAM_PROTO_GetFieldsCounters done [14:55:46]requested_item shift.num is exist - process it [14:55:46]requested_item shift.opened is exist - process it [14:55:46]req_shift_opened [14:55:46]FM_GetShiftState [14:55:46]SAM_PROTO_GetShiftState [14:55:46]wFMCommunicate request_size=4 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 13 01 00 [14:55:46]Write to MH i2c: E2 08 00 20 1D 80 13 01 00 00 00 00 00 BA [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 0E 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 0E 00 20 1D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 5A [14:55:46]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [14:55:46]wFMCommunicate OK [14:55:46]SAM_PROTO_GetShiftState done [14:55:46]FM_GetShiftState done [14:55:46]req_shift_opened done [14:55:46]requested_item shift.open_date is exist - process it [14:55:46]req_shift_open_date [14:55:46]req_shift_open_date done [14:55:46]produce_requested_data done [14:55:46]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64002,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [14:55:46]process_action_free close_receipt [14:55:46]json_value_free [14:55:46]json_value_free done [14:55:46]process_json_proto returns [14:55:46]Send response to host [14:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64002,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [14:55:46]free response buf [14:55:46]execute_script done [14:55:46]execute_script returns [14:55:46]free content buf [14:55:46]Sock 7.Close socket [14:55:46]Sock 7.Thread stoped [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:19]accept exits with 9 [15:04:19]New connection [15:04:19]New thread 3066912100 created [15:04:19]Thread 3067055460 joined [15:04:19]Waiting for new connection... [15:04:19] Sock 9.Parse request [15:04:19]Sock 9.Check first char [15:04:19]Sock 9.First char is OK [15:04:19]request: POST /json_proto HTTP/1.0 [15:04:19]Method: POST [15:04:19]URL: /json_proto [15:04:19]Method is POST - this is cgi request [15:04:19]url: /json_proto [15:04:19]query_string will be loaded in cgi processing [15:04:19]execute_cgi json_proto POST (null) [15:04:19]execute_cgi path=json_proto method=POST [15:04:19]POST find Content-Length [15:04:19]Host: 172.17.60.69:8080 [15:04:19]Content-Length: 901 [15:04:19]Content-Type: application/json [15:04:19] [15:04:19]POST finish read [15:04:19]Found Content-Length = 901 [15:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73560", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:19]execute_script... [15:04: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)73560", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:19]POST & json_proto [15:04:19]process_json_proto [15:04:19]json parsed OK: [15:04:19]protocol is kg_v1.0 [15:04:19]action value=close_receipt [15:04:19]process_action close_receipt [15:04:19]cmd_close_receipt [15:04:19]MH_GetDate [15:04:19]Write to MH i2c: F0 00 00 21 1D 2D [15:04:19]Write i2c OK [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: F0 [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: F0 09 00 [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: F0 09 00 21 1D 00 F6 2C 5F 66 6A 96 4A 66 CD [15:04:19]GetLastDocTimeStamp 1717512944 [15:04:19]current date 1717513462 [15:04:19]FM_GetShiftState [15:04:19]SAM_PROTO_GetShiftState [15:04:19]wFMCommunicate request_size=4 [15:04:19]MH_SAM_APDU [15:04:19]CAPDU: 80 13 01 00 [15:04:19]Write to MH i2c: E2 08 00 22 1D 80 13 01 00 00 00 00 00 BC [15:04:19]Write i2c OK [15:04:19]MH_I2C_Read... [15:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:19]Read from MH i2c: E2 [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: E2 0E 00 [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: E2 0E 00 22 1D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 5C [15:04:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:04:19]wFMCommunicate OK [15:04:19]SAM_PROTO_GetShiftState done [15:04:19]FM_GetShiftState done [15:04:19]opened in 1717459574 [15:04:19]opened+sec_in_day 1717545974 [15:04:19]quantity*price = 8500 [15:04:19]sum+1 = 8501 [15:04:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 88 04.06.2024 15:04 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64003 ФПД: 249121499972606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150423&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64003&fm=249121499972606&tin=02508201610067®Number=0000000000092737&sum=22500 0 [15:04:20]StoreToDocumentArchive [15:04:20]shift 374 fd 64003 [15:04:20]save to /storage/0374/doc_00064003 [15:04:20]save last doc name /storage/0374/doc_00064003 to /storage/kkm_last_doc_name [15:04:20]save OK [15:04:20]Clear old archive folders... [15:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=394 [15:04:20]tlvbuf is B6EC1910 [15:04:20]SAM_PROTO_ClearQueue [15:04:20]wFMCommunicate request_size=4 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 09 00 00 [15:04:20]Write to MH i2c: E2 08 00 2F 1D 80 09 00 00 00 00 00 00 BE [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 2F 1D 00 90 00 C0 [15:04:20]RAPDU: 90 00 [15:04:20]wFMCommunicate OK [15:04:20]SAM_PROTO_ClearQueue done [15:04:20]KKMCreateOFDPacket [15:04:20]OFDProtocolAddRootSTLVToBuf [15:04:20]FM_MakeSignedData [15:04:20]FM_MakeSignedData [15:04:20]SAM_PROTO_SignData [15:04:20]wFMCommunicate request_size=4 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 0D 01 02 [15:04:20]Write to MH i2c: E2 08 00 30 1D 80 0D 01 02 00 00 00 00 C6 [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 30 1D 00 90 00 C1 [15:04:20]RAPDU: 90 00 [15:04:20]wFMCommunicate OK [15:04:20]wFMCommunicate request_size=255 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 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 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F [15:04:20]Write to MH i2c: E2 02 01 31 1D 80 0D 02 02 FA 00 03 00 8A 01 1E 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 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 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 97 [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 03 00 31 1D 00 90 00 C2 [15:04:20]RAPDU: 90 00 [15:04:20]wFMCommunicate OK [15:04:20]wFMCommunicate request_size=153 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 0D 02 02 94 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 56 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 58 00 00 00 F4 03 04 00 F7 2C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 FA 00 00 35 04 06 00 E2 93 1E 83 03 FE [15:04:20]Write to MH i2c: E2 9C 00 32 1D 80 0D 02 02 94 00 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 56 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 58 00 00 00 F4 03 04 00 F7 2C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 FA 00 00 35 04 06 00 E2 93 1E 83 03 FE 00 00 47 [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:21]Read from MH i2c: E2 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: E2 03 00 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: E2 03 00 32 1D 00 90 00 C3 [15:04:21]RAPDU: 90 00 [15:04:21]wFMCommunicate OK [15:04:21]wFMCommunicate request_size=4 [15:04:21]MH_SAM_APDU [15:04:21]CAPDU: 80 0D 03 02 [15:04:21]Write to MH i2c: E2 08 00 33 1D 80 0D 03 02 00 00 00 00 CB [15:04:21]Write i2c OK [15:04:21]MH_I2C_Read... [15:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:21]Read from MH i2c: E2 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: E2 0B 00 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: E2 0B 00 33 1D 00 BE FB 9A 1E 95 57 4E 3C 90 00 B3 [15:04:21]RAPDU: BE FB 9A 1E 95 57 4E 3C 90 00 [15:04:21]wFMCommunicate OK [15:04:21]SAM_PROTO_SignData done [15:04:21]FM_MakeSignedData done [15:04:21]CreateOFDProtocolMessage [15:04:21]wFMCommunicate request_size=4 [15:04:21]MH_SAM_APDU [15:04:21]CAPDU: 80 11 00 00 [15:04:21]Write to MH i2c: E2 08 00 34 1D 80 11 00 00 00 00 00 00 CB [15:04:21]Write i2c OK [15:04:21]MH_I2C_Read... [15:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:21]Read from MH i2c: E2 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: E2 17 00 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: E2 17 00 34 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1D [15:04:21]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:21]wFMCommunicate OK [15:04:21]CreateOFDProtocolMessage done [15:04:21]OFDSenderStorePacket 64003 [15:04:21]StoreOFDPacket docnum=64003 [15:04: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 9E 01 00 00 CF EA 96 01 2C 7D 5A 03 01 00 03 00 8A 01 1E 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 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 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 56 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 58 00 00 00 F4 03 04 00 F7 2C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 FA 00 00 35 04 06 00 E2 93 1E 83 03 FE BE FB 9A 1E 95 57 4E 3C [15:04:21]CheckFolder [15:04:21]dirname=/storage/ofd_packets [15:04:21]CheckFolder done [15:04:21]ProducePacketName [15:04:21]name=ofd_packets/00064003 [15:04:21]NVStorageSaveData ofd_packets/00064003 [15:04:21]File name is /storage/ofd_packets/00064003 [15:04:21]Write 444 bytes [15:04:21]NVStorageSaveData done [15:04:21]OFDSenderStorePacket done [15:04:21]KKMCreateOFDPacket done [15:04:21]NVStorageSaveData kkm_last_timestamp [15:04:21]File name is /storage/kkm_last_timestamp [15:04:21]Write 4 bytes [15:04:21]NVStorageSaveData done [15:04:21]ExternCall_PrintAddStr [15:04:21]wPrintStart [15:04:21]Write to MH i2c: 01 00 00 35 1D 52 [15:04:21]Write i2c OK [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: 01 [15:04:21]MH_I2C_Read... [15:04:21]Read from MH i2c: 01 07 00 [15:04:21]MH_I2C_Read... [15:04:21]OFD Sender: Processing packet 64003 [packets to send 14, broken 13] [15:04:21]ProducePacketName [15:04:21]name=ofd_packets/00064003 [15:04:21]OFD Sender: To server: pG, [15:04:21]CommunicateWithHost lk.salyk.kg:30040 [15:04:21]ConnectInit lk.salyk.kg [15:04:21]Read from MH i2c: 01 07 00 35 1D 00 00 00 00 00 FF 0F 67 [15:04:21]RasterBufferAndPrint [15:04:21]line Счет N : (3)73560 [15:04:21]line ИНН: 02508201610067 [15:04:21]line Контрольно-Кассовый Чек [15:04:21]line ПРОДАЖА [15:04:21]line Товар: 4600682000280 [15:04:21]line Напиток FLash up мохито 0,45 ж/б [15:04:21]line 1.000 * 85.00 [15:04:21]line = 85.00 [15:04:21]line НДС 12% НСП 1% [15:04:21]line > о реализуемом товаре [15:04:21]line Товар: 48743587 [15:04:21]line Сигареты Winston XStyle Silver [15:04:21]line 1.000 * 140.00 [15:04:21]line = 140.00 [15:04:21]line НДС 12% НСП 1% [15:04:21]line > о реализуемом товаре [15:04:21]line ИТОГО: 225.00 [15:04:21]line НСП 1% : 1.99 [15:04:21]line НДС 12% : 23.90 [15:04:21]line Наличными: 225.00 [15:04:21]line Безнал.: 0.00 [15:04:21]line Место: АЗС № 117 "Партнер Нефть" [15:04:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:04:21]line СНО: Общий режим [15:04:21]line Чек 88 04.06.2024 15:04 [15:04:21]line Смена: 374 ФФД: 1.0 [15:04:21]line ЗНМ: 0300000031 [15:04:21]line РНМ: 0000000000092737 [15:04:21]line Версия ККМ: 001 [15:04:21]line ФМ: 0000000000875074 [15:04:21]line ФД: 64003 [15:04:21]line ФПД: 249121499972606 [15:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150423&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64003&fm=249121499972606&tin=02508201610067®Number=0000000000092737&sum=22500 [15:04:21]line 0 [15:04:21]written 0, free lines is 4095 [15:04:21]Connected sock=10 [15:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 9E 01 00 00 CF EA 96 01 2C 7D 5A 03 01 00 03 00 8A 01 1E 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 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 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 56 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 58 00 00 00 F4 03 04 00 F7 2C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 FA 00 00 35 04 06 00 E2 93 1E 83 03 FE BE FB 9A 1E 95 57 4E 3C [15:04: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 BB D7 47 00 55 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 03 FA 00 00 F4 03 04 00 C4 D8 5E 66 B6 04 01 00 00 54 6F 81 8A F2 59 63 FB [15:04:21]CommunicateWithHost err = 0 [15:04:21]CheckOFDResponse [15:04:21]1017 (14) - 77093643461234 [15:04:21]1041 (16) - 0000000000875074 [15:04:21]1040 (4) - 64003 [15:04:21]1012 (4) - 04.06.2024 09:05 [15:04:21]1206 (1) - 0 [15:04:21]OFD Sender: Remove packet 64003 [15:04:21]ProducePacketName [15:04:21]name=ofd_packets/00064003 [15:04:21]NVStorageDeleteData [15:04:22]Write to MH i2c: 01 00 00 65 1D 82 [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 07 00 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: 01 07 00 65 1D 00 00 00 00 00 75 0C 0A [15:04:22]RasterBufferAndPrint [15:04:22]line [15:04:22]line [15:04:22]line [15:04:22]line [15:04:22]line [15:04:22]written 0, free lines is 3198 [15:04:22]MH_Cut [15:04:22]Write to MH i2c: D1 01 00 6C 1D 01 5B [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: D1 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: D1 01 00 [15:04:22]MH_I2C_Read... [15:04:22]Read from MH i2c: D1 01 00 6C 1D 00 5A [15:04:22]Write to MH i2c: 01 00 00 6D 1D 8A [15:04:22]Write i2c OK [15:04:22]MH_I2C_Read... [15:04:22]OFD Sender: No OFD packet to send [15:04:22]*** Cut start [15:04:22]*** Partial cut [15:04:22]*** CUTSNS_PIN = 1 [15:04:22]*** CUTSNS_PIN = 0 [15:04:23]*** Brake cut motor [15:04:23]Read from MH i2c: 01 [15:04:23]MH_I2C_Read... [15:04:23]*** Stop cut motor [15:04:23]*** Cut end [15:04:23]Read from MH i2c: 01 07 00 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 FF 0F 9F [15:04:23]process_action close_receipt done [15:04:23]requested_data is exist [15:04:23]produce_requested_data [15:04:23]requested_item fm.sn is exist - process it [15:04:23]wFMCommunicate request_size=4 [15:04:23]MH_SAM_APDU [15:04:23]CAPDU: 80 11 00 00 [15:04:23]Write to MH i2c: E2 08 00 6E 1D 80 11 00 00 00 00 00 00 05 [15:04:23]Write i2c OK [15:04:23]MH_I2C_Read... [15:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:23]Read from MH i2c: E2 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 17 00 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 17 00 6E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 57 [15:04:23]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:23]wFMCommunicate OK [15:04:23]requested_item fd.num is exist - process it [15:04:23]SAM_PROTO_GetFieldsCounters [15:04:23]wFMCommunicate request_size=4 [15:04:23]MH_SAM_APDU [15:04:23]CAPDU: 80 13 00 00 [15:04:23]Write to MH i2c: E2 08 00 6F 1D 80 13 00 00 00 00 00 00 08 [15:04:23]Write i2c OK [15:04:23]MH_I2C_Read... [15:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:23]Read from MH i2c: E2 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 62 00 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 62 00 6F 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 03 FA 00 00 0E 04 04 00 76 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 A7 [15:04: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 03 FA 00 00 0E 04 04 00 76 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 [15:04:23]wFMCommunicate OK [15:04:23]SAM_PROTO_GetFieldsCounters done [15:04:23]requested_item shift.num is exist - process it [15:04:23]requested_item shift.opened is exist - process it [15:04:23]req_shift_opened [15:04:23]FM_GetShiftState [15:04:23]SAM_PROTO_GetShiftState [15:04:23]wFMCommunicate request_size=4 [15:04:23]MH_SAM_APDU [15:04:23]CAPDU: 80 13 01 00 [15:04:23]Write to MH i2c: E2 08 00 70 1D 80 13 01 00 00 00 00 00 0A [15:04:23]Write i2c OK [15:04:23]MH_I2C_Read... [15:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:23]Read from MH i2c: E2 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 0E 00 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 0E 00 70 1D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 AA [15:04:23]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:04:23]wFMCommunicate OK [15:04:23]SAM_PROTO_GetShiftState done [15:04:23]FM_GetShiftState done [15:04:23]req_shift_opened done [15:04:23]requested_item shift.open_date is exist - process it [15:04:23]req_shift_open_date [15:04:23]req_shift_open_date done [15:04:23]produce_requested_data done [15:04:23]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64003,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [15:04:23]process_action_free close_receipt [15:04:23]json_value_free [15:04:23]json_value_free done [15:04:23]process_json_proto returns [15:04:23]Send response to host [15:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64003,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [15:04:23]free response buf [15:04:23]execute_script done [15:04:23]execute_script returns [15:04:23]free content buf [15:04:23]Sock 9.Close socket [15:04:23]Sock 9.Thread stoped [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:55]accept exits with 7 [15:08:55]New connection [15:08:55]New thread 3067055460 created [15:08:55]Thread 3066912100 joined [15:08:55]Waiting for new connection... [15:08:55] Sock 7.Parse request [15:08:55]Sock 7.Check first char [15:08:55]Sock 7.First char is OK [15:08:55]request: POST /json_proto HTTP/1.0 [15:08:55]Method: POST [15:08:55]URL: /json_proto [15:08:55]Method is POST - this is cgi request [15:08:55]url: /json_proto [15:08:55]query_string will be loaded in cgi processing [15:08:55]execute_cgi json_proto POST (null) [15:08:55]execute_cgi path=json_proto method=POST [15:08:55]POST find Content-Length [15:08:55]Host: 172.17.60.69:8080 [15:08:55]Content-Length: 782 [15:08:55]Content-Type: application/json [15:08:55] [15:08:55]POST finish read [15:08:55]Found Content-Length = 782 [15:08:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73561", "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 }]} ], "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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:55]execute_script... [15:08:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73561", "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 }]} ], "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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:55]POST & json_proto [15:08:55]process_json_proto [15:08:55]json parsed OK: [15:08:55]protocol is kg_v1.0 [15:08:55]action value=close_receipt [15:08:55]process_action close_receipt [15:08:55]cmd_close_receipt [15:08:55]MH_GetDate [15:08:55]Write to MH i2c: F0 00 00 71 1D 7D [15:08:55]Write i2c OK [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: F0 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: F0 09 00 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: F0 09 00 71 1D 00 0A 2E 5F 66 6A 96 4A 66 33 [15:08:55]GetLastDocTimeStamp 1717513463 [15:08:55]current date 1717513738 [15:08:55]FM_GetShiftState [15:08:55]SAM_PROTO_GetShiftState [15:08:55]wFMCommunicate request_size=4 [15:08:55]MH_SAM_APDU [15:08:55]CAPDU: 80 13 01 00 [15:08:55]Write to MH i2c: E2 08 00 72 1D 80 13 01 00 00 00 00 00 0C [15:08:55]Write i2c OK [15:08:55]MH_I2C_Read... [15:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:55]Read from MH i2c: E2 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: E2 0E 00 [15:08:55]MH_I2C_Read... [15:08:55]Read from MH i2c: E2 0E 00 72 1D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 AC [15:08:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:08:55]wFMCommunicate OK [15:08:55]SAM_PROTO_GetShiftState done [15:08:55]FM_GetShiftState done [15:08:55]opened in 1717459574 [15:08:55]opened+sec_in_day 1717545974 [15:08:55]quantity*price = 15100 [15:08:55]sum+1 = 15101 [15:08:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 89 04.06.2024 15:08 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64004 ФПД: 92282922355424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150858&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64004&fm=92282922355424&tin=02508201610067®Number=0000000000092737&sum=15100 0 [15:08:56]StoreToDocumentArchive [15:08:56]shift 374 fd 64004 [15:08:56]save to /storage/0374/doc_00064004 [15:08:56]save last doc name /storage/0374/doc_00064004 to /storage/kkm_last_doc_name [15:08:56]save OK [15:08:56]Clear old archive folders... [15:08:56]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:08:56]tlvbuf is 012B58E0 [15:08:56]SAM_PROTO_ClearQueue [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 09 00 00 [15:08:56]Write to MH i2c: E2 08 00 7F 1D 80 09 00 00 00 00 00 00 0E [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 7F 1D 00 90 00 10 [15:08:56]RAPDU: 90 00 [15:08:56]wFMCommunicate OK [15:08:56]SAM_PROTO_ClearQueue done [15:08:56]KKMCreateOFDPacket [15:08:56]OFDProtocolAddRootSTLVToBuf [15:08:56]FM_MakeSignedData [15:08:56]FM_MakeSignedData [15:08:56]SAM_PROTO_SignData [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 0D 01 02 [15:08:56]Write to MH i2c: E2 08 00 80 1D 80 0D 01 02 00 00 00 00 16 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [15:08:56]RAPDU: 90 00 [15:08:56]wFMCommunicate OK [15:08:56]wFMCommunicate request_size=255 [15:08:56]MH_SAM_APDU [15:08:56]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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0A 2E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [15:08:56]Write to MH i2c: E2 02 01 81 1D 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0A 2E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 AF [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [15:08:56]RAPDU: 90 00 [15:08:56]wFMCommunicate OK [15:08:56]wFMCommunicate request_size=33 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 FA 00 00 35 04 06 00 53 EE 4A CE 4A E0 [15:08:56]Write to MH i2c: E2 24 00 82 1D 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 FA 00 00 35 04 06 00 53 EE 4A CE 4A E0 00 00 28 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [15:08:56]RAPDU: 90 00 [15:08:56]wFMCommunicate OK [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 0D 03 02 [15:08:56]Write to MH i2c: E2 08 00 83 1D 80 0D 03 02 00 00 00 00 1B [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 0B 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 0B 00 83 1D 00 5C AA F7 C0 3F 1A 00 8E 90 00 C0 [15:08:56]RAPDU: 5C AA F7 C0 3F 1A 00 8E 90 00 [15:08:56]wFMCommunicate OK [15:08:56]SAM_PROTO_SignData done [15:08:56]FM_MakeSignedData done [15:08:56]CreateOFDProtocolMessage [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 11 00 00 [15:08:56]Write to MH i2c: E2 08 00 84 1D 80 11 00 00 00 00 00 00 1B [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 17 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 17 00 84 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6D [15:08: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:08:56]wFMCommunicate OK [15:08:56]CreateOFDProtocolMessage done [15:08:56]OFDSenderStorePacket 64004 [15:08:56]StoreOFDPacket docnum=64004 [15:08: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 26 01 00 00 88 3B 1E 01 A7 5A 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0A 2E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 FA 00 00 35 04 06 00 53 EE 4A CE 4A E0 5C AA F7 C0 3F 1A 00 8E [15:08:56]CheckFolder [15:08:56]dirname=/storage/ofd_packets [15:08:56]CheckFolder done [15:08:56]ProducePacketName [15:08:56]name=ofd_packets/00064004 [15:08:56]NVStorageSaveData ofd_packets/00064004 [15:08:56]File name is /storage/ofd_packets/00064004 [15:08:56]Write 324 bytes [15:08:56]NVStorageSaveData done [15:08:56]OFDSenderStorePacket done [15:08:56]KKMCreateOFDPacket done [15:08:56]NVStorageSaveData kkm_last_timestamp [15:08:56]File name is /storage/kkm_last_timestamp [15:08:56]Write 4 bytes [15:08:56]NVStorageSaveData done [15:08:56]ExternCall_PrintAddStr [15:08:56]wPrintStart [15:08:56]Write to MH i2c: 01 00 00 85 1D A2 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: 01 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: 01 07 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: 01 07 00 85 1D 00 00 00 00 00 FF 0F B7 [15:08:56]RasterBufferAndPrint [15:08:56]line Счет N : (3)73561 [15:08:56]line ИНН: 02508201610067 [15:08:56]line Контрольно-Кассовый Чек [15:08:56]line ПРОДАЖА [15:08:56]line Товар: 48741958 [15:08:56]line Сигареты Parliament Aqua Blue [15:08:56]line 1.000 * 151.00 [15:08:56]line = 151.00 [15:08:56]line НДС 12% НСП 1% [15:08:56]line > о реализуемом товаре [15:08:56]line ИТОГО: 151.00 [15:08:56]line НСП 1% : 1.34 [15:08:56]line НДС 12% : 16.03 [15:08:56]line Наличными: 0.00 [15:08:56]line Безнал.: 151.00 [15:08:56]line Место: АЗС № 117 "Партнер Нефть" [15:08:56]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:08:56]line СНО: Общий режим [15:08:56]line Чек 89 04.06.2024 15:08 [15:08:56]line Смена: 374 ФФД: 1.0 [15:08:56]line ЗНМ: 0300000031 [15:08:56]line РНМ: 0000000000092737 [15:08:56]line Версия ККМ: 001 [15:08:56]line Платежная система: O! деньги [15:08:56]line ФМ: 0000000000875074 [15:08:56]line ФД: 64004 [15:08:56]line ФПД: 92282922355424 [15:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150858&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64004&fm=92282922355424&tin=02508201610067®Number=0000000000092737&sum=15100 [15:08:57]OFD Sender: Processing packet 64004 [packets to send 14, broken 13] [15:08:57]ProducePacketName [15:08:57]name=ofd_packets/00064004 [15:08:57]OFD Sender: To server: pG, [15:08:57]CommunicateWithHost lk.salyk.kg:30040 [15:08:57]ConnectInit lk.salyk.kg [15:08:57]line 0 [15:08:57]written 0, free lines is 4095 [15:08:57]Connected sock=10 [15:08:57]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 88 3B 1E 01 A7 5A 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 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0A 2E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 FA 00 00 35 04 06 00 53 EE 4A CE 4A E0 5C AA F7 C0 3F 1A 00 8E [15:08:57]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 FB 47 00 50 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 04 FA 00 00 F4 03 04 00 D8 D9 5E 66 B6 04 01 00 00 81 7C ED 79 8C FF A3 1A [15:08:57]CommunicateWithHost err = 0 [15:08:57]CheckOFDResponse [15:08:57]1017 (14) - 77093643461234 [15:08:57]1041 (16) - 0000000000875074 [15:08:57]1040 (4) - 64004 [15:08:57]1012 (4) - 04.06.2024 09:09 [15:08:57]1206 (1) - 0 [15:08:57]OFD Sender: Remove packet 64004 [15:08:57]ProducePacketName [15:08:57]name=ofd_packets/00064004 [15:08:57]NVStorageDeleteData [15:08:57]Write to MH i2c: 01 00 00 B0 1D CD [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: 01 07 00 B0 1D 00 00 00 00 00 AC 0C 8C [15:08:57]RasterBufferAndPrint [15:08:57]line [15:08:57]line [15:08:57]line [15:08:57]line [15:08:57]line [15:08:57]written 0, free lines is 3250 [15:08:57]MH_Cut [15:08:57]Write to MH i2c: D1 01 00 B7 1D 01 A6 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: D1 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: D1 01 00 [15:08:57]MH_I2C_Read... [15:08:57]Read from MH i2c: D1 01 00 B7 1D 00 A5 [15:08:57]Write to MH i2c: 01 00 00 B8 1D D5 [15:08:57]Write i2c OK [15:08:57]MH_I2C_Read... [15:08:57]OFD Sender: No OFD packet to send [15:08:58]*** Cut start [15:08:58]*** Partial cut [15:08:58]*** CUTSNS_PIN = 1 [15:08:58]*** CUTSNS_PIN = 0 [15:08:58]*** Brake cut motor [15:08:58]Read from MH i2c: 01 [15:08:59]MH_I2C_Read... [15:08:59]*** Stop cut motor [15:08:59]*** Cut end [15:08:59]Read from MH i2c: 01 07 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 B8 1D 00 00 00 00 00 FF 0F EA [15:08:59]process_action close_receipt done [15:08:59]requested_data is exist [15:08:59]produce_requested_data [15:08:59]requested_item fm.sn is exist - process it [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 11 00 00 [15:08:59]Write to MH i2c: E2 08 00 B9 1D 80 11 00 00 00 00 00 00 50 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 17 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 17 00 B9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A2 [15:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:08:59]wFMCommunicate OK [15:08:59]requested_item fd.num is exist - process it [15:08:59]SAM_PROTO_GetFieldsCounters [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 13 00 00 [15:08:59]Write to MH i2c: E2 08 00 BA 1D 80 13 00 00 00 00 00 00 53 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 62 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 62 00 BA 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 04 FA 00 00 0E 04 04 00 76 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 F6 [15:08: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 04 FA 00 00 0E 04 04 00 76 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 [15:08:59]wFMCommunicate OK [15:08:59]SAM_PROTO_GetFieldsCounters done [15:08:59]requested_item shift.num is exist - process it [15:08:59]requested_item shift.opened is exist - process it [15:08:59]req_shift_opened [15:08:59]FM_GetShiftState [15:08:59]SAM_PROTO_GetShiftState [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 13 01 00 [15:08:59]Write to MH i2c: E2 08 00 BB 1D 80 13 01 00 00 00 00 00 55 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 0E 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 0E 00 BB 1D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F5 [15:08:59]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:08:59]wFMCommunicate OK [15:08:59]SAM_PROTO_GetShiftState done [15:08:59]FM_GetShiftState done [15:08:59]req_shift_opened done [15:08:59]requested_item shift.open_date is exist - process it [15:08:59]req_shift_open_date [15:08:59]req_shift_open_date done [15:08:59]produce_requested_data done [15:08:59]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64004,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [15:08:59]process_action_free close_receipt [15:08:59]json_value_free [15:08:59]json_value_free done [15:08:59]process_json_proto returns [15:08:59]Send response to host [15:08:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64004,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [15:08:59]free response buf [15:08:59]execute_script done [15:08:59]execute_script returns [15:08:59]free content buf [15:08:59]Sock 7.Close socket [15:08:59]Sock 7.Thread stoped [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:30]accept exits with 9 [15:09:30]New connection [15:09:30]New thread 3066912100 created [15:09:30]Thread 3067055460 joined [15:09:30]Waiting for new connection... [15:09:30] Sock 9.Parse request [15:09:30]Sock 9.Check first char [15:09:30]Sock 9.First char is OK [15:09:30]request: POST /json_proto HTTP/1.0 [15:09:30]Method: POST [15:09:30]URL: /json_proto [15:09:30]Method is POST - this is cgi request [15:09:30]url: /json_proto [15:09:30]query_string will be loaded in cgi processing [15:09:30]execute_cgi json_proto POST (null) [15:09:30]execute_cgi path=json_proto method=POST [15:09:30]POST find Content-Length [15:09:30]Host: 172.17.60.69:8080 [15:09:30]Content-Length: 905 [15:09:30]Content-Type: application/json [15:09:30] [15:09:30]POST finish read [15:09:30]Found Content-Length = 905 [15:09:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73562", "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 }]} ,{ "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:30]execute_script... [15:09: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)73562", "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 }]} ,{ "code": "2000036200014", "name": "\u041A\u043E\u0444\u0435 \u042D\u0441\u043F\u0440\u0435\u0441\u0441\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:30]POST & json_proto [15:09:30]process_json_proto [15:09:30]json parsed OK: [15:09:30]protocol is kg_v1.0 [15:09:30]action value=close_receipt [15:09:30]process_action close_receipt [15:09:30]cmd_close_receipt [15:09:30]MH_GetDate [15:09:30]Write to MH i2c: F0 00 00 BC 1D C8 [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 09 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 09 00 BC 1D 00 2D 2E 5F 66 6A 96 4A 66 A1 [15:09:30]GetLastDocTimeStamp 1717513738 [15:09:30]current date 1717513773 [15:09:30]FM_GetShiftState [15:09:30]SAM_PROTO_GetShiftState [15:09:30]wFMCommunicate request_size=4 [15:09:30]MH_SAM_APDU [15:09:30]CAPDU: 80 13 01 00 [15:09:30]Write to MH i2c: E2 08 00 BD 1D 80 13 01 00 00 00 00 00 57 [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:30]Read from MH i2c: E2 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: E2 0E 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: E2 0E 00 BD 1D 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F7 [15:09:30]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:09:30]wFMCommunicate OK [15:09:30]SAM_PROTO_GetShiftState done [15:09:30]FM_GetShiftState done [15:09:30]opened in 1717459574 [15:09:30]opened+sec_in_day 1717545974 [15:09:30]quantity*price = 25000 [15:09:30]sum+1 = 25001 [15:09:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036200014 Кофе Эспрессо (GABB TRADE) 2.000 * 105.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 460.00 НСП 1% : 4.07 НДС 12% : 48.85 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 90 04.06.2024 15:09 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64005 ФПД: 198372702291042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64005&fm=198372702291042&tin=02508201610067®Number=0000000000092737&sum=46000 0 [15:09:31]StoreToDocumentArchive [15:09:31]shift 374 fd 64005 [15:09:31]save to /storage/0374/doc_00064005 [15:09:31]save last doc name /storage/0374/doc_00064005 to /storage/kkm_last_doc_name [15:09:31]save OK [15:09:31]Clear old archive folders... [15:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=392 [15:09:31]tlvbuf is 012AB340 [15:09:31]SAM_PROTO_ClearQueue [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 09 00 00 [15:09:31]Write to MH i2c: E2 08 00 CA 1D 80 09 00 00 00 00 00 00 59 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 CA 1D 00 90 00 5B [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]SAM_PROTO_ClearQueue done [15:09:31]KKMCreateOFDPacket [15:09:31]OFDProtocolAddRootSTLVToBuf [15:09:31]FM_MakeSignedData [15:09:31]FM_MakeSignedData [15:09:31]SAM_PROTO_SignData [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 01 02 [15:09:31]Write to MH i2c: E2 08 00 CB 1D 80 0D 01 02 00 00 00 00 61 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=255 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 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 04 29 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 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [15:09:31]Write to MH i2c: E2 02 01 CC 1D 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 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 04 29 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 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 8B [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=151 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 2D 2E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 FA 00 00 35 04 06 00 B4 6B 3E 74 04 62 [15:09:31]Write to MH i2c: E2 9A 00 CD 1D 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 2D 2E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 FA 00 00 35 04 06 00 B4 6B 3E 74 04 62 00 00 06 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 03 02 [15:09:31]Write to MH i2c: E2 08 00 CE 1D 80 0D 03 02 00 00 00 00 66 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 0B 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 0B 00 CE 1D 00 59 25 7F A1 0C 72 DC 60 90 00 BF [15:09:31]RAPDU: 59 25 7F A1 0C 72 DC 60 90 00 [15:09:31]wFMCommunicate OK [15:09:31]SAM_PROTO_SignData done [15:09:31]FM_MakeSignedData done [15:09:31]CreateOFDProtocolMessage [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 11 00 00 [15:09:31]Write to MH i2c: E2 08 00 CF 1D 80 11 00 00 00 00 00 00 66 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 17 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 17 00 CF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B8 [15:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:09:31]wFMCommunicate OK [15:09:31]CreateOFDProtocolMessage done [15:09:31]OFDSenderStorePacket 64005 [15:09:31]StoreOFDPacket docnum=64005 [15:09: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 9C 01 00 00 CB 5D 94 01 7F 8C 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 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 04 29 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 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 2D 2E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 FA 00 00 35 04 06 00 B4 6B 3E 74 04 62 59 25 7F A1 0C 72 DC 60 [15:09:31]CheckFolder [15:09:31]dirname=/storage/ofd_packets [15:09:31]CheckFolder done [15:09:31]ProducePacketName [15:09:31]name=ofd_packets/00064005 [15:09:31]NVStorageSaveData ofd_packets/00064005 [15:09:31]File name is /storage/ofd_packets/00064005 [15:09:31]Write 442 bytes [15:09:31]NVStorageSaveData done [15:09:31]OFDSenderStorePacket done [15:09:31]KKMCreateOFDPacket done [15:09:31]NVStorageSaveData kkm_last_timestamp [15:09:31]File name is /storage/kkm_last_timestamp [15:09:31]Write 4 bytes [15:09:31]NVStorageSaveData done [15:09:31]ExternCall_PrintAddStr [15:09:31]wPrintStart [15:09:31]Write to MH i2c: 01 00 00 D0 1D ED [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: 01 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: 01 07 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: 01 07 00 D0 1D 00 00 00 00 00 FF 0F 02 [15:09:31]RasterBufferAndPrint [15:09:31]line Счет N : (3)73562 [15:09:31]line ИНН: 02508201610067 [15:09:31]line Контрольно-Кассовый Чек [15:09:31]line ПРОДАЖА [15:09:31]line Товар: 2000036220012 [15:09:32]line Кофе Капучино XL(GABB TRADE) [15:09:32]line 2.000 * 125.00 [15:09:32]line = 250.00 [15:09:32]line НДС 12% НСП 1% [15:09:32]line > о реализуемом товаре [15:09:32]line Товар: 2000036200014 [15:09:32]line Кофе Эспрессо (GABB TRADE) [15:09:32]line 2.000 * 105.00 [15:09:32]line = 210.00 [15:09:32]line НДС 12% НСП 1% [15:09:32]line > о реализуемом товаре [15:09:32]line ИТОГО: 460.00 [15:09:32]line НСП 1% : 4.07 [15:09:32]line НДС 12% : 48.85 [15:09:32]line Наличными: 460.00 [15:09:32]line Безнал.: 0.00 [15:09:32]line Место: АЗС № 117 "Партнер Нефть" [15:09:32]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:09:32]line СНО: Общий режим [15:09:32]line Чек 90 04.06.2024 15:09 [15:09:32]line Смена: 374 ФФД: 1.0 [15:09:32]line ЗНМ: 0300000031 [15:09:32]line РНМ: 0000000000092737 [15:09:32]line Версия ККМ: 001 [15:09:32]line ФМ: 0000000000875074 [15:09:32]line ФД: 64005 [15:09:32]line ФПД: 198372702291042 [15:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T150933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64005&fm=198372702291042&tin=02508201610067®Number=0000000000092737&sum=46000 [15:09:32]OFD Sender: Processing packet 64005 [packets to send 14, broken 13] [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00064005 [15:09:32]OFD Sender: To server: pG, [15:09:32]CommunicateWithHost lk.salyk.kg:30040 [15:09:32]ConnectInit lk.salyk.kg [15:09:32]line 0 [15:09:32]written 0, free lines is 4095 [15:09:32]Connected sock=10 [15:09: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 9C 01 00 00 CB 5D 94 01 7F 8C 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 30 30 30 31 34 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 AD D1 81 D0 BF D1 80 D0 B5 D1 81 D1 81 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 04 29 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 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 2D 2E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 FA 00 00 35 04 06 00 B4 6B 3E 74 04 62 59 25 7F A1 0C 72 DC 60 [15:09: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 BB 7D 47 00 88 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 05 FA 00 00 F4 03 04 00 FB D9 5E 66 B6 04 01 00 00 15 72 AB EE 88 15 F6 E9 [15:09:32]CommunicateWithHost err = 0 [15:09:32]CheckOFDResponse [15:09:32]1017 (14) - 77093643461234 [15:09:32]1041 (16) - 0000000000875074 [15:09:32]1040 (4) - 64005 [15:09:32]1012 (4) - 04.06.2024 09:10 [15:09:32]1206 (1) - 0 [15:09:32]OFD Sender: Remove packet 64005 [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00064005 [15:09:32]NVStorageDeleteData [15:09:32]Write to MH i2c: 01 00 00 FF 1D 1C [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 FF 1D 00 00 00 00 00 8C 0C BB [15:09:32]RasterBufferAndPrint [15:09:32]line [15:09:32]line [15:09:32]line [15:09:32]line [15:09:32]line [15:09:32]written 0, free lines is 3220 [15:09:32]MH_Cut [15:09:32]Write to MH i2c: D1 01 00 06 1E 01 F6 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: D1 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: D1 01 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: D1 01 00 06 1E 00 F5 [15:09:32]Write to MH i2c: 01 00 00 07 1E 25 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:33]OFD Sender: No OFD packet to send [15:09:33]*** Cut start [15:09:33]*** Partial cut [15:09:33]*** CUTSNS_PIN = 1 [15:09:33]*** CUTSNS_PIN = 0 [15:09:33]*** Brake cut motor [15:09:34]Read from MH i2c: 01 [15:09:34]MH_I2C_Read... [15:09:34]*** Stop cut motor [15:09:34]*** Cut end [15:09:34]Read from MH i2c: 01 07 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: 01 07 00 07 1E 00 00 00 00 00 FF 0F 3A [15:09:34]process_action close_receipt done [15:09:34]requested_data is exist [15:09:34]produce_requested_data [15:09:34]requested_item fm.sn is exist - process it [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 11 00 00 [15:09:34]Write to MH i2c: E2 08 00 08 1E 80 11 00 00 00 00 00 00 A0 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 17 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 17 00 08 1E 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:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:09:34]wFMCommunicate OK [15:09:34]requested_item fd.num is exist - process it [15:09:34]SAM_PROTO_GetFieldsCounters [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 00 00 [15:09:34]Write to MH i2c: E2 08 00 09 1E 80 13 00 00 00 00 00 00 A3 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 62 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 62 00 09 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 05 FA 00 00 0E 04 04 00 76 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 4A [15:09: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 05 FA 00 00 0E 04 04 00 76 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 [15:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetFieldsCounters done [15:09:34]requested_item shift.num is exist - process it [15:09:34]requested_item shift.opened is exist - process it [15:09:34]req_shift_opened [15:09:34]FM_GetShiftState [15:09:34]SAM_PROTO_GetShiftState [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 01 00 [15:09:34]Write to MH i2c: E2 08 00 0A 1E 80 13 01 00 00 00 00 00 A5 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 0A 1E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 45 [15:09:34]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetShiftState done [15:09:34]FM_GetShiftState done [15:09:34]req_shift_opened done [15:09:34]requested_item shift.open_date is exist - process it [15:09:34]req_shift_open_date [15:09:34]req_shift_open_date done [15:09:34]produce_requested_data done [15:09:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64005,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [15:09:34]process_action_free close_receipt [15:09:34]json_value_free [15:09:34]json_value_free done [15:09:34]process_json_proto returns [15:09:34]Send response to host [15:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64005,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [15:09:34]free response buf [15:09:34]execute_script done [15:09:34]execute_script returns [15:09:34]free content buf [15:09:34]Sock 9.Close socket [15:09:34]Sock 9.Thread stoped [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:00]accept exits with 7 [15:14:00]New connection [15:14:00]New thread 3067055460 created [15:14:00]Thread 3066912100 joined [15:14:00]Waiting for new connection... [15:14:00] Sock 7.Parse request [15:14:00]Sock 7.Check first char [15:14:00]Sock 7.First char is OK [15:14:00]request: POST /json_proto HTTP/1.0 [15:14:00]Method: POST [15:14:00]URL: /json_proto [15:14:00]Method is POST - this is cgi request [15:14:00]url: /json_proto [15:14:00]query_string will be loaded in cgi processing [15:14:00]execute_cgi json_proto POST (null) [15:14:00]execute_cgi path=json_proto method=POST [15:14:00]POST find Content-Length [15:14:00]Host: 172.17.60.69:8080 [15:14:00]Content-Length: 682 [15:14:00]Content-Type: application/json [15:14:00] [15:14:00]POST finish read [15:14:00]Found Content-Length = 682 [15:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73563", "tax_sys" : 0, "items" : [ { "code": "4000417700001", "name": "\u0428\u043E\u043A Ritter SPORT EN \u043C\u043E\u043B \u043B\u0435\u0449\u0438\u043D\u0430,\u0444\u0443\u043D\u0434 100\u0433", "price" : 255.00, "quantity" : 1.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:00]execute_script... [15:14:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73563", "tax_sys" : 0, "items" : [ { "code": "4000417700001", "name": "\u0428\u043E\u043A Ritter SPORT EN \u043C\u043E\u043B \u043B\u0435\u0449\u0438\u043D\u0430,\u0444\u0443\u043D\u0434 100\u0433", "price" : 255.00, "quantity" : 1.000, "sum" : 255.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:00]POST & json_proto [15:14:00]process_json_proto [15:14:00]json parsed OK: [15:14:00]protocol is kg_v1.0 [15:14:00]action value=close_receipt [15:14:00]process_action close_receipt [15:14:00]cmd_close_receipt [15:14:00]MH_GetDate [15:14:00]Write to MH i2c: F0 00 00 0B 1E 18 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 09 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 09 00 0B 1E 00 3C 2F 5F 66 6A 96 4A 66 01 [15:14:00]GetLastDocTimeStamp 1717513773 [15:14:00]current date 1717514044 [15:14:00]FM_GetShiftState [15:14:00]SAM_PROTO_GetShiftState [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 13 01 00 [15:14:00]Write to MH i2c: E2 08 00 0C 1E 80 13 01 00 00 00 00 00 A7 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 0C 1E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 47 [15:14:00]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_GetShiftState done [15:14:00]FM_GetShiftState done [15:14:00]opened in 1717459574 [15:14:00]opened+sec_in_day 1717545974 [15:14:00]quantity*price = 25500 [15:14:00]sum+1 = 25501 [15:14:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 91 04.06.2024 15:14 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64006 ФПД: 164065548755882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151404&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64006&fm=164065548755882&tin=02508201610067®Number=0000000000092737&sum=25500 0 [15:14:02]StoreToDocumentArchive [15:14:02]shift 374 fd 64006 [15:14:02]save to /storage/0374/doc_00064006 [15:14:02]save last doc name /storage/0374/doc_00064006 to /storage/kkm_last_doc_name [15:14:02]save OK [15:14:02]Clear old archive folders... [15:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=299 [15:14:02]tlvbuf is B6EDA770 [15:14:02]SAM_PROTO_ClearQueue [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 09 00 00 [15:14:02]Write to MH i2c: E2 08 00 19 1E 80 09 00 00 00 00 00 00 A9 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 19 1E 00 90 00 AB [15:14:02]RAPDU: 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_ClearQueue done [15:14:02]KKMCreateOFDPacket [15:14:02]OFDProtocolAddRootSTLVToBuf [15:14:02]FM_MakeSignedData [15:14:02]FM_MakeSignedData [15:14:02]SAM_PROTO_SignData [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 0D 01 02 [15:14:02]Write to MH i2c: E2 08 00 1A 1E 80 0D 01 02 00 00 00 00 B1 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 1A 1E 00 90 00 AC [15:14:02]RAPDU: 90 00 [15:14:02]wFMCommunicate OK [15:14:02]wFMCommunicate request_size=255 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 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 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 3C 2F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [15:14:02]Write to MH i2c: E2 02 01 1B 1E 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 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 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 3C 2F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 DD [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 1B 1E 00 90 00 AD [15:14:02]RAPDU: 90 00 [15:14:02]wFMCommunicate OK [15:14:02]wFMCommunicate request_size=58 [15:14:02]MH_SAM_APDU [15:14:02]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 06 FA 00 00 35 04 06 00 95 37 7C C0 E3 AA [15:14:02]Write to MH i2c: E2 3D 00 1C 1E 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 06 FA 00 00 35 04 06 00 95 37 7C C0 E3 AA 00 00 3A [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [15:14:02]RAPDU: 90 00 [15:14:02]wFMCommunicate OK [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 0D 03 02 [15:14:02]Write to MH i2c: E2 08 00 1D 1E 80 0D 03 02 00 00 00 00 B6 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0B 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0B 00 1D 1E 00 78 82 82 1B EF FA 21 C4 90 00 1C [15:14:02]RAPDU: 78 82 82 1B EF FA 21 C4 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_SignData done [15:14:02]FM_MakeSignedData done [15:14:02]CreateOFDProtocolMessage [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 11 00 00 [15:14:02]Write to MH i2c: E2 08 00 1E 1E 80 11 00 00 00 00 00 00 B6 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 17 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 17 00 1E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 08 [15:14: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:14:02]wFMCommunicate OK [15:14:02]CreateOFDProtocolMessage done [15:14:02]OFDSenderStorePacket 64006 [15:14:02]StoreOFDPacket docnum=64006 [15:14: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 3F 01 00 00 59 81 37 01 B1 A5 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 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 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 3C 2F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 FA 00 00 35 04 06 00 95 37 7C C0 E3 AA 78 82 82 1B EF FA 21 C4 [15:14:02]CheckFolder [15:14:02]dirname=/storage/ofd_packets [15:14:02]CheckFolder done [15:14:02]ProducePacketName [15:14:02]name=ofd_packets/00064006 [15:14:02]NVStorageSaveData ofd_packets/00064006 [15:14:02]File name is /storage/ofd_packets/00064006 [15:14:02]Write 349 bytes [15:14:02]NVStorageSaveData done [15:14:02]OFDSenderStorePacket done [15:14:02]KKMCreateOFDPacket done [15:14:02]NVStorageSaveData kkm_last_timestamp [15:14:02]File name is /storage/kkm_last_timestamp [15:14:02]Write 4 bytes [15:14:02]NVStorageSaveData done [15:14:02]ExternCall_PrintAddStr [15:14:02]wPrintStart [15:14:02]Write to MH i2c: 01 00 00 1F 1E 3D [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 07 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 07 00 1F 1E 00 00 00 00 00 FF 0F 52 [15:14:02]RasterBufferAndPrint [15:14:02]line Счет N : (3)73563 [15:14:02]line ИНН: 02508201610067 [15:14:02]line Контрольно-Кассовый Чек [15:14:02]line ПРОДАЖА [15:14:02]line Товар: 4000417700001 [15:14:02]line Шок Ritter SPORT EN мол лещина,фунд 100г [15:14:02]line 1.000 * 255.00 [15:14:02]line = 255.00 [15:14:02]line НДС 12% НСП 1% [15:14:02]line > о реализуемом товаре [15:14:02]line ИТОГО: 255.00 [15:14:02]line НСП 1% : 2.26 [15:14:02]line НДС 12% : 27.08 [15:14:02]line Наличными: 255.00 [15:14:02]line Безнал.: 0.00 [15:14:02]line Место: АЗС № 117 "Партнер Нефть" [15:14:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:14:02]line СНО: Общий режим [15:14:02]line Чек 91 04.06.2024 15:14 [15:14:02]line Смена: 374 ФФД: 1.0 [15:14:02]line ЗНМ: 0300000031 [15:14:02]line РНМ: 0000000000092737 [15:14:02]line Версия ККМ: 001 [15:14:02]line ФМ: 0000000000875074 [15:14:02]line ФД: 64006 [15:14:02]line ФПД: 164065548755882 [15:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T151404&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64006&fm=164065548755882&tin=02508201610067®Number=0000000000092737&sum=25500 [15:14:02]line 0 [15:14:02]OFD Sender: Processing packet 64006 [packets to send 14, broken 13] [15:14:02]ProducePacketName [15:14:02]name=ofd_packets/00064006 [15:14:02]OFD Sender: To server: pG, [15:14:02]CommunicateWithHost lk.salyk.kg:30040 [15:14:02]ConnectInit lk.salyk.kg [15:14:02]written 0, free lines is 4095 [15:14:02]Connected sock=10 [15:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3F 01 00 00 59 81 37 01 B1 A5 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 30 30 30 34 31 37 37 30 30 30 30 31 06 04 39 00 D0 A8 D0 BE D0 BA 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 45 4E 20 D0 BC D0 BE D0 BB 20 D0 BB D0 B5 D1 89 D0 B8 D0 BD D0 B0 2C D1 84 D1 83 D0 BD D0 B4 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 63 00 00 00 00 13 04 06 00 9C 63 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 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 3C 2F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 FA 00 00 35 04 06 00 95 37 7C C0 E3 AA 78 82 82 1B EF FA 21 C4 [15:14:03]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 87 47 00 D1 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 06 FA 00 00 F4 03 04 00 0A DB 5E 66 B6 04 01 00 00 C5 FF BC C4 0D 47 31 3C [15:14:03]CommunicateWithHost err = 0 [15:14:03]CheckOFDResponse [15:14:03]1017 (14) - 77093643461234 [15:14:03]1041 (16) - 0000000000875074 [15:14:03]1040 (4) - 64006 [15:14:03]1012 (4) - 04.06.2024 09:14 [15:14:03]1206 (1) - 0 [15:14:03]OFD Sender: Remove packet 64006 [15:14:03]ProducePacketName [15:14:03]name=ofd_packets/00064006 [15:14:03]NVStorageDeleteData [15:14:03]Write to MH i2c: 01 00 00 48 1E 66 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: 01 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: 01 07 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: 01 07 00 48 1E 00 00 00 00 00 EB 0C 64 [15:14:03]RasterBufferAndPrint [15:14:03]line [15:14:03]line [15:14:03]line [15:14:03]line [15:14:03]line [15:14:03]written 0, free lines is 3313 [15:14:03]MH_Cut [15:14:03]Write to MH i2c: D1 01 00 4F 1E 01 3F [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: D1 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: D1 01 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: D1 01 00 4F 1E 00 3E [15:14:03]Write to MH i2c: 01 00 00 50 1E 6E [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]OFD Sender: No OFD packet to send [15:14:04]*** Cut start [15:14:04]*** Partial cut [15:14:04]*** CUTSNS_PIN = 1 [15:14:04]*** CUTSNS_PIN = 0 [15:14:04]*** Brake cut motor [15:14:04]Read from MH i2c: 01 [15:14:04]MH_I2C_Read... [15:14:04]*** Stop cut motor [15:14:04]*** Cut end [15:14:04]Read from MH i2c: 01 07 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 FF 0F 83 [15:14:04]process_action close_receipt done [15:14:04]requested_data is exist [15:14:04]produce_requested_data [15:14:04]requested_item fm.sn is exist - process it [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 11 00 00 [15:14:04]Write to MH i2c: E2 08 00 51 1E 80 11 00 00 00 00 00 00 E9 [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 17 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 17 00 51 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3B [15:14: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:14:04]wFMCommunicate OK [15:14:04]requested_item fd.num is exist - process it [15:14:04]SAM_PROTO_GetFieldsCounters [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 13 00 00 [15:14:04]Write to MH i2c: E2 08 00 52 1E 80 13 00 00 00 00 00 00 EC [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 62 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 62 00 52 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 06 FA 00 00 0E 04 04 00 76 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 97 [15:14: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 06 FA 00 00 0E 04 04 00 76 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 [15:14:04]wFMCommunicate OK [15:14:04]SAM_PROTO_GetFieldsCounters done [15:14:04]requested_item shift.num is exist - process it [15:14:04]requested_item shift.opened is exist - process it [15:14:04]req_shift_opened [15:14:04]FM_GetShiftState [15:14:04]SAM_PROTO_GetShiftState [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 13 01 00 [15:14:04]Write to MH i2c: E2 08 00 53 1E 80 13 01 00 00 00 00 00 EE [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:05]Read from MH i2c: E2 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 0E 00 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 0E 00 53 1E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 8E [15:14:05]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:14:05]wFMCommunicate OK [15:14:05]SAM_PROTO_GetShiftState done [15:14:05]FM_GetShiftState done [15:14:05]req_shift_opened done [15:14:05]requested_item shift.open_date is exist - process it [15:14:05]req_shift_open_date [15:14:05]req_shift_open_date done [15:14:05]produce_requested_data done [15:14:05]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64006,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [15:14:05]process_action_free close_receipt [15:14:05]json_value_free [15:14:05]json_value_free done [15:14:05]process_json_proto returns [15:14:05]Send response to host [15:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64006,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [15:14:05]free response buf [15:14:05]execute_script done [15:14:05]execute_script returns [15:14:05]free content buf [15:14:05]Sock 7.Close socket [15:14:05]Sock 7.Thread stoped [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:12]accept exits with 9 [15:40:12]New connection [15:40:12]New thread 3066912100 created [15:40:12]Thread 3067055460 joined [15:40:12]Waiting for new connection... [15:40:12] Sock 9.Parse request [15:40:12]Sock 9.Check first char [15:40:12]Sock 9.First char is OK [15:40:12]request: POST /json_proto HTTP/1.0 [15:40:12]Method: POST [15:40:12]URL: /json_proto [15:40:12]Method is POST - this is cgi request [15:40:12]url: /json_proto [15:40:12]query_string will be loaded in cgi processing [15:40:12]execute_cgi json_proto POST (null) [15:40:12]execute_cgi path=json_proto method=POST [15:40:12]POST find Content-Length [15:40:12]Host: 172.17.60.69:8080 [15:40:12]Content-Length: 686 [15:40:12]Content-Type: application/json [15:40:12] [15:40:12]POST finish read [15:40:12]Found Content-Length = 686 [15:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73564", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:12]execute_script... [15:40:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73564", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:12]POST & json_proto [15:40:12]process_json_proto [15:40:12]json parsed OK: [15:40:12]protocol is kg_v1.0 [15:40:12]action value=close_receipt [15:40:12]process_action close_receipt [15:40:12]cmd_close_receipt [15:40:12]MH_GetDate [15:40:12]Write to MH i2c: F0 00 00 54 1E 61 [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: F0 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: F0 09 00 [15:40:12]MH_I2C_Read... [15:40:12]Read from MH i2c: F0 09 00 54 1E 00 60 35 5F 66 6A 96 4A 66 74 [15:40:12]GetLastDocTimeStamp 1717514044 [15:40:12]current date 1717515616 [15:40:12]FM_GetShiftState [15:40:12]SAM_PROTO_GetShiftState [15:40:12]wFMCommunicate request_size=4 [15:40:12]MH_SAM_APDU [15:40:12]CAPDU: 80 13 01 00 [15:40:12]Write to MH i2c: E2 08 00 55 1E 80 13 01 00 00 00 00 00 F0 [15:40:12]Write i2c OK [15:40:12]MH_I2C_Read... [15:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:13]Read from MH i2c: E2 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: E2 0E 00 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: E2 0E 00 55 1E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 90 [15:40:13]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:40:13]wFMCommunicate OK [15:40:13]SAM_PROTO_GetShiftState done [15:40:13]FM_GetShiftState done [15:40:13]opened in 1717459574 [15:40:13]opened+sec_in_day 1717545974 [15:40:13]quantity*price = 5000 [15:40:13]sum+1 = 5001 [15:40:13]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 СНО: Общий режим Чек 92 04.06.2024 15:40 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64007 ФПД: 84890291578081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154016&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64007&fm=84890291578081&tin=02508201610067®Number=0000000000092737&sum=5000 0 [15:40:14]StoreToDocumentArchive [15:40:14]shift 374 fd 64007 [15:40:14]save to /storage/0374/doc_00064007 [15:40:14]save last doc name /storage/0374/doc_00064007 to /storage/kkm_last_doc_name [15:40:14]save OK [15:40:14]Clear old archive folders... [15:40:14]ProcessDocumentItem done err = 0, tmpTLVsize=298 [15:40:14]tlvbuf is 012E9700 [15:40:14]SAM_PROTO_ClearQueue [15:40:14]wFMCommunicate request_size=4 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 09 00 00 [15:40:14]Write to MH i2c: E2 08 00 62 1E 80 09 00 00 00 00 00 00 F2 [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 62 1E 00 90 00 F4 [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]SAM_PROTO_ClearQueue done [15:40:14]KKMCreateOFDPacket [15:40:14]OFDProtocolAddRootSTLVToBuf [15:40:14]FM_MakeSignedData [15:40:14]FM_MakeSignedData [15:40:14]SAM_PROTO_SignData [15:40:14]wFMCommunicate request_size=4 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 01 02 [15:40:14]Write to MH i2c: E2 08 00 63 1E 80 0D 01 02 00 00 00 00 FA [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 63 1E 00 90 00 F5 [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]wFMCommunicate request_size=255 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 00 00 00 F4 03 04 00 60 35 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [15:40:14]Write to MH i2c: E2 02 01 64 1E 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 00 00 00 F4 03 04 00 60 35 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 27 [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 64 1E 00 90 00 F6 [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]wFMCommunicate request_size=57 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 07 FA 00 00 35 04 06 00 4D 35 0F AC A4 E1 [15:40:14]Write to MH i2c: E2 3C 00 65 1E 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 07 FA 00 00 35 04 06 00 4D 35 0F AC A4 E1 00 00 7F [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 65 1E 00 90 00 F7 [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]wFMCommunicate request_size=4 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 03 02 [15:40:14]Write to MH i2c: E2 08 00 66 1E 80 0D 03 02 00 00 00 00 FF [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 0B 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 0B 00 66 1E 00 9B F8 54 5F 64 E8 79 5B 90 00 66 [15:40:14]RAPDU: 9B F8 54 5F 64 E8 79 5B 90 00 [15:40:14]wFMCommunicate OK [15:40:14]SAM_PROTO_SignData done [15:40:14]FM_MakeSignedData done [15:40:14]CreateOFDProtocolMessage [15:40:14]wFMCommunicate request_size=4 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 11 00 00 [15:40:14]Write to MH i2c: E2 08 00 67 1E 80 11 00 00 00 00 00 00 FF [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 17 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 17 00 67 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 51 [15:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:40:14]wFMCommunicate OK [15:40:14]CreateOFDProtocolMessage done [15:40:14]OFDSenderStorePacket 64007 [15:40:14]StoreOFDPacket docnum=64007 [15:40: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 3E 01 00 00 5D 12 36 01 2B 33 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 00 00 00 F4 03 04 00 60 35 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 07 FA 00 00 35 04 06 00 4D 35 0F AC A4 E1 9B F8 54 5F 64 E8 79 5B [15:40:14]CheckFolder [15:40:14]dirname=/storage/ofd_packets [15:40:14]CheckFolder done [15:40:14]ProducePacketName [15:40:14]name=ofd_packets/00064007 [15:40:14]NVStorageSaveData ofd_packets/00064007 [15:40:14]File name is /storage/ofd_packets/00064007 [15:40:14]Write 348 bytes [15:40:14]NVStorageSaveData done [15:40:14]OFDSenderStorePacket done [15:40:14]KKMCreateOFDPacket done [15:40:14]NVStorageSaveData kkm_last_timestamp [15:40:14]File name is /storage/kkm_last_timestamp [15:40:14]Write 4 bytes [15:40:14]NVStorageSaveData done [15:40:14]ExternCall_PrintAddStr [15:40:14]wPrintStart [15:40:14]Write to MH i2c: 01 00 00 68 1E 86 [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: 01 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: 01 07 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: 01 07 00 68 1E 00 00 00 00 00 FF 0F 9B [15:40:14]RasterBufferAndPrint [15:40:14]line Счет N : (3)73564 [15:40:14]line ИНН: 02508201610067 [15:40:14]line Контрольно-Кассовый Чек [15:40:14]line ПРОДАЖА [15:40:14]line Товар: 4700003010032 [15:40:14]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [15:40:14]line 1.000 * 50.00 [15:40:14]line = 50.00 [15:40:14]line НДС 12% НСП 1% [15:40:14]line > о реализуемом товаре [15:40:14]line ИТОГО: 50.00 [15:40:14]line НСП 1% : 0.44 [15:40:14]line НДС 12% : 5.31 [15:40:14]line Наличными: 50.00 [15:40:14]line Безнал.: 0.00 [15:40:14]line Место: АЗС № 117 "Партнер Нефть" [15:40:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:40:14]line СНО: Общий режим [15:40:14]line Чек 92 04.06.2024 15:40 [15:40:14]line Смена: 374 ФФД: 1.0 [15:40:14]line ЗНМ: 0300000031 [15:40:14]line РНМ: 0000000000092737 [15:40:14]line Версия ККМ: 001 [15:40:14]line ФМ: 0000000000875074 [15:40:14]line ФД: 64007 [15:40:15]line ФПД: 84890291578081 [15:40:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154016&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64007&fm=84890291578081&tin=02508201610067®Number=0000000000092737&sum=5000 [15:40:15]line 0 [15:40:15]OFD Sender: Processing packet 64007 [packets to send 14, broken 13] [15:40:15]ProducePacketName [15:40:15]name=ofd_packets/00064007 [15:40:15]OFD Sender: To server: pG, [15:40:15]CommunicateWithHost lk.salyk.kg:30040 [15:40:15]ConnectInit lk.salyk.kg [15:40:15]written 0, free lines is 4095 [15:40:15]Connected sock=10 [15:40:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3E 01 00 00 5D 12 36 01 2B 33 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 00 00 00 F4 03 04 00 60 35 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 07 FA 00 00 35 04 06 00 4D 35 0F AC A4 E1 9B F8 54 5F 64 E8 79 5B [15:40: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 EF 0D 47 00 5E B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 07 FA 00 00 F4 03 04 00 2E E1 5E 66 B6 04 01 00 00 DD BF 31 E5 02 3C F7 D0 [15:40:15]CommunicateWithHost err = 0 [15:40:15]CheckOFDResponse [15:40:15]1017 (14) - 77093643461234 [15:40:15]1041 (16) - 0000000000875074 [15:40:15]1040 (4) - 64007 [15:40:15]1012 (4) - 04.06.2024 09:41 [15:40:15]1206 (1) - 0 [15:40:15]OFD Sender: Remove packet 64007 [15:40:15]ProducePacketName [15:40:15]name=ofd_packets/00064007 [15:40:15]NVStorageDeleteData [15:40:15]Write to MH i2c: 01 00 00 91 1E AF [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 07 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 07 00 91 1E 00 00 00 00 00 F1 0C B3 [15:40:15]RasterBufferAndPrint [15:40:15]line [15:40:15]line [15:40:15]line [15:40:15]line [15:40:15]line [15:40:15]written 0, free lines is 3319 [15:40:15]MH_Cut [15:40:15]Write to MH i2c: D1 01 00 98 1E 01 88 [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: D1 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: D1 01 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: D1 01 00 98 1E 00 87 [15:40:15]Write to MH i2c: 01 00 00 99 1E B7 [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]OFD Sender: No OFD packet to send [15:40:16]*** Cut start [15:40:16]*** Partial cut [15:40:16]*** CUTSNS_PIN = 1 [15:40:16]*** CUTSNS_PIN = 0 [15:40:16]*** Brake cut motor [15:40:16]Read from MH i2c: 01 [15:40:16]MH_I2C_Read... [15:40:16]*** Stop cut motor [15:40:16]*** Cut end [15:40:16]Read from MH i2c: 01 07 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: 01 07 00 99 1E 00 00 00 00 00 FF 0F CC [15:40:16]process_action close_receipt done [15:40:16]requested_data is exist [15:40:16]produce_requested_data [15:40:16]requested_item fm.sn is exist - process it [15:40:16]wFMCommunicate request_size=4 [15:40:16]MH_SAM_APDU [15:40:16]CAPDU: 80 11 00 00 [15:40:16]Write to MH i2c: E2 08 00 9A 1E 80 11 00 00 00 00 00 00 32 [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:16]Read from MH i2c: E2 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 17 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 17 00 9A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 84 [15:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:40:16]wFMCommunicate OK [15:40:16]requested_item fd.num is exist - process it [15:40:16]SAM_PROTO_GetFieldsCounters [15:40:16]wFMCommunicate request_size=4 [15:40:16]MH_SAM_APDU [15:40:16]CAPDU: 80 13 00 00 [15:40:16]Write to MH i2c: E2 08 00 9B 1E 80 13 00 00 00 00 00 00 35 [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 62 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 62 00 9B 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 07 FA 00 00 0E 04 04 00 76 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 E4 [15:40: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 07 FA 00 00 0E 04 04 00 76 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 [15:40:17]wFMCommunicate OK [15:40:17]SAM_PROTO_GetFieldsCounters done [15:40:17]requested_item shift.num is exist - process it [15:40:17]requested_item shift.opened is exist - process it [15:40:17]req_shift_opened [15:40:17]FM_GetShiftState [15:40:17]SAM_PROTO_GetShiftState [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 13 01 00 [15:40:17]Write to MH i2c: E2 08 00 9C 1E 80 13 01 00 00 00 00 00 37 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 0E 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 0E 00 9C 1E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D7 [15:40:17]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:40:17]wFMCommunicate OK [15:40:17]SAM_PROTO_GetShiftState done [15:40:17]FM_GetShiftState done [15:40:17]req_shift_opened done [15:40:17]requested_item shift.open_date is exist - process it [15:40:17]req_shift_open_date [15:40:17]req_shift_open_date done [15:40:17]produce_requested_data done [15:40:17]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64007,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [15:40:17]process_action_free close_receipt [15:40:17]json_value_free [15:40:17]json_value_free done [15:40:17]process_json_proto returns [15:40:17]Send response to host [15:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64007,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [15:40:17]free response buf [15:40:17]execute_script done [15:40:17]execute_script returns [15:40:17]free content buf [15:40:17]Sock 9.Close socket [15:40:17]Sock 9.Thread stoped [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:47:58]accept exits with 7 [15:47:58]New connection [15:47:58]New thread 3067055460 created [15:47:58]Thread 3066912100 joined [15:47:58]Waiting for new connection... [15:47:58] Sock 7.Parse request [15:47:58]Sock 7.Check first char [15:47:58]Sock 7.First char is OK [15:47:58]request: POST /json_proto HTTP/1.0 [15:47:58]Method: POST [15:47:58]URL: /json_proto [15:47:58]Method is POST - this is cgi request [15:47:58]url: /json_proto [15:47:58]query_string will be loaded in cgi processing [15:47:58]execute_cgi json_proto POST (null) [15:47:58]execute_cgi path=json_proto method=POST [15:47:58]POST find Content-Length [15:47:58]Host: 172.17.60.69:8080 [15:47:58]Content-Length: 1195 [15:47:58]Content-Type: application/json [15:47:58] [15:47:58]POST finish read [15:47:58]Found Content-Length = 1195 [15:47:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73565", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216767921", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Ruby Fuse", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 381.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:58]execute_script... [15:47: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)73565", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216767921", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Ruby Fuse", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 381.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:58]POST & json_proto [15:47:58]process_json_proto [15:47:58]json parsed OK: [15:47:58]protocol is kg_v1.0 [15:47:58]action value=close_receipt [15:47:58]process_action close_receipt [15:47:58]cmd_close_receipt [15:47:58]MH_GetDate [15:47:58]Write to MH i2c: F0 00 00 9D 1E AA [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: F0 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: F0 09 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: F0 09 00 9D 1E 00 32 37 5F 66 6A 96 4A 66 91 [15:47:58]GetLastDocTimeStamp 1717515616 [15:47:58]current date 1717516082 [15:47:58]FM_GetShiftState [15:47:58]SAM_PROTO_GetShiftState [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 13 01 00 [15:47:58]Write to MH i2c: E2 08 00 9E 1E 80 13 01 00 00 00 00 00 39 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0E 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0E 00 9E 1E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D9 [15:47:58]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:47:58]wFMCommunicate OK [15:47:58]SAM_PROTO_GetShiftState done [15:47:58]FM_GetShiftState done [15:47:58]opened in 1717459574 [15:47:58]opened+sec_in_day 1717545974 [15:47:58]quantity*price = 9000 [15:47:58]sum+1 = 9001 [15:47:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744317 Сигареты Camel Yellow 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870216767921 Нагр.Таб.Палоч. HEETS Ruby Fuse 1.000 * 141.00 = 141.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 381.00 НСП 1% : 3.38 НДС 12% : 40.46 Наличными: 381.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 93 04.06.2024 15:48 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64008 ФПД: 75117076693037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154802&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64008&fm=75117076693037&tin=02508201610067®Number=0000000000092737&sum=38100 0 [15:47:59]StoreToDocumentArchive [15:47:59]shift 374 fd 64008 [15:47:59]save to /storage/0374/doc_00064008 [15:47:59]save last doc name /storage/0374/doc_00064008 to /storage/kkm_last_doc_name [15:47:59]save OK [15:47:59]Clear old archive folders... [15:47:59]ProcessDocumentItem done err = 0, tmpTLVsize=510 [15:47:59]tlvbuf is B6DC1150 [15:47:59]SAM_PROTO_ClearQueue [15:47:59]wFMCommunicate request_size=4 [15:47:59]MH_SAM_APDU [15:47:59]CAPDU: 80 09 00 00 [15:47:59]Write to MH i2c: E2 08 00 AB 1E 80 09 00 00 00 00 00 00 3B [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:59]Read from MH i2c: E2 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 03 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 03 00 AB 1E 00 90 00 3D [15:47:59]RAPDU: 90 00 [15:47:59]wFMCommunicate OK [15:47:59]SAM_PROTO_ClearQueue done [15:47:59]KKMCreateOFDPacket [15:47:59]OFDProtocolAddRootSTLVToBuf [15:47:59]FM_MakeSignedData [15:47:59]FM_MakeSignedData [15:47:59]SAM_PROTO_SignData [15:47:59]wFMCommunicate request_size=4 [15:47:59]MH_SAM_APDU [15:47:59]CAPDU: 80 0D 01 02 [15:47:59]Write to MH i2c: E2 08 00 AC 1E 80 0D 01 02 00 00 00 00 43 [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:59]Read from MH i2c: E2 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 03 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: E2 03 00 AC 1E 00 90 00 3E [15:47:59]RAPDU: 90 00 [15:47:59]wFMCommunicate OK [15:47:59]wFMCommunicate request_size=255 [15:47:59]MH_SAM_APDU [15:47:59]CAPDU: 80 0D 02 02 FA 03 00 FE 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 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 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 [15:47:59]Write to MH i2c: E2 02 01 AD 1E 80 0D 02 02 FA 00 03 00 FE 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 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 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 00 00 F2 [15:48:00]Write i2c OK [15:48:00]MH_I2C_Read... [15:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:00]Read from MH i2c: E2 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 03 00 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 03 00 AD 1E 00 90 00 3F [15:48:00]RAPDU: 90 00 [15:48:00]wFMCommunicate OK [15:48:00]wFMCommunicate request_size=255 [15:48:00]MH_SAM_APDU [15:48:00]CAPDU: 80 0D 02 02 FA 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0F 00 00 00 00 07 04 06 00 D4 94 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 32 37 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 [15:48:00]Write to MH i2c: E2 02 01 AE 1E 80 0D 02 02 FA 00 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0F 00 00 00 00 07 04 06 00 D4 94 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 32 37 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 4C [15:48:00]Write i2c OK [15:48:00]MH_I2C_Read... [15:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:00]Read from MH i2c: E2 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 03 00 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 03 00 AE 1E 00 90 00 40 [15:48:00]RAPDU: 90 00 [15:48:00]wFMCommunicate OK [15:48:00]wFMCommunicate request_size=19 [15:48:00]MH_SAM_APDU [15:48:00]CAPDU: 80 0D 02 02 0E 08 FA 00 00 35 04 06 00 44 51 8E AC 40 2D [15:48:00]Write to MH i2c: E2 16 00 AF 1E 80 0D 02 02 0E 00 08 FA 00 00 35 04 06 00 44 51 8E AC 40 2D 00 00 E0 [15:48:00]Write i2c OK [15:48:00]MH_I2C_Read... [15:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:00]Read from MH i2c: E2 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 03 00 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 03 00 AF 1E 00 90 00 41 [15:48:00]RAPDU: 90 00 [15:48:00]wFMCommunicate OK [15:48:00]wFMCommunicate request_size=4 [15:48:00]MH_SAM_APDU [15:48:00]CAPDU: 80 0D 03 02 [15:48:00]Write to MH i2c: E2 08 00 B0 1E 80 0D 03 02 00 00 00 00 49 [15:48:00]Write i2c OK [15:48:00]MH_I2C_Read... [15:48:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:00]Read from MH i2c: E2 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 0B 00 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 0B 00 B0 1E 00 19 A8 11 7E 79 20 92 8B 90 00 50 [15:48:00]RAPDU: 19 A8 11 7E 79 20 92 8B 90 00 [15:48:00]wFMCommunicate OK [15:48:00]SAM_PROTO_SignData done [15:48:00]FM_MakeSignedData done [15:48:00]CreateOFDProtocolMessage [15:48:00]wFMCommunicate request_size=4 [15:48:00]MH_SAM_APDU [15:48:00]CAPDU: 80 11 00 00 [15:48:00]Write to MH i2c: E2 08 00 B1 1E 80 11 00 00 00 00 00 00 49 [15:48:00]Write i2c OK [15:48:00]MH_I2C_Read... [15:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:00]Read from MH i2c: E2 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 17 00 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: E2 17 00 B1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9B [15:48: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:48:00]wFMCommunicate OK [15:48:00]CreateOFDProtocolMessage done [15:48:00]OFDSenderStorePacket 64008 [15:48:00]StoreOFDPacket docnum=64008 [15:48: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 12 02 00 00 3D AD 0A 02 AD 47 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 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 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0F 00 00 00 00 07 04 06 00 D4 94 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 32 37 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 FA 00 00 35 04 06 00 44 51 8E AC 40 2D 19 A8 11 7E 79 20 92 8B [15:48:00]CheckFolder [15:48:00]dirname=/storage/ofd_packets [15:48:00]CheckFolder done [15:48:00]ProducePacketName [15:48:00]name=ofd_packets/00064008 [15:48:00]NVStorageSaveData ofd_packets/00064008 [15:48:00]File name is /storage/ofd_packets/00064008 [15:48:00]Write 560 bytes [15:48:00]NVStorageSaveData done [15:48:00]OFDSenderStorePacket done [15:48:00]KKMCreateOFDPacket done [15:48:00]NVStorageSaveData kkm_last_timestamp [15:48:00]File name is /storage/kkm_last_timestamp [15:48:00]Write 4 bytes [15:48:00]NVStorageSaveData done [15:48:00]ExternCall_PrintAddStr [15:48:00]wPrintStart [15:48:00]Write to MH i2c: 01 00 00 B2 1E D0 [15:48:00]Write i2c OK [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: 01 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: 01 07 00 [15:48:00]MH_I2C_Read... [15:48:00]Read from MH i2c: 01 07 00 B2 1E 00 00 00 00 00 FF 0F E5 [15:48:00]RasterBufferAndPrint [15:48:00]line Счет N : (3)73565 [15:48:00]line ИНН: 02508201610067 [15:48:00]line Контрольно-Кассовый Чек [15:48:00]line ПРОДАЖА [15:48:00]line Товар: 4870002325113 [15:48:00]line Напиток PEPSI газированный ст 0,25л [15:48:00]line 1.000 * 90.00 [15:48:00]line = 90.00 [15:48:00]line НДС 12% НСП 1% [15:48:00]line > о реализуемом товаре [15:48:00]line Товар: 48744317 [15:48:00]line Сигареты Camel Yellow [15:48:00]line 1.000 * 150.00 [15:48:00]line = 150.00 [15:48:00]line НДС 12% НСП 1% [15:48:00]line > о реализуемом товаре [15:48:00]line Товар: 4870216767921 [15:48:00]line Нагр.Таб.Палоч. HEETS Ruby Fuse [15:48:00]line 1.000 * 141.00 [15:48:00]line = 141.00 [15:48:00]line НДС 12% НСП 1% [15:48:00]line > о реализуемом товаре [15:48:00]line ИТОГО: 381.00 [15:48:00]line НСП 1% : 3.38 [15:48:00]line НДС 12% : 40.46 [15:48:00]line Наличными: 381.00 [15:48:00]line Безнал.: 0.00 [15:48:00]line Место: АЗС № 117 "Партнер Нефть" [15:48:00]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:48:00]line СНО: Общий режим [15:48:00]line Чек 93 04.06.2024 15:48 [15:48:00]line Смена: 374 ФФД: 1.0 [15:48:00]line ЗНМ: 0300000031 [15:48:00]line РНМ: 0000000000092737 [15:48:00]line Версия ККМ: 001 [15:48:00]line ФМ: 0000000000875074 [15:48:00]line ФД: 64008 [15:48:00]line ФПД: 75117076693037 [15:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154802&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64008&fm=75117076693037&tin=02508201610067®Number=0000000000092737&sum=38100 [15:48:01]line 0 [15:48:01]OFD Sender: Processing packet 64008 [packets to send 14, broken 13] [15:48:01]ProducePacketName [15:48:01]name=ofd_packets/00064008 [15:48:01]OFD Sender: To server: pG, [15:48:01]CommunicateWithHost lk.salyk.kg:30040 [15:48:01]ConnectInit lk.salyk.kg [15:48:01]written 0, free lines is 4095 [15:48:01]Connected sock=10 [15:48: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 12 02 00 00 3D AD 0A 02 AD 47 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 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 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 37 39 32 31 06 04 2B 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 52 75 62 79 20 46 75 73 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0F 00 00 00 00 07 04 06 00 D4 94 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 32 37 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 FA 00 00 35 04 06 00 44 51 8E AC 40 2D 19 A8 11 7E 79 20 92 8B [15:48: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 B2 E8 47 00 AB FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 08 FA 00 00 F4 03 04 00 00 E3 5E 66 B6 04 01 00 00 A6 72 99 D7 15 B0 F6 29 [15:48:01]CommunicateWithHost err = 0 [15:48:01]CheckOFDResponse [15:48:01]1017 (14) - 77093643461234 [15:48:01]1041 (16) - 0000000000875074 [15:48:01]1040 (4) - 64008 [15:48:01]1012 (4) - 04.06.2024 09:48 [15:48:01]1206 (1) - 0 [15:48:01]OFD Sender: Remove packet 64008 [15:48:01]ProducePacketName [15:48:01]name=ofd_packets/00064008 [15:48:01]NVStorageDeleteData [15:48:01]Write to MH i2c: 01 00 00 E8 1E 06 [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: 01 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: 01 07 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: 01 07 00 E8 1E 00 00 00 00 00 02 0C 1B [15:48:01]RasterBufferAndPrint [15:48:01]line [15:48:01]line [15:48:01]line [15:48:01]line [15:48:01]line [15:48:01]written 0, free lines is 3079 [15:48:01]MH_Cut [15:48:01]Write to MH i2c: D1 01 00 EF 1E 01 DF [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: D1 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: D1 01 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: D1 01 00 EF 1E 00 DE [15:48:01]Write to MH i2c: 01 00 00 F0 1E 0E [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]OFD Sender: No OFD packet to send [15:48:02]*** Cut start [15:48:02]*** Partial cut [15:48:02]*** CUTSNS_PIN = 1 [15:48:02]*** CUTSNS_PIN = 0 [15:48:02]*** Brake cut motor [15:48:03]Read from MH i2c: 01 [15:48:03]MH_I2C_Read... [15:48:03]*** Stop cut motor [15:48:03]*** Cut end [15:48:03]Read from MH i2c: 01 07 00 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: 01 07 00 F0 1E 00 00 00 00 00 FF 0F 23 [15:48:03]process_action close_receipt done [15:48:03]requested_data is exist [15:48:03]produce_requested_data [15:48:03]requested_item fm.sn is exist - process it [15:48:03]wFMCommunicate request_size=4 [15:48:03]MH_SAM_APDU [15:48:03]CAPDU: 80 11 00 00 [15:48:03]Write to MH i2c: E2 08 00 F1 1E 80 11 00 00 00 00 00 00 89 [15:48:03]Write i2c OK [15:48:03]MH_I2C_Read... [15:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:03]Read from MH i2c: E2 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 17 00 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 17 00 F1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DB [15:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:48:03]wFMCommunicate OK [15:48:03]requested_item fd.num is exist - process it [15:48:03]SAM_PROTO_GetFieldsCounters [15:48:03]wFMCommunicate request_size=4 [15:48:03]MH_SAM_APDU [15:48:03]CAPDU: 80 13 00 00 [15:48:03]Write to MH i2c: E2 08 00 F2 1E 80 13 00 00 00 00 00 00 8C [15:48:03]Write i2c OK [15:48:03]MH_I2C_Read... [15:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:03]Read from MH i2c: E2 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 62 00 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 62 00 F2 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 08 FA 00 00 0E 04 04 00 76 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 3F [15:48: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 08 FA 00 00 0E 04 04 00 76 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 [15:48:03]wFMCommunicate OK [15:48:03]SAM_PROTO_GetFieldsCounters done [15:48:03]requested_item shift.num is exist - process it [15:48:03]requested_item shift.opened is exist - process it [15:48:03]req_shift_opened [15:48:03]FM_GetShiftState [15:48:03]SAM_PROTO_GetShiftState [15:48:03]wFMCommunicate request_size=4 [15:48:03]MH_SAM_APDU [15:48:03]CAPDU: 80 13 01 00 [15:48:03]Write to MH i2c: E2 08 00 F3 1E 80 13 01 00 00 00 00 00 8E [15:48:03]Write i2c OK [15:48:03]MH_I2C_Read... [15:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:03]Read from MH i2c: E2 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 0E 00 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 0E 00 F3 1E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 2E [15:48:03]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:48:03]wFMCommunicate OK [15:48:03]SAM_PROTO_GetShiftState done [15:48:03]FM_GetShiftState done [15:48:03]req_shift_opened done [15:48:03]requested_item shift.open_date is exist - process it [15:48:03]req_shift_open_date [15:48:03]req_shift_open_date done [15:48:03]produce_requested_data done [15:48:03]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64008,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [15:48:03]process_action_free close_receipt [15:48:03]json_value_free [15:48:03]json_value_free done [15:48:03]process_json_proto returns [15:48:03]Send response to host [15:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64008,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [15:48:03]free response buf [15:48:03]execute_script done [15:48:03]execute_script returns [15:48:03]free content buf [15:48:03]Sock 7.Close socket [15:48:03]Sock 7.Thread stoped [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:43]accept exits with 9 [15:49:43]New connection [15:49:43]New thread 3066912100 created [15:49:43]Thread 3067055460 joined [15:49:43]Waiting for new connection... [15:49:43] Sock 9.Parse request [15:49:43]Sock 9.Check first char [15:49:43]Sock 9.First char is OK [15:49:43]request: POST /json_proto HTTP/1.0 [15:49:43]Method: POST [15:49:43]URL: /json_proto [15:49:43]Method is POST - this is cgi request [15:49:43]url: /json_proto [15:49:43]query_string will be loaded in cgi processing [15:49:43]execute_cgi json_proto POST (null) [15:49:43]execute_cgi path=json_proto method=POST [15:49:43]POST find Content-Length [15:49:43]Host: 172.17.60.69:8080 [15:49:43]Content-Length: 621 [15:49:43]Content-Type: application/json [15:49:43] [15:49:43]POST finish read [15:49:43]Found Content-Length = 621 [15:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73566", "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 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:43]execute_script... [15:49:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73566", "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 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:43]POST & json_proto [15:49:43]process_json_proto [15:49:43]json parsed OK: [15:49:43]protocol is kg_v1.0 [15:49:43]action value=close_receipt [15:49:43]process_action close_receipt [15:49:43]cmd_close_receipt [15:49:43]MH_GetDate [15:49:43]Write to MH i2c: F0 00 00 F4 1E 01 [15:49:43]Write i2c OK [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: F0 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: F0 09 00 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: F0 09 00 F4 1E 00 9A 37 5F 66 6A 96 4A 66 50 [15:49:43]GetLastDocTimeStamp 1717516082 [15:49:43]current date 1717516186 [15:49:43]FM_GetShiftState [15:49:43]SAM_PROTO_GetShiftState [15:49:43]wFMCommunicate request_size=4 [15:49:43]MH_SAM_APDU [15:49:43]CAPDU: 80 13 01 00 [15:49:43]Write to MH i2c: E2 08 00 F5 1E 80 13 01 00 00 00 00 00 90 [15:49:43]Write i2c OK [15:49:43]MH_I2C_Read... [15:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:43]Read from MH i2c: E2 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 0E 00 [15:49:43]MH_I2C_Read... [15:49:43]Read from MH i2c: E2 0E 00 F5 1E 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 30 [15:49:43]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:49:43]wFMCommunicate OK [15:49:43]SAM_PROTO_GetShiftState done [15:49:43]FM_GetShiftState done [15:49:43]opened in 1717459574 [15:49:43]opened+sec_in_day 1717545974 [15:49:43]quantity*price = 13800 [15:49:43]sum+1 = 13801 [15:49:43]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 СНО: Общий режим Чек 94 04.06.2024 15:49 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64009 ФПД: 29880406594427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154946&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64009&fm=29880406594427&tin=02508201610067®Number=0000000000092737&sum=13800 0 [15:49:44]StoreToDocumentArchive [15:49:44]shift 374 fd 64009 [15:49:44]save to /storage/0374/doc_00064009 [15:49:44]save last doc name /storage/0374/doc_00064009 to /storage/kkm_last_doc_name [15:49:44]save OK [15:49:44]Clear old archive folders... [15:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:49:44]tlvbuf is 012F00D0 [15:49:44]SAM_PROTO_ClearQueue [15:49:44]wFMCommunicate request_size=4 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 09 00 00 [15:49:44]Write to MH i2c: E2 08 00 02 1F 80 09 00 00 00 00 00 00 93 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 02 1F 00 90 00 95 [15:49:44]RAPDU: 90 00 [15:49:44]wFMCommunicate OK [15:49:44]SAM_PROTO_ClearQueue done [15:49:44]KKMCreateOFDPacket [15:49:44]OFDProtocolAddRootSTLVToBuf [15:49:44]FM_MakeSignedData [15:49:44]FM_MakeSignedData [15:49:44]SAM_PROTO_SignData [15:49:44]wFMCommunicate request_size=4 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 0D 01 02 [15:49:44]Write to MH i2c: E2 08 00 03 1F 80 0D 01 02 00 00 00 00 9B [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 03 1F 00 90 00 96 [15:49:44]RAPDU: 90 00 [15:49:44]wFMCommunicate OK [15:49:44]wFMCommunicate request_size=255 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5E 00 00 00 F4 03 04 00 9A 37 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [15:49:44]Write to MH i2c: E2 02 01 04 1F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5E 00 00 00 F4 03 04 00 9A 37 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 46 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 04 1F 00 90 00 97 [15:49:44]RAPDU: 90 00 [15:49:44]wFMCommunicate OK [15:49:44]wFMCommunicate request_size=33 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 09 FA 00 00 35 04 06 00 1B 2D 13 05 53 7B [15:49:44]Write to MH i2c: E2 24 00 05 1F 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 09 FA 00 00 35 04 06 00 1B 2D 13 05 53 7B 00 00 5D [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 03 00 05 1F 00 90 00 98 [15:49:44]RAPDU: 90 00 [15:49:44]wFMCommunicate OK [15:49:44]wFMCommunicate request_size=4 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 0D 03 02 [15:49:44]Write to MH i2c: E2 08 00 06 1F 80 0D 03 02 00 00 00 00 A0 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 0B 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 0B 00 06 1F 00 FD 9D CD B2 6B 5A 3F 4C 90 00 0A [15:49:44]RAPDU: FD 9D CD B2 6B 5A 3F 4C 90 00 [15:49:44]wFMCommunicate OK [15:49:44]SAM_PROTO_SignData done [15:49:44]FM_MakeSignedData done [15:49:44]CreateOFDProtocolMessage [15:49:44]wFMCommunicate request_size=4 [15:49:44]MH_SAM_APDU [15:49:44]CAPDU: 80 11 00 00 [15:49:44]Write to MH i2c: E2 08 00 07 1F 80 11 00 00 00 00 00 00 A0 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:44]Read from MH i2c: E2 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 17 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: E2 17 00 07 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F2 [15:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:49:44]wFMCommunicate OK [15:49:44]CreateOFDProtocolMessage done [15:49:44]OFDSenderStorePacket 64009 [15:49:44]StoreOFDPacket docnum=64009 [15:49:44]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 3B 28 1E 01 16 75 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5E 00 00 00 F4 03 04 00 9A 37 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 09 FA 00 00 35 04 06 00 1B 2D 13 05 53 7B FD 9D CD B2 6B 5A 3F 4C [15:49:44]CheckFolder [15:49:44]dirname=/storage/ofd_packets [15:49:44]CheckFolder done [15:49:44]ProducePacketName [15:49:44]name=ofd_packets/00064009 [15:49:44]NVStorageSaveData ofd_packets/00064009 [15:49:44]File name is /storage/ofd_packets/00064009 [15:49:44]Write 324 bytes [15:49:44]NVStorageSaveData done [15:49:44]OFDSenderStorePacket done [15:49:44]KKMCreateOFDPacket done [15:49:44]NVStorageSaveData kkm_last_timestamp [15:49:44]File name is /storage/kkm_last_timestamp [15:49:44]Write 4 bytes [15:49:44]NVStorageSaveData done [15:49:44]ExternCall_PrintAddStr [15:49:44]wPrintStart [15:49:44]Write to MH i2c: 01 00 00 08 1F 27 [15:49:44]Write i2c OK [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 [15:49:44]MH_I2C_Read... [15:49:44]Read from MH i2c: 01 07 00 08 1F 00 00 00 00 00 FF 0F 3C [15:49:44]RasterBufferAndPrint [15:49:44]line Счет N : (3)73566 [15:49:44]line ИНН: 02508201610067 [15:49:44]line Контрольно-Кассовый Чек [15:49:44]line ПРОДАЖА [15:49:44]line Товар: 4640030091645 [15:49:44]line Сигареты ESSE Exchange M [15:49:44]line 1.000 * 138.00 [15:49:44]line = 138.00 [15:49:44]line НДС 12% НСП 1% [15:49:44]line > о реализуемом товаре [15:49:44]line ИТОГО: 138.00 [15:49:44]line НСП 1% : 1.22 [15:49:44]line НДС 12% : 14.65 [15:49:44]line Наличными: 138.00 [15:49:44]line Безнал.: 0.00 [15:49:44]line Место: АЗС № 117 "Партнер Нефть" [15:49:44]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:49:44]line СНО: Общий режим [15:49:44]line Чек 94 04.06.2024 15:49 [15:49:44]line Смена: 374 ФФД: 1.0 [15:49:44]line ЗНМ: 0300000031 [15:49:44]line РНМ: 0000000000092737 [15:49:44]line Версия ККМ: 001 [15:49:44]line ФМ: 0000000000875074 [15:49:44]line ФД: 64009 [15:49:44]line ФПД: 29880406594427 [15:49:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T154946&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64009&fm=29880406594427&tin=02508201610067®Number=0000000000092737&sum=13800 [15:49:45]line 0 [15:49:45]OFD Sender: Processing packet 64009 [packets to send 14, broken 13] [15:49:45]ProducePacketName [15:49:45]name=ofd_packets/00064009 [15:49:45]OFD Sender: To server: pG, [15:49:45]CommunicateWithHost lk.salyk.kg:30040 [15:49:45]ConnectInit lk.salyk.kg [15:49:45]written 0, free lines is 4095 [15:49:45]Connected sock=10 [15:49:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 3B 28 1E 01 16 75 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5E 00 00 00 F4 03 04 00 9A 37 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 09 FA 00 00 35 04 06 00 1B 2D 13 05 53 7B FD 9D CD B2 6B 5A 3F 4C [15:49: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 D0 C7 47 00 76 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 09 FA 00 00 F4 03 04 00 68 E3 5E 66 B6 04 01 00 00 EC CE 7A 6E 19 85 24 D2 [15:49:45]CommunicateWithHost err = 0 [15:49:45]CheckOFDResponse [15:49:45]1017 (14) - 77093643461234 [15:49:45]1041 (16) - 0000000000875074 [15:49:45]1040 (4) - 64009 [15:49:45]1012 (4) - 04.06.2024 09:50 [15:49:45]1206 (1) - 0 [15:49:45]OFD Sender: Remove packet 64009 [15:49:45]ProducePacketName [15:49:45]name=ofd_packets/00064009 [15:49:45]NVStorageDeleteData [15:49:45]Write to MH i2c: 01 00 00 30 1F 4F [15:49:45]Write i2c OK [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: 01 [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: 01 07 00 [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: 01 07 00 30 1F 00 00 00 00 00 FD 0C 5F [15:49:45]RasterBufferAndPrint [15:49:45]line [15:49:45]line [15:49:45]line [15:49:45]line [15:49:45]line [15:49:45]written 0, free lines is 3332 [15:49:45]MH_Cut [15:49:45]Write to MH i2c: D1 01 00 37 1F 01 28 [15:49:45]Write i2c OK [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: D1 [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: D1 01 00 [15:49:45]MH_I2C_Read... [15:49:45]Read from MH i2c: D1 01 00 37 1F 00 27 [15:49:45]Write to MH i2c: 01 00 00 38 1F 57 [15:49:45]Write i2c OK [15:49:45]MH_I2C_Read... [15:49:45]OFD Sender: No OFD packet to send [15:49:46]*** Cut start [15:49:46]*** Partial cut [15:49:46]*** CUTSNS_PIN = 1 [15:49:46]*** CUTSNS_PIN = 0 [15:49:46]*** Brake cut motor [15:49:46]Read from MH i2c: 01 [15:49:46]MH_I2C_Read... [15:49:46]*** Stop cut motor [15:49:46]*** Cut end [15:49:46]Read from MH i2c: 01 07 00 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: 01 07 00 38 1F 00 00 00 00 00 FF 0F 6C [15:49:46]process_action close_receipt done [15:49:46]requested_data is exist [15:49:46]produce_requested_data [15:49:46]requested_item fm.sn is exist - process it [15:49:46]wFMCommunicate request_size=4 [15:49:46]MH_SAM_APDU [15:49:46]CAPDU: 80 11 00 00 [15:49:46]Write to MH i2c: E2 08 00 39 1F 80 11 00 00 00 00 00 00 D2 [15:49:46]Write i2c OK [15:49:46]MH_I2C_Read... [15:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:46]Read from MH i2c: E2 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 17 00 [15:49:46]MH_I2C_Read... [15:49:46]Read from MH i2c: E2 17 00 39 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 24 [15:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:49:46]wFMCommunicate OK [15:49:46]requested_item fd.num is exist - process it [15:49:46]SAM_PROTO_GetFieldsCounters [15:49:46]wFMCommunicate request_size=4 [15:49:46]MH_SAM_APDU [15:49:46]CAPDU: 80 13 00 00 [15:49:46]Write to MH i2c: E2 08 00 3A 1F 80 13 00 00 00 00 00 00 D5 [15:49:46]Write i2c OK [15:49:46]MH_I2C_Read... [15:49:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:47]Read from MH i2c: E2 [15:49:47]MH_I2C_Read... [15:49:47]Read from MH i2c: E2 62 00 [15:49:47]MH_I2C_Read... [15:49:47]Read from MH i2c: E2 62 00 3A 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 09 FA 00 00 0E 04 04 00 76 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 8C [15:49:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 09 FA 00 00 0E 04 04 00 76 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:49:47]wFMCommunicate OK [15:49:47]SAM_PROTO_GetFieldsCounters done [15:49:47]requested_item shift.num is exist - process it [15:49:47]requested_item shift.opened is exist - process it [15:49:47]req_shift_opened [15:49:47]FM_GetShiftState [15:49:47]SAM_PROTO_GetShiftState [15:49:47]wFMCommunicate request_size=4 [15:49:47]MH_SAM_APDU [15:49:47]CAPDU: 80 13 01 00 [15:49:47]Write to MH i2c: E2 08 00 3B 1F 80 13 01 00 00 00 00 00 D7 [15:49:47]Write i2c OK [15:49:47]MH_I2C_Read... [15:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:47]Read from MH i2c: E2 [15:49:47]MH_I2C_Read... [15:49:47]Read from MH i2c: E2 0E 00 [15:49:47]MH_I2C_Read... [15:49:47]Read from MH i2c: E2 0E 00 3B 1F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 77 [15:49:47]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:49:47]wFMCommunicate OK [15:49:47]SAM_PROTO_GetShiftState done [15:49:47]FM_GetShiftState done [15:49:47]req_shift_opened done [15:49:47]requested_item shift.open_date is exist - process it [15:49:47]req_shift_open_date [15:49:47]req_shift_open_date done [15:49:47]produce_requested_data done [15:49:47]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64009,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [15:49:47]process_action_free close_receipt [15:49:47]json_value_free [15:49:47]json_value_free done [15:49:47]process_json_proto returns [15:49:47]Send response to host [15:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64009,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [15:49:47]free response buf [15:49:47]execute_script done [15:49:47]execute_script returns [15:49:47]free content buf [15:49:47]Sock 9.Close socket [15:49:47]Sock 9.Thread stoped [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:49]accept exits with 7 [15:51:49]New connection [15:51:49]New thread 3067055460 created [15:51:49]Thread 3066912100 joined [15:51:49]Waiting for new connection... [15:51:49] Sock 7.Parse request [15:51:49]Sock 7.Check first char [15:51:49]Sock 7.First char is OK [15:51:49]request: POST /json_proto HTTP/1.0 [15:51:49]Method: POST [15:51:49]URL: /json_proto [15:51:49]Method is POST - this is cgi request [15:51:49]url: /json_proto [15:51:49]query_string will be loaded in cgi processing [15:51:49]execute_cgi json_proto POST (null) [15:51:49]execute_cgi path=json_proto method=POST [15:51:49]POST find Content-Length [15:51:49]Host: 172.17.60.69:8080 [15:51:49]Content-Length: 659 [15:51:49]Content-Type: application/json [15:51:49] [15:51:49]POST finish read [15:51:49]Found Content-Length = 659 [15:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73567", "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 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:49]execute_script... [15:51: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)73567", "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 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:49]POST & json_proto [15:51:49]process_json_proto [15:51:49]json parsed OK: [15:51:49]protocol is kg_v1.0 [15:51:49]action value=close_receipt [15:51:49]process_action close_receipt [15:51:49]cmd_close_receipt [15:51:49]MH_GetDate [15:51:49]Write to MH i2c: F0 00 00 3C 1F 4A [15:51:49]Write i2c OK [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: F0 [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: F0 09 00 [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: F0 09 00 3C 1F 00 19 38 5F 66 6A 96 4A 66 19 [15:51:49]GetLastDocTimeStamp 1717516186 [15:51:49]current date 1717516313 [15:51:49]FM_GetShiftState [15:51:49]SAM_PROTO_GetShiftState [15:51:49]wFMCommunicate request_size=4 [15:51:49]MH_SAM_APDU [15:51:49]CAPDU: 80 13 01 00 [15:51:49]Write to MH i2c: E2 08 00 3D 1F 80 13 01 00 00 00 00 00 D9 [15:51:49]Write i2c OK [15:51:49]MH_I2C_Read... [15:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:49]Read from MH i2c: E2 [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: E2 0E 00 [15:51:49]MH_I2C_Read... [15:51:49]Read from MH i2c: E2 0E 00 3D 1F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 79 [15:51:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:51:49]wFMCommunicate OK [15:51:49]SAM_PROTO_GetShiftState done [15:51:49]FM_GetShiftState done [15:51:49]opened in 1717459574 [15:51:49]opened+sec_in_day 1717545974 [15:51:49]quantity*price = 15500 [15:51:49]sum+1 = 15501 [15:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 95 04.06.2024 15:51 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64010 ФПД: 118647854528836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155153&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64010&fm=118647854528836&tin=02508201610067®Number=0000000000092737&sum=15500 0 [15:51:51]StoreToDocumentArchive [15:51:51]shift 374 fd 64010 [15:51:51]save to /storage/0374/doc_00064010 [15:51:51]save last doc name /storage/0374/doc_00064010 to /storage/kkm_last_doc_name [15:51:51]save OK [15:51:51]Clear old archive folders... [15:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:51:51]tlvbuf is 012B4ED0 [15:51:51]SAM_PROTO_ClearQueue [15:51:51]wFMCommunicate request_size=4 [15:51:51]MH_SAM_APDU [15:51:51]CAPDU: 80 09 00 00 [15:51:51]Write to MH i2c: E2 08 00 4A 1F 80 09 00 00 00 00 00 00 DB [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:51]Read from MH i2c: E2 03 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 4A 1F 00 90 00 DD [15:51:51]RAPDU: 90 00 [15:51:51]wFMCommunicate OK [15:51:51]SAM_PROTO_ClearQueue done [15:51:51]KKMCreateOFDPacket [15:51:51]OFDProtocolAddRootSTLVToBuf [15:51:51]FM_MakeSignedData [15:51:51]FM_MakeSignedData [15:51:51]SAM_PROTO_SignData [15:51:51]wFMCommunicate request_size=4 [15:51:51]MH_SAM_APDU [15:51:51]CAPDU: 80 0D 01 02 [15:51:51]Write to MH i2c: E2 08 00 4B 1F 80 0D 01 02 00 00 00 00 E3 [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [15:51:51]RAPDU: 90 00 [15:51:51]wFMCommunicate OK [15:51:51]wFMCommunicate request_size=255 [15:51:51]MH_SAM_APDU [15:51:51]CAPDU: 80 0D 02 02 FA 03 00 18 01 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 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 19 38 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [15:51:51]Write to MH i2c: E2 02 01 4C 1F 80 0D 02 02 FA 00 03 00 18 01 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 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 19 38 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 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 EB [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 4C 1F 00 90 00 DF [15:51:51]RAPDU: 90 00 [15:51:51]wFMCommunicate OK [15:51:51]wFMCommunicate request_size=39 [15:51:51]MH_SAM_APDU [15:51:51]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 0A FA 00 00 35 04 06 00 6B E8 DB 38 F9 44 [15:51:51]Write to MH i2c: E2 2A 00 4D 1F 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 0A FA 00 00 35 04 06 00 6B E8 DB 38 F9 44 00 00 47 [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 03 00 4D 1F 00 90 00 E0 [15:51:51]RAPDU: 90 00 [15:51:51]wFMCommunicate OK [15:51:51]wFMCommunicate request_size=4 [15:51:51]MH_SAM_APDU [15:51:51]CAPDU: 80 0D 03 02 [15:51:51]Write to MH i2c: E2 08 00 4E 1F 80 0D 03 02 00 00 00 00 E8 [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 0B 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 0B 00 4E 1F 00 0D E1 37 77 7C C9 29 AA 90 00 9D [15:51:51]RAPDU: 0D E1 37 77 7C C9 29 AA 90 00 [15:51:51]wFMCommunicate OK [15:51:51]SAM_PROTO_SignData done [15:51:51]FM_MakeSignedData done [15:51:51]CreateOFDProtocolMessage [15:51:51]wFMCommunicate request_size=4 [15:51:51]MH_SAM_APDU [15:51:51]CAPDU: 80 11 00 00 [15:51:51]Write to MH i2c: E2 08 00 4F 1F 80 11 00 00 00 00 00 00 E8 [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:51]Read from MH i2c: E2 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 17 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: E2 17 00 4F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3A [15:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:51:51]wFMCommunicate OK [15:51:51]CreateOFDProtocolMessage done [15:51:51]OFDSenderStorePacket 64010 [15:51:51]StoreOFDPacket docnum=64010 [15:51: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 2C 01 00 00 D0 E8 24 01 E7 B7 5A 03 01 00 03 00 18 01 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 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 19 38 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0A FA 00 00 35 04 06 00 6B E8 DB 38 F9 44 0D E1 37 77 7C C9 29 AA [15:51:51]CheckFolder [15:51:51]dirname=/storage/ofd_packets [15:51:51]CheckFolder done [15:51:51]ProducePacketName [15:51:51]name=ofd_packets/00064010 [15:51:51]NVStorageSaveData ofd_packets/00064010 [15:51:51]File name is /storage/ofd_packets/00064010 [15:51:51]Write 330 bytes [15:51:51]NVStorageSaveData done [15:51:51]OFDSenderStorePacket done [15:51:51]KKMCreateOFDPacket done [15:51:51]NVStorageSaveData kkm_last_timestamp [15:51:51]File name is /storage/kkm_last_timestamp [15:51:51]Write 4 bytes [15:51:51]NVStorageSaveData done [15:51:51]ExternCall_PrintAddStr [15:51:51]wPrintStart [15:51:51]Write to MH i2c: 01 00 00 50 1F 6F [15:51:51]Write i2c OK [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: 01 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: 01 07 00 [15:51:51]MH_I2C_Read... [15:51:51]Read from MH i2c: 01 07 00 50 1F 00 00 00 00 00 FF 0F 84 [15:51:51]RasterBufferAndPrint [15:51:51]line Счет N : (3)73567 [15:51:51]line ИНН: 02508201610067 [15:51:51]line Контрольно-Кассовый Чек [15:51:51]line ПРОДАЖА [15:51:51]line Товар: 5449000000439 [15:51:51]line Напиток Кока-Кола 1,5л [15:51:51]line 1.000 * 155.00 [15:51:51]line = 155.00 [15:51:51]line НДС 12% НСП 1% [15:51:51]line > о реализуемом товаре [15:51:51]line ИТОГО: 155.00 [15:51:51]line НСП 1% : 1.37 [15:51:51]line НДС 12% : 16.46 [15:51:51]line Наличными: 155.00 [15:51:51]line Безнал.: 0.00 [15:51:51]line Место: АЗС № 117 "Партнер Нефть" [15:51:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:51:51]line СНО: Общий режим [15:51:51]line Чек 95 04.06.2024 15:51 [15:51:51]line Смена: 374 ФФД: 1.0 [15:51:51]line ЗНМ: 0300000031 [15:51:51]line РНМ: 0000000000092737 [15:51:51]line Версия ККМ: 001 [15:51:51]line ФМ: 0000000000875074 [15:51:51]line ФД: 64010 [15:51:51]line ФПД: 118647854528836 [15:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155153&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64010&fm=118647854528836&tin=02508201610067®Number=0000000000092737&sum=15500 [15:51:51]line 0 [15:51:51]OFD Sender: Processing packet 64010 [packets to send 14, broken 13] [15:51:51]ProducePacketName [15:51:51]name=ofd_packets/00064010 [15:51:51]OFD Sender: To server: pG, [15:51:51]CommunicateWithHost lk.salyk.kg:30040 [15:51:51]ConnectInit lk.salyk.kg [15:51:51]written 0, free lines is 4095 [15:51:51]Connected sock=10 [15:51: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 2C 01 00 00 D0 E8 24 01 E7 B7 5A 03 01 00 03 00 18 01 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 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 19 38 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0A FA 00 00 35 04 06 00 6B E8 DB 38 F9 44 0D E1 37 77 7C C9 29 AA [15:51:52]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 3B 23 47 00 CC 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 0A FA 00 00 F4 03 04 00 E7 E3 5E 66 B6 04 01 00 00 9C A0 E2 A5 54 F4 4D 44 [15:51:52]CommunicateWithHost err = 0 [15:51:52]CheckOFDResponse [15:51:52]1017 (14) - 77093643461234 [15:51:52]1041 (16) - 0000000000875074 [15:51:52]1040 (4) - 64010 [15:51:52]1012 (4) - 04.06.2024 09:52 [15:51:52]1206 (1) - 0 [15:51:52]OFD Sender: Remove packet 64010 [15:51:52]ProducePacketName [15:51:52]name=ofd_packets/00064010 [15:51:52]NVStorageDeleteData [15:51:52]Write to MH i2c: 01 00 00 78 1F 97 [15:51:52]Write i2c OK [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: 01 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: 01 07 00 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: 01 07 00 78 1F 00 00 00 00 00 FE 0C A8 [15:51:52]RasterBufferAndPrint [15:51:52]line [15:51:52]line [15:51:52]line [15:51:52]line [15:51:52]line [15:51:52]written 0, free lines is 3332 [15:51:52]MH_Cut [15:51:52]Write to MH i2c: D1 01 00 7F 1F 01 70 [15:51:52]Write i2c OK [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: D1 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: D1 01 00 [15:51:52]MH_I2C_Read... [15:51:52]Read from MH i2c: D1 01 00 7F 1F 00 6F [15:51:52]Write to MH i2c: 01 00 00 80 1F 9F [15:51:52]Write i2c OK [15:51:52]MH_I2C_Read... [15:51:52]OFD Sender: No OFD packet to send [15:51:53]*** Cut start [15:51:53]*** Partial cut [15:51:53]*** CUTSNS_PIN = 1 [15:51:53]*** CUTSNS_PIN = 0 [15:51:53]*** Brake cut motor [15:51:53]Read from MH i2c: 01 [15:51:53]MH_I2C_Read... [15:51:53]*** Stop cut motor [15:51:53]*** Cut end [15:51:53]Read from MH i2c: 01 07 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 FF 0F B4 [15:51:53]process_action close_receipt done [15:51:53]requested_data is exist [15:51:53]produce_requested_data [15:51:53]requested_item fm.sn is exist - process it [15:51:53]wFMCommunicate request_size=4 [15:51:53]MH_SAM_APDU [15:51:53]CAPDU: 80 11 00 00 [15:51:53]Write to MH i2c: E2 08 00 81 1F 80 11 00 00 00 00 00 00 1A [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:53]Read from MH i2c: E2 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 17 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 17 00 81 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6C [15:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [15:51:53]wFMCommunicate OK [15:51:53]requested_item fd.num is exist - process it [15:51:53]SAM_PROTO_GetFieldsCounters [15:51:53]wFMCommunicate request_size=4 [15:51:53]MH_SAM_APDU [15:51:53]CAPDU: 80 13 00 00 [15:51:53]Write to MH i2c: E2 08 00 82 1F 80 13 00 00 00 00 00 00 1D [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:53]Read from MH i2c: E2 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 62 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 62 00 82 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 0A FA 00 00 0E 04 04 00 76 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 D8 [15:51: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 0A FA 00 00 0E 04 04 00 76 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:51:53]wFMCommunicate OK [15:51:53]SAM_PROTO_GetFieldsCounters done [15:51:53]requested_item shift.num is exist - process it [15:51:53]requested_item shift.opened is exist - process it [15:51:53]req_shift_opened [15:51:53]FM_GetShiftState [15:51:53]SAM_PROTO_GetShiftState [15:51:53]wFMCommunicate request_size=4 [15:51:53]MH_SAM_APDU [15:51:53]CAPDU: 80 13 01 00 [15:51:53]Write to MH i2c: E2 08 00 83 1F 80 13 01 00 00 00 00 00 1F [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:53]Read from MH i2c: E2 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 0E 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 0E 00 83 1F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 BF [15:51:53]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:51:53]wFMCommunicate OK [15:51:53]SAM_PROTO_GetShiftState done [15:51:53]FM_GetShiftState done [15:51:53]req_shift_opened done [15:51:53]requested_item shift.open_date is exist - process it [15:51:53]req_shift_open_date [15:51:53]req_shift_open_date done [15:51:53]produce_requested_data done [15:51:53]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64010,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [15:51:53]process_action_free close_receipt [15:51:53]json_value_free [15:51:53]json_value_free done [15:51:53]process_json_proto returns [15:51:53]Send response to host [15:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64010,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [15:51:53]free response buf [15:51:53]execute_script done [15:51:53]execute_script returns [15:51:53]free content buf [15:51:53]Sock 7.Close socket [15:51:53]Sock 7.Thread stoped [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:10]accept exits with 9 [15:58:10]New connection [15:58:10]New thread 3066912100 created [15:58:10]Thread 3067055460 joined [15:58:10]Waiting for new connection... [15:58:10] Sock 9.Parse request [15:58:10]Sock 9.Check first char [15:58:10]Sock 9.First char is OK [15:58:10]request: POST /json_proto HTTP/1.0 [15:58:10]Method: POST [15:58:10]URL: /json_proto [15:58:10]Method is POST - this is cgi request [15:58:10]url: /json_proto [15:58:10]query_string will be loaded in cgi processing [15:58:10]execute_cgi json_proto POST (null) [15:58:10]execute_cgi path=json_proto method=POST [15:58:10]POST find Content-Length [15:58:10]Host: 172.17.60.69:8080 [15:58:10]Content-Length: 733 [15:58:10]Content-Type: application/json [15:58:10] [15:58:10]POST finish read [15:58:10]Found Content-Length = 733 [15:58:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73568", "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" ] } } [15:58:10]execute_script... [15:58: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)73568", "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" ] } } [15:58:10]POST & json_proto [15:58:10]process_json_proto [15:58:10]json parsed OK: [15:58:10]protocol is kg_v1.0 [15:58:10]action value=close_receipt [15:58:10]process_action close_receipt [15:58:10]cmd_close_receipt [15:58:10]MH_GetDate [15:58:10]Write to MH i2c: F0 00 00 84 1F 92 [15:58:10]Write i2c OK [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: F0 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: F0 09 00 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: F0 09 00 84 1F 00 96 39 5F 66 6A 96 4A 66 DF [15:58:10]GetLastDocTimeStamp 1717516313 [15:58:10]current date 1717516694 [15:58:10]FM_GetShiftState [15:58:10]SAM_PROTO_GetShiftState [15:58:10]wFMCommunicate request_size=4 [15:58:10]MH_SAM_APDU [15:58:10]CAPDU: 80 13 01 00 [15:58:10]Write to MH i2c: E2 08 00 85 1F 80 13 01 00 00 00 00 00 21 [15:58:10]Write i2c OK [15:58:10]MH_I2C_Read... [15:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:10]Read from MH i2c: E2 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 0E 00 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 0E 00 85 1F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C1 [15:58:10]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:58:10]wFMCommunicate OK [15:58:10]SAM_PROTO_GetShiftState done [15:58:10]FM_GetShiftState done [15:58:10]opened in 1717459574 [15:58:10]opened+sec_in_day 1717545974 [15:58:10]quantity*price = 39500 [15:58:10]sum+1 = 39501 [15:58:10]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 СНО: Общий режим Чек 96 04.06.2024 15:58 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64011 ФПД: 62630723789839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155814&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64011&fm=62630723789839&tin=02508201610067®Number=0000000000092737&sum=39500 0 [15:58:11]StoreToDocumentArchive [15:58:11]shift 374 fd 64011 [15:58:11]save to /storage/0374/doc_00064011 [15:58:11]save last doc name /storage/0374/doc_00064011 to /storage/kkm_last_doc_name [15:58:11]save OK [15:58:11]Clear old archive folders... [15:58:11]ProcessDocumentItem done err = 0, tmpTLVsize=306 [15:58:11]tlvbuf is 01307470 [15:58:11]SAM_PROTO_ClearQueue [15:58:11]wFMCommunicate request_size=4 [15:58:11]MH_SAM_APDU [15:58:11]CAPDU: 80 09 00 00 [15:58:11]Write to MH i2c: E2 08 00 92 1F 80 09 00 00 00 00 00 00 23 [15:58:11]Write i2c OK [15:58:11]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 [15:58:12]MH_I2C_Read... [15:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:12]Read from MH i2c: E2 03 00 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 03 00 92 1F 00 90 00 25 [15:58:12]RAPDU: 90 00 [15:58:12]wFMCommunicate OK [15:58:12]SAM_PROTO_ClearQueue done [15:58:12]KKMCreateOFDPacket [15:58:12]OFDProtocolAddRootSTLVToBuf [15:58:12]FM_MakeSignedData [15:58:12]FM_MakeSignedData [15:58:12]SAM_PROTO_SignData [15:58:12]wFMCommunicate request_size=4 [15:58:12]MH_SAM_APDU [15:58:12]CAPDU: 80 0D 01 02 [15:58:12]Write to MH i2c: E2 08 00 93 1F 80 0D 01 02 00 00 00 00 2B [15:58:12]Write i2c OK [15:58:12]MH_I2C_Read... [15:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:12]Read from MH i2c: E2 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 03 00 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 03 00 93 1F 00 90 00 26 [15:58:12]RAPDU: 90 00 [15:58:12]wFMCommunicate OK [15:58:12]wFMCommunicate request_size=255 [15:58:12]MH_SAM_APDU [15:58:12]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 60 00 00 00 F4 03 04 00 96 39 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 [15:58:12]Write to MH i2c: E2 02 01 94 1F 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 60 00 00 00 F4 03 04 00 96 39 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 00 AA [15:58:12]Write i2c OK [15:58:12]MH_I2C_Read... [15:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:12]Read from MH i2c: E2 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 03 00 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 03 00 94 1F 00 90 00 27 [15:58:12]RAPDU: 90 00 [15:58:12]wFMCommunicate OK [15:58:12]wFMCommunicate request_size=65 [15:58:12]MH_SAM_APDU [15:58:12]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 0B FA 00 00 35 04 06 00 38 F6 5A 0B 24 0F [15:58:12]Write to MH i2c: E2 44 00 95 1F 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 0B FA 00 00 35 04 06 00 38 F6 5A 0B 24 0F 00 00 4A [15:58:12]Write i2c OK [15:58:12]MH_I2C_Read... [15:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:12]Read from MH i2c: E2 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 03 00 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 03 00 95 1F 00 90 00 28 [15:58:12]RAPDU: 90 00 [15:58:12]wFMCommunicate OK [15:58:12]wFMCommunicate request_size=4 [15:58:12]MH_SAM_APDU [15:58:12]CAPDU: 80 0D 03 02 [15:58:12]Write to MH i2c: E2 08 00 96 1F 80 0D 03 02 00 00 00 00 30 [15:58:12]Write i2c OK [15:58:12]MH_I2C_Read... [15:58:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:12]Read from MH i2c: E2 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 0B 00 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 0B 00 96 1F 00 D4 3B 92 65 84 6B D9 36 90 00 35 [15:58:12]RAPDU: D4 3B 92 65 84 6B D9 36 90 00 [15:58:12]wFMCommunicate OK [15:58:12]SAM_PROTO_SignData done [15:58:12]FM_MakeSignedData done [15:58:12]CreateOFDProtocolMessage [15:58:12]wFMCommunicate request_size=4 [15:58:12]MH_SAM_APDU [15:58:12]CAPDU: 80 11 00 00 [15:58:12]Write to MH i2c: E2 08 00 97 1F 80 11 00 00 00 00 00 00 30 [15:58:12]Write i2c OK [15:58:12]MH_I2C_Read... [15:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:12]Read from MH i2c: E2 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 17 00 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: E2 17 00 97 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 82 [15:58:12]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:12]wFMCommunicate OK [15:58:12]CreateOFDProtocolMessage done [15:58:12]OFDSenderStorePacket 64011 [15:58:12]StoreOFDPacket docnum=64011 [15:58: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 46 01 00 00 32 EE 3E 01 89 0E 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 60 00 00 00 F4 03 04 00 96 39 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0B FA 00 00 35 04 06 00 38 F6 5A 0B 24 0F D4 3B 92 65 84 6B D9 36 [15:58:12]CheckFolder [15:58:12]dirname=/storage/ofd_packets [15:58:12]CheckFolder done [15:58:12]ProducePacketName [15:58:12]name=ofd_packets/00064011 [15:58:12]NVStorageSaveData ofd_packets/00064011 [15:58:12]File name is /storage/ofd_packets/00064011 [15:58:12]Write 356 bytes [15:58:12]NVStorageSaveData done [15:58:12]OFDSenderStorePacket done [15:58:12]KKMCreateOFDPacket done [15:58:12]NVStorageSaveData kkm_last_timestamp [15:58:12]File name is /storage/kkm_last_timestamp [15:58:12]Write 4 bytes [15:58:12]NVStorageSaveData done [15:58:12]ExternCall_PrintAddStr [15:58:12]wPrintStart [15:58:12]Write to MH i2c: 01 00 00 98 1F B7 [15:58:12]Write i2c OK [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: 01 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: 01 07 00 [15:58:12]MH_I2C_Read... [15:58:12]Read from MH i2c: 01 07 00 98 1F 00 00 00 00 00 FF 0F CC [15:58:12]RasterBufferAndPrint [15:58:12]line Счет N : (3)73568 [15:58:12]line ИНН: 02508201610067 [15:58:12]line Контрольно-Кассовый Чек [15:58:12]line ПРОДАЖА [15:58:12]line Товар: 0010420131003133 [15:58:12]line Уголь древесный Партнер Нефть 3кг [15:58:12]line 1.000 * 395.00 [15:58:12]line = 395.00 [15:58:12]line НДС 12% НСП 1% [15:58:12]line > о реализуемом товаре [15:58:12]line ИТОГО: 395.00 [15:58:12]line НСП 1% : 3.50 [15:58:12]line НДС 12% : 41.95 [15:58:12]line Наличными: 395.00 [15:58:12]line Безнал.: 0.00 [15:58:12]line Место: АЗС № 117 "Партнер Нефть" [15:58:12]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [15:58:12]line СНО: Общий режим [15:58:12]line Чек 96 04.06.2024 15:58 [15:58:12]line Смена: 374 ФФД: 1.0 [15:58:12]line ЗНМ: 0300000031 [15:58:12]line РНМ: 0000000000092737 [15:58:12]line Версия ККМ: 001 [15:58:12]line ФМ: 0000000000875074 [15:58:12]line ФД: 64011 [15:58:12]line ФПД: 62630723789839 [15:58:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T155814&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64011&fm=62630723789839&tin=02508201610067®Number=0000000000092737&sum=39500 [15:58:12]line 0 [15:58:12]OFD Sender: Processing packet 64011 [packets to send 14, broken 13] [15:58:12]ProducePacketName [15:58:12]name=ofd_packets/00064011 [15:58:12]OFD Sender: To server: pG, [15:58:12]CommunicateWithHost lk.salyk.kg:30040 [15:58:12]ConnectInit lk.salyk.kg [15:58:12]written 0, free lines is 4095 [15:58:13]Connected sock=10 [15:58: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 46 01 00 00 32 EE 3E 01 89 0E 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 60 00 00 00 F4 03 04 00 96 39 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0B FA 00 00 35 04 06 00 38 F6 5A 0B 24 0F D4 3B 92 65 84 6B D9 36 [15:58: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 EA 0B 47 00 1C C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0B FA 00 00 F4 03 04 00 64 E5 5E 66 B6 04 01 00 00 31 EC 27 49 2D 6C A9 67 [15:58:13]CommunicateWithHost err = 0 [15:58:13]CheckOFDResponse [15:58:13]1017 (14) - 77093643461234 [15:58:13]1041 (16) - 0000000000875074 [15:58:13]1040 (4) - 64011 [15:58:13]1012 (4) - 04.06.2024 09:59 [15:58:13]1206 (1) - 0 [15:58:13]OFD Sender: Remove packet 64011 [15:58:13]ProducePacketName [15:58:13]name=ofd_packets/00064011 [15:58:13]NVStorageDeleteData [15:58:13]Write to MH i2c: 01 00 00 C1 1F E0 [15:58:13]Write i2c OK [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: 01 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: 01 07 00 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: 01 07 00 C1 1F 00 00 00 00 00 DD 0C D0 [15:58:13]RasterBufferAndPrint [15:58:13]line [15:58:13]line [15:58:13]line [15:58:13]line [15:58:13]line [15:58:13]written 0, free lines is 3301 [15:58:13]MH_Cut [15:58:13]Write to MH i2c: D1 01 00 C8 1F 01 B9 [15:58:13]Write i2c OK [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: D1 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: D1 01 00 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: D1 01 00 C8 1F 00 B8 [15:58:13]Write to MH i2c: 01 00 00 C9 1F E8 [15:58:13]Write i2c OK [15:58:13]MH_I2C_Read... [15:58:13]OFD Sender: No OFD packet to send [15:58:14]*** Cut start [15:58:14]*** Partial cut [15:58:14]*** CUTSNS_PIN = 1 [15:58:14]*** CUTSNS_PIN = 0 [15:58:14]*** Brake cut motor [15:58:14]Read from MH i2c: 01 [15:58:14]MH_I2C_Read... [15:58:14]*** Stop cut motor [15:58:14]*** Cut end [15:58:14]Read from MH i2c: 01 07 00 [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: 01 07 00 C9 1F 00 00 00 00 00 FF 0F FD [15:58:14]process_action close_receipt done [15:58:14]requested_data is exist [15:58:14]produce_requested_data [15:58:14]requested_item fm.sn is exist - process it [15:58:14]wFMCommunicate request_size=4 [15:58:14]MH_SAM_APDU [15:58:14]CAPDU: 80 11 00 00 [15:58:14]Write to MH i2c: E2 08 00 CA 1F 80 11 00 00 00 00 00 00 63 [15:58:14]Write i2c OK [15:58:14]MH_I2C_Read... [15:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:14]Read from MH i2c: E2 [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: E2 17 00 [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: E2 17 00 CA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B5 [15:58:14]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:14]wFMCommunicate OK [15:58:14]requested_item fd.num is exist - process it [15:58:14]SAM_PROTO_GetFieldsCounters [15:58:14]wFMCommunicate request_size=4 [15:58:14]MH_SAM_APDU [15:58:14]CAPDU: 80 13 00 00 [15:58:14]Write to MH i2c: E2 08 00 CB 1F 80 13 00 00 00 00 00 00 66 [15:58:14]Write i2c OK [15:58:14]MH_I2C_Read... [15:58:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:14]Read from MH i2c: E2 [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: E2 62 00 [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: E2 62 00 CB 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 0B FA 00 00 0E 04 04 00 76 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 25 [15:58:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0B FA 00 00 0E 04 04 00 76 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:58:14]wFMCommunicate OK [15:58:14]SAM_PROTO_GetFieldsCounters done [15:58:14]requested_item shift.num is exist - process it [15:58:14]requested_item shift.opened is exist - process it [15:58:14]req_shift_opened [15:58:14]FM_GetShiftState [15:58:14]SAM_PROTO_GetShiftState [15:58:14]wFMCommunicate request_size=4 [15:58:14]MH_SAM_APDU [15:58:14]CAPDU: 80 13 01 00 [15:58:14]Write to MH i2c: E2 08 00 CC 1F 80 13 01 00 00 00 00 00 68 [15:58:14]Write i2c OK [15:58:14]MH_I2C_Read... [15:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:15]Read from MH i2c: E2 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: E2 0E 00 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: E2 0E 00 CC 1F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 08 [15:58:15]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [15:58:15]wFMCommunicate OK [15:58:15]SAM_PROTO_GetShiftState done [15:58:15]FM_GetShiftState done [15:58:15]req_shift_opened done [15:58:15]requested_item shift.open_date is exist - process it [15:58:15]req_shift_open_date [15:58:15]req_shift_open_date done [15:58:15]produce_requested_data done [15:58:15]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64011,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [15:58:15]process_action_free close_receipt [15:58:15]json_value_free [15:58:15]json_value_free done [15:58:15]process_json_proto returns [15:58:15]Send response to host [15:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64011,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [15:58:15]free response buf [15:58:15]execute_script done [15:58:15]execute_script returns [15:58:15]free content buf [15:58:15]Sock 9.Close socket [15:58:15]Sock 9.Thread stoped [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:49]accept exits with 7 [16:01:49]New connection [16:01:49]New thread 3067055460 created [16:01:49]Thread 3066912100 joined [16:01:49]Waiting for new connection... [16:01:49] Sock 7.Parse request [16:01:49]Sock 7.Check first char [16:01:49]Sock 7.First char is OK [16:01:49]request: POST /json_proto HTTP/1.0 [16:01:49]Method: POST [16:01:49]URL: /json_proto [16:01:49]Method is POST - this is cgi request [16:01:49]url: /json_proto [16:01:49]query_string will be loaded in cgi processing [16:01:49]execute_cgi json_proto POST (null) [16:01:49]execute_cgi path=json_proto method=POST [16:01:49]POST find Content-Length [16:01:49]Host: 172.17.60.69:8080 [16:01:49]Content-Length: 793 [16:01:49]Content-Type: application/json [16:01:49] [16:01:49]POST finish read [16:01:49]Found Content-Length = 793 [16:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64011, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73568", "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": "64011" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:49]execute_script... [16:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64011, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73568", "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": "64011" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:49]POST & json_proto [16:01:49]process_json_proto [16:01:49]json parsed OK: [16:01:49]protocol is kg_v1.0 [16:01:49]action value=close_receipt [16:01:49]process_action close_receipt [16:01:49]cmd_close_receipt [16:01:49]MH_GetDate [16:01:49]Write to MH i2c: F0 00 00 CD 1F DB [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: F0 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: F0 09 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: F0 09 00 CD 1F 00 71 3A 5F 66 6A 96 4A 66 04 [16:01:49]GetLastDocTimeStamp 1717516694 [16:01:49]current date 1717516913 [16:01:49]FM_GetShiftState [16:01:49]SAM_PROTO_GetShiftState [16:01:49]wFMCommunicate request_size=4 [16:01:49]MH_SAM_APDU [16:01:49]CAPDU: 80 13 01 00 [16:01:49]Write to MH i2c: E2 08 00 CE 1F 80 13 01 00 00 00 00 00 6A [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:49]Read from MH i2c: E2 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 0E 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 0E 00 CE 1F 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0A [16:01:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:01:49]wFMCommunicate OK [16:01:49]SAM_PROTO_GetShiftState done [16:01:49]FM_GetShiftState done [16:01:49]opened in 1717459574 [16:01:49]opened+sec_in_day 1717545974 [16:01:49]quantity*price = 39500 [16:01:49]sum+1 = 39501 [16:01:49]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 СНО: Общий режим Чек 97 04.06.2024 16:01 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 64011 ФМ осн.: 0000000000875074 ФМ: 0000000000875074 ФД: 64012 ФПД: 259348540387481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160153&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64012&fm=259348540387481&tin=02508201610067®Number=0000000000092737&sum=39500 64011 [16:01:51]StoreToDocumentArchive [16:01:51]shift 374 fd 64012 [16:01:51]save to /storage/0374/doc_00064012 [16:01:51]save last doc name /storage/0374/doc_00064012 to /storage/kkm_last_doc_name [16:01:51]save OK [16:01:51]Clear old archive folders... [16:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=334 [16:01:51]tlvbuf is B6EDA0E0 [16:01:51]SAM_PROTO_ClearQueue [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 09 00 00 [16:01:51]Write to MH i2c: E2 08 00 DD 1F 80 09 00 00 00 00 00 00 6E [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 DD 1F 00 90 00 70 [16:01:51]RAPDU: 90 00 [16:01:51]wFMCommunicate OK [16:01:51]SAM_PROTO_ClearQueue done [16:01:51]KKMCreateOFDPacket [16:01:51]OFDProtocolAddRootSTLVToBuf [16:01:51]FM_MakeSignedData [16:01:51]FM_MakeSignedData [16:01:51]SAM_PROTO_SignData [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 0D 01 02 [16:01:51]Write to MH i2c: E2 08 00 DE 1F 80 0D 01 02 00 00 00 00 76 [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 DE 1F 00 90 00 71 [16:01:51]RAPDU: 90 00 [16:01:51]wFMCommunicate OK [16:01:51]wFMCommunicate request_size=255 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 0D 02 02 FA 03 00 4E 01 1E 04 01 00 02 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 61 00 00 00 F4 03 04 00 71 3A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 [16:01:51]Write to MH i2c: E2 02 01 DF 1F 80 0D 02 02 FA 00 03 00 4E 01 1E 04 01 00 02 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 61 00 00 00 F4 03 04 00 71 3A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 00 EF [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 DF 1F 00 90 00 72 [16:01:51]RAPDU: 90 00 [16:01:51]wFMCommunicate OK [16:01:51]wFMCommunicate request_size=93 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 0D 02 02 58 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 0B 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 0C FA 00 00 35 04 06 00 EB E0 49 9F 70 99 [16:01:51]Write to MH i2c: E2 60 00 E0 1F 80 0D 02 02 58 00 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 0B 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 0C FA 00 00 35 04 06 00 EB E0 49 9F 70 99 00 00 53 [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 E0 1F 00 90 00 73 [16:01:51]RAPDU: 90 00 [16:01:51]wFMCommunicate OK [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 0D 03 02 [16:01:51]Write to MH i2c: E2 08 00 E1 1F 80 0D 03 02 00 00 00 00 7B [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 0B 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 0B 00 E1 1F 00 08 85 D3 4C CF AB 62 D3 90 00 D7 [16:01:51]RAPDU: 08 85 D3 4C CF AB 62 D3 90 00 [16:01:51]wFMCommunicate OK [16:01:51]SAM_PROTO_SignData done [16:01:51]FM_MakeSignedData done [16:01:51]CreateOFDProtocolMessage [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 11 00 00 [16:01:51]Write to MH i2c: E2 08 00 E2 1F 80 11 00 00 00 00 00 00 7B [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 17 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 17 00 E2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CD [16:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:01:51]wFMCommunicate OK [16:01:51]CreateOFDProtocolMessage done [16:01:51]OFDSenderStorePacket 64012 [16:01:51]StoreOFDPacket docnum=64012 [16:01: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 62 01 00 00 04 FC 5A 01 0B 71 5A 03 01 00 03 00 4E 01 1E 04 01 00 02 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 61 00 00 00 F4 03 04 00 71 3A 5F 66 0E 04 04 00 76 01 00 00 B9 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 0B 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 0C FA 00 00 35 04 06 00 EB E0 49 9F 70 99 08 85 D3 4C CF AB 62 D3 [16:01:51]CheckFolder [16:01:51]dirname=/storage/ofd_packets [16:01:51]CheckFolder done [16:01:51]ProducePacketName [16:01:51]name=ofd_packets/00064012 [16:01:51]NVStorageSaveData ofd_packets/00064012 [16:01:51]File name is /storage/ofd_packets/00064012 [16:01:51]Write 384 bytes [16:01:51]NVStorageSaveData done [16:01:51]OFDSenderStorePacket done [16:01:51]KKMCreateOFDPacket done [16:01:51]NVStorageSaveData kkm_last_timestamp [16:01:51]File name is /storage/kkm_last_timestamp [16:01:51]Write 4 bytes [16:01:51]NVStorageSaveData done [16:01:51]ExternCall_PrintAddStr [16:01:51]wPrintStart [16:01:51]Write to MH i2c: 01 00 00 E3 1F 02 [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: 01 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: 01 07 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: 01 07 00 E3 1F 00 00 00 00 00 FF 0F 17 [16:01:51]RasterBufferAndPrint [16:01:51]line Счет N : (3)73568 [16:01:51]line ИНН: 02508201610067 [16:01:51]line Контрольно-Кассовый Чек [16:01:51]line ВОЗВРАТ ПРОДАЖИ [16:01:51]line Товар: 0010420131003133 [16:01:51]line Уголь древесный Партнер Нефть 3кг [16:01:51]line 1.000 * 395.00 [16:01:51]line = 395.00 [16:01:51]line НДС 12% НСП 1% [16:01:51]line > о реализуемом товаре [16:01:51]line ИТОГО: 395.00 [16:01:51]line НСП 1% : 3.50 [16:01:51]line НДС 12% : 41.95 [16:01:51]line Наличными: 395.00 [16:01:51]line Безнал.: 0.00 [16:01:51]line Место: АЗС № 117 "Партнер Нефть" [16:01:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:01:51]line СНО: Общий режим [16:01:51]line Чек 97 04.06.2024 16:01 [16:01:51]line Смена: 374 ФФД: 1.0 [16:01:51]line ЗНМ: 0300000031 [16:01:51]line РНМ: 0000000000092737 [16:01:51]line Версия ККМ: 001 [16:01:51]line ФД осн.: 64011 [16:01:51]line ФМ осн.: 0000000000875074 [16:01:51]line ФМ: 0000000000875074 [16:01:51]line ФД: 64012 [16:01:51]line ФПД: 259348540387481 [16:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160153&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64012&fm=259348540387481&tin=02508201610067®Number=0000000000092737&sum=39500 [16:01:52]line 64011 [16:01:52]OFD Sender: Processing packet 64012 [packets to send 14, broken 13] [16:01:52]ProducePacketName [16:01:52]name=ofd_packets/00064012 [16:01:52]OFD Sender: To server: pG, [16:01:52]CommunicateWithHost lk.salyk.kg:30040 [16:01:52]ConnectInit lk.salyk.kg [16:01:52]written 0, free lines is 4095 [16:01:52]Connected sock=10 [16:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 62 01 00 00 04 FC 5A 01 0B 71 5A 03 01 00 03 00 4E 01 1E 04 01 00 02 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 61 00 00 00 F4 03 04 00 71 3A 5F 66 0E 04 04 00 76 01 00 00 B9 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 0B 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 0C FA 00 00 35 04 06 00 EB E0 49 9F 70 99 08 85 D3 4C CF AB 62 D3 [16:01:52]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 18 F5 47 00 9E 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0C FA 00 00 F4 03 04 00 3F E6 5E 66 B6 04 01 00 00 E9 B0 BB 8B FF 68 5D AB [16:01:52]CommunicateWithHost err = 0 [16:01:52]CheckOFDResponse [16:01:52]1017 (14) - 77093643461234 [16:01:52]1041 (16) - 0000000000875074 [16:01:52]1040 (4) - 64012 [16:01:52]1012 (4) - 04.06.2024 10:02 [16:01:52]1206 (1) - 0 [16:01:52]OFD Sender: Remove packet 64012 [16:01:52]ProducePacketName [16:01:52]name=ofd_packets/00064012 [16:01:52]NVStorageDeleteData [16:01:52]Write to MH i2c: 01 00 00 0E 20 2E [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: 01 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: 01 07 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: 01 07 00 0E 20 00 00 00 00 00 C6 0C 07 [16:01:52]RasterBufferAndPrint [16:01:52]line [16:01:52]line [16:01:52]line [16:01:52]line [16:01:52]line [16:01:52]written 0, free lines is 3277 [16:01:52]MH_Cut [16:01:52]Write to MH i2c: D1 01 00 15 20 01 07 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: D1 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: D1 01 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: D1 01 00 15 20 00 06 [16:01:52]Write to MH i2c: 01 00 00 16 20 36 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]OFD Sender: No OFD packet to send [16:01:53]*** Cut start [16:01:53]*** Partial cut [16:01:53]*** CUTSNS_PIN = 1 [16:01:53]*** CUTSNS_PIN = 0 [16:01:53]*** Brake cut motor [16:01:53]Read from MH i2c: 01 [16:01:54]MH_I2C_Read... [16:01:54]*** Stop cut motor [16:01:54]*** Cut end [16:01:54]Read from MH i2c: 01 07 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: 01 07 00 16 20 00 00 00 00 00 FF 0F 4B [16:01:54]process_action close_receipt done [16:01:54]requested_data is exist [16:01:54]produce_requested_data [16:01:54]requested_item fm.sn is exist - process it [16:01:54]wFMCommunicate request_size=4 [16:01:54]MH_SAM_APDU [16:01:54]CAPDU: 80 11 00 00 [16:01:54]Write to MH i2c: E2 08 00 17 20 80 11 00 00 00 00 00 00 B1 [16:01:54]Write i2c OK [16:01:54]MH_I2C_Read... [16:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:54]Read from MH i2c: E2 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 17 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 17 00 17 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 03 [16:01: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:01:54]wFMCommunicate OK [16:01:54]requested_item fd.num is exist - process it [16:01:54]SAM_PROTO_GetFieldsCounters [16:01:54]wFMCommunicate request_size=4 [16:01:54]MH_SAM_APDU [16:01:54]CAPDU: 80 13 00 00 [16:01:54]Write to MH i2c: E2 08 00 18 20 80 13 00 00 00 00 00 00 B4 [16:01:54]Write i2c OK [16:01:54]MH_I2C_Read... [16:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:54]Read from MH i2c: E2 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 62 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 62 00 18 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 0C FA 00 00 0E 04 04 00 76 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 77 [16:01: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 0C FA 00 00 0E 04 04 00 76 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 [16:01:54]wFMCommunicate OK [16:01:54]SAM_PROTO_GetFieldsCounters done [16:01:54]requested_item shift.num is exist - process it [16:01:54]requested_item shift.opened is exist - process it [16:01:54]req_shift_opened [16:01:54]FM_GetShiftState [16:01:54]SAM_PROTO_GetShiftState [16:01:54]wFMCommunicate request_size=4 [16:01:54]MH_SAM_APDU [16:01:54]CAPDU: 80 13 01 00 [16:01:54]Write to MH i2c: E2 08 00 19 20 80 13 01 00 00 00 00 00 B6 [16:01:54]Write i2c OK [16:01:54]MH_I2C_Read... [16:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:54]Read from MH i2c: E2 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 0E 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 0E 00 19 20 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 56 [16:01:54]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:01:54]wFMCommunicate OK [16:01:54]SAM_PROTO_GetShiftState done [16:01:54]FM_GetShiftState done [16:01:54]req_shift_opened done [16:01:54]requested_item shift.open_date is exist - process it [16:01:54]req_shift_open_date [16:01:54]req_shift_open_date done [16:01:54]produce_requested_data done [16:01:54]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64012,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [16:01:54]process_action_free close_receipt [16:01:54]json_value_free [16:01:54]json_value_free done [16:01:54]process_json_proto returns [16:01:54]Send response to host [16:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64012,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [16:01:54]free response buf [16:01:54]execute_script done [16:01:54]execute_script returns [16:01:54]free content buf [16:01:54]Sock 7.Close socket [16:01:54]Sock 7.Thread stoped [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:54]accept exits with 9 [16:08:54]New connection [16:08:54]New thread 3066912100 created [16:08:54]Thread 3067055460 joined [16:08:54]Waiting for new connection... [16:08:54] Sock 9.Parse request [16:08:54]Sock 9.Check first char [16:08:54]Sock 9.First char is OK [16:08:54]request: POST /json_proto HTTP/1.0 [16:08:54]Method: POST [16:08:54]URL: /json_proto [16:08:54]Method is POST - this is cgi request [16:08:54]url: /json_proto [16:08:54]query_string will be loaded in cgi processing [16:08:54]execute_cgi json_proto POST (null) [16:08:54]execute_cgi path=json_proto method=POST [16:08:54]POST find Content-Length [16:08:54]Host: 172.17.60.69:8080 [16:08:54]Content-Length: 924 [16:08:54]Content-Type: application/json [16:08:54] [16:08:54]POST finish read [16:08:54]Found Content-Length = 924 [16:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73569", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.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" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 430.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]execute_script... [16:08: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)73569", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.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" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 430.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]POST & json_proto [16:08:54]process_json_proto [16:08:54]json parsed OK: [16:08:54]protocol is kg_v1.0 [16:08:54]action value=close_receipt [16:08:54]process_action close_receipt [16:08:54]cmd_close_receipt [16:08:54]MH_GetDate [16:08:54]Write to MH i2c: F0 00 00 1A 20 29 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 1A 20 00 1A 3C 5F 66 6A 96 4A 66 FD [16:08:54]GetLastDocTimeStamp 1717516913 [16:08:54]current date 1717517338 [16:08:54]FM_GetShiftState [16:08:54]SAM_PROTO_GetShiftState [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 13 01 00 [16:08:54]Write to MH i2c: E2 08 00 1B 20 80 13 01 00 00 00 00 00 B8 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 1B 20 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 58 [16:08:54]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]SAM_PROTO_GetShiftState done [16:08:54]FM_GetShiftState done [16:08:54]opened in 1717459574 [16:08:54]opened+sec_in_day 1717545974 [16:08:54]quantity*price = 18000 [16:08:54]sum+1 = 18001 [16:08:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 125.00 = 250.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 430.00 НСП 1% : 3.80 НДС 12% : 45.66 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 98 04.06.2024 16:08 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64013 ФПД: 20129711995339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160858&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64013&fm=20129711995339&tin=02508201610067®Number=0000000000092737&sum=43000 0 [16:08:55]StoreToDocumentArchive [16:08:55]shift 374 fd 64013 [16:08:55]save to /storage/0374/doc_00064013 [16:08:55]save last doc name /storage/0374/doc_00064013 to /storage/kkm_last_doc_name [16:08:55]save OK [16:08:55]Clear old archive folders... [16:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=399 [16:08:55]tlvbuf is 012AB290 [16:08:55]SAM_PROTO_ClearQueue [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 09 00 00 [16:08:55]Write to MH i2c: E2 08 00 28 20 80 09 00 00 00 00 00 00 BA [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 28 20 00 90 00 BC [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_ClearQueue done [16:08:55]KKMCreateOFDPacket [16:08:55]OFDProtocolAddRootSTLVToBuf [16:08:55]FM_MakeSignedData [16:08:55]FM_MakeSignedData [16:08:55]SAM_PROTO_SignData [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 01 02 [16:08:55]Write to MH i2c: E2 08 00 29 20 80 0D 01 02 00 00 00 00 C2 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 29 20 00 90 00 BD [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=255 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 F8 A7 00 00 00 00 EB 03 [16:08:55]Write to MH i2c: E2 02 01 2A 20 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 F8 A7 00 00 00 00 EB 03 00 00 69 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 2A 20 00 90 00 BE [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=158 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 3C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0D FA 00 00 35 04 06 00 12 4E D0 55 39 CB [16:08:55]Write to MH i2c: E2 A1 00 2B 20 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 3C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0D FA 00 00 35 04 06 00 12 4E D0 55 39 CB 00 00 CF [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 2B 20 00 90 00 BF [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 03 02 [16:08:55]Write to MH i2c: E2 08 00 2C 20 80 0D 03 02 00 00 00 00 C7 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 0B 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 0B 00 2C 20 00 14 07 B0 6F 4C 31 41 2C 90 00 EC [16:08:55]RAPDU: 14 07 B0 6F 4C 31 41 2C 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_SignData done [16:08:55]FM_MakeSignedData done [16:08:55]CreateOFDProtocolMessage [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 11 00 00 [16:08:55]Write to MH i2c: E2 08 00 2D 20 80 11 00 00 00 00 00 00 C7 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 17 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 17 00 2D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 19 [16:08: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:08:55]wFMCommunicate OK [16:08:56]CreateOFDProtocolMessage done [16:08:56]OFDSenderStorePacket 64013 [16:08:56]StoreOFDPacket docnum=64013 [16:08: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 A3 01 00 00 88 B8 9B 01 20 2C 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 3C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0D FA 00 00 35 04 06 00 12 4E D0 55 39 CB 14 07 B0 6F 4C 31 41 2C [16:08:56]CheckFolder [16:08:56]dirname=/storage/ofd_packets [16:08:56]CheckFolder done [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00064013 [16:08:56]NVStorageSaveData ofd_packets/00064013 [16:08:56]File name is /storage/ofd_packets/00064013 [16:08:56]Write 449 bytes [16:08:56]NVStorageSaveData done [16:08:56]OFDSenderStorePacket done [16:08:56]KKMCreateOFDPacket done [16:08:56]NVStorageSaveData kkm_last_timestamp [16:08:56]File name is /storage/kkm_last_timestamp [16:08:56]Write 4 bytes [16:08:56]NVStorageSaveData done [16:08:56]ExternCall_PrintAddStr [16:08:56]wPrintStart [16:08:56]Write to MH i2c: 01 00 00 2E 20 4E [16:08:56]OFD Sender: Processing packet 64013 [packets to send 14, broken 13] [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00064013 [16:08:56]OFD Sender: To server: pG, [16:08:56]CommunicateWithHost lk.salyk.kg:30040 [16:08:56]ConnectInit lk.salyk.kg [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 2E 20 00 00 00 00 00 FF 0F 63 [16:08:56]RasterBufferAndPrint [16:08:56]line Счет N : (3)73569 [16:08:56]line ИНН: 02508201610067 [16:08:56]line Контрольно-Кассовый Чек [16:08:56]line ПРОДАЖА [16:08:56]line Товар: 5449000176448 [16:08:56]line Сок Piko Pulpy апельсин ПЭТ 1л [16:08:56]line 1.000 * 180.00 [16:08:56]line = 180.00 [16:08:56]line НДС 12% НСП 1% [16:08:56]line > о реализуемом товаре [16:08:56]line Товар: 2000036220012 [16:08:56]line Кофе Капучино XL(GABB TRADE) [16:08:56]line 2.000 * 125.00 [16:08:56]line = 250.00 [16:08:56]line НДС 12% НСП 1% [16:08:56]line > о реализуемом товаре [16:08:56]line ИТОГО: 430.00 [16:08:56]line НСП 1% : 3.80 [16:08:56]line НДС 12% : 45.66 [16:08:56]line Наличными: 430.00 [16:08:56]line Безнал.: 0.00 [16:08:56]line Место: АЗС № 117 "Партнер Нефть" [16:08:56]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:08:56]line СНО: Общий режим [16:08:56]line Чек 98 04.06.2024 16:08 [16:08:56]line Смена: 374 ФФД: 1.0 [16:08:56]line ЗНМ: 0300000031 [16:08:56]line РНМ: 0000000000092737 [16:08:56]line Версия ККМ: 001 [16:08:56]line ФМ: 0000000000875074 [16:08:56]line ФД: 64013 [16:08:56]line ФПД: 20129711995339 [16:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T160858&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64013&fm=20129711995339&tin=02508201610067®Number=0000000000092737&sum=43000 [16:08:56]line 0 [16:08:56]written 0, free lines is 4095 [16:08:56]Connected sock=10 [16:08: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 A3 01 00 00 88 B8 9B 01 20 2C 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 1A 3C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0D FA 00 00 35 04 06 00 12 4E D0 55 39 CB 14 07 B0 6F 4C 31 41 2C [16:08: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 ED 18 47 00 E7 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0D FA 00 00 F4 03 04 00 E7 E7 5E 66 B6 04 01 00 00 C3 6D 6B 8C 7B 17 2C 58 [16:08:56]CommunicateWithHost err = 0 [16:08:56]CheckOFDResponse [16:08:56]1017 (14) - 77093643461234 [16:08:56]1041 (16) - 0000000000875074 [16:08:56]1040 (4) - 64013 [16:08:56]1012 (4) - 04.06.2024 10:09 [16:08:56]1206 (1) - 0 [16:08:56]OFD Sender: Remove packet 64013 [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00064013 [16:08:56]NVStorageDeleteData [16:08:56]Write to MH i2c: 01 00 00 5E 20 7E [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 5E 20 00 00 00 00 00 7A 0C 0B [16:08:56]RasterBufferAndPrint [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]written 0, free lines is 3200 [16:08:56]MH_Cut [16:08:56]Write to MH i2c: D1 01 00 65 20 01 57 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 01 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 01 00 65 20 00 56 [16:08:56]Write to MH i2c: 01 00 00 66 20 86 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:57]OFD Sender: No OFD packet to send [16:08:57]*** Cut start [16:08:57]*** Partial cut [16:08:57]*** CUTSNS_PIN = 1 [16:08:57]*** CUTSNS_PIN = 0 [16:08:57]*** Brake cut motor [16:08:58]Read from MH i2c: 01 [16:08:58]MH_I2C_Read... [16:08:58]*** Stop cut motor [16:08:58]*** Cut end [16:08:58]Read from MH i2c: 01 07 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: 01 07 00 66 20 00 00 00 00 00 FF 0F 9B [16:08:58]process_action close_receipt done [16:08:58]requested_data is exist [16:08:58]produce_requested_data [16:08:58]requested_item fm.sn is exist - process it [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 11 00 00 [16:08:58]Write to MH i2c: E2 08 00 67 20 80 11 00 00 00 00 00 00 01 [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 17 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 17 00 67 20 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:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:08:58]wFMCommunicate OK [16:08:58]requested_item fd.num is exist - process it [16:08:58]SAM_PROTO_GetFieldsCounters [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 13 00 00 [16:08:58]Write to MH i2c: E2 08 00 68 20 80 13 00 00 00 00 00 00 04 [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 62 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 62 00 68 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 0D FA 00 00 0E 04 04 00 76 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 CB [16:08: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 0D FA 00 00 0E 04 04 00 76 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 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetFieldsCounters done [16:08:58]requested_item shift.num is exist - process it [16:08:58]requested_item shift.opened is exist - process it [16:08:58]req_shift_opened [16:08:58]FM_GetShiftState [16:08:58]SAM_PROTO_GetShiftState [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 13 01 00 [16:08:58]Write to MH i2c: E2 08 00 69 20 80 13 01 00 00 00 00 00 06 [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 69 20 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A6 [16:08:58]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetShiftState done [16:08:58]FM_GetShiftState done [16:08:58]req_shift_opened done [16:08:58]requested_item shift.open_date is exist - process it [16:08:58]req_shift_open_date [16:08:58]req_shift_open_date done [16:08:58]produce_requested_data done [16:08:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64013,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [16:08:58]process_action_free close_receipt [16:08:58]json_value_free [16:08:58]json_value_free done [16:08:58]process_json_proto returns [16:08:58]Send response to host [16:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64013,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [16:08:58]free response buf [16:08:58]execute_script done [16:08:58]execute_script returns [16:08:58]free content buf [16:08:58]Sock 9.Close socket [16:08:58]Sock 9.Thread stoped [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]accept exits with 7 [16:16:22]New connection [16:16:22]New thread 3067055460 created [16:16:22]Thread 3066912100 joined [16:16:22]Waiting for new connection... [16:16:22] Sock 7.Parse request [16:16:22]Sock 7.Check first char [16:16:22]Sock 7.First char is OK [16:16:22]request: POST /json_proto HTTP/1.0 [16:16:22]Method: POST [16:16:22]URL: /json_proto [16:16:22]Method is POST - this is cgi request [16:16:22]url: /json_proto [16:16:22]query_string will be loaded in cgi processing [16:16:22]execute_cgi json_proto POST (null) [16:16:22]execute_cgi path=json_proto method=POST [16:16:22]POST find Content-Length [16:16:22]Host: 172.17.60.69:8080 [16:16:22]Content-Length: 915 [16:16:22]Content-Type: application/json [16:16:22] [16:16:22]POST finish read [16:16:22]Found Content-Length = 915 [16:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73570", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [16:16:22]execute_script... [16:16:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73570", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [16:16:22]POST & json_proto [16:16:22]process_json_proto [16:16:22]json parsed OK: [16:16:22]protocol is kg_v1.0 [16:16:22]action value=close_receipt [16:16:22]process_action close_receipt [16:16:22]cmd_close_receipt [16:16:22]MH_GetDate [16:16:22]Write to MH i2c: F0 00 00 6A 20 79 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: F0 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: F0 09 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: F0 09 00 6A 20 00 D9 3D 5F 66 6A 96 4A 66 0D [16:16:22]GetLastDocTimeStamp 1717517338 [16:16:22]current date 1717517785 [16:16:22]FM_GetShiftState [16:16:22]SAM_PROTO_GetShiftState [16:16:22]wFMCommunicate request_size=4 [16:16:22]MH_SAM_APDU [16:16:22]CAPDU: 80 13 01 00 [16:16:22]Write to MH i2c: E2 08 00 6B 20 80 13 01 00 00 00 00 00 08 [16:16:22]Write i2c OK [16:16:22]MH_I2C_Read... [16:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:22]Read from MH i2c: E2 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 0E 00 [16:16:22]MH_I2C_Read... [16:16:22]Read from MH i2c: E2 0E 00 6B 20 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A8 [16:16:22]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:16:22]wFMCommunicate OK [16:16:22]SAM_PROTO_GetShiftState done [16:16:22]FM_GetShiftState done [16:16:22]opened in 1717459574 [16:16:22]opened+sec_in_day 1717545974 [16:16:22]quantity*price = 9500 [16:16:22]sum+1 = 9501 [16:16:22]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 СНО: Общий режим Чек 99 04.06.2024 16:16 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64014 ФПД: 185520696991886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161626&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64014&fm=185520696991886&tin=02508201610067®Number=0000000000092737&sum=9500 0 [16:16:23]StoreToDocumentArchive [16:16:23]shift 374 fd 64014 [16:16:23]save to /storage/0374/doc_00064014 [16:16:23]save last doc name /storage/0374/doc_00064014 to /storage/kkm_last_doc_name [16:16:23]save OK [16:16:23]Clear old archive folders... [16:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=306 [16:16:23]tlvbuf is 012B3080 [16:16:23]SAM_PROTO_ClearQueue [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 09 00 00 [16:16:23]Write to MH i2c: E2 08 00 78 20 80 09 00 00 00 00 00 00 0A [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 78 20 00 90 00 0C [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]SAM_PROTO_ClearQueue done [16:16:23]KKMCreateOFDPacket [16:16:23]OFDProtocolAddRootSTLVToBuf [16:16:23]FM_MakeSignedData [16:16:23]FM_MakeSignedData [16:16:23]SAM_PROTO_SignData [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 0D 01 02 [16:16:23]Write to MH i2c: E2 08 00 79 20 80 0D 01 02 00 00 00 00 12 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 79 20 00 90 00 0D [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]wFMCommunicate request_size=255 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 63 00 00 00 F4 03 04 00 DA 3D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 [16:16:23]Write to MH i2c: E2 02 01 7A 20 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 63 00 00 00 F4 03 04 00 DA 3D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 00 74 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 7A 20 00 90 00 0E [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]wFMCommunicate request_size=65 [16:16:23]MH_SAM_APDU [16:16:23]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 0E FA 00 00 35 04 06 00 A8 BA E7 3E 20 8E [16:16:23]Write to MH i2c: E2 44 00 7B 20 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 0E FA 00 00 35 04 06 00 A8 BA E7 3E 20 8E 00 00 A3 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 03 00 7B 20 00 90 00 0F [16:16:23]RAPDU: 90 00 [16:16:23]wFMCommunicate OK [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 0D 03 02 [16:16:23]Write to MH i2c: E2 08 00 7C 20 80 0D 03 02 00 00 00 00 17 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 0B 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 0B 00 7C 20 00 96 FE 36 AE B1 05 13 77 90 00 D0 [16:16:23]RAPDU: 96 FE 36 AE B1 05 13 77 90 00 [16:16:23]wFMCommunicate OK [16:16:23]SAM_PROTO_SignData done [16:16:23]FM_MakeSignedData done [16:16:23]CreateOFDProtocolMessage [16:16:23]wFMCommunicate request_size=4 [16:16:23]MH_SAM_APDU [16:16:23]CAPDU: 80 11 00 00 [16:16:23]Write to MH i2c: E2 08 00 7D 20 80 11 00 00 00 00 00 00 17 [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:23]Read from MH i2c: E2 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 17 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: E2 17 00 7D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 69 [16:16:23]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:23]wFMCommunicate OK [16:16:23]CreateOFDProtocolMessage done [16:16:23]OFDSenderStorePacket 64014 [16:16:23]StoreOFDPacket docnum=64014 [16:16: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 46 01 00 00 25 B8 3E 01 0F D4 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 63 00 00 00 F4 03 04 00 DA 3D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0E FA 00 00 35 04 06 00 A8 BA E7 3E 20 8E 96 FE 36 AE B1 05 13 77 [16:16:23]CheckFolder [16:16:23]dirname=/storage/ofd_packets [16:16:23]CheckFolder done [16:16:23]ProducePacketName [16:16:23]name=ofd_packets/00064014 [16:16:23]NVStorageSaveData ofd_packets/00064014 [16:16:23]File name is /storage/ofd_packets/00064014 [16:16:23]Write 356 bytes [16:16:23]NVStorageSaveData done [16:16:23]OFDSenderStorePacket done [16:16:23]KKMCreateOFDPacket done [16:16:23]NVStorageSaveData kkm_last_timestamp [16:16:23]File name is /storage/kkm_last_timestamp [16:16:23]Write 4 bytes [16:16:23]NVStorageSaveData done [16:16:23]ExternCall_PrintAddStr [16:16:23]wPrintStart [16:16:23]Write to MH i2c: 01 00 00 7E 20 9E [16:16:23]Write i2c OK [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: 01 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: 01 07 00 [16:16:23]MH_I2C_Read... [16:16:23]Read from MH i2c: 01 07 00 7E 20 00 00 00 00 00 FF 0F B3 [16:16:23]RasterBufferAndPrint [16:16:23]line Счет N : (3)73570 [16:16:23]line ИНН: 02508201610067 [16:16:23]line Контрольно-Кассовый Чек [16:16:23]line ПРОДАЖА [16:16:23]line Товар: 4700000481965 [16:16:23]line Напиток энерг Nitro дикие ягоды 0,45 ж/б [16:16:23]line 1.000 * 95.00 [16:16:23]line = 95.00 [16:16:23]line НДС 12% НСП 1% [16:16:23]line > о реализуемом товаре [16:16:23]line ИТОГО: 95.00 [16:16:23]line НСП 1% : 0.84 [16:16:23]line НДС 12% : 10.09 [16:16:23]line Наличными: 0.00 [16:16:23]line Безнал.: 95.00 [16:16:23]line Место: АЗС № 117 "Партнер Нефть" [16:16:23]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:16:23]line СНО: Общий режим [16:16:23]line Чек 99 04.06.2024 16:16 [16:16:23]line Смена: 374 ФФД: 1.0 [16:16:23]line ЗНМ: 0300000031 [16:16:23]line РНМ: 0000000000092737 [16:16:23]line Версия ККМ: 001 [16:16:23]line Платежная система: АКБ Кыргызстан [16:16:23]line ФМ: 0000000000875074 [16:16:24]line ФД: 64014 [16:16:24]line ФПД: 185520696991886 [16:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161626&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64014&fm=185520696991886&tin=02508201610067®Number=0000000000092737&sum=9500 [16:16:24]line 0 [16:16:24]OFD Sender: Processing packet 64014 [packets to send 14, broken 13] [16:16:24]ProducePacketName [16:16:24]name=ofd_packets/00064014 [16:16:24]OFD Sender: To server: pG, [16:16:24]CommunicateWithHost lk.salyk.kg:30040 [16:16:24]ConnectInit lk.salyk.kg [16:16:24]written 0, free lines is 4095 [16:16:24]Connected sock=10 [16:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 46 01 00 00 25 B8 3E 01 0F D4 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 63 00 00 00 F4 03 04 00 DA 3D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0E FA 00 00 35 04 06 00 A8 BA E7 3E 20 8E 96 FE 36 AE B1 05 13 77 [16:16: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 5A DE 47 00 E3 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 0E FA 00 00 F4 03 04 00 A7 E9 5E 66 B6 04 01 00 00 5F 91 A5 B7 C2 A8 A9 C5 [16:16:24]CommunicateWithHost err = 0 [16:16:24]CheckOFDResponse [16:16:24]1017 (14) - 77093643461234 [16:16:24]1041 (16) - 0000000000875074 [16:16:24]1040 (4) - 64014 [16:16:24]1012 (4) - 04.06.2024 10:17 [16:16:24]1206 (1) - 0 [16:16:24]OFD Sender: Remove packet 64014 [16:16:24]ProducePacketName [16:16:24]name=ofd_packets/00064014 [16:16:24]NVStorageDeleteData [16:16:24]Write to MH i2c: 01 00 00 A9 20 C9 [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: 01 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: 01 07 00 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: 01 07 00 A9 20 00 00 00 00 00 C7 0C A3 [16:16:24]RasterBufferAndPrint [16:16:24]line [16:16:24]line [16:16:24]line [16:16:24]line [16:16:24]line [16:16:24]written 0, free lines is 3276 [16:16:24]MH_Cut [16:16:24]Write to MH i2c: D1 01 00 B0 20 01 A2 [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: D1 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: D1 01 00 [16:16:24]MH_I2C_Read... [16:16:24]Read from MH i2c: D1 01 00 B0 20 00 A1 [16:16:24]Write to MH i2c: 01 00 00 B1 20 D1 [16:16:24]Write i2c OK [16:16:24]MH_I2C_Read... [16:16:24]OFD Sender: No OFD packet to send [16:16:25]*** Cut start [16:16:25]*** Partial cut [16:16:25]*** CUTSNS_PIN = 1 [16:16:25]*** CUTSNS_PIN = 0 [16:16:25]*** Brake cut motor [16:16:26]Read from MH i2c: 01 [16:16:26]MH_I2C_Read... [16:16:26]*** Stop cut motor [16:16:26]*** Cut end [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 B1 20 00 00 00 00 00 FF 0F E6 [16:16:26]process_action close_receipt done [16:16:26]requested_data is exist [16:16:26]produce_requested_data [16:16:26]requested_item fm.sn is exist - process it [16:16:26]wFMCommunicate request_size=4 [16:16:26]MH_SAM_APDU [16:16:26]CAPDU: 80 11 00 00 [16:16:26]Write to MH i2c: E2 08 00 B2 20 80 11 00 00 00 00 00 00 4C [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:26]Read from MH i2c: E2 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 17 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 17 00 B2 20 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:16:26]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:26]wFMCommunicate OK [16:16:26]requested_item fd.num is exist - process it [16:16:26]SAM_PROTO_GetFieldsCounters [16:16:26]wFMCommunicate request_size=4 [16:16:26]MH_SAM_APDU [16:16:26]CAPDU: 80 13 00 00 [16:16:26]Write to MH i2c: E2 08 00 B3 20 80 13 00 00 00 00 00 00 4F [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:26]Read from MH i2c: E2 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 62 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 62 00 B3 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 0E FA 00 00 0E 04 04 00 76 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 1A [16:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 0E FA 00 00 0E 04 04 00 76 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 [16:16:26]wFMCommunicate OK [16:16:26]SAM_PROTO_GetFieldsCounters done [16:16:26]requested_item shift.num is exist - process it [16:16:26]requested_item shift.opened is exist - process it [16:16:26]req_shift_opened [16:16:26]FM_GetShiftState [16:16:26]SAM_PROTO_GetShiftState [16:16:26]wFMCommunicate request_size=4 [16:16:26]MH_SAM_APDU [16:16:26]CAPDU: 80 13 01 00 [16:16:26]Write to MH i2c: E2 08 00 B4 20 80 13 01 00 00 00 00 00 51 [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 [16:16:26]MH_I2C_Read... [16:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:26]Read from MH i2c: E2 0E 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 0E 00 B4 20 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F1 [16:16:26]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:16:26]wFMCommunicate OK [16:16:26]SAM_PROTO_GetShiftState done [16:16:26]FM_GetShiftState done [16:16:26]req_shift_opened done [16:16:26]requested_item shift.open_date is exist - process it [16:16:26]req_shift_open_date [16:16:26]req_shift_open_date done [16:16:26]produce_requested_data done [16:16:26]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64014,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [16:16:26]process_action_free close_receipt [16:16:26]json_value_free [16:16:26]json_value_free done [16:16:26]process_json_proto returns [16:16:26]Send response to host [16:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64014,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [16:16:26]free response buf [16:16:26]execute_script done [16:16:26]execute_script returns [16:16:26]free content buf [16:16:26]Sock 7.Close socket [16:16:26]Sock 7.Thread stoped [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:43]accept exits with 9 [16:19:43]New connection [16:19:43]New thread 3066912100 created [16:19:43]Thread 3067055460 joined [16:19:43]Waiting for new connection... [16:19:43] Sock 9.Parse request [16:19:43]Sock 9.Check first char [16:19:43]Sock 9.First char is OK [16:19:43]request: POST /json_proto HTTP/1.0 [16:19:43]Method: POST [16:19:43]URL: /json_proto [16:19:43]Method is POST - this is cgi request [16:19:43]url: /json_proto [16:19:43]query_string will be loaded in cgi processing [16:19:43]execute_cgi json_proto POST (null) [16:19:43]execute_cgi path=json_proto method=POST [16:19:43]POST find Content-Length [16:19:43]Host: 172.17.60.69:8080 [16:19:43]Content-Length: 710 [16:19:43]Content-Type: application/json [16:19:43] [16:19:43]POST finish read [16:19:43]Found Content-Length = 710 [16:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73571", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "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 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:43]execute_script... [16:19:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73571", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "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 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:43]POST & json_proto [16:19:43]process_json_proto [16:19:43]json parsed OK: [16:19:43]protocol is kg_v1.0 [16:19:43]action value=close_receipt [16:19:43]process_action close_receipt [16:19:43]cmd_close_receipt [16:19:43]MH_GetDate [16:19:43]Write to MH i2c: F0 00 00 B5 20 C4 [16:19:43]Write i2c OK [16:19:43]MH_I2C_Read... [16:19:43]Read from MH i2c: F0 [16:19:43]MH_I2C_Read... [16:19:43]Read from MH i2c: F0 09 00 [16:19:43]MH_I2C_Read... [16:19:43]Read from MH i2c: F0 09 00 B5 20 00 A3 3E 5F 66 6A 96 4A 66 23 [16:19:43]GetLastDocTimeStamp 1717517786 [16:19:43]current date 1717517987 [16:19:43]FM_GetShiftState [16:19:43]SAM_PROTO_GetShiftState [16:19:43]wFMCommunicate request_size=4 [16:19:43]MH_SAM_APDU [16:19:43]CAPDU: 80 13 01 00 [16:19:43]Write to MH i2c: E2 08 00 B6 20 80 13 01 00 00 00 00 00 53 [16:19:43]Write i2c OK [16:19:43]MH_I2C_Read... [16:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:43]Read from MH i2c: E2 [16:19:43]MH_I2C_Read... [16:19:43]Read from MH i2c: E2 0E 00 [16:19:43]MH_I2C_Read... [16:19:43]Read from MH i2c: E2 0E 00 B6 20 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F3 [16:19:43]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:19:43]wFMCommunicate OK [16:19:43]SAM_PROTO_GetShiftState done [16:19:43]FM_GetShiftState done [16:19:43]opened in 1717459574 [16:19:43]opened+sec_in_day 1717545974 [16:19:43]quantity*price = 8500 [16:19:43]sum+1 = 8501 [16:19:43]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 СНО: Общий режим Чек 100 04.06.2024 16:19 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64015 ФПД: 19548971169626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161947&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64015&fm=19548971169626&tin=02508201610067®Number=0000000000092737&sum=8500 0 [16:19:44]StoreToDocumentArchive [16:19:44]shift 374 fd 64015 [16:19:44]save to /storage/0374/doc_00064015 [16:19:44]save last doc name /storage/0374/doc_00064015 to /storage/kkm_last_doc_name [16:19:44]save OK [16:19:44]Clear old archive folders... [16:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=302 [16:19:45]tlvbuf is 012D88A0 [16:19:45]SAM_PROTO_ClearQueue [16:19:45]wFMCommunicate request_size=4 [16:19:45]MH_SAM_APDU [16:19:45]CAPDU: 80 09 00 00 [16:19:45]Write to MH i2c: E2 08 00 C3 20 80 09 00 00 00 00 00 00 55 [16:19:45]Write i2c OK [16:19:45]MH_I2C_Read... [16:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:45]Read from MH i2c: E2 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 03 00 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 03 00 C3 20 00 90 00 57 [16:19:45]RAPDU: 90 00 [16:19:45]wFMCommunicate OK [16:19:45]SAM_PROTO_ClearQueue done [16:19:45]KKMCreateOFDPacket [16:19:45]OFDProtocolAddRootSTLVToBuf [16:19:45]FM_MakeSignedData [16:19:45]FM_MakeSignedData [16:19:45]SAM_PROTO_SignData [16:19:45]wFMCommunicate request_size=4 [16:19:45]MH_SAM_APDU [16:19:45]CAPDU: 80 0D 01 02 [16:19:45]Write to MH i2c: E2 08 00 C4 20 80 0D 01 02 00 00 00 00 5D [16:19:45]Write i2c OK [16:19:45]MH_I2C_Read... [16:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:45]Read from MH i2c: E2 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 03 00 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [16:19:45]RAPDU: 90 00 [16:19:45]wFMCommunicate OK [16:19:45]wFMCommunicate request_size=255 [16:19:45]MH_SAM_APDU [16:19:45]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 00 00 00 F4 03 04 00 A3 3E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 [16:19:45]Write to MH i2c: E2 02 01 C5 20 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 00 00 00 F4 03 04 00 A3 3E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 00 00 1C [16:19:45]Write i2c OK [16:19:45]MH_I2C_Read... [16:19:45]OFD Sender: No OFD packet to send [16:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:45]Read from MH i2c: E2 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 03 00 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 03 00 C5 20 00 90 00 59 [16:19:45]RAPDU: 90 00 [16:19:45]wFMCommunicate OK [16:19:45]wFMCommunicate request_size=61 [16:19:45]MH_SAM_APDU [16:19:45]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0F FA 00 00 35 04 06 00 11 C7 99 7B 77 5A [16:19:45]Write to MH i2c: E2 40 00 C6 20 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0F FA 00 00 35 04 06 00 11 C7 99 7B 77 5A 00 00 5D [16:19:45]Write i2c OK [16:19:45]MH_I2C_Read... [16:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:45]Read from MH i2c: E2 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 03 00 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [16:19:45]RAPDU: 90 00 [16:19:45]wFMCommunicate OK [16:19:45]wFMCommunicate request_size=4 [16:19:45]MH_SAM_APDU [16:19:45]CAPDU: 80 0D 03 02 [16:19:45]Write to MH i2c: E2 08 00 C7 20 80 0D 03 02 00 00 00 00 62 [16:19:45]Write i2c OK [16:19:45]MH_I2C_Read... [16:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:45]Read from MH i2c: E2 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 0B 00 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 0B 00 C7 20 00 93 51 94 B4 73 E6 A6 EB 90 00 79 [16:19:45]RAPDU: 93 51 94 B4 73 E6 A6 EB 90 00 [16:19:45]wFMCommunicate OK [16:19:45]SAM_PROTO_SignData done [16:19:45]FM_MakeSignedData done [16:19:45]CreateOFDProtocolMessage [16:19:45]wFMCommunicate request_size=4 [16:19:45]MH_SAM_APDU [16:19:45]CAPDU: 80 11 00 00 [16:19:45]Write to MH i2c: E2 08 00 C8 20 80 11 00 00 00 00 00 00 62 [16:19:45]Write i2c OK [16:19:45]MH_I2C_Read... [16:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:45]Read from MH i2c: E2 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 17 00 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: E2 17 00 C8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B4 [16:19: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:19:45]wFMCommunicate OK [16:19:45]CreateOFDProtocolMessage done [16:19:45]OFDSenderStorePacket 64015 [16:19:45]StoreOFDPacket docnum=64015 [16:19: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 42 01 00 00 D6 DF 3A 01 FE BC 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 00 00 00 F4 03 04 00 A3 3E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0F FA 00 00 35 04 06 00 11 C7 99 7B 77 5A 93 51 94 B4 73 E6 A6 EB [16:19:45]CheckFolder [16:19:45]dirname=/storage/ofd_packets [16:19:45]CheckFolder done [16:19:45]ProducePacketName [16:19:45]name=ofd_packets/00064015 [16:19:45]NVStorageSaveData ofd_packets/00064015 [16:19:45]File name is /storage/ofd_packets/00064015 [16:19:45]Write 352 bytes [16:19:45]NVStorageSaveData done [16:19:45]OFDSenderStorePacket done [16:19:45]KKMCreateOFDPacket done [16:19:45]NVStorageSaveData kkm_last_timestamp [16:19:45]File name is /storage/kkm_last_timestamp [16:19:45]Write 4 bytes [16:19:45]NVStorageSaveData done [16:19:45]ExternCall_PrintAddStr [16:19:45]wPrintStart [16:19:45]Write to MH i2c: 01 00 00 C9 20 E9 [16:19:45]Write i2c OK [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: 01 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: 01 07 00 [16:19:45]MH_I2C_Read... [16:19:45]Read from MH i2c: 01 07 00 C9 20 00 00 00 00 00 FF 0F FE [16:19:45]RasterBufferAndPrint [16:19:45]line Счет N : (3)73571 [16:19:45]line ИНН: 02508201610067 [16:19:45]line Контрольно-Кассовый Чек [16:19:45]line ПРОДАЖА [16:19:45]line Товар: 4870001571030 [16:19:45]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [16:19:45]line 1.000 * 85.00 [16:19:45]line = 85.00 [16:19:45]line НДС 12% НСП 1% [16:19:45]line > о реализуемом товаре [16:19:45]line ИТОГО: 85.00 [16:19:45]line НСП 1% : 0.75 [16:19:45]line НДС 12% : 9.03 [16:19:45]line Наличными: 85.00 [16:19:45]line Безнал.: 0.00 [16:19:45]line Место: АЗС № 117 "Партнер Нефть" [16:19:45]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:19:45]line СНО: Общий режим [16:19:45]line Чек 100 04.06.2024 16:19 [16:19:45]line Смена: 374 ФФД: 1.0 [16:19:45]line ЗНМ: 0300000031 [16:19:45]line РНМ: 0000000000092737 [16:19:45]line Версия ККМ: 001 [16:19:45]line ФМ: 0000000000875074 [16:19:45]line ФД: 64015 [16:19:45]line ФПД: 19548971169626 [16:19:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T161947&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64015&fm=19548971169626&tin=02508201610067®Number=0000000000092737&sum=8500 [16:19:45]line 0 [16:19:45]OFD Sender: Processing packet 64015 [packets to send 14, broken 13] [16:19:45]ProducePacketName [16:19:45]name=ofd_packets/00064015 [16:19:45]OFD Sender: To server: pG, [16:19:45]CommunicateWithHost lk.salyk.kg:30040 [16:19:45]ConnectInit lk.salyk.kg [16:19:45]written 0, free lines is 4095 [16:19:46]Connected sock=10 [16:19: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 42 01 00 00 D6 DF 3A 01 FE BC 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 64 00 00 00 F4 03 04 00 A3 3E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0F FA 00 00 35 04 06 00 11 C7 99 7B 77 5A 93 51 94 B4 73 E6 A6 EB [16:19: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 4A 9B 47 00 DE 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 0F FA 00 00 F4 03 04 00 71 EA 5E 66 B6 04 01 00 00 24 0F AA 2F 5E 33 7E 37 [16:19:46]CommunicateWithHost err = 0 [16:19:46]CheckOFDResponse [16:19:46]1017 (14) - 77093643461234 [16:19:46]1041 (16) - 0000000000875074 [16:19:46]1040 (4) - 64015 [16:19:46]1012 (4) - 04.06.2024 10:20 [16:19:46]1206 (1) - 0 [16:19:46]OFD Sender: Remove packet 64015 [16:19:46]ProducePacketName [16:19:46]name=ofd_packets/00064015 [16:19:46]NVStorageDeleteData [16:19:46]Write to MH i2c: 01 00 00 F2 20 12 [16:19:46]Write i2c OK [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: 01 [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: 01 07 00 [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: 01 07 00 F2 20 00 00 00 00 00 E1 0C 06 [16:19:46]RasterBufferAndPrint [16:19:46]line [16:19:46]line [16:19:46]line [16:19:46]line [16:19:46]line [16:19:46]written 0, free lines is 3303 [16:19:46]MH_Cut [16:19:46]Write to MH i2c: D1 01 00 F9 20 01 EB [16:19:46]Write i2c OK [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: D1 [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: D1 01 00 [16:19:46]MH_I2C_Read... [16:19:46]Read from MH i2c: D1 01 00 F9 20 00 EA [16:19:46]Write to MH i2c: 01 00 00 FA 20 1A [16:19:46]Write i2c OK [16:19:46]MH_I2C_Read... [16:19:46]OFD Sender: No OFD packet to send [16:19:47]*** Cut start [16:19:47]*** Partial cut [16:19:47]*** CUTSNS_PIN = 1 [16:19:47]*** CUTSNS_PIN = 0 [16:19:47]*** Brake cut motor [16:19:47]Read from MH i2c: 01 [16:19:47]MH_I2C_Read... [16:19:47]*** Stop cut motor [16:19:47]*** Cut end [16:19:47]Read from MH i2c: 01 07 00 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: 01 07 00 FA 20 00 00 00 00 00 FF 0F 2F [16:19:47]process_action close_receipt done [16:19:47]requested_data is exist [16:19:47]produce_requested_data [16:19:47]requested_item fm.sn is exist - process it [16:19:47]wFMCommunicate request_size=4 [16:19:47]MH_SAM_APDU [16:19:47]CAPDU: 80 11 00 00 [16:19:47]Write to MH i2c: E2 08 00 FB 20 80 11 00 00 00 00 00 00 95 [16:19:47]Write i2c OK [16:19:47]MH_I2C_Read... [16:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:47]Read from MH i2c: E2 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 17 00 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 17 00 FB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E7 [16:19: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:19:47]wFMCommunicate OK [16:19:47]requested_item fd.num is exist - process it [16:19:47]SAM_PROTO_GetFieldsCounters [16:19:47]wFMCommunicate request_size=4 [16:19:47]MH_SAM_APDU [16:19:47]CAPDU: 80 13 00 00 [16:19:47]Write to MH i2c: E2 08 00 FC 20 80 13 00 00 00 00 00 00 98 [16:19:47]Write i2c OK [16:19:47]MH_I2C_Read... [16:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:47]Read from MH i2c: E2 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 62 00 [16:19:47]MH_I2C_Read... [16:19:47]Read from MH i2c: E2 62 00 FC 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 0F FA 00 00 0E 04 04 00 76 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 67 [16:19: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 0F FA 00 00 0E 04 04 00 76 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 [16:19:47]wFMCommunicate OK [16:19:47]SAM_PROTO_GetFieldsCounters done [16:19:47]requested_item shift.num is exist - process it [16:19:47]requested_item shift.opened is exist - process it [16:19:47]req_shift_opened [16:19:47]FM_GetShiftState [16:19:47]SAM_PROTO_GetShiftState [16:19:47]wFMCommunicate request_size=4 [16:19:47]MH_SAM_APDU [16:19:47]CAPDU: 80 13 01 00 [16:19:47]Write to MH i2c: E2 08 00 FD 20 80 13 01 00 00 00 00 00 9A [16:19:47]Write i2c OK [16:19:47]MH_I2C_Read... [16:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:48]Read from MH i2c: E2 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 0E 00 [16:19:48]MH_I2C_Read... [16:19:48]Read from MH i2c: E2 0E 00 FD 20 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 3A [16:19:48]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:19:48]wFMCommunicate OK [16:19:48]SAM_PROTO_GetShiftState done [16:19:48]FM_GetShiftState done [16:19:48]req_shift_opened done [16:19:48]requested_item shift.open_date is exist - process it [16:19:48]req_shift_open_date [16:19:48]req_shift_open_date done [16:19:48]produce_requested_data done [16:19:48]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64015,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [16:19:48]process_action_free close_receipt [16:19:48]json_value_free [16:19:48]json_value_free done [16:19:48]process_json_proto returns [16:19:48]Send response to host [16:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64015,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [16:19:48]free response buf [16:19:48]execute_script done [16:19:48]execute_script returns [16:19:48]free content buf [16:19:48]Sock 9.Close socket [16:19:48]Sock 9.Thread stoped [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]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:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:16]accept exits with 7 [16:44:16]New connection [16:44:16]New thread 3067055460 created [16:44:16]Thread 3066912100 joined [16:44:16]Waiting for new connection... [16:44:16] Sock 7.Parse request [16:44:16]Sock 7.Check first char [16:44:16]Sock 7.First char is OK [16:44:16]request: POST /json_proto HTTP/1.0 [16:44:16]Method: POST [16:44:16]URL: /json_proto [16:44:16]Method is POST - this is cgi request [16:44:16]url: /json_proto [16:44:16]query_string will be loaded in cgi processing [16:44:16]execute_cgi json_proto POST (null) [16:44:16]execute_cgi path=json_proto method=POST [16:44:16]POST find Content-Length [16:44:16]Host: 172.17.60.69:8080 [16:44:16]Content-Length: 657 [16:44:16]Content-Type: application/json [16:44:16] [16:44:16]POST finish read [16:44:16]Found Content-Length = 657 [16:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73572", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:16]execute_script... [16:44:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73572", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:16]POST & json_proto [16:44:16]process_json_proto [16:44:16]json parsed OK: [16:44:16]protocol is kg_v1.0 [16:44:16]action value=close_receipt [16:44:16]process_action close_receipt [16:44:16]cmd_close_receipt [16:44:16]MH_GetDate [16:44:16]Write to MH i2c: F0 00 00 FE 20 0D [16:44:16]Write i2c OK [16:44:16]MH_I2C_Read... [16:44:16]Read from MH i2c: F0 [16:44:16]MH_I2C_Read... [16:44:16]Read from MH i2c: F0 09 00 [16:44:16]MH_I2C_Read... [16:44:16]Read from MH i2c: F0 09 00 FE 20 00 64 44 5F 66 6A 96 4A 66 33 [16:44:16]GetLastDocTimeStamp 1717517987 [16:44:16]current date 1717519460 [16:44:16]FM_GetShiftState [16:44:16]SAM_PROTO_GetShiftState [16:44:16]wFMCommunicate request_size=4 [16:44:16]MH_SAM_APDU [16:44:16]CAPDU: 80 13 01 00 [16:44:16]Write to MH i2c: E2 08 00 FF 20 80 13 01 00 00 00 00 00 9C [16:44:16]Write i2c OK [16:44:16]MH_I2C_Read... [16:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:16]Read from MH i2c: E2 [16:44:16]MH_I2C_Read... [16:44:16]Read from MH i2c: E2 0E 00 [16:44:16]MH_I2C_Read... [16:44:16]Read from MH i2c: E2 0E 00 FF 20 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 3C [16:44:16]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:44:16]wFMCommunicate OK [16:44:16]SAM_PROTO_GetShiftState done [16:44:16]FM_GetShiftState done [16:44:16]opened in 1717459574 [16:44:16]opened+sec_in_day 1717545974 [16:44:16]quantity*price = 14100 [16:44:16]sum+1 = 14101 [16:44:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 141.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 101 04.06.2024 16:44 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64016 ФПД: 203851288192755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164420&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64016&fm=203851288192755&tin=02508201610067®Number=0000000000092737&sum=14100 0 [16:44:18]StoreToDocumentArchive [16:44:18]shift 374 fd 64016 [16:44:18]save to /storage/0374/doc_00064016 [16:44:18]save last doc name /storage/0374/doc_00064016 to /storage/kkm_last_doc_name [16:44:18]save OK [16:44:18]Clear old archive folders... [16:44:18]ProcessDocumentItem done err = 0, tmpTLVsize=294 [16:44:18]tlvbuf is 012E10E0 [16:44:18]SAM_PROTO_ClearQueue [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 09 00 00 [16:44:18]Write to MH i2c: E2 08 00 0C 21 80 09 00 00 00 00 00 00 9F [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]SAM_PROTO_ClearQueue done [16:44:18]KKMCreateOFDPacket [16:44:18]OFDProtocolAddRootSTLVToBuf [16:44:18]FM_MakeSignedData [16:44:18]FM_MakeSignedData [16:44:18]SAM_PROTO_SignData [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 01 02 [16:44:18]Write to MH i2c: E2 08 00 0D 21 80 0D 01 02 00 00 00 00 A7 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]wFMCommunicate request_size=255 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 64 44 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [16:44:18]Write to MH i2c: E2 02 01 0E 21 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 64 44 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 99 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]wFMCommunicate request_size=53 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 10 FA 00 00 35 04 06 00 B9 66 D3 9E A6 F3 [16:44:18]Write to MH i2c: E2 38 00 0F 21 80 0D 02 02 30 00 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 10 FA 00 00 35 04 06 00 B9 66 D3 9E A6 F3 00 00 D4 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 03 00 0F 21 00 90 00 A4 [16:44:18]RAPDU: 90 00 [16:44:18]wFMCommunicate OK [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 0D 03 02 [16:44:18]Write to MH i2c: E2 08 00 10 21 80 0D 03 02 00 00 00 00 AC [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 0B 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 0B 00 10 21 00 F8 C6 0E 0F 0D 66 35 D3 90 00 03 [16:44:18]RAPDU: F8 C6 0E 0F 0D 66 35 D3 90 00 [16:44:18]wFMCommunicate OK [16:44:18]SAM_PROTO_SignData done [16:44:18]FM_MakeSignedData done [16:44:18]CreateOFDProtocolMessage [16:44:18]wFMCommunicate request_size=4 [16:44:18]MH_SAM_APDU [16:44:18]CAPDU: 80 11 00 00 [16:44:18]Write to MH i2c: E2 08 00 11 21 80 11 00 00 00 00 00 00 AC [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:18]Read from MH i2c: E2 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 17 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: E2 17 00 11 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FE [16:44: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:44:18]wFMCommunicate OK [16:44:18]CreateOFDProtocolMessage done [16:44:18]OFDSenderStorePacket 64016 [16:44:18]StoreOFDPacket docnum=64016 [16:44: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 3A 01 00 00 FF B4 32 01 2B 51 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 64 44 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 10 FA 00 00 35 04 06 00 B9 66 D3 9E A6 F3 F8 C6 0E 0F 0D 66 35 D3 [16:44:18]CheckFolder [16:44:18]dirname=/storage/ofd_packets [16:44:18]CheckFolder done [16:44:18]ProducePacketName [16:44:18]name=ofd_packets/00064016 [16:44:18]NVStorageSaveData ofd_packets/00064016 [16:44:18]File name is /storage/ofd_packets/00064016 [16:44:18]Write 344 bytes [16:44:18]NVStorageSaveData done [16:44:18]OFDSenderStorePacket done [16:44:18]KKMCreateOFDPacket done [16:44:18]NVStorageSaveData kkm_last_timestamp [16:44:18]File name is /storage/kkm_last_timestamp [16:44:18]Write 4 bytes [16:44:18]NVStorageSaveData done [16:44:18]ExternCall_PrintAddStr [16:44:18]wPrintStart [16:44:18]Write to MH i2c: 01 00 00 12 21 33 [16:44:18]Write i2c OK [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: 01 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: 01 07 00 [16:44:18]MH_I2C_Read... [16:44:18]Read from MH i2c: 01 07 00 12 21 00 00 00 00 00 FF 0F 48 [16:44:18]RasterBufferAndPrint [16:44:18]line Счет N : (3)73572 [16:44:18]line ИНН: 02508201610067 [16:44:18]line Контрольно-Кассовый Чек [16:44:18]line ПРОДАЖА [16:44:18]line Товар: 4870216764968 [16:44:18]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [16:44:18]line 1.000 * 141.00 [16:44:18]line = 141.00 [16:44:18]line НДС 12% НСП 1% [16:44:18]line > о реализуемом товаре [16:44:18]line ИТОГО: 141.00 [16:44:18]line НСП 1% : 1.25 [16:44:18]line НДС 12% : 14.97 [16:44:18]line Наличными: 141.00 [16:44:18]line Безнал.: 0.00 [16:44:18]line Место: АЗС № 117 "Партнер Нефть" [16:44:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [16:44:18]line СНО: Общий режим [16:44:18]line Чек 101 04.06.2024 16:44 [16:44:18]line Смена: 374 ФФД: 1.0 [16:44:18]line ЗНМ: 0300000031 [16:44:18]line РНМ: 0000000000092737 [16:44:18]line Версия ККМ: 001 [16:44:18]line ФМ: 0000000000875074 [16:44:18]line ФД: 64016 [16:44:18]line ФПД: 203851288192755 [16:44:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T164420&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64016&fm=203851288192755&tin=02508201610067®Number=0000000000092737&sum=14100 [16:44:18]OFD Sender: Processing packet 64016 [packets to send 14, broken 13] [16:44:18]ProducePacketName [16:44:18]name=ofd_packets/00064016 [16:44:18]OFD Sender: To server: pG, [16:44:18]CommunicateWithHost lk.salyk.kg:30040 [16:44:18]ConnectInit lk.salyk.kg [16:44:18]line 0 [16:44:18]written 0, free lines is 4095 [16:44:19]Connected sock=9 [16:44:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 3A 01 00 00 FF B4 32 01 2B 51 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 14 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 64 44 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 10 FA 00 00 35 04 06 00 B9 66 D3 9E A6 F3 F8 C6 0E 0F 0D 66 35 D3 [16:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1C 40 47 00 41 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 10 FA 00 00 F4 03 04 00 32 F0 5E 66 B6 04 01 00 00 2F C2 14 A3 8F 9E 8E 7C [16:44:19]CommunicateWithHost err = 0 [16:44:19]CheckOFDResponse [16:44:19]1017 (14) - 77093643461234 [16:44:19]1041 (16) - 0000000000875074 [16:44:19]1040 (4) - 64016 [16:44:19]1012 (4) - 04.06.2024 10:45 [16:44:19]1206 (1) - 0 [16:44:19]OFD Sender: Remove packet 64016 [16:44:19]ProducePacketName [16:44:19]name=ofd_packets/00064016 [16:44:19]NVStorageDeleteData [16:44:19]Write to MH i2c: 01 00 00 3B 21 5C [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 07 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: 01 07 00 3B 21 00 00 00 00 00 F5 0C 64 [16:44:19]RasterBufferAndPrint [16:44:19]line [16:44:19]line [16:44:19]line [16:44:19]line [16:44:19]line [16:44:19]written 0, free lines is 3324 [16:44:19]MH_Cut [16:44:19]Write to MH i2c: D1 01 00 42 21 01 35 [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: D1 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: D1 01 00 [16:44:19]MH_I2C_Read... [16:44:19]Read from MH i2c: D1 01 00 42 21 00 34 [16:44:19]Write to MH i2c: 01 00 00 43 21 64 [16:44:19]Write i2c OK [16:44:19]MH_I2C_Read... [16:44:19]OFD Sender: No OFD packet to send [16:44:20]*** Cut start [16:44:20]*** Partial cut [16:44:20]*** CUTSNS_PIN = 1 [16:44:20]*** CUTSNS_PIN = 0 [16:44:20]*** Brake cut motor [16:44:20]Read from MH i2c: 01 [16:44:20]MH_I2C_Read... [16:44:20]*** Stop cut motor [16:44:20]*** Cut end [16:44:20]Read from MH i2c: 01 07 00 [16:44:20]MH_I2C_Read... [16:44:20]Read from MH i2c: 01 07 00 43 21 00 00 00 00 00 FF 0F 79 [16:44:20]process_action close_receipt done [16:44:20]requested_data is exist [16:44:20]produce_requested_data [16:44:20]requested_item fm.sn is exist - process it [16:44:20]wFMCommunicate request_size=4 [16:44:20]MH_SAM_APDU [16:44:20]CAPDU: 80 11 00 00 [16:44:20]Write to MH i2c: E2 08 00 44 21 80 11 00 00 00 00 00 00 DF [16:44:20]Write i2c OK [16:44:20]MH_I2C_Read... [16:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:20]Read from MH i2c: E2 [16:44:20]MH_I2C_Read... [16:44:20]Read from MH i2c: E2 17 00 [16:44:20]MH_I2C_Read... [16:44:20]Read from MH i2c: E2 17 00 44 21 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:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [16:44:20]wFMCommunicate OK [16:44:20]requested_item fd.num is exist - process it [16:44:20]SAM_PROTO_GetFieldsCounters [16:44:20]wFMCommunicate request_size=4 [16:44:20]MH_SAM_APDU [16:44:20]CAPDU: 80 13 00 00 [16:44:20]Write to MH i2c: E2 08 00 45 21 80 13 00 00 00 00 00 00 E2 [16:44:20]Write i2c OK [16:44:20]MH_I2C_Read... [16:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:21]Read from MH i2c: E2 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 62 00 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 62 00 45 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 10 FA 00 00 0E 04 04 00 76 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 B5 [16:44: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 10 FA 00 00 0E 04 04 00 76 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 [16:44:21]wFMCommunicate OK [16:44:21]SAM_PROTO_GetFieldsCounters done [16:44:21]requested_item shift.num is exist - process it [16:44:21]requested_item shift.opened is exist - process it [16:44:21]req_shift_opened [16:44:21]FM_GetShiftState [16:44:21]SAM_PROTO_GetShiftState [16:44:21]wFMCommunicate request_size=4 [16:44:21]MH_SAM_APDU [16:44:21]CAPDU: 80 13 01 00 [16:44:21]Write to MH i2c: E2 08 00 46 21 80 13 01 00 00 00 00 00 E4 [16:44:21]Write i2c OK [16:44:21]MH_I2C_Read... [16:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:21]Read from MH i2c: E2 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 0E 00 [16:44:21]MH_I2C_Read... [16:44:21]Read from MH i2c: E2 0E 00 46 21 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 84 [16:44:21]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [16:44:21]wFMCommunicate OK [16:44:21]SAM_PROTO_GetShiftState done [16:44:21]FM_GetShiftState done [16:44:21]req_shift_opened done [16:44:21]requested_item shift.open_date is exist - process it [16:44:21]req_shift_open_date [16:44:21]req_shift_open_date done [16:44:21]produce_requested_data done [16:44:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64016,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [16:44:21]process_action_free close_receipt [16:44:21]json_value_free [16:44:21]json_value_free done [16:44:21]process_json_proto returns [16:44:21]Send response to host [16:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64016,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [16:44:21]free response buf [16:44:21]execute_script done [16:44:21]execute_script returns [16:44:21]free content buf [16:44:21]Sock 7.Close socket [16:44:21]Sock 7.Thread stoped [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:28]accept exits with 10 [17:14:28]New connection [17:14:28]New thread 3066912100 created [17:14:28]Thread 3067055460 joined [17:14:28]Waiting for new connection... [17:14:28] Sock 10.Parse request [17:14:28]Sock 10.Check first char [17:14:28]Sock 10.First char is OK [17:14:28]request: POST /json_proto HTTP/1.0 [17:14:28]Method: POST [17:14:28]URL: /json_proto [17:14:28]Method is POST - this is cgi request [17:14:28]url: /json_proto [17:14:28]query_string will be loaded in cgi processing [17:14:28]execute_cgi json_proto POST (null) [17:14:28]execute_cgi path=json_proto method=POST [17:14:28]POST find Content-Length [17:14:28]Host: 172.17.60.69:8080 [17:14:28]Content-Length: 875 [17:14:28]Content-Type: application/json [17:14:28] [17:14:28]POST finish read [17:14:28]Found Content-Length = 875 [17:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73573", "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": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:28]execute_script... [17:14:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73573", "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": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 2.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:28]POST & json_proto [17:14:28]process_json_proto [17:14:28]json parsed OK: [17:14:28]protocol is kg_v1.0 [17:14:28]action value=close_receipt [17:14:28]process_action close_receipt [17:14:28]cmd_close_receipt [17:14:28]MH_GetDate [17:14:28]Write to MH i2c: F0 00 00 47 21 57 [17:14:28]Write i2c OK [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: F0 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: F0 09 00 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: F0 09 00 47 21 00 78 4B 5F 66 6A 96 4A 66 98 [17:14:28]GetLastDocTimeStamp 1717519460 [17:14:28]current date 1717521272 [17:14:28]FM_GetShiftState [17:14:28]SAM_PROTO_GetShiftState [17:14:28]wFMCommunicate request_size=4 [17:14:28]MH_SAM_APDU [17:14:28]CAPDU: 80 13 01 00 [17:14:28]Write to MH i2c: E2 08 00 48 21 80 13 01 00 00 00 00 00 E6 [17:14:28]Write i2c OK [17:14:28]MH_I2C_Read... [17:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:28]Read from MH i2c: E2 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 0E 00 [17:14:28]MH_I2C_Read... [17:14:28]Read from MH i2c: E2 0E 00 48 21 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 86 [17:14:28]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:14:28]wFMCommunicate OK [17:14:28]SAM_PROTO_GetShiftState done [17:14:28]FM_GetShiftState done [17:14:28]opened in 1717459574 [17:14:28]opened+sec_in_day 1717545974 [17:14:28]quantity*price = 12500 [17:14:28]sum+1 = 12501 [17:14:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744317 Сигареты Camel Yellow 2.000 * 150.00 = 300.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 102 04.06.2024 17:14 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64017 ФПД: 68040793749445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171433&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64017&fm=68040793749445&tin=02508201610067®Number=0000000000092737&sum=42500 0 [17:14:30]StoreToDocumentArchive [17:14:30]shift 374 fd 64017 [17:14:30]save to /storage/0374/doc_00064017 [17:14:30]save last doc name /storage/0374/doc_00064017 to /storage/kkm_last_doc_name [17:14:30]save OK [17:14:30]Clear old archive folders... [17:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=378 [17:14:30]tlvbuf is B6EF35C0 [17:14:30]SAM_PROTO_ClearQueue [17:14:30]wFMCommunicate request_size=4 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 09 00 00 [17:14:30]Write to MH i2c: E2 08 00 55 21 80 09 00 00 00 00 00 00 E8 [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:30]Read from MH i2c: E2 03 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 55 21 00 90 00 EA [17:14:30]RAPDU: 90 00 [17:14:30]wFMCommunicate OK [17:14:30]SAM_PROTO_ClearQueue done [17:14:30]KKMCreateOFDPacket [17:14:30]OFDProtocolAddRootSTLVToBuf [17:14:30]FM_MakeSignedData [17:14:30]FM_MakeSignedData [17:14:30]SAM_PROTO_SignData [17:14:30]wFMCommunicate request_size=4 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 0D 01 02 [17:14:30]Write to MH i2c: E2 08 00 56 21 80 0D 01 02 00 00 00 00 F0 [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:30]Read from MH i2c: E2 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 56 21 00 90 00 EB [17:14:30]RAPDU: 90 00 [17:14:30]wFMCommunicate OK [17:14:30]wFMCommunicate request_size=255 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 0D 02 02 FA 03 00 7A 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 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 [17:14:30]Write to MH i2c: E2 02 01 57 21 80 0D 02 02 FA 00 03 00 7A 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 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 00 00 92 [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:30]Read from MH i2c: E2 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [17:14:30]RAPDU: 90 00 [17:14:30]wFMCommunicate OK [17:14:30]wFMCommunicate request_size=137 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 79 4B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 11 FA 00 00 35 04 06 00 3D E1 FB 57 77 C5 [17:14:30]Write to MH i2c: E2 8C 00 58 21 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 79 4B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 11 FA 00 00 35 04 06 00 3D E1 FB 57 77 C5 00 00 A3 [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:30]Read from MH i2c: E2 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [17:14:30]RAPDU: 90 00 [17:14:30]wFMCommunicate OK [17:14:30]wFMCommunicate request_size=4 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 0D 03 02 [17:14:30]Write to MH i2c: E2 08 00 59 21 80 0D 03 02 00 00 00 00 F5 [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:30]Read from MH i2c: E2 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 0B 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 0B 00 59 21 00 22 02 94 7C 2E 2D 19 FB 90 00 99 [17:14:30]RAPDU: 22 02 94 7C 2E 2D 19 FB 90 00 [17:14:30]wFMCommunicate OK [17:14:30]SAM_PROTO_SignData done [17:14:30]FM_MakeSignedData done [17:14:30]CreateOFDProtocolMessage [17:14:30]wFMCommunicate request_size=4 [17:14:30]MH_SAM_APDU [17:14:30]CAPDU: 80 11 00 00 [17:14:30]Write to MH i2c: E2 08 00 5A 21 80 11 00 00 00 00 00 00 F5 [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:30]Read from MH i2c: E2 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 17 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: E2 17 00 5A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 47 [17:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:14:30]wFMCommunicate OK [17:14:30]CreateOFDProtocolMessage done [17:14:30]OFDSenderStorePacket 64017 [17:14:30]StoreOFDPacket docnum=64017 [17:14: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 8E 01 00 00 31 86 86 01 30 E7 5A 03 01 00 03 00 7A 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 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 79 4B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 11 FA 00 00 35 04 06 00 3D E1 FB 57 77 C5 22 02 94 7C 2E 2D 19 FB [17:14:30]CheckFolder [17:14:30]dirname=/storage/ofd_packets [17:14:30]CheckFolder done [17:14:30]ProducePacketName [17:14:30]name=ofd_packets/00064017 [17:14:30]NVStorageSaveData ofd_packets/00064017 [17:14:30]File name is /storage/ofd_packets/00064017 [17:14:30]Write 428 bytes [17:14:30]NVStorageSaveData done [17:14:30]OFDSenderStorePacket done [17:14:30]KKMCreateOFDPacket done [17:14:30]NVStorageSaveData kkm_last_timestamp [17:14:30]File name is /storage/kkm_last_timestamp [17:14:30]Write 4 bytes [17:14:30]NVStorageSaveData done [17:14:30]ExternCall_PrintAddStr [17:14:30]wPrintStart [17:14:30]Write to MH i2c: 01 00 00 5B 21 7C [17:14:30]Write i2c OK [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: 01 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: 01 07 00 [17:14:30]MH_I2C_Read... [17:14:30]Read from MH i2c: 01 07 00 5B 21 00 00 00 00 00 FF 0F 91 [17:14:30]RasterBufferAndPrint [17:14:30]line Счет N : (3)73573 [17:14:30]line ИНН: 02508201610067 [17:14:30]line Контрольно-Кассовый Чек [17:14:30]line ПРОДАЖА [17:14:30]line Товар: 2000036220012 [17:14:30]line Кофе Капучино XL(GABB TRADE) [17:14:30]line 1.000 * 125.00 [17:14:30]line = 125.00 [17:14:30]line НДС 12% НСП 1% [17:14:30]line > о реализуемом товаре [17:14:30]line Товар: 48744317 [17:14:30]line Сигареты Camel Yellow [17:14:30]line 2.000 * 150.00 [17:14:30]line = 300.00 [17:14:30]line НДС 12% НСП 1% [17:14:30]line > о реализуемом товаре [17:14:30]line ИТОГО: 425.00 [17:14:30]line НСП 1% : 3.76 [17:14:30]line НДС 12% : 45.13 [17:14:30]line Наличными: 425.00 [17:14:30]line Безнал.: 0.00 [17:14:30]line Место: АЗС № 117 "Партнер Нефть" [17:14:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:14:31]line СНО: Общий режим [17:14:31]line Чек 102 04.06.2024 17:14 [17:14:31]line Смена: 374 ФФД: 1.0 [17:14:31]line ЗНМ: 0300000031 [17:14:31]line РНМ: 0000000000092737 [17:14:31]line Версия ККМ: 001 [17:14:31]line ФМ: 0000000000875074 [17:14:31]line ФД: 64017 [17:14:31]line ФПД: 68040793749445 [17:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171433&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64017&fm=68040793749445&tin=02508201610067®Number=0000000000092737&sum=42500 [17:14:31]line 0 [17:14:31]OFD Sender: Processing packet 64017 [packets to send 14, broken 13] [17:14:31]ProducePacketName [17:14:31]name=ofd_packets/00064017 [17:14:31]OFD Sender: To server: pG, [17:14:31]CommunicateWithHost lk.salyk.kg:30040 [17:14:31]ConnectInit lk.salyk.kg [17:14:31]written 0, free lines is 4095 [17:14:31]Connected sock=9 [17:14: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 8E 01 00 00 31 86 86 01 30 E7 5A 03 01 00 03 00 7A 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 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 79 4B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 11 FA 00 00 35 04 06 00 3D E1 FB 57 77 C5 22 02 94 7C 2E 2D 19 FB [17:14: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 B1 C3 47 00 A1 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 11 FA 00 00 F4 03 04 00 46 F7 5E 66 B6 04 01 00 00 A0 12 84 79 AE B0 35 55 [17:14:31]CommunicateWithHost err = 0 [17:14:31]CheckOFDResponse [17:14:31]1017 (14) - 77093643461234 [17:14:31]1041 (16) - 0000000000875074 [17:14:31]1040 (4) - 64017 [17:14:31]1012 (4) - 04.06.2024 11:15 [17:14:31]1206 (1) - 0 [17:14:31]OFD Sender: Remove packet 64017 [17:14:31]ProducePacketName [17:14:31]name=ofd_packets/00064017 [17:14:31]NVStorageDeleteData [17:14:31]Write to MH i2c: 01 00 00 8A 21 AB [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: 01 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: 01 07 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: 01 07 00 8A 21 00 00 00 00 00 99 0C 57 [17:14:31]RasterBufferAndPrint [17:14:31]line [17:14:31]line [17:14:31]line [17:14:31]line [17:14:31]line [17:14:31]written 0, free lines is 3232 [17:14:31]MH_Cut [17:14:31]Write to MH i2c: D1 01 00 91 21 01 84 [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: D1 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: D1 01 00 [17:14:31]MH_I2C_Read... [17:14:31]Read from MH i2c: D1 01 00 91 21 00 83 [17:14:31]Write to MH i2c: 01 00 00 92 21 B3 [17:14:31]Write i2c OK [17:14:31]MH_I2C_Read... [17:14:31]OFD Sender: No OFD packet to send [17:14:32]*** Cut start [17:14:32]*** Partial cut [17:14:32]*** CUTSNS_PIN = 1 [17:14:32]*** CUTSNS_PIN = 0 [17:14:32]*** Brake cut motor [17:14:33]Read from MH i2c: 01 [17:14:33]MH_I2C_Read... [17:14:33]*** Stop cut motor [17:14:33]*** Cut end [17:14:33]Read from MH i2c: 01 07 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: 01 07 00 92 21 00 00 00 00 00 FF 0F C8 [17:14:33]process_action close_receipt done [17:14:33]requested_data is exist [17:14:33]produce_requested_data [17:14:33]requested_item fm.sn is exist - process it [17:14:33]wFMCommunicate request_size=4 [17:14:33]MH_SAM_APDU [17:14:33]CAPDU: 80 11 00 00 [17:14:33]Write to MH i2c: E2 08 00 93 21 80 11 00 00 00 00 00 00 2E [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:33]Read from MH i2c: E2 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 17 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 17 00 93 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 80 [17:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:14:33]wFMCommunicate OK [17:14:33]requested_item fd.num is exist - process it [17:14:33]SAM_PROTO_GetFieldsCounters [17:14:33]wFMCommunicate request_size=4 [17:14:33]MH_SAM_APDU [17:14:33]CAPDU: 80 13 00 00 [17:14:33]Write to MH i2c: E2 08 00 94 21 80 13 00 00 00 00 00 00 31 [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:33]Read from MH i2c: E2 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 62 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 62 00 94 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 11 FA 00 00 0E 04 04 00 76 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 08 [17:14: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 11 FA 00 00 0E 04 04 00 76 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 [17:14:33]wFMCommunicate OK [17:14:33]SAM_PROTO_GetFieldsCounters done [17:14:33]requested_item shift.num is exist - process it [17:14:33]requested_item shift.opened is exist - process it [17:14:33]req_shift_opened [17:14:33]FM_GetShiftState [17:14:33]SAM_PROTO_GetShiftState [17:14:33]wFMCommunicate request_size=4 [17:14:33]MH_SAM_APDU [17:14:33]CAPDU: 80 13 01 00 [17:14:33]Write to MH i2c: E2 08 00 95 21 80 13 01 00 00 00 00 00 33 [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:33]Read from MH i2c: E2 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 0E 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 0E 00 95 21 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D3 [17:14:33]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:14:33]wFMCommunicate OK [17:14:33]SAM_PROTO_GetShiftState done [17:14:33]FM_GetShiftState done [17:14:33]req_shift_opened done [17:14:33]requested_item shift.open_date is exist - process it [17:14:33]req_shift_open_date [17:14:33]req_shift_open_date done [17:14:33]produce_requested_data done [17:14:33]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64017,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:14:33]process_action_free close_receipt [17:14:33]json_value_free [17:14:33]json_value_free done [17:14:33]process_json_proto returns [17:14:33]Send response to host [17:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64017,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:14:33]free response buf [17:14:33]execute_script done [17:14:33]execute_script returns [17:14:33]free content buf [17:14:33]Sock 10.Close socket [17:14:33]Sock 10.Thread stoped [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:21]accept exits with 7 [17:18:21]New connection [17:18:21]New thread 3067055460 created [17:18:21]Thread 3066912100 joined [17:18:21]Waiting for new connection... [17:18:21] Sock 7.Parse request [17:18:21]Sock 7.Check first char [17:18:21]Sock 7.First char is OK [17:18:21]request: POST /json_proto HTTP/1.0 [17:18:21]Method: POST [17:18:21]URL: /json_proto [17:18:21]Method is POST - this is cgi request [17:18:21]url: /json_proto [17:18:21]query_string will be loaded in cgi processing [17:18:21]execute_cgi json_proto POST (null) [17:18:21]execute_cgi path=json_proto method=POST [17:18:21]POST find Content-Length [17:18:21]Host: 172.17.60.69:8080 [17:18:21]Content-Length: 1048 [17:18:21]Content-Type: application/json [17:18:21] [17:18:21]POST finish read [17:18:21]Found Content-Length = 1048 [17:18:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73574", "tax_sys" : 0, "items" : [ { "code": "4650243871842", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275 \u043B \u041C\u0410\u041D\u0413\u041E \u041A\u041E\u041A\u041E\u0421", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:21]execute_script... [17:18:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73574", "tax_sys" : 0, "items" : [ { "code": "4650243871842", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F 0,275 \u043B \u041C\u0410\u041D\u0413\u041E \u041A\u041E\u041A\u041E\u0421", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:21]POST & json_proto [17:18:21]process_json_proto [17:18:21]json parsed OK: [17:18:21]protocol is kg_v1.0 [17:18:21]action value=close_receipt [17:18:21]process_action close_receipt [17:18:21]cmd_close_receipt [17:18:21]MH_GetDate [17:18:21]Write to MH i2c: F0 00 00 96 21 A6 [17:18:21]Write i2c OK [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: F0 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: F0 09 00 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: F0 09 00 96 21 00 61 4C 5F 66 6A 96 4A 66 D1 [17:18:21]GetLastDocTimeStamp 1717521273 [17:18:21]current date 1717521505 [17:18:21]FM_GetShiftState [17:18:21]SAM_PROTO_GetShiftState [17:18:21]wFMCommunicate request_size=4 [17:18:21]MH_SAM_APDU [17:18:21]CAPDU: 80 13 01 00 [17:18:21]Write to MH i2c: E2 08 00 97 21 80 13 01 00 00 00 00 00 35 [17:18:21]Write i2c OK [17:18:21]MH_I2C_Read... [17:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:21]Read from MH i2c: E2 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: E2 0E 00 [17:18:21]MH_I2C_Read... [17:18:21]Read from MH i2c: E2 0E 00 97 21 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D5 [17:18:21]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:18:21]wFMCommunicate OK [17:18:21]SAM_PROTO_GetShiftState done [17:18:21]FM_GetShiftState done [17:18:21]opened in 1717459574 [17:18:21]opened+sec_in_day 1717545974 [17:18:21]quantity*price = 9000 [17:18:21]sum+1 = 9001 [17:18:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173808 Жев Orbit Sweet Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.20 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 103 04.06.2024 17:18 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 64018 ФПД: 223595496897042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171825&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64018&fm=223595496897042&tin=02508201610067®Number=0000000000092737&sum=13500 0 [17:18:22]StoreToDocumentArchive [17:18:22]shift 374 fd 64018 [17:18:22]save to /storage/0374/doc_00064018 [17:18:22]save last doc name /storage/0374/doc_00064018 to /storage/kkm_last_doc_name [17:18:22]save OK [17:18:22]Clear old archive folders... [17:18:22]ProcessDocumentItem done err = 0, tmpTLVsize=382 [17:18:22]tlvbuf is 012B5080 [17:18:22]SAM_PROTO_ClearQueue [17:18:22]wFMCommunicate request_size=4 [17:18:22]MH_SAM_APDU [17:18:22]CAPDU: 80 09 00 00 [17:18:22]Write to MH i2c: E2 08 00 A4 21 80 09 00 00 00 00 00 00 37 [17:18:22]Write i2c OK [17:18:22]MH_I2C_Read... [17:18:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:22]Read from MH i2c: E2 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 03 00 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 03 00 A4 21 00 90 00 39 [17:18:22]RAPDU: 90 00 [17:18:22]wFMCommunicate OK [17:18:22]SAM_PROTO_ClearQueue done [17:18:22]KKMCreateOFDPacket [17:18:22]OFDProtocolAddRootSTLVToBuf [17:18:22]FM_MakeSignedData [17:18:22]FM_MakeSignedData [17:18:22]SAM_PROTO_SignData [17:18:22]wFMCommunicate request_size=4 [17:18:22]MH_SAM_APDU [17:18:22]CAPDU: 80 0D 01 02 [17:18:22]Write to MH i2c: E2 08 00 A5 21 80 0D 01 02 00 00 00 00 3F [17:18:22]Write i2c OK [17:18:22]MH_I2C_Read... [17:18:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:22]Read from MH i2c: E2 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 03 00 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 03 00 A5 21 00 90 00 3A [17:18:22]RAPDU: 90 00 [17:18:22]wFMCommunicate OK [17:18:22]wFMCommunicate request_size=255 [17:18:22]MH_SAM_APDU [17:18:22]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 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 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 [17:18:22]Write to MH i2c: E2 02 01 A6 21 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 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 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 00 00 69 [17:18:22]Write i2c OK [17:18:22]MH_I2C_Read... [17:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:22]Read from MH i2c: E2 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 03 00 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 03 00 A6 21 00 90 00 3B [17:18:22]RAPDU: 90 00 [17:18:22]wFMCommunicate OK [17:18:22]wFMCommunicate request_size=141 [17:18:22]MH_SAM_APDU [17:18:22]CAPDU: 80 0D 02 02 88 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 67 00 00 00 F4 03 04 00 61 4C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 12 FA 00 00 35 04 06 00 CB 5B E2 2A 7A 12 [17:18:22]Write to MH i2c: E2 90 00 A7 21 80 0D 02 02 88 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 67 00 00 00 F4 03 04 00 61 4C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 12 FA 00 00 35 04 06 00 CB 5B E2 2A 7A 12 00 00 2A [17:18:22]Write i2c OK [17:18:22]MH_I2C_Read... [17:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:22]Read from MH i2c: E2 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 03 00 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 03 00 A7 21 00 90 00 3C [17:18:22]RAPDU: 90 00 [17:18:22]wFMCommunicate OK [17:18:22]wFMCommunicate request_size=4 [17:18:22]MH_SAM_APDU [17:18:22]CAPDU: 80 0D 03 02 [17:18:22]Write to MH i2c: E2 08 00 A8 21 80 0D 03 02 00 00 00 00 44 [17:18:22]Write i2c OK [17:18:22]MH_I2C_Read... [17:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:22]Read from MH i2c: E2 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 0B 00 [17:18:22]MH_I2C_Read... [17:18:22]Read from MH i2c: E2 0B 00 A8 21 00 FD C5 82 F3 82 DC 43 C8 90 00 E5 [17:18:22]RAPDU: FD C5 82 F3 82 DC 43 C8 90 00 [17:18:22]wFMCommunicate OK [17:18:22]SAM_PROTO_SignData done [17:18:22]FM_MakeSignedData done [17:18:22]CreateOFDProtocolMessage [17:18:22]wFMCommunicate request_size=4 [17:18:22]MH_SAM_APDU [17:18:22]CAPDU: 80 11 00 00 [17:18:22]Write to MH i2c: E2 08 00 A9 21 80 11 00 00 00 00 00 00 44 [17:18:22]Write i2c OK [17:18:22]MH_I2C_Read... [17:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:23]Read from MH i2c: E2 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: E2 17 00 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: E2 17 00 A9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 96 [17:18: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:18:23]wFMCommunicate OK [17:18:23]CreateOFDProtocolMessage done [17:18:23]OFDSenderStorePacket 64018 [17:18:23]StoreOFDPacket docnum=64018 [17:18: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 92 01 00 00 83 71 8A 01 8B 86 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 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 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 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 67 00 00 00 F4 03 04 00 61 4C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 12 FA 00 00 35 04 06 00 CB 5B E2 2A 7A 12 FD C5 82 F3 82 DC 43 C8 [17:18:23]CheckFolder [17:18:23]dirname=/storage/ofd_packets [17:18:23]CheckFolder done [17:18:23]ProducePacketName [17:18:23]name=ofd_packets/00064018 [17:18:23]NVStorageSaveData ofd_packets/00064018 [17:18:23]File name is /storage/ofd_packets/00064018 [17:18:23]Write 432 bytes [17:18:23]NVStorageSaveData done [17:18:23]OFDSenderStorePacket done [17:18:23]KKMCreateOFDPacket done [17:18:23]NVStorageSaveData kkm_last_timestamp [17:18:23]File name is /storage/kkm_last_timestamp [17:18:23]Write 4 bytes [17:18:23]NVStorageSaveData done [17:18:23]ExternCall_PrintAddStr [17:18:23]wPrintStart [17:18:23]Write to MH i2c: 01 00 00 AA 21 CB [17:18:23]OFD Sender: Processing packet 64018 [packets to send 14, broken 13] [17:18:23]ProducePacketName [17:18:23]name=ofd_packets/00064018 [17:18:23]OFD Sender: To server: pG, [17:18:23]CommunicateWithHost lk.salyk.kg:30040 [17:18:23]ConnectInit lk.salyk.kg [17:18:23]Write i2c OK [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: 01 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: 01 07 00 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: 01 07 00 AA 21 00 00 00 00 00 FF 0F E0 [17:18:23]RasterBufferAndPrint [17:18:23]line Счет N : (3)73574 [17:18:23]line ИНН: 02508201610067 [17:18:23]line Контрольно-Кассовый Чек [17:18:23]line ПРОДАЖА [17:18:23]line Товар: 4650243871842 [17:18:23]line Gorilla эн нап 0,275 л МАНГО КОКОС [17:18:23]line 1.000 * 90.00 [17:18:23]line = 90.00 [17:18:23]line НДС 12% НСП 1% [17:18:23]line > о реализуемом товаре [17:18:23]line Товар: 50173808 [17:18:23]line Жев Orbit Sweet Mint [17:18:23]line 1.000 * 45.00 [17:18:23]line = 45.00 [17:18:23]line НДС 12% НСП 1% [17:18:23]line > о реализуемом товаре [17:18:23]line ИТОГО: 135.00 [17:18:23]line НСП 1% : 1.20 [17:18:23]line НДС 12% : 14.34 [17:18:23]line Наличными: 0.00 [17:18:23]line Безнал.: 135.00 [17:18:23]line Место: АЗС № 117 "Партнер Нефть" [17:18:23]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:18:23]line СНО: Общий режим [17:18:23]line Чек 103 04.06.2024 17:18 [17:18:23]line Смена: 374 ФФД: 1.0 [17:18:23]line ЗНМ: 0300000031 [17:18:23]line РНМ: 0000000000092737 [17:18:23]line Версия ККМ: 001 [17:18:23]line Платежная система: Бакай Банк [17:18:23]line ФМ: 0000000000875074 [17:18:23]line ФД: 64018 [17:18:23]line ФПД: 223595496897042 [17:18:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T171825&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64018&fm=223595496897042&tin=02508201610067®Number=0000000000092737&sum=13500 [17:18:23]line 0 [17:18:23]written 0, free lines is 4095 [17:18:23]Connected sock=10 [17:18:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 92 01 00 00 83 71 8A 01 8B 86 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 34 32 06 04 32 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 30 2C 32 37 35 20 D0 BB 20 D0 9C D0 90 D0 9D D0 93 D0 9E 20 D0 9A D0 9E D0 9A D0 9E D0 A1 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 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 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 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 67 00 00 00 F4 03 04 00 61 4C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 12 FA 00 00 35 04 06 00 CB 5B E2 2A 7A 12 FD C5 82 F3 82 DC 43 C8 [17:18: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 C5 E7 47 00 40 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 12 FA 00 00 F4 03 04 00 2F F8 5E 66 B6 04 01 00 00 EE AA 37 9E BF 9F E7 68 [17:18:23]CommunicateWithHost err = 0 [17:18:23]CheckOFDResponse [17:18:23]1017 (14) - 77093643461234 [17:18:23]1041 (16) - 0000000000875074 [17:18:23]1040 (4) - 64018 [17:18:23]1012 (4) - 04.06.2024 11:19 [17:18:23]1206 (1) - 0 [17:18:23]OFD Sender: Remove packet 64018 [17:18:23]ProducePacketName [17:18:23]name=ofd_packets/00064018 [17:18:23]NVStorageDeleteData [17:18:23]Write to MH i2c: 01 00 00 DB 21 FC [17:18:23]Write i2c OK [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: 01 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: 01 07 00 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: 01 07 00 DB 21 00 00 00 00 00 7A 0C 89 [17:18:23]RasterBufferAndPrint [17:18:23]line [17:18:23]line [17:18:23]line [17:18:23]line [17:18:23]line [17:18:23]written 0, free lines is 3199 [17:18:23]MH_Cut [17:18:23]Write to MH i2c: D1 01 00 E2 21 01 D5 [17:18:23]Write i2c OK [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: D1 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: D1 01 00 [17:18:23]MH_I2C_Read... [17:18:23]Read from MH i2c: D1 01 00 E2 21 00 D4 [17:18:23]Write to MH i2c: 01 00 00 E3 21 04 [17:18:23]Write i2c OK [17:18:23]MH_I2C_Read... [17:18:24]OFD Sender: No OFD packet to send [17:18:24]*** Cut start [17:18:24]*** Partial cut [17:18:24]*** CUTSNS_PIN = 1 [17:18:24]*** CUTSNS_PIN = 0 [17:18:25]*** Brake cut motor [17:18:25]Read from MH i2c: 01 [17:18:25]MH_I2C_Read... [17:18:25]*** Stop cut motor [17:18:25]*** Cut end [17:18:25]Read from MH i2c: 01 07 00 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: 01 07 00 E3 21 00 00 00 00 00 FF 0F 19 [17:18:25]process_action close_receipt done [17:18:25]requested_data is exist [17:18:25]produce_requested_data [17:18:25]requested_item fm.sn is exist - process it [17:18:25]wFMCommunicate request_size=4 [17:18:25]MH_SAM_APDU [17:18:25]CAPDU: 80 11 00 00 [17:18:25]Write to MH i2c: E2 08 00 E4 21 80 11 00 00 00 00 00 00 7F [17:18:25]Write i2c OK [17:18:25]MH_I2C_Read... [17:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:25]Read from MH i2c: E2 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 17 00 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 17 00 E4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D1 [17:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:18:25]wFMCommunicate OK [17:18:25]requested_item fd.num is exist - process it [17:18:25]SAM_PROTO_GetFieldsCounters [17:18:25]wFMCommunicate request_size=4 [17:18:25]MH_SAM_APDU [17:18:25]CAPDU: 80 13 00 00 [17:18:25]Write to MH i2c: E2 08 00 E5 21 80 13 00 00 00 00 00 00 82 [17:18:25]Write i2c OK [17:18:25]MH_I2C_Read... [17:18:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:25]Read from MH i2c: E2 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 62 00 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 62 00 E5 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 12 FA 00 00 0E 04 04 00 76 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 5D [17:18: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 12 FA 00 00 0E 04 04 00 76 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 [17:18:25]wFMCommunicate OK [17:18:25]SAM_PROTO_GetFieldsCounters done [17:18:25]requested_item shift.num is exist - process it [17:18:25]requested_item shift.opened is exist - process it [17:18:25]req_shift_opened [17:18:25]FM_GetShiftState [17:18:25]SAM_PROTO_GetShiftState [17:18:25]wFMCommunicate request_size=4 [17:18:25]MH_SAM_APDU [17:18:25]CAPDU: 80 13 01 00 [17:18:25]Write to MH i2c: E2 08 00 E6 21 80 13 01 00 00 00 00 00 84 [17:18:25]Write i2c OK [17:18:25]MH_I2C_Read... [17:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:25]Read from MH i2c: E2 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 0E 00 [17:18:25]MH_I2C_Read... [17:18:25]Read from MH i2c: E2 0E 00 E6 21 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 24 [17:18:25]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:18:25]wFMCommunicate OK [17:18:25]SAM_PROTO_GetShiftState done [17:18:25]FM_GetShiftState done [17:18:25]req_shift_opened done [17:18:25]requested_item shift.open_date is exist - process it [17:18:25]req_shift_open_date [17:18:25]req_shift_open_date done [17:18:25]produce_requested_data done [17:18:25]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64018,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:18:25]process_action_free close_receipt [17:18:25]json_value_free [17:18:25]json_value_free done [17:18:25]process_json_proto returns [17:18:25]Send response to host [17:18:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64018,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:18:25]free response buf [17:18:25]execute_script done [17:18:25]execute_script returns [17:18:25]free content buf [17:18:25]Sock 7.Close socket [17:18:25]Sock 7.Thread stoped [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:44]accept exits with 9 [17:23:44]New connection [17:23:44]New thread 3066912100 created [17:23:44]Thread 3067055460 joined [17:23:44]Waiting for new connection... [17:23:44] Sock 9.Parse request [17:23:44]Sock 9.Check first char [17:23:44]Sock 9.First char is OK [17:23:44]request: POST /json_proto HTTP/1.0 [17:23:44]Method: POST [17:23:44]URL: /json_proto [17:23:44]Method is POST - this is cgi request [17:23:44]url: /json_proto [17:23:44]query_string will be loaded in cgi processing [17:23:44]execute_cgi json_proto POST (null) [17:23:44]execute_cgi path=json_proto method=POST [17:23:44]POST find Content-Length [17:23:44]Host: 172.17.60.69:8080 [17:23:44]Content-Length: 620 [17:23:44]Content-Type: application/json [17:23:44] [17:23:44]POST finish read [17:23:44]Found Content-Length = 620 [17:23:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73575", "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" ] } } [17:23:44]execute_script... [17:23: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)73575", "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" ] } } [17:23:44]POST & json_proto [17:23:44]process_json_proto [17:23:44]json parsed OK: [17:23:44]protocol is kg_v1.0 [17:23:44]action value=close_receipt [17:23:44]process_action close_receipt [17:23:44]cmd_close_receipt [17:23:44]MH_GetDate [17:23:44]Write to MH i2c: F0 00 00 E7 21 F7 [17:23:44]Write i2c OK [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: F0 [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: F0 09 00 [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: F0 09 00 E7 21 00 A4 4D 5F 66 6A 96 4A 66 66 [17:23:44]GetLastDocTimeStamp 1717521505 [17:23:44]current date 1717521828 [17:23:44]FM_GetShiftState [17:23:44]SAM_PROTO_GetShiftState [17:23:44]wFMCommunicate request_size=4 [17:23:44]MH_SAM_APDU [17:23:44]CAPDU: 80 13 01 00 [17:23:44]Write to MH i2c: E2 08 00 E8 21 80 13 01 00 00 00 00 00 86 [17:23:44]Write i2c OK [17:23:44]MH_I2C_Read... [17:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:44]Read from MH i2c: E2 [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: E2 0E 00 [17:23:44]MH_I2C_Read... [17:23:44]Read from MH i2c: E2 0E 00 E8 21 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 26 [17:23:44]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:23:44]wFMCommunicate OK [17:23:44]SAM_PROTO_GetShiftState done [17:23:44]FM_GetShiftState done [17:23:44]opened in 1717459574 [17:23:44]opened+sec_in_day 1717545974 [17:23:44]quantity*price = 14000 [17:23:44]sum+1 = 14001 [17:23:44]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 СНО: Общий режим Чек 104 04.06.2024 17:23 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64019 ФПД: 244615436573903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172349&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64019&fm=244615436573903&tin=02508201610067®Number=0000000000092737&sum=14000 0 [17:23:46]StoreToDocumentArchive [17:23:46]shift 374 fd 64019 [17:23:46]save to /storage/0374/doc_00064019 [17:23:46]save last doc name /storage/0374/doc_00064019 to /storage/kkm_last_doc_name [17:23:46]save OK [17:23:46]Clear old archive folders... [17:23:46]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:23:46]tlvbuf is 012B3000 [17:23:46]SAM_PROTO_ClearQueue [17:23:46]wFMCommunicate request_size=4 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 09 00 00 [17:23:46]Write to MH i2c: E2 08 00 F5 21 80 09 00 00 00 00 00 00 88 [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:46]Read from MH i2c: E2 03 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 F5 21 00 90 00 8A [17:23:46]RAPDU: 90 00 [17:23:46]wFMCommunicate OK [17:23:46]SAM_PROTO_ClearQueue done [17:23:46]KKMCreateOFDPacket [17:23:46]OFDProtocolAddRootSTLVToBuf [17:23:46]FM_MakeSignedData [17:23:46]FM_MakeSignedData [17:23:46]SAM_PROTO_SignData [17:23:46]wFMCommunicate request_size=4 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 0D 01 02 [17:23:46]Write to MH i2c: E2 08 00 F6 21 80 0D 01 02 00 00 00 00 90 [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [17:23:46]RAPDU: 90 00 [17:23:46]wFMCommunicate OK [17:23:46]wFMCommunicate request_size=255 [17:23:46]MH_SAM_APDU [17:23:46]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 68 00 00 00 F4 03 04 00 A5 4D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [17:23:46]Write to MH i2c: E2 02 01 F7 21 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 68 00 00 00 F4 03 04 00 A5 4D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 1E [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 F7 21 00 90 00 8C [17:23:46]RAPDU: 90 00 [17:23:46]wFMCommunicate OK [17:23:46]wFMCommunicate request_size=32 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 13 FA 00 00 35 04 06 00 DE 79 F8 34 1C CF [17:23:46]Write to MH i2c: E2 23 00 F8 21 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 13 FA 00 00 35 04 06 00 DE 79 F8 34 1C CF 00 00 6A [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [17:23:46]RAPDU: 90 00 [17:23:46]wFMCommunicate OK [17:23:46]wFMCommunicate request_size=4 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 0D 03 02 [17:23:46]Write to MH i2c: E2 08 00 F9 21 80 0D 03 02 00 00 00 00 95 [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 0B 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 0B 00 F9 21 00 0C 22 D8 33 87 7D E4 8D 90 00 44 [17:23:46]RAPDU: 0C 22 D8 33 87 7D E4 8D 90 00 [17:23:46]wFMCommunicate OK [17:23:46]SAM_PROTO_SignData done [17:23:46]FM_MakeSignedData done [17:23:46]CreateOFDProtocolMessage [17:23:46]wFMCommunicate request_size=4 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 11 00 00 [17:23:46]Write to MH i2c: E2 08 00 FA 21 80 11 00 00 00 00 00 00 95 [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 17 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 17 00 FA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E7 [17:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:23:46]wFMCommunicate OK [17:23:46]CreateOFDProtocolMessage done [17:23:46]OFDSenderStorePacket 64019 [17:23:46]StoreOFDPacket docnum=64019 [17:23: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 F8 48 1D 01 85 85 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 68 00 00 00 F4 03 04 00 A5 4D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 13 FA 00 00 35 04 06 00 DE 79 F8 34 1C CF 0C 22 D8 33 87 7D E4 8D [17:23:46]CheckFolder [17:23:46]dirname=/storage/ofd_packets [17:23:46]CheckFolder done [17:23:46]ProducePacketName [17:23:46]name=ofd_packets/00064019 [17:23:46]NVStorageSaveData ofd_packets/00064019 [17:23:46]File name is /storage/ofd_packets/00064019 [17:23:46]Write 323 bytes [17:23:46]NVStorageSaveData done [17:23:46]OFDSenderStorePacket done [17:23:46]KKMCreateOFDPacket done [17:23:46]NVStorageSaveData kkm_last_timestamp [17:23:46]File name is /storage/kkm_last_timestamp [17:23:46]Write 4 bytes [17:23:46]NVStorageSaveData done [17:23:46]ExternCall_PrintAddStr [17:23:46]wPrintStart [17:23:46]Write to MH i2c: 01 00 00 FB 21 1C [17:23:46]OFD Sender: Processing packet 64019 [packets to send 14, broken 13] [17:23:46]ProducePacketName [17:23:46]name=ofd_packets/00064019 [17:23:46]OFD Sender: To server: pG, [17:23:46]CommunicateWithHost lk.salyk.kg:30040 [17:23:46]ConnectInit lk.salyk.kg [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: 01 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: 01 07 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: 01 07 00 FB 21 00 00 00 00 00 FF 0F 31 [17:23:46]RasterBufferAndPrint [17:23:46]line Счет N : (3)73575 [17:23:46]line ИНН: 02508201610067 [17:23:46]line Контрольно-Кассовый Чек [17:23:46]line ПРОДАЖА [17:23:46]line Товар: 48743570 [17:23:46]line Сигареты Winston XStyle Blue [17:23:46]line 1.000 * 140.00 [17:23:46]line = 140.00 [17:23:46]line НДС 12% НСП 1% [17:23:46]line > о реализуемом товаре [17:23:46]line ИТОГО: 140.00 [17:23:46]line НСП 1% : 1.24 [17:23:46]line НДС 12% : 14.87 [17:23:46]line Наличными: 140.00 [17:23:46]line Безнал.: 0.00 [17:23:46]line Место: АЗС № 117 "Партнер Нефть" [17:23:46]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:23:46]line СНО: Общий режим [17:23:46]line Чек 104 04.06.2024 17:23 [17:23:46]line Смена: 374 ФФД: 1.0 [17:23:46]line ЗНМ: 0300000031 [17:23:46]line РНМ: 0000000000092737 [17:23:46]line Версия ККМ: 001 [17:23:46]line ФМ: 0000000000875074 [17:23:46]line ФД: 64019 [17:23:46]line ФПД: 244615436573903 [17:23:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172349&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64019&fm=244615436573903&tin=02508201610067®Number=0000000000092737&sum=14000 [17:23:46]Connected sock=10 [17:23: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 F8 48 1D 01 85 85 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 line 0 [17:23:46]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 68 00 00 00 F4 03 04 00 A5 4D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 13 FA 00 00 35 04 06 00 DE 79 F8 34 1C CF 0C 22 D8 33 87 7D E4 8D [17:23:46]written 0, free lines is 4095 [17:23: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 15 89 47 00 CD 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 13 FA 00 00 F4 03 04 00 72 F9 5E 66 B6 04 01 00 00 F2 6F 83 74 B5 E6 E3 AE [17:23:47]CommunicateWithHost err = 0 [17:23:47]CheckOFDResponse [17:23:47]1017 (14) - 77093643461234 [17:23:47]1041 (16) - 0000000000875074 [17:23:47]1040 (4) - 64019 [17:23:47]1012 (4) - 04.06.2024 11:24 [17:23:47]1206 (1) - 0 [17:23:47]OFD Sender: Remove packet 64019 [17:23:47]ProducePacketName [17:23:47]name=ofd_packets/00064019 [17:23:47]NVStorageDeleteData [17:23:47]Write to MH i2c: 01 00 00 23 22 45 [17:23:47]Write i2c OK [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: 01 [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: 01 07 00 [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: 01 07 00 23 22 00 00 00 00 00 F5 0C 4D [17:23:47]RasterBufferAndPrint [17:23:47]line [17:23:47]line [17:23:47]line [17:23:47]line [17:23:47]line [17:23:47]written 0, free lines is 3325 [17:23:47]MH_Cut [17:23:47]Write to MH i2c: D1 01 00 2A 22 01 1E [17:23:47]Write i2c OK [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: D1 [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: D1 01 00 [17:23:47]MH_I2C_Read... [17:23:47]Read from MH i2c: D1 01 00 2A 22 00 1D [17:23:47]Write to MH i2c: 01 00 00 2B 22 4D [17:23:47]Write i2c OK [17:23:47]MH_I2C_Read... [17:23:47]OFD Sender: No OFD packet to send [17:23:48]*** Cut start [17:23:48]*** Partial cut [17:23:48]*** CUTSNS_PIN = 1 [17:23:48]*** CUTSNS_PIN = 0 [17:23:48]*** Brake cut motor [17:23:48]Read from MH i2c: 01 [17:23:48]MH_I2C_Read... [17:23:48]*** Stop cut motor [17:23:48]*** Cut end [17:23:48]Read from MH i2c: 01 07 00 [17:23:48]MH_I2C_Read... [17:23:48]Read from MH i2c: 01 07 00 2B 22 00 00 00 00 00 FF 0F 62 [17:23:48]process_action close_receipt done [17:23:48]requested_data is exist [17:23:48]produce_requested_data [17:23:48]requested_item fm.sn is exist - process it [17:23:48]wFMCommunicate request_size=4 [17:23:48]MH_SAM_APDU [17:23:48]CAPDU: 80 11 00 00 [17:23:48]Write to MH i2c: E2 08 00 2C 22 80 11 00 00 00 00 00 00 C8 [17:23:48]Write i2c OK [17:23:48]MH_I2C_Read... [17:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:48]Read from MH i2c: E2 [17:23:48]MH_I2C_Read... [17:23:48]Read from MH i2c: E2 17 00 [17:23:48]MH_I2C_Read... [17:23:48]Read from MH i2c: E2 17 00 2C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1A [17:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:23:48]wFMCommunicate OK [17:23:48]requested_item fd.num is exist - process it [17:23:48]SAM_PROTO_GetFieldsCounters [17:23:48]wFMCommunicate request_size=4 [17:23:48]MH_SAM_APDU [17:23:48]CAPDU: 80 13 00 00 [17:23:48]Write to MH i2c: E2 08 00 2D 22 80 13 00 00 00 00 00 00 CB [17:23:48]Write i2c OK [17:23:48]MH_I2C_Read... [17:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:49]Read from MH i2c: E2 [17:23:49]MH_I2C_Read... [17:23:49]Read from MH i2c: E2 62 00 [17:23:49]MH_I2C_Read... [17:23:49]Read from MH i2c: E2 62 00 2D 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 13 FA 00 00 0E 04 04 00 76 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 AA [17:23: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 13 FA 00 00 0E 04 04 00 76 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 [17:23:49]wFMCommunicate OK [17:23:49]SAM_PROTO_GetFieldsCounters done [17:23:49]requested_item shift.num is exist - process it [17:23:49]requested_item shift.opened is exist - process it [17:23:49]req_shift_opened [17:23:49]FM_GetShiftState [17:23:49]SAM_PROTO_GetShiftState [17:23:49]wFMCommunicate request_size=4 [17:23:49]MH_SAM_APDU [17:23:49]CAPDU: 80 13 01 00 [17:23:49]Write to MH i2c: E2 08 00 2E 22 80 13 01 00 00 00 00 00 CD [17:23:49]Write i2c OK [17:23:49]MH_I2C_Read... [17:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:49]Read from MH i2c: E2 [17:23:49]MH_I2C_Read... [17:23:49]Read from MH i2c: E2 0E 00 [17:23:49]MH_I2C_Read... [17:23:49]Read from MH i2c: E2 0E 00 2E 22 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6D [17:23:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:23:49]wFMCommunicate OK [17:23:49]SAM_PROTO_GetShiftState done [17:23:49]FM_GetShiftState done [17:23:49]req_shift_opened done [17:23:49]requested_item shift.open_date is exist - process it [17:23:49]req_shift_open_date [17:23:49]req_shift_open_date done [17:23:49]produce_requested_data done [17:23:49]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64019,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:23:49]process_action_free close_receipt [17:23:49]json_value_free [17:23:49]json_value_free done [17:23:49]process_json_proto returns [17:23:49]Send response to host [17:23:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64019,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:23:49]free response buf [17:23:49]execute_script done [17:23:49]execute_script returns [17:23:49]free content buf [17:23:49]Sock 9.Close socket [17:23:49]Sock 9.Thread stoped [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]accept exits with 7 [17:27:12]New connection [17:27:12]New thread 3067055460 created [17:27:12]Thread 3066912100 joined [17:27:12]Waiting for new connection... [17:27:12] Sock 7.Parse request [17:27:12]Sock 7.Check first char [17:27:12]Sock 7.First char is OK [17:27:12]request: POST /json_proto HTTP/1.0 [17:27:12]Method: POST [17:27:12]URL: /json_proto [17:27:12]Method is POST - this is cgi request [17:27:12]url: /json_proto [17:27:12]query_string will be loaded in cgi processing [17:27:12]execute_cgi json_proto POST (null) [17:27:12]execute_cgi path=json_proto method=POST [17:27:12]POST find Content-Length [17:27:12]Host: 172.17.60.69:8080 [17:27:12]Content-Length: 677 [17:27:12]Content-Type: application/json [17:27:12] [17:27:12]POST finish read [17:27:12]Found Content-Length = 677 [17:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544915", "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" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:12]execute_script... [17:27:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544915", "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" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:12]POST & json_proto [17:27:12]process_json_proto [17:27:12]json parsed OK: [17:27:12]protocol is kg_v1.0 [17:27:12]action value=close_receipt [17:27:12]process_action close_receipt [17:27:12]cmd_close_receipt [17:27:12]MH_GetDate [17:27:12]Write to MH i2c: F0 00 00 2F 22 40 [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: F0 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: F0 09 00 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: F0 09 00 2F 22 00 74 4E 5F 66 6A 96 4A 66 80 [17:27:12]GetLastDocTimeStamp 1717521829 [17:27:12]current date 1717522036 [17:27:12]FM_GetShiftState [17:27:12]SAM_PROTO_GetShiftState [17:27:12]wFMCommunicate request_size=4 [17:27:12]MH_SAM_APDU [17:27:12]CAPDU: 80 13 01 00 [17:27:12]Write to MH i2c: E2 08 00 30 22 80 13 01 00 00 00 00 00 CF [17:27:12]Write i2c OK [17:27:12]MH_I2C_Read... [17:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:12]Read from MH i2c: E2 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 0E 00 [17:27:12]MH_I2C_Read... [17:27:12]Read from MH i2c: E2 0E 00 30 22 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6F [17:27:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:27:12]wFMCommunicate OK [17:27:12]SAM_PROTO_GetShiftState done [17:27:12]FM_GetShiftState done [17:27:12]opened in 1717459574 [17:27:12]opened+sec_in_day 1717545974 [17:27:12]quantity*price = 50041 [17:27:12]sum+1 = 50042 [17:27:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 105 04.06.2024 17:27 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64020 ФПД: 70995241470757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172716&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64020&fm=70995241470757&tin=02508201610067®Number=0000000000092737&sum=50000 [17:27:13]StoreToDocumentArchive [17:27:13]shift 374 fd 64020 [17:27:13]save to /storage/0374/doc_00064020 [17:27:13]save last doc name /storage/0374/doc_00064020 to /storage/kkm_last_doc_name [17:27:13]save OK [17:27:13]Clear old archive folders... [17:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:13]tlvbuf is 012D46E0 [17:27:13]SAM_PROTO_ClearQueue [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 09 00 00 [17:27:13]Write to MH i2c: E2 08 00 3D 22 80 09 00 00 00 00 00 00 D1 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:13]Read from MH i2c: E2 03 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 3D 22 00 90 00 D3 [17:27:13]RAPDU: 90 00 [17:27:13]wFMCommunicate OK [17:27:13]SAM_PROTO_ClearQueue done [17:27:13]KKMCreateOFDPacket [17:27:13]OFDProtocolAddRootSTLVToBuf [17:27:13]FM_MakeSignedData [17:27:13]FM_MakeSignedData [17:27:13]SAM_PROTO_SignData [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 0D 01 02 [17:27:13]Write to MH i2c: E2 08 00 3E 22 80 0D 01 02 00 00 00 00 D9 [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 3E 22 00 90 00 D4 [17:27:13]RAPDU: 90 00 [17:27:13]wFMCommunicate OK [17:27:13]wFMCommunicate request_size=255 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 74 4E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 14 FA 00 00 35 04 06 00 40 [17:27:13]Write to MH i2c: E2 02 01 3F 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 74 4E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 14 FA 00 00 35 04 06 00 40 00 00 1F [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 3F 22 00 90 00 D5 [17:27:13]RAPDU: 90 00 [17:27:13]wFMCommunicate OK [17:27:13]wFMCommunicate request_size=10 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 0D 02 02 05 91 DE 26 0B 25 [17:27:13]Write to MH i2c: E2 0D 00 40 22 80 0D 02 02 05 00 91 DE 26 0B 25 00 00 AB [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 03 00 40 22 00 90 00 D6 [17:27:13]RAPDU: 90 00 [17:27:13]wFMCommunicate OK [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 0D 03 02 [17:27:13]Write to MH i2c: E2 08 00 41 22 80 0D 03 02 00 00 00 00 DE [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 0B 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 0B 00 41 22 00 8E 8F 64 9E B7 BB 6E 8D 90 00 6B [17:27:13]RAPDU: 8E 8F 64 9E B7 BB 6E 8D 90 00 [17:27:13]wFMCommunicate OK [17:27:13]SAM_PROTO_SignData done [17:27:13]FM_MakeSignedData done [17:27:13]CreateOFDProtocolMessage [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 11 00 00 [17:27:13]Write to MH i2c: E2 08 00 42 22 80 11 00 00 00 00 00 00 DE [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:14]Read from MH i2c: E2 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 17 00 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 17 00 42 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 30 [17:27: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:27:14]wFMCommunicate OK [17:27:14]CreateOFDProtocolMessage done [17:27:14]OFDSenderStorePacket 64020 [17:27:14]StoreOFDPacket docnum=64020 [17:27: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 0F 01 00 00 08 EA 07 01 5A C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 74 4E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 14 FA 00 00 35 04 06 00 40 91 DE 26 0B 25 8E 8F 64 9E B7 BB 6E 8D [17:27:14]CheckFolder [17:27:14]dirname=/storage/ofd_packets [17:27:14]CheckFolder done [17:27:14]ProducePacketName [17:27:14]name=ofd_packets/00064020 [17:27:14]NVStorageSaveData ofd_packets/00064020 [17:27:14]File name is /storage/ofd_packets/00064020 [17:27:14]Write 301 bytes [17:27:14]NVStorageSaveData done [17:27:14]OFDSenderStorePacket done [17:27:14]KKMCreateOFDPacket done [17:27:14]NVStorageSaveData kkm_last_timestamp [17:27:14]File name is /storage/kkm_last_timestamp [17:27:14]Write 4 bytes [17:27:14]NVStorageSaveData done [17:27:14]ExternCall_PrintAddStr [17:27:14]wPrintStart [17:27:14]Write to MH i2c: 01 00 00 43 22 65 [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: 01 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: 01 07 00 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: 01 07 00 43 22 00 00 00 00 00 FF 0F 7A [17:27:14]RasterBufferAndPrint [17:27:14]line Счет N : (1)544915 [17:27:14]line ИНН: 02508201610067 [17:27:14]line Контрольно-Кассовый Чек [17:27:14]line ПРОДАЖА [17:27:14]line ТРК (МРК, ГНК) : 22 [17:27:14]line Товар: 2710124130 [17:27:14]line Аи-92-К-5 [17:27:14]line 7.480 * 66.90 [17:27:14]line = 500.41 [17:27:14]line НДС 12% НСП 1% [17:27:14]line > о реализуемом товаре [17:27:14]line ОКРУГЛЕНИЕ: -0.41 [17:27:14]line ИТОГО: 500.00 [17:27:14]line Внесено: 500.00 [17:27:14]line СДАЧА: 0.00 [17:27:14]line НСП 1% : 4.43 [17:27:14]line НДС 12% : 53.14 [17:27:14]line Наличными: 500.00 [17:27:14]line Безнал.: 0.00 [17:27:14]line Место: АЗС № 117 "Партнер Нефть" [17:27:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:27:14]line СНО: Общий режим [17:27:14]line Чек 105 04.06.2024 17:27 [17:27:14]line Смена: 374 ФФД: 1.0 [17:27:14]line ЗНМ: 0300000031 [17:27:14]line РНМ: 0000000000092737 [17:27:14]line Версия ККМ: 001 [17:27:14]line ФМ: 0000000000875074 [17:27:14]line ФД: 64020 [17:27:14]line ФПД: 70995241470757 [17:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172716&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64020&fm=70995241470757&tin=02508201610067®Number=0000000000092737&sum=50000 [17:27:14]OFD Sender: Processing packet 64020 [packets to send 14, broken 13] [17:27:14]ProducePacketName [17:27:14]name=ofd_packets/00064020 [17:27:14]OFD Sender: To server: pG, [17:27:14]CommunicateWithHost lk.salyk.kg:30040 [17:27:14]ConnectInit lk.salyk.kg [17:27:14]written 0, free lines is 4095 [17:27:14]Connected sock=10 [17:27:14]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 08 EA 07 01 5A C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 74 4E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 14 FA 00 00 35 04 06 00 40 91 DE 26 0B 25 8E 8F 64 9E B7 BB 6E 8D [17:27:14]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 C8 47 00 CD 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 14 FA 00 00 F4 03 04 00 42 FA 5E 66 B6 04 01 00 00 B3 34 1B 6F 2B 29 77 FC [17:27:14]CommunicateWithHost err = 0 [17:27:14]CheckOFDResponse [17:27:14]1017 (14) - 77093643461234 [17:27:14]1041 (16) - 0000000000875074 [17:27:14]1040 (4) - 64020 [17:27:14]1012 (4) - 04.06.2024 11:28 [17:27:14]1206 (1) - 0 [17:27:14]OFD Sender: Remove packet 64020 [17:27:14]ProducePacketName [17:27:14]name=ofd_packets/00064020 [17:27:14]NVStorageDeleteData [17:27:14]Write to MH i2c: 01 00 00 6E 22 90 [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: 01 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: 01 07 00 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: 01 07 00 6E 22 00 00 00 00 00 E4 0C 87 [17:27:14]RasterBufferAndPrint [17:27:14]line [17:27:14]line [17:27:14]line [17:27:14]line [17:27:14]line [17:27:14]written 0, free lines is 3306 [17:27:14]MH_Cut [17:27:14]Write to MH i2c: D1 01 00 75 22 01 69 [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: D1 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: D1 01 00 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: D1 01 00 75 22 00 68 [17:27:14]Write to MH i2c: 01 00 00 76 22 98 [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:15]OFD Sender: No OFD packet to send [17:27:15]*** Cut start [17:27:15]*** Partial cut [17:27:15]*** CUTSNS_PIN = 1 [17:27:15]*** CUTSNS_PIN = 0 [17:27:15]*** Brake cut motor [17:27:16]Read from MH i2c: 01 [17:27:16]MH_I2C_Read... [17:27:16]*** Stop cut motor [17:27:16]*** Cut end [17:27:16]Read from MH i2c: 01 07 00 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: 01 07 00 76 22 00 00 00 00 00 FF 0F AD [17:27:16]process_action close_receipt done [17:27:16]requested_data is exist [17:27:16]produce_requested_data [17:27:16]requested_item fm.sn is exist - process it [17:27:16]wFMCommunicate request_size=4 [17:27:16]MH_SAM_APDU [17:27:16]CAPDU: 80 11 00 00 [17:27:16]Write to MH i2c: E2 08 00 77 22 80 11 00 00 00 00 00 00 13 [17:27:16]Write i2c OK [17:27:16]MH_I2C_Read... [17:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:16]Read from MH i2c: E2 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: E2 17 00 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: E2 17 00 77 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 65 [17:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:27:16]wFMCommunicate OK [17:27:16]requested_item fd.num is exist - process it [17:27:16]SAM_PROTO_GetFieldsCounters [17:27:16]wFMCommunicate request_size=4 [17:27:16]MH_SAM_APDU [17:27:16]CAPDU: 80 13 00 00 [17:27:16]Write to MH i2c: E2 08 00 78 22 80 13 00 00 00 00 00 00 16 [17:27:16]Write i2c OK [17:27:16]MH_I2C_Read... [17:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:16]Read from MH i2c: E2 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: E2 62 00 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: E2 62 00 78 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 14 FA 00 00 0E 04 04 00 76 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 F9 [17:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 14 FA 00 00 0E 04 04 00 76 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 [17:27:16]wFMCommunicate OK [17:27:16]SAM_PROTO_GetFieldsCounters done [17:27:16]requested_item shift.num is exist - process it [17:27:16]requested_item shift.opened is exist - process it [17:27:16]req_shift_opened [17:27:16]FM_GetShiftState [17:27:16]SAM_PROTO_GetShiftState [17:27:16]wFMCommunicate request_size=4 [17:27:16]MH_SAM_APDU [17:27:16]CAPDU: 80 13 01 00 [17:27:16]Write to MH i2c: E2 08 00 79 22 80 13 01 00 00 00 00 00 18 [17:27:16]Write i2c OK [17:27:16]MH_I2C_Read... [17:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:16]Read from MH i2c: E2 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: E2 0E 00 [17:27:16]MH_I2C_Read... [17:27:16]Read from MH i2c: E2 0E 00 79 22 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B8 [17:27:16]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:27:16]wFMCommunicate OK [17:27:16]SAM_PROTO_GetShiftState done [17:27:16]FM_GetShiftState done [17:27:16]req_shift_opened done [17:27:16]requested_item shift.open_date is exist - process it [17:27:16]req_shift_open_date [17:27:16]req_shift_open_date done [17:27:16]produce_requested_data done [17:27:16]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64020,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:27:16]process_action_free close_receipt [17:27:16]json_value_free [17:27:16]json_value_free done [17:27:16]process_json_proto returns [17:27:16]Send response to host [17:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64020,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:27:16]free response buf [17:27:16]execute_script done [17:27:16]execute_script returns [17:27:16]free content buf [17:27:16]Sock 7.Close socket [17:27:16]Sock 7.Thread stoped [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 [17:28:05]OFD Sender: No OFD packet to send [17:28:09]accept exits with 9 [17:28:09]New connection [17:28:09]New thread 3066912100 created [17:28:09]Thread 3067055460 joined [17:28:09]Waiting for new connection... [17:28:09] Sock 9.Parse request [17:28:09]Sock 9.Check first char [17:28:09]Sock 9.First char is OK [17:28:09]request: POST /json_proto HTTP/1.0 [17:28:09]Method: POST [17:28:09]URL: /json_proto [17:28:09]Method is POST - this is cgi request [17:28:09]url: /json_proto [17:28:09]query_string will be loaded in cgi processing [17:28:09]execute_cgi json_proto POST (null) [17:28:09]execute_cgi path=json_proto method=POST [17:28:09]POST find Content-Length [17:28:09]Host: 172.17.60.69:8080 [17:28:09]Content-Length: 1148 [17:28:09]Content-Type: application/json [17:28:09] [17:28:09]POST finish read [17:28:09]Found Content-Length = 1148 [17:28:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73576", "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 }]} ,{ "code": "4600452021095", "name": "\u0411\u0435\u043B\u044B\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 OZera Caramel 90\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329016699", "name": "\u0428\u043E\u043A.\u043C\u043E\u043B.OZera Extra milk 90\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 430.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:09]execute_script... [17:28: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)73576", "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 }]} ,{ "code": "4600452021095", "name": "\u0411\u0435\u043B\u044B\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 OZera Caramel 90\u0433", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329016699", "name": "\u0428\u043E\u043A.\u043C\u043E\u043B.OZera Extra milk 90\u0433", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 430.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:09]POST & json_proto [17:28:09]process_json_proto [17:28:09]json parsed OK: [17:28:09]protocol is kg_v1.0 [17:28:09]action value=close_receipt [17:28:09]process_action close_receipt [17:28:09]cmd_close_receipt [17:28:09]MH_GetDate [17:28:09]Write to MH i2c: F0 00 00 7A 22 8B [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: F0 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: F0 09 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: F0 09 00 7A 22 00 AD 4E 5F 66 6A 96 4A 66 04 [17:28:09]GetLastDocTimeStamp 1717522036 [17:28:09]current date 1717522093 [17:28:09]FM_GetShiftState [17:28:09]SAM_PROTO_GetShiftState [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 13 01 00 [17:28:09]Write to MH i2c: E2 08 00 7B 22 80 13 01 00 00 00 00 00 1A [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0E 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0E 00 7B 22 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 BA [17:28:09]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:28:09]wFMCommunicate OK [17:28:09]SAM_PROTO_GetShiftState done [17:28:09]FM_GetShiftState done [17:28:09]opened in 1717459574 [17:28:09]opened+sec_in_day 1717545974 [17:28:09]quantity*price = 25000 [17:28:09]sum+1 = 25001 [17:28:09]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600452021095 Белый шоколад OZera Caramel 90г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4690329016699 Шок.мол.OZera Extra milk 90г 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 430.00 НСП 1% : 3.80 НДС 12% : 45.67 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 106 04.06.2024 17:28 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64021 ФПД: 103398538570739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172813&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64021&fm=103398538570739&tin=02508201610067®Number=0000000000092737&sum=43000 0 [17:28:10]StoreToDocumentArchive [17:28:10]shift 374 fd 64021 [17:28:10]save to /storage/0374/doc_00064021 [17:28:10]save last doc name /storage/0374/doc_00064021 to /storage/kkm_last_doc_name [17:28:10]save OK [17:28:10]Clear old archive folders... [17:28:10]ProcessDocumentItem done err = 0, tmpTLVsize=505 [17:28:10]tlvbuf is 012DCF40 [17:28:10]SAM_PROTO_ClearQueue [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 09 00 00 [17:28:10]Write to MH i2c: E2 08 00 88 22 80 09 00 00 00 00 00 00 1C [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 88 22 00 90 00 1E [17:28:10]RAPDU: 90 00 [17:28:10]wFMCommunicate OK [17:28:10]SAM_PROTO_ClearQueue done [17:28:10]KKMCreateOFDPacket [17:28:10]OFDProtocolAddRootSTLVToBuf [17:28:10]FM_MakeSignedData [17:28:10]FM_MakeSignedData [17:28:10]SAM_PROTO_SignData [17:28:10]wFMCommunicate request_size=4 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 0D 01 02 [17:28:10]Write to MH i2c: E2 08 00 89 22 80 0D 01 02 00 00 00 00 24 [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:10]Read from MH i2c: E2 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 [17:28:10]MH_I2C_Read... [17:28:10]Read from MH i2c: E2 03 00 89 22 00 90 00 1F [17:28:10]RAPDU: 90 00 [17:28:10]wFMCommunicate OK [17:28:10]wFMCommunicate request_size=255 [17:28:10]MH_SAM_APDU [17:28:10]CAPDU: 80 0D 02 02 FA 03 00 F9 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 23 04 70 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 30 39 35 06 04 2C 00 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 4F 5A 65 72 61 20 43 61 72 61 6D 65 6C 20 39 30 D0 B3 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 67 00 8A 04 0D 00 34 36 39 30 33 [17:28:10]Write to MH i2c: E2 02 01 8A 22 80 0D 02 02 FA 00 03 00 F9 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 23 04 70 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 30 39 35 06 04 2C 00 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 4F 5A 65 72 61 20 43 61 72 61 6D 65 6C 20 39 30 D0 B3 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 67 00 8A 04 0D 00 34 36 39 30 33 00 00 2B [17:28:10]Write i2c OK [17:28:10]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 8A 22 00 90 00 20 [17:28:11]RAPDU: 90 00 [17:28:11]wFMCommunicate OK [17:28:11]wFMCommunicate request_size=255 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 0D 02 02 FA 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 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 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AD 4E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 FA 00 00 35 [17:28:11]Write to MH i2c: E2 02 01 8B 22 80 0D 02 02 FA 00 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 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 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AD 4E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 FA 00 00 35 00 00 A3 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 8B 22 00 90 00 21 [17:28:11]RAPDU: 90 00 [17:28:11]wFMCommunicate OK [17:28:11]wFMCommunicate request_size=14 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 0D 02 02 09 04 06 00 5E 0A 59 29 6B F3 [17:28:11]Write to MH i2c: E2 11 00 8C 22 80 0D 02 02 09 00 04 06 00 5E 0A 59 29 6B F3 00 00 8C [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 03 00 8C 22 00 90 00 22 [17:28:11]RAPDU: 90 00 [17:28:11]wFMCommunicate OK [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 0D 03 02 [17:28:11]Write to MH i2c: E2 08 00 8D 22 80 0D 03 02 00 00 00 00 2A [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0B 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 0B 00 8D 22 00 57 A8 8A A9 A7 C1 01 30 90 00 F6 [17:28:11]RAPDU: 57 A8 8A A9 A7 C1 01 30 90 00 [17:28:11]wFMCommunicate OK [17:28:11]SAM_PROTO_SignData done [17:28:11]FM_MakeSignedData done [17:28:11]CreateOFDProtocolMessage [17:28:11]wFMCommunicate request_size=4 [17:28:11]MH_SAM_APDU [17:28:11]CAPDU: 80 11 00 00 [17:28:11]Write to MH i2c: E2 08 00 8E 22 80 11 00 00 00 00 00 00 2A [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:11]Read from MH i2c: E2 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 17 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: E2 17 00 8E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7C [17:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:28:11]wFMCommunicate OK [17:28:11]CreateOFDProtocolMessage done [17:28:11]OFDSenderStorePacket 64021 [17:28:11]StoreOFDPacket docnum=64021 [17:28: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 0D 02 00 00 B2 BF 05 02 27 25 5A 03 01 00 03 00 F9 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 23 04 70 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 30 39 35 06 04 2C 00 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 4F 5A 65 72 61 20 43 61 72 61 6D 65 6C 20 39 30 D0 B3 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 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 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 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AD 4E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 FA 00 00 35 04 06 00 5E 0A 59 29 6B F3 57 A8 8A A9 A7 C1 01 30 [17:28:11]CheckFolder [17:28:11]dirname=/storage/ofd_packets [17:28:11]CheckFolder done [17:28:11]ProducePacketName [17:28:11]name=ofd_packets/00064021 [17:28:11]NVStorageSaveData ofd_packets/00064021 [17:28:11]File name is /storage/ofd_packets/00064021 [17:28:11]Write 555 bytes [17:28:11]NVStorageSaveData done [17:28:11]OFDSenderStorePacket done [17:28:11]KKMCreateOFDPacket done [17:28:11]NVStorageSaveData kkm_last_timestamp [17:28:11]File name is /storage/kkm_last_timestamp [17:28:11]Write 4 bytes [17:28:11]NVStorageSaveData done [17:28:11]ExternCall_PrintAddStr [17:28:11]wPrintStart [17:28:11]Write to MH i2c: 01 00 00 8F 22 B1 [17:28:11]Write i2c OK [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 07 00 [17:28:11]MH_I2C_Read... [17:28:11]Read from MH i2c: 01 07 00 8F 22 00 00 00 00 00 FF 0F C6 [17:28:11]RasterBufferAndPrint [17:28:11]line Счет N : (3)73576 [17:28:11]line ИНН: 02508201610067 [17:28:11]line Контрольно-Кассовый Чек [17:28:11]line ПРОДАЖА [17:28:11]line Товар: 2000036220012 [17:28:11]line Кофе Капучино XL(GABB TRADE) [17:28:11]line 2.000 * 125.00 [17:28:11]line = 250.00 [17:28:11]line НДС 12% НСП 1% [17:28:11]line > о реализуемом товаре [17:28:11]line Товар: 4600452021095 [17:28:11]line Белый шоколад OZera Caramel 90г [17:28:11]line 1.000 * 95.00 [17:28:11]line = 95.00 [17:28:11]line НДС 12% НСП 1% [17:28:11]line > о реализуемом товаре [17:28:11]line Товар: 4690329016699 [17:28:11]line Шок.мол.OZera Extra milk 90г [17:28:11]line 1.000 * 85.00 [17:28:11]line = 85.00 [17:28:11]line НДС 12% НСП 1% [17:28:11]line > о реализуемом товаре [17:28:11]line ИТОГО: 430.00 [17:28:11]line НСП 1% : 3.80 [17:28:11]line НДС 12% : 45.67 [17:28:11]line Наличными: 430.00 [17:28:11]line Безнал.: 0.00 [17:28:11]line Место: АЗС № 117 "Партнер Нефть" [17:28:11]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:28:11]line СНО: Общий режим [17:28:11]line Чек 106 04.06.2024 17:28 [17:28:11]line Смена: 374 ФФД: 1.0 [17:28:11]line ЗНМ: 0300000031 [17:28:11]line РНМ: 0000000000092737 [17:28:11]line Версия ККМ: 001 [17:28:11]line ФМ: 0000000000875074 [17:28:11]line ФД: 64021 [17:28:11]line ФПД: 103398538570739 [17:28:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T172813&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64021&fm=103398538570739&tin=02508201610067®Number=0000000000092737&sum=43000 [17:28:11]line 0 [17:28:11]written 0, free lines is 4095 [17:28:11]OFD Sender: Processing packet 64021 [packets to send 14, broken 13] [17:28:11]ProducePacketName [17:28:11]name=ofd_packets/00064021 [17:28:11]OFD Sender: To server: pG, [17:28:11]CommunicateWithHost lk.salyk.kg:30040 [17:28:11]ConnectInit lk.salyk.kg [17:28:11]Connected sock=10 [17:28: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 0D 02 00 00 B2 BF 05 02 27 25 5A 03 01 00 03 00 F9 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 23 04 70 00 8A 04 0D 00 34 36 30 30 34 35 32 30 32 31 30 39 35 06 04 2C 00 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 4F 5A 65 72 61 20 43 61 72 61 6D 65 6C 20 39 30 D0 B3 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 67 00 8A 04 0D 00 34 36 39 30 33 32 39 30 31 36 36 39 39 06 04 23 00 D0 A8 D0 BE D0 BA 2E D0 BC D0 BE D0 BB 2E 4F 5A 65 72 61 20 45 78 74 72 61 20 6D 69 6C 6B 20 39 30 D0 B3 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 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AD 4E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 FA 00 00 35 04 06 00 5E 0A 59 29 6B F3 57 A8 8A A9 A7 C1 01 30 [17:28: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 64 6D 47 00 36 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 15 FA 00 00 F4 03 04 00 7B FA 5E 66 B6 04 01 00 00 26 14 05 E7 B2 64 A0 E0 [17:28:11]CommunicateWithHost err = 0 [17:28:11]CheckOFDResponse [17:28:11]1017 (14) - 77093643461234 [17:28:11]1041 (16) - 0000000000875074 [17:28:11]1040 (4) - 64021 [17:28:11]1012 (4) - 04.06.2024 11:28 [17:28:11]1206 (1) - 0 [17:28:11]OFD Sender: Remove packet 64021 [17:28:11]ProducePacketName [17:28:11]name=ofd_packets/00064021 [17:28:11]NVStorageDeleteData [17:28:12]Write to MH i2c: 01 00 00 C5 22 E7 [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: 01 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: 01 07 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: 01 07 00 C5 22 00 00 00 00 00 3C 0C 36 [17:28:12]RasterBufferAndPrint [17:28:12]line [17:28:12]line [17:28:12]line [17:28:12]line [17:28:12]line [17:28:12]written 0, free lines is 3137 [17:28:12]MH_Cut [17:28:12]Write to MH i2c: D1 01 00 CC 22 01 C0 [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: D1 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: D1 01 00 [17:28:12]MH_I2C_Read... [17:28:12]Read from MH i2c: D1 01 00 CC 22 00 BF [17:28:12]Write to MH i2c: 01 00 00 CD 22 EF [17:28:12]Write i2c OK [17:28:12]MH_I2C_Read... [17:28:12]OFD Sender: No OFD packet to send [17:28:13]*** Cut start [17:28:13]*** Partial cut [17:28:13]*** CUTSNS_PIN = 1 [17:28:13]*** CUTSNS_PIN = 0 [17:28:13]*** Brake cut motor [17:28:13]Read from MH i2c: 01 [17:28:13]MH_I2C_Read... [17:28:13]*** Stop cut motor [17:28:13]*** Cut end [17:28:13]Read from MH i2c: 01 07 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: 01 07 00 CD 22 00 00 00 00 00 FF 0F 04 [17:28:13]process_action close_receipt done [17:28:13]requested_data is exist [17:28:13]produce_requested_data [17:28:13]requested_item fm.sn is exist - process it [17:28:13]wFMCommunicate request_size=4 [17:28:13]MH_SAM_APDU [17:28:13]CAPDU: 80 11 00 00 [17:28:13]Write to MH i2c: E2 08 00 CE 22 80 11 00 00 00 00 00 00 6A [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:13]Read from MH i2c: E2 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 17 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 17 00 CE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BC [17:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:28:13]wFMCommunicate OK [17:28:13]requested_item fd.num is exist - process it [17:28:13]SAM_PROTO_GetFieldsCounters [17:28:13]wFMCommunicate request_size=4 [17:28:13]MH_SAM_APDU [17:28:13]CAPDU: 80 13 00 00 [17:28:13]Write to MH i2c: E2 08 00 CF 22 80 13 00 00 00 00 00 00 6D [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:13]Read from MH i2c: E2 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 62 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 62 00 CF 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 15 FA 00 00 0E 04 04 00 76 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 54 [17:28: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 15 FA 00 00 0E 04 04 00 76 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 [17:28:13]wFMCommunicate OK [17:28:13]SAM_PROTO_GetFieldsCounters done [17:28:13]requested_item shift.num is exist - process it [17:28:13]requested_item shift.opened is exist - process it [17:28:13]req_shift_opened [17:28:13]FM_GetShiftState [17:28:13]SAM_PROTO_GetShiftState [17:28:13]wFMCommunicate request_size=4 [17:28:13]MH_SAM_APDU [17:28:13]CAPDU: 80 13 01 00 [17:28:13]Write to MH i2c: E2 08 00 D0 22 80 13 01 00 00 00 00 00 6F [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:14]Read from MH i2c: E2 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 0E 00 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 0E 00 D0 22 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0F [17:28:14]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:28:14]wFMCommunicate OK [17:28:14]SAM_PROTO_GetShiftState done [17:28:14]FM_GetShiftState done [17:28:14]req_shift_opened done [17:28:14]requested_item shift.open_date is exist - process it [17:28:14]req_shift_open_date [17:28:14]req_shift_open_date done [17:28:14]produce_requested_data done [17:28:14]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64021,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:28:14]process_action_free close_receipt [17:28:14]json_value_free [17:28:14]json_value_free done [17:28:14]process_json_proto returns [17:28:14]Send response to host [17:28:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64021,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:28:14]free response buf [17:28:14]execute_script done [17:28:14]execute_script returns [17:28:14]free content buf [17:28:14]Sock 9.Close socket [17:28:14]Sock 9.Thread stoped [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:22]accept exits with 7 [17:39:22]New connection [17:39:22]New thread 3067055460 created [17:39:22]Thread 3066912100 joined [17:39:22]Waiting for new connection... [17:39:22] Sock 7.Parse request [17:39:22]Sock 7.Check first char [17:39:22]Sock 7.First char is OK [17:39:22]request: POST /json_proto HTTP/1.0 [17:39:22]Method: POST [17:39:22]URL: /json_proto [17:39:22]Method is POST - this is cgi request [17:39:22]url: /json_proto [17:39:22]query_string will be loaded in cgi processing [17:39:22]execute_cgi json_proto POST (null) [17:39:22]execute_cgi path=json_proto method=POST [17:39:22]POST find Content-Length [17:39:22]Host: 172.17.60.69:8080 [17:39:22]Content-Length: 1434 [17:39:22]Content-Type: application/json [17:39:22] [17:39:22]POST finish read [17:39:22]Found Content-Length = 1434 [17:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73577", "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": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:22]execute_script... [17:39:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73577", "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": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 460.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:22]POST & json_proto [17:39:22]process_json_proto [17:39:22]json parsed OK: [17:39:22]protocol is kg_v1.0 [17:39:22]action value=close_receipt [17:39:22]process_action close_receipt [17:39:22]cmd_close_receipt [17:39:22]MH_GetDate [17:39:22]Write to MH i2c: F0 00 00 D1 22 E2 [17:39:22]Write i2c OK [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: F0 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: F0 09 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: F0 09 00 D1 22 00 4E 51 5F 66 6A 96 4A 66 FF [17:39:22]GetLastDocTimeStamp 1717522093 [17:39:22]current date 1717522766 [17:39:22]FM_GetShiftState [17:39:22]SAM_PROTO_GetShiftState [17:39:22]wFMCommunicate request_size=4 [17:39:22]MH_SAM_APDU [17:39:22]CAPDU: 80 13 01 00 [17:39:22]Write to MH i2c: E2 08 00 D2 22 80 13 01 00 00 00 00 00 71 [17:39:22]Write i2c OK [17:39:22]MH_I2C_Read... [17:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:22]Read from MH i2c: E2 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 0E 00 [17:39:22]MH_I2C_Read... [17:39:22]Read from MH i2c: E2 0E 00 D2 22 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 11 [17:39:22]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:39:22]wFMCommunicate OK [17:39:22]SAM_PROTO_GetShiftState done [17:39:22]FM_GetShiftState done [17:39:22]opened in 1717459574 [17:39:22]opened+sec_in_day 1717545974 [17:39:22]quantity*price = 13000 [17:39:22]sum+1 = 13001 [17:39:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745024 Сигареты Winston Superslims Expand Purpl 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000039210050 АКЦИЯ Френч-дог Sib говяжья 180г 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 460.00 НСП 1% : 4.07 НДС 12% : 48.85 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 107 04.06.2024 17:39 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64022 ФПД: 43319958420252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T173927&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64022&fm=43319958420252&tin=02508201610067®Number=0000000000092737&sum=46000 0 [17:39:24]StoreToDocumentArchive [17:39:24]shift 374 fd 64022 [17:39:24]save to /storage/0374/doc_00064022 [17:39:24]save last doc name /storage/0374/doc_00064022 to /storage/kkm_last_doc_name [17:39:24]save OK [17:39:24]Clear old archive folders... [17:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=615 [17:39:24]tlvbuf is 012ABCC0 [17:39:24]SAM_PROTO_ClearQueue [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 09 00 00 [17:39:24]Write to MH i2c: E2 08 00 DF 22 80 09 00 00 00 00 00 00 73 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 DF 22 00 90 00 75 [17:39:24]RAPDU: 90 00 [17:39:24]wFMCommunicate OK [17:39:24]SAM_PROTO_ClearQueue done [17:39:24]KKMCreateOFDPacket [17:39:24]OFDProtocolAddRootSTLVToBuf [17:39:24]FM_MakeSignedData [17:39:24]FM_MakeSignedData [17:39:24]SAM_PROTO_SignData [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 0D 01 02 [17:39:24]Write to MH i2c: E2 08 00 E0 22 80 0D 01 02 00 00 00 00 7B [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 E0 22 00 90 00 76 [17:39:24]RAPDU: 90 00 [17:39:24]wFMCommunicate OK [17:39:24]wFMCommunicate request_size=255 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 0D 02 02 FA 03 00 67 02 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B [17:39:24]Write to MH i2c: E2 02 01 E1 22 80 0D 02 02 FA 00 03 00 67 02 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 00 00 A9 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 E1 22 00 90 00 77 [17:39:24]RAPDU: 90 00 [17:39:24]wFMCommunicate OK [17:39:24]wFMCommunicate request_size=255 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 0D 02 02 FA 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [17:39:24]Write to MH i2c: E2 02 01 E2 22 80 0D 02 02 FA 00 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 46 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 E2 22 00 90 00 78 [17:39:24]RAPDU: 90 00 [17:39:24]wFMCommunicate OK [17:39:24]wFMCommunicate request_size=124 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 0D 02 02 77 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4F 51 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 16 FA 00 00 35 04 06 00 27 66 36 BB BB 1C [17:39:24]Write to MH i2c: E2 7F 00 E3 22 80 0D 02 02 77 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4F 51 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 16 FA 00 00 35 04 06 00 27 66 36 BB BB 1C 00 00 E0 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 03 00 E3 22 00 90 00 79 [17:39:24]RAPDU: 90 00 [17:39:24]wFMCommunicate OK [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 0D 03 02 [17:39:24]Write to MH i2c: E2 08 00 E4 22 80 0D 03 02 00 00 00 00 81 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 0B 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 0B 00 E4 22 00 20 1D 57 8D CB 08 A7 F7 90 00 14 [17:39:24]RAPDU: 20 1D 57 8D CB 08 A7 F7 90 00 [17:39:24]wFMCommunicate OK [17:39:24]SAM_PROTO_SignData done [17:39:24]FM_MakeSignedData done [17:39:24]CreateOFDProtocolMessage [17:39:24]wFMCommunicate request_size=4 [17:39:24]MH_SAM_APDU [17:39:24]CAPDU: 80 11 00 00 [17:39:24]Write to MH i2c: E2 08 00 E5 22 80 11 00 00 00 00 00 00 81 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:24]Read from MH i2c: E2 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 17 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: E2 17 00 E5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D3 [17:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:24]wFMCommunicate OK [17:39:24]CreateOFDProtocolMessage done [17:39:24]OFDSenderStorePacket 64022 [17:39:24]StoreOFDPacket docnum=64022 [17:39:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 7B 02 00 00 1D 9C 73 02 D4 EB 5A 03 01 00 03 00 67 02 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4F 51 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 16 FA 00 00 35 04 06 00 27 66 36 BB BB 1C 20 1D 57 8D CB 08 A7 F7 [17:39:24]CheckFolder [17:39:24]dirname=/storage/ofd_packets [17:39:24]CheckFolder done [17:39:24]ProducePacketName [17:39:24]name=ofd_packets/00064022 [17:39:24]NVStorageSaveData ofd_packets/00064022 [17:39:24]File name is /storage/ofd_packets/00064022 [17:39:24]Write 665 bytes [17:39:24]NVStorageSaveData done [17:39:24]OFDSenderStorePacket done [17:39:24]KKMCreateOFDPacket done [17:39:24]NVStorageSaveData kkm_last_timestamp [17:39:24]File name is /storage/kkm_last_timestamp [17:39:24]Write 4 bytes [17:39:24]NVStorageSaveData done [17:39:24]ExternCall_PrintAddStr [17:39:24]wPrintStart [17:39:24]Write to MH i2c: 01 00 00 E6 22 08 [17:39:24]Write i2c OK [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: 01 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: 01 07 00 [17:39:24]MH_I2C_Read... [17:39:24]Read from MH i2c: 01 07 00 E6 22 00 00 00 00 00 FF 0F 1D [17:39:24]RasterBufferAndPrint [17:39:24]line Счет N : (3)73577 [17:39:24]line ИНН: 02508201610067 [17:39:24]line Контрольно-Кассовый Чек [17:39:24]line ПРОДАЖА [17:39:24]line Товар: 2000036230011 [17:39:24]line Кофе Латте XL(GABB TRADE) [17:39:24]line 1.000 * 130.00 [17:39:24]line = 130.00 [17:39:24]line НДС 12% НСП 1% [17:39:24]line > о реализуемом товаре [17:39:24]line Товар: 4700000160358 [17:39:24]line Вода Легенда 1л [17:39:24]line 1.000 * 50.00 [17:39:24]line = 50.00 [17:39:24]line НДС 12% НСП 1% [17:39:25]line > о реализуемом товаре [17:39:25]line Товар: 48745024 [17:39:25]line Сигареты Winston Superslims Expand Purpl [17:39:25]line 1.000 * 140.00 [17:39:25]line = 140.00 [17:39:25]line НДС 12% НСП 1% [17:39:25]line > о реализуемом товаре [17:39:25]line Товар: 2000039210050 [17:39:25]line АКЦИЯ Френч-дог Sib говяжья 180г [17:39:25]line 1.000 * 140.00 [17:39:25]line = 140.00 [17:39:25]line НДС 12% НСП 1% [17:39:25]line > о реализуемом товаре [17:39:25]line ИТОГО: 460.00 [17:39:25]line НСП 1% : 4.07 [17:39:25]line НДС 12% : 48.85 [17:39:25]line Наличными: 460.00 [17:39:25]line Безнал.: 0.00 [17:39:25]line Место: АЗС № 117 "Партнер Нефть" [17:39:25]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:39:25]line СНО: Общий режим [17:39:25]line Чек 107 04.06.2024 17:39 [17:39:25]line Смена: 374 ФФД: 1.0 [17:39:25]line ЗНМ: 0300000031 [17:39:25]line РНМ: 0000000000092737 [17:39:25]line Версия ККМ: 001 [17:39:25]line ФМ: 0000000000875074 [17:39:25]line ФД: 64022 [17:39:25]line ФПД: 43319958420252 [17:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T173927&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64022&fm=43319958420252&tin=02508201610067®Number=0000000000092737&sum=46000 [17:39:25]line 0 [17:39:25]OFD Sender: Processing packet 64022 [packets to send 14, broken 13] [17:39:25]ProducePacketName [17:39:25]name=ofd_packets/00064022 [17:39:25]OFD Sender: To server: pG, [17:39:25]CommunicateWithHost lk.salyk.kg:30040 [17:39:25]ConnectInit lk.salyk.kg [17:39:25]written 0, free lines is 4095 [17:39:25]Connected sock=9 [17:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 7B 02 00 00 1D 9C 73 02 D4 EB 5A 03 01 00 03 00 67 02 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4F 51 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 16 FA 00 00 35 04 06 00 27 66 36 BB BB 1C 20 1D 57 8D CB 08 A7 F7 [17:39: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 85 B5 47 00 01 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 16 FA 00 00 F4 03 04 00 1D FD 5E 66 B6 04 01 00 00 E0 EC A4 DA 70 5C 69 43 [17:39:25]CommunicateWithHost err = 0 [17:39:25]CheckOFDResponse [17:39:25]1017 (14) - 77093643461234 [17:39:25]1041 (16) - 0000000000875074 [17:39:25]1040 (4) - 64022 [17:39:25]1012 (4) - 04.06.2024 11:40 [17:39:25]1206 (1) - 0 [17:39:25]OFD Sender: Remove packet 64022 [17:39:25]ProducePacketName [17:39:25]name=ofd_packets/00064022 [17:39:25]NVStorageDeleteData [17:39:25]Write to MH i2c: 01 00 00 22 23 45 [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 07 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: 01 07 00 22 23 00 00 00 00 00 C2 0B 19 [17:39:25]RasterBufferAndPrint [17:39:25]line [17:39:25]line [17:39:25]line [17:39:25]line [17:39:25]line [17:39:25]written 0, free lines is 3019 [17:39:25]MH_Cut [17:39:25]Write to MH i2c: D1 01 00 29 23 01 1E [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: D1 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: D1 01 00 [17:39:25]MH_I2C_Read... [17:39:25]Read from MH i2c: D1 01 00 29 23 00 1D [17:39:25]Write to MH i2c: 01 00 00 2A 23 4D [17:39:25]Write i2c OK [17:39:25]MH_I2C_Read... [17:39:26]OFD Sender: No OFD packet to send [17:39:26]*** Cut start [17:39:26]*** Partial cut [17:39:26]*** CUTSNS_PIN = 1 [17:39:26]*** CUTSNS_PIN = 0 [17:39:27]*** Brake cut motor [17:39:27]Read from MH i2c: 01 [17:39:27]MH_I2C_Read... [17:39:27]*** Stop cut motor [17:39:27]*** Cut end [17:39:27]Read from MH i2c: 01 07 00 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: 01 07 00 2A 23 00 00 00 00 00 FF 0F 62 [17:39:27]process_action close_receipt done [17:39:27]requested_data is exist [17:39:27]produce_requested_data [17:39:27]requested_item fm.sn is exist - process it [17:39:27]wFMCommunicate request_size=4 [17:39:27]MH_SAM_APDU [17:39:27]CAPDU: 80 11 00 00 [17:39:27]Write to MH i2c: E2 08 00 2B 23 80 11 00 00 00 00 00 00 C8 [17:39:27]Write i2c OK [17:39:27]MH_I2C_Read... [17:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:27]Read from MH i2c: E2 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 17 00 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 17 00 2B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1A [17:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:39:27]wFMCommunicate OK [17:39:27]requested_item fd.num is exist - process it [17:39:27]SAM_PROTO_GetFieldsCounters [17:39:27]wFMCommunicate request_size=4 [17:39:27]MH_SAM_APDU [17:39:27]CAPDU: 80 13 00 00 [17:39:27]Write to MH i2c: E2 08 00 2C 23 80 13 00 00 00 00 00 00 CB [17:39:27]Write i2c OK [17:39:27]MH_I2C_Read... [17:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:27]Read from MH i2c: E2 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 62 00 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 62 00 2C 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 16 FA 00 00 0E 04 04 00 76 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 B6 [17:39: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 16 FA 00 00 0E 04 04 00 76 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 [17:39:27]wFMCommunicate OK [17:39:27]SAM_PROTO_GetFieldsCounters done [17:39:27]requested_item shift.num is exist - process it [17:39:27]requested_item shift.opened is exist - process it [17:39:27]req_shift_opened [17:39:27]FM_GetShiftState [17:39:27]SAM_PROTO_GetShiftState [17:39:27]wFMCommunicate request_size=4 [17:39:27]MH_SAM_APDU [17:39:27]CAPDU: 80 13 01 00 [17:39:27]Write to MH i2c: E2 08 00 2D 23 80 13 01 00 00 00 00 00 CD [17:39:27]Write i2c OK [17:39:27]MH_I2C_Read... [17:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:27]Read from MH i2c: E2 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 0E 00 [17:39:27]MH_I2C_Read... [17:39:27]Read from MH i2c: E2 0E 00 2D 23 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6D [17:39:27]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:39:27]wFMCommunicate OK [17:39:27]SAM_PROTO_GetShiftState done [17:39:27]FM_GetShiftState done [17:39:27]req_shift_opened done [17:39:27]requested_item shift.open_date is exist - process it [17:39:27]req_shift_open_date [17:39:27]req_shift_open_date done [17:39:27]produce_requested_data done [17:39:27]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64022,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:39:27]process_action_free close_receipt [17:39:27]json_value_free [17:39:27]json_value_free done [17:39:27]process_json_proto returns [17:39:27]Send response to host [17:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64022,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:39:27]free response buf [17:39:27]execute_script done [17:39:27]execute_script returns [17:39:27]free content buf [17:39:27]Sock 7.Close socket [17:39:27]Sock 7.Thread stoped [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:17]accept exits with 10 [17:55:17]New connection [17:55:17]New thread 3066912100 created [17:55:17]Thread 3067055460 joined [17:55:17]Waiting for new connection... [17:55:17] Sock 10.Parse request [17:55:17]Sock 10.Check first char [17:55:17]Sock 10.First char is OK [17:55:17]request: POST /json_proto HTTP/1.0 [17:55:17]Method: POST [17:55:17]URL: /json_proto [17:55:17]Method is POST - this is cgi request [17:55:17]url: /json_proto [17:55:17]query_string will be loaded in cgi processing [17:55:17]execute_cgi json_proto POST (null) [17:55:17]execute_cgi path=json_proto method=POST [17:55:17]POST find Content-Length [17:55:17]Host: 172.17.60.69:8080 [17:55:17]Content-Length: 632 [17:55:17]Content-Type: application/json [17:55:17] [17:55:17]POST finish read [17:55:17]Found Content-Length = 632 [17:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73578", "tax_sys" : 0, "items" : [ { "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:17]execute_script... [17:55: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)73578", "tax_sys" : 0, "items" : [ { "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:17]POST & json_proto [17:55:17]process_json_proto [17:55:17]json parsed OK: [17:55:17]protocol is kg_v1.0 [17:55:17]action value=close_receipt [17:55:17]process_action close_receipt [17:55:17]cmd_close_receipt [17:55:17]MH_GetDate [17:55:17]Write to MH i2c: F0 00 00 2E 23 40 [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: F0 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: F0 09 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: F0 09 00 2E 23 00 09 55 5F 66 6A 96 4A 66 1C [17:55:17]GetLastDocTimeStamp 1717522767 [17:55:17]current date 1717523721 [17:55:17]FM_GetShiftState [17:55:17]SAM_PROTO_GetShiftState [17:55:17]wFMCommunicate request_size=4 [17:55:17]MH_SAM_APDU [17:55:17]CAPDU: 80 13 01 00 [17:55:17]Write to MH i2c: E2 08 00 2F 23 80 13 01 00 00 00 00 00 CF [17:55:17]Write i2c OK [17:55:17]MH_I2C_Read... [17:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:17]Read from MH i2c: E2 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 0E 00 [17:55:17]MH_I2C_Read... [17:55:17]Read from MH i2c: E2 0E 00 2F 23 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6F [17:55:17]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:55:17]wFMCommunicate OK [17:55:17]SAM_PROTO_GetShiftState done [17:55:17]FM_GetShiftState done [17:55:17]opened in 1717459574 [17:55:17]opened+sec_in_day 1717545974 [17:55:17]quantity*price = 8500 [17:55:17]sum+1 = 8501 [17:55:17]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 СНО: Общий режим Чек 108 04.06.2024 17:55 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64023 ФПД: 256430798121893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175521&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64023&fm=256430798121893&tin=02508201610067®Number=0000000000092737&sum=8500 0 [17:55:18]StoreToDocumentArchive [17:55:18]shift 374 fd 64023 [17:55:18]save to /storage/0374/doc_00064023 [17:55:18]save last doc name /storage/0374/doc_00064023 to /storage/kkm_last_doc_name [17:55:18]save OK [17:55:18]Clear old archive folders... [17:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=272 [17:55:18]tlvbuf is B6F6EB20 [17:55:18]SAM_PROTO_ClearQueue [17:55:18]wFMCommunicate request_size=4 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 09 00 00 [17:55:18]Write to MH i2c: E2 08 00 3C 23 80 09 00 00 00 00 00 00 D1 [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [17:55:18]RAPDU: 90 00 [17:55:18]wFMCommunicate OK [17:55:18]SAM_PROTO_ClearQueue done [17:55:18]KKMCreateOFDPacket [17:55:18]OFDProtocolAddRootSTLVToBuf [17:55:18]FM_MakeSignedData [17:55:18]FM_MakeSignedData [17:55:18]SAM_PROTO_SignData [17:55:18]wFMCommunicate request_size=4 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 0D 01 02 [17:55:18]Write to MH i2c: E2 08 00 3D 23 80 0D 01 02 00 00 00 00 D9 [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 3D 23 00 90 00 D4 [17:55:18]RAPDU: 90 00 [17:55:18]wFMCommunicate OK [17:55:18]wFMCommunicate request_size=255 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 09 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [17:55:18]Write to MH i2c: E2 02 01 3E 23 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 09 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 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 04 [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 3E 23 00 90 00 D5 [17:55:18]RAPDU: 90 00 [17:55:18]wFMCommunicate OK [17:55:18]wFMCommunicate request_size=31 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 37 34 10 04 04 00 17 FA 00 00 35 04 06 00 E9 38 F2 A1 AB A5 [17:55:18]Write to MH i2c: E2 22 00 3F 23 80 0D 02 02 1A 00 30 30 38 37 35 30 37 34 10 04 04 00 17 FA 00 00 35 04 06 00 E9 38 F2 A1 AB A5 00 00 1B [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 03 00 3F 23 00 90 00 D6 [17:55:18]RAPDU: 90 00 [17:55:18]wFMCommunicate OK [17:55:18]wFMCommunicate request_size=4 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 0D 03 02 [17:55:18]Write to MH i2c: E2 08 00 40 23 80 0D 03 02 00 00 00 00 DE [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 0B 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 0B 00 40 23 00 AA 07 DD 52 1B F1 D7 D3 90 00 75 [17:55:18]RAPDU: AA 07 DD 52 1B F1 D7 D3 90 00 [17:55:18]wFMCommunicate OK [17:55:18]SAM_PROTO_SignData done [17:55:18]FM_MakeSignedData done [17:55:18]CreateOFDProtocolMessage [17:55:18]wFMCommunicate request_size=4 [17:55:18]MH_SAM_APDU [17:55:18]CAPDU: 80 11 00 00 [17:55:18]Write to MH i2c: E2 08 00 41 23 80 11 00 00 00 00 00 00 DE [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:18]Read from MH i2c: E2 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 17 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: E2 17 00 41 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 30 [17:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:55:18]wFMCommunicate OK [17:55:18]CreateOFDProtocolMessage done [17:55:18]OFDSenderStorePacket 64023 [17:55:18]StoreOFDPacket docnum=64023 [17:55: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 24 01 00 00 85 9B 1C 01 CA 8E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 09 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 17 FA 00 00 35 04 06 00 E9 38 F2 A1 AB A5 AA 07 DD 52 1B F1 D7 D3 [17:55:18]CheckFolder [17:55:18]dirname=/storage/ofd_packets [17:55:18]CheckFolder done [17:55:18]ProducePacketName [17:55:18]name=ofd_packets/00064023 [17:55:18]NVStorageSaveData ofd_packets/00064023 [17:55:18]File name is /storage/ofd_packets/00064023 [17:55:18]Write 322 bytes [17:55:18]NVStorageSaveData done [17:55:18]OFDSenderStorePacket done [17:55:18]KKMCreateOFDPacket done [17:55:18]NVStorageSaveData kkm_last_timestamp [17:55:18]File name is /storage/kkm_last_timestamp [17:55:18]Write 4 bytes [17:55:18]NVStorageSaveData done [17:55:18]ExternCall_PrintAddStr [17:55:18]wPrintStart [17:55:18]Write to MH i2c: 01 00 00 42 23 65 [17:55:18]Write i2c OK [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: 01 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: 01 07 00 [17:55:18]MH_I2C_Read... [17:55:18]Read from MH i2c: 01 07 00 42 23 00 00 00 00 00 FF 0F 7A [17:55:18]RasterBufferAndPrint [17:55:18]line Счет N : (3)73578 [17:55:18]line ИНН: 02508201610067 [17:55:18]line Контрольно-Кассовый Чек [17:55:18]line ПРОДАЖА [17:55:18]line Товар: 5449000014535 [17:55:18]line Напит Спрайт 0,33л [17:55:18]line 1.000 * 85.00 [17:55:18]line = 85.00 [17:55:18]line НДС 12% НСП 1% [17:55:18]line > о реализуемом товаре [17:55:18]line ИТОГО: 85.00 [17:55:18]line НСП 1% : 0.75 [17:55:18]line НДС 12% : 9.03 [17:55:18]line Наличными: 85.00 [17:55:18]line Безнал.: 0.00 [17:55:18]line Место: АЗС № 117 "Партнер Нефть" [17:55:18]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:55:18]line СНО: Общий режим [17:55:18]line Чек 108 04.06.2024 17:55 [17:55:18]line Смена: 374 ФФД: 1.0 [17:55:18]line ЗНМ: 0300000031 [17:55:18]line РНМ: 0000000000092737 [17:55:18]line Версия ККМ: 001 [17:55:18]line ФМ: 0000000000875074 [17:55:18]line ФД: 64023 [17:55:18]line ФПД: 256430798121893 [17:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175521&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64023&fm=256430798121893&tin=02508201610067®Number=0000000000092737&sum=8500 [17:55:19]line 0 [17:55:19]OFD Sender: Processing packet 64023 [packets to send 14, broken 13] [17:55:19]ProducePacketName [17:55:19]name=ofd_packets/00064023 [17:55:19]OFD Sender: To server: pG, [17:55:19]CommunicateWithHost lk.salyk.kg:30040 [17:55:19]ConnectInit lk.salyk.kg [17:55:19]written 0, free lines is 4095 [17:55:19]Connected sock=9 [17:55: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 24 01 00 00 85 9B 1C 01 CA 8E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 09 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 17 FA 00 00 35 04 06 00 E9 38 F2 A1 AB A5 AA 07 DD 52 1B F1 D7 D3 [17:55: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 AB 86 47 00 66 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 17 FA 00 00 F4 03 04 00 D6 00 5F 66 B6 04 01 00 00 36 B6 5E 48 47 2B EB 66 [17:55:19]CommunicateWithHost err = 0 [17:55:19]CheckOFDResponse [17:55:19]1017 (14) - 77093643461234 [17:55:19]1041 (16) - 0000000000875074 [17:55:19]1040 (4) - 64023 [17:55:19]1012 (4) - 04.06.2024 11:56 [17:55:19]1206 (1) - 0 [17:55:19]OFD Sender: Remove packet 64023 [17:55:19]ProducePacketName [17:55:19]name=ofd_packets/00064023 [17:55:19]NVStorageDeleteData [17:55:19]Write to MH i2c: 01 00 00 6A 23 8D [17:55:19]Write i2c OK [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: 01 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: 01 07 00 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: 01 07 00 6A 23 00 00 00 00 00 03 0D A4 [17:55:19]RasterBufferAndPrint [17:55:19]line [17:55:19]line [17:55:19]line [17:55:19]line [17:55:19]line [17:55:19]written 0, free lines is 3340 [17:55:19]MH_Cut [17:55:19]Write to MH i2c: D1 01 00 71 23 01 66 [17:55:19]Write i2c OK [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: D1 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: D1 01 00 [17:55:19]MH_I2C_Read... [17:55:19]Read from MH i2c: D1 01 00 71 23 00 65 [17:55:19]Write to MH i2c: 01 00 00 72 23 95 [17:55:19]Write i2c OK [17:55:19]MH_I2C_Read... [17:55:20]OFD Sender: No OFD packet to send [17:55:20]*** Cut start [17:55:20]*** Partial cut [17:55:20]*** CUTSNS_PIN = 1 [17:55:20]*** CUTSNS_PIN = 0 [17:55:20]*** Brake cut motor [17:55:21]Read from MH i2c: 01 [17:55:21]MH_I2C_Read... [17:55:21]*** Stop cut motor [17:55:21]*** Cut end [17:55:21]Read from MH i2c: 01 07 00 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: 01 07 00 72 23 00 00 00 00 00 FF 0F AA [17:55:21]process_action close_receipt done [17:55:21]requested_data is exist [17:55:21]produce_requested_data [17:55:21]requested_item fm.sn is exist - process it [17:55:21]wFMCommunicate request_size=4 [17:55:21]MH_SAM_APDU [17:55:21]CAPDU: 80 11 00 00 [17:55:21]Write to MH i2c: E2 08 00 73 23 80 11 00 00 00 00 00 00 10 [17:55:21]Write i2c OK [17:55:21]MH_I2C_Read... [17:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:21]Read from MH i2c: E2 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 17 00 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 17 00 73 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 62 [17:55: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:55:21]wFMCommunicate OK [17:55:21]requested_item fd.num is exist - process it [17:55:21]SAM_PROTO_GetFieldsCounters [17:55:21]wFMCommunicate request_size=4 [17:55:21]MH_SAM_APDU [17:55:21]CAPDU: 80 13 00 00 [17:55:21]Write to MH i2c: E2 08 00 74 23 80 13 00 00 00 00 00 00 13 [17:55:21]Write i2c OK [17:55:21]MH_I2C_Read... [17:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:21]Read from MH i2c: E2 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 62 00 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 62 00 74 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 17 FA 00 00 0E 04 04 00 76 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 02 [17:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 17 FA 00 00 0E 04 04 00 76 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 [17:55:21]wFMCommunicate OK [17:55:21]SAM_PROTO_GetFieldsCounters done [17:55:21]requested_item shift.num is exist - process it [17:55:21]requested_item shift.opened is exist - process it [17:55:21]req_shift_opened [17:55:21]FM_GetShiftState [17:55:21]SAM_PROTO_GetShiftState [17:55:21]wFMCommunicate request_size=4 [17:55:21]MH_SAM_APDU [17:55:21]CAPDU: 80 13 01 00 [17:55:21]Write to MH i2c: E2 08 00 75 23 80 13 01 00 00 00 00 00 15 [17:55:21]Write i2c OK [17:55:21]MH_I2C_Read... [17:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:21]Read from MH i2c: E2 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 0E 00 [17:55:21]MH_I2C_Read... [17:55:21]Read from MH i2c: E2 0E 00 75 23 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B5 [17:55:21]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:55:21]wFMCommunicate OK [17:55:21]SAM_PROTO_GetShiftState done [17:55:21]FM_GetShiftState done [17:55:21]req_shift_opened done [17:55:21]requested_item shift.open_date is exist - process it [17:55:21]req_shift_open_date [17:55:21]req_shift_open_date done [17:55:21]produce_requested_data done [17:55:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64023,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:55:21]process_action_free close_receipt [17:55:21]json_value_free [17:55:21]json_value_free done [17:55:21]process_json_proto returns [17:55:21]Send response to host [17:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64023,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:55:21]free response buf [17:55:21]execute_script done [17:55:21]execute_script returns [17:55:21]free content buf [17:55:21]Sock 10.Close socket [17:55:21]Sock 10.Thread stoped [17:55:22]accept exits with 7 [17:55:22]New connection [17:55:22]New thread 3067055460 created [17:55:22]Thread 3066912100 joined [17:55:22]Waiting for new connection... [17:55:22] Sock 7.Parse request [17:55:22]Sock 7.Check first char [17:55:22]Sock 7.First char is OK [17:55:22]request: POST /json_proto HTTP/1.0 [17:55:22]Method: POST [17:55:22]URL: /json_proto [17:55:22]Method is POST - this is cgi request [17:55:22]url: /json_proto [17:55:22]query_string will be loaded in cgi processing [17:55:22]execute_cgi json_proto POST (null) [17:55:22]execute_cgi path=json_proto method=POST [17:55:22]POST find Content-Length [17:55:22]Host: 172.17.60.69:8080 [17:55:22]Content-Length: 661 [17:55:22]Content-Type: application/json [17:55:22] [17:55:22]POST finish read [17:55:22]Found Content-Length = 661 [17:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73579", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:22]execute_script... [17:55:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73579", "tax_sys" : 0, "items" : [ { "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:22]POST & json_proto [17:55:22]process_json_proto [17:55:22]json parsed OK: [17:55:22]protocol is kg_v1.0 [17:55:22]action value=close_receipt [17:55:22]process_action close_receipt [17:55:22]cmd_close_receipt [17:55:22]MH_GetDate [17:55:22]Write to MH i2c: F0 00 00 76 23 88 [17:55:22]Write i2c OK [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: F0 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: F0 09 00 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: F0 09 00 76 23 00 0F 55 5F 66 6A 96 4A 66 6A [17:55:22]GetLastDocTimeStamp 1717523721 [17:55:22]current date 1717523727 [17:55:22]FM_GetShiftState [17:55:22]SAM_PROTO_GetShiftState [17:55:22]wFMCommunicate request_size=4 [17:55:22]MH_SAM_APDU [17:55:22]CAPDU: 80 13 01 00 [17:55:22]Write to MH i2c: E2 08 00 77 23 80 13 01 00 00 00 00 00 17 [17:55:22]Write i2c OK [17:55:22]MH_I2C_Read... [17:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:22]Read from MH i2c: E2 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 0E 00 [17:55:22]MH_I2C_Read... [17:55:22]Read from MH i2c: E2 0E 00 77 23 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B7 [17:55:22]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:55:22]wFMCommunicate OK [17:55:22]SAM_PROTO_GetShiftState done [17:55:22]FM_GetShiftState done [17:55:22]opened in 1717459574 [17:55:22]opened+sec_in_day 1717545974 [17:55:22]quantity*price = 6000 [17:55:22]sum+1 = 6001 [17:55:22]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 СНО: Общий режим Чек 109 04.06.2024 17:55 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64024 ФПД: 51592652328851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175527&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64024&fm=51592652328851&tin=02508201610067®Number=0000000000092737&sum=6000 0 [17:55:24]StoreToDocumentArchive [17:55:24]shift 374 fd 64024 [17:55:24]save to /storage/0374/doc_00064024 [17:55:24]save last doc name /storage/0374/doc_00064024 to /storage/kkm_last_doc_name [17:55:24]save OK [17:55:24]Clear old archive folders... [17:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=281 [17:55:24]tlvbuf is B6F6E640 [17:55:24]SAM_PROTO_ClearQueue [17:55:24]wFMCommunicate request_size=4 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 09 00 00 [17:55:24]Write to MH i2c: E2 08 00 84 23 80 09 00 00 00 00 00 00 19 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 03 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 03 00 84 23 00 90 00 1B [17:55:24]RAPDU: 90 00 [17:55:24]wFMCommunicate OK [17:55:24]SAM_PROTO_ClearQueue done [17:55:24]KKMCreateOFDPacket [17:55:24]OFDProtocolAddRootSTLVToBuf [17:55:24]FM_MakeSignedData [17:55:24]FM_MakeSignedData [17:55:24]SAM_PROTO_SignData [17:55:24]wFMCommunicate request_size=4 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 0D 01 02 [17:55:24]Write to MH i2c: E2 08 00 85 23 80 0D 01 02 00 00 00 00 21 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 03 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [17:55:24]RAPDU: 90 00 [17:55:24]wFMCommunicate OK [17:55:24]wFMCommunicate request_size=255 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6D 00 00 00 F4 03 04 00 0F 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 [17:55:24]Write to MH i2c: E2 02 01 86 23 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6D 00 00 00 F4 03 04 00 0F 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 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 F8 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 03 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 03 00 86 23 00 90 00 1D [17:55:24]RAPDU: 90 00 [17:55:24]wFMCommunicate OK [17:55:24]wFMCommunicate request_size=40 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 18 FA 00 00 35 04 06 00 2E EC 59 B7 0F 93 [17:55:24]Write to MH i2c: E2 2B 00 87 23 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 18 FA 00 00 35 04 06 00 2E EC 59 B7 0F 93 00 00 BE [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 03 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [17:55:24]RAPDU: 90 00 [17:55:24]wFMCommunicate OK [17:55:24]wFMCommunicate request_size=4 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 0D 03 02 [17:55:24]Write to MH i2c: E2 08 00 88 23 80 0D 03 02 00 00 00 00 26 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 0B 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 0B 00 88 23 00 E2 FC 33 76 9A 59 C0 ED 90 00 4E [17:55:24]RAPDU: E2 FC 33 76 9A 59 C0 ED 90 00 [17:55:24]wFMCommunicate OK [17:55:24]SAM_PROTO_SignData done [17:55:24]FM_MakeSignedData done [17:55:24]CreateOFDProtocolMessage [17:55:24]wFMCommunicate request_size=4 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 11 00 00 [17:55:24]Write to MH i2c: E2 08 00 89 23 80 11 00 00 00 00 00 00 26 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 17 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 17 00 89 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 78 [17:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:55:24]wFMCommunicate OK [17:55:24]CreateOFDProtocolMessage done [17:55:24]OFDSenderStorePacket 64024 [17:55:24]StoreOFDPacket docnum=64024 [17:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2D 01 00 00 79 F8 25 01 87 DC 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6D 00 00 00 F4 03 04 00 0F 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 18 FA 00 00 35 04 06 00 2E EC 59 B7 0F 93 E2 FC 33 76 9A 59 C0 ED [17:55:24]CheckFolder [17:55:24]dirname=/storage/ofd_packets [17:55:24]CheckFolder done [17:55:24]ProducePacketName [17:55:24]name=ofd_packets/00064024 [17:55:24]NVStorageSaveData ofd_packets/00064024 [17:55:24]File name is /storage/ofd_packets/00064024 [17:55:24]Write 331 bytes [17:55:24]NVStorageSaveData done [17:55:24]OFDSenderStorePacket done [17:55:24]KKMCreateOFDPacket done [17:55:24]NVStorageSaveData kkm_last_timestamp [17:55:24]File name is /storage/kkm_last_timestamp [17:55:24]Write 4 bytes [17:55:24]NVStorageSaveData done [17:55:24]ExternCall_PrintAddStr [17:55:24]wPrintStart [17:55:24]Write to MH i2c: 01 00 00 8A 23 AD [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: 01 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: 01 07 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: 01 07 00 8A 23 00 00 00 00 00 FF 0F C2 [17:55:24]RasterBufferAndPrint [17:55:24]line Счет N : (3)73579 [17:55:24]line ИНН: 02508201610067 [17:55:24]line Контрольно-Кассовый Чек [17:55:24]line ПРОДАЖА [17:55:24]line Товар: 4011100977952 [17:55:24]line Шок Батончик Твикс 55г [17:55:24]line 1.000 * 60.00 [17:55:24]line = 60.00 [17:55:24]line НДС 12% НСП 1% [17:55:24]line > о реализуемом товаре [17:55:24]line ИТОГО: 60.00 [17:55:24]line НСП 1% : 0.53 [17:55:24]line НДС 12% : 6.37 [17:55:24]line Наличными: 60.00 [17:55:24]line Безнал.: 0.00 [17:55:24]line Место: АЗС № 117 "Партнер Нефть" [17:55:24]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:55:24]line СНО: Общий режим [17:55:24]line Чек 109 04.06.2024 17:55 [17:55:24]line Смена: 374 ФФД: 1.0 [17:55:24]line ЗНМ: 0300000031 [17:55:24]line РНМ: 0000000000092737 [17:55:24]line Версия ККМ: 001 [17:55:24]line ФМ: 0000000000875074 [17:55:24]line ФД: 64024 [17:55:24]line ФПД: 51592652328851 [17:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175527&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64024&fm=51592652328851&tin=02508201610067®Number=0000000000092737&sum=6000 [17:55:24]line 0 [17:55:24]written 0, free lines is 4095 [17:55:24]OFD Sender: Processing packet 64024 [packets to send 14, broken 13] [17:55:24]ProducePacketName [17:55:24]name=ofd_packets/00064024 [17:55:24]OFD Sender: To server: pG, [17:55:24]CommunicateWithHost lk.salyk.kg:30040 [17:55:24]ConnectInit lk.salyk.kg [17:55:24]Connected sock=10 [17:55: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 2D 01 00 00 79 F8 25 01 87 DC 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6D 00 00 00 F4 03 04 00 0F 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 18 FA 00 00 35 04 06 00 2E EC 59 B7 0F 93 E2 FC 33 76 9A 59 C0 ED [17:55: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 5C F3 47 00 ED 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 18 FA 00 00 F4 03 04 00 DC 00 5F 66 B6 04 01 00 00 8A A9 47 36 FC 53 CB 67 [17:55:25]CommunicateWithHost err = 0 [17:55:25]CheckOFDResponse [17:55:25]1017 (14) - 77093643461234 [17:55:25]1041 (16) - 0000000000875074 [17:55:25]1040 (4) - 64024 [17:55:25]1012 (4) - 04.06.2024 11:56 [17:55:25]1206 (1) - 0 [17:55:25]OFD Sender: Remove packet 64024 [17:55:25]ProducePacketName [17:55:25]name=ofd_packets/00064024 [17:55:25]NVStorageDeleteData [17:55:25]Write to MH i2c: 01 00 00 B2 23 D5 [17:55:25]Write i2c OK [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: 01 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: 01 07 00 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: 01 07 00 B2 23 00 00 00 00 00 0B 0D F4 [17:55:25]RasterBufferAndPrint [17:55:25]line [17:55:25]line [17:55:25]line [17:55:25]line [17:55:25]line [17:55:25]written 0, free lines is 3354 [17:55:25]MH_Cut [17:55:25]Write to MH i2c: D1 01 00 B9 23 01 AE [17:55:25]Write i2c OK [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: D1 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: D1 01 00 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: D1 01 00 B9 23 00 AD [17:55:25]Write to MH i2c: 01 00 00 BA 23 DD [17:55:25]Write i2c OK [17:55:25]MH_I2C_Read... [17:55:25]OFD Sender: No OFD packet to send [17:55:25]*** Cut start [17:55:25]*** Partial cut [17:55:25]*** CUTSNS_PIN = 1 [17:55:26]*** CUTSNS_PIN = 0 [17:55:26]*** Brake cut motor [17:55:26]Read from MH i2c: 01 [17:55:26]MH_I2C_Read... [17:55:26]*** Stop cut motor [17:55:26]*** Cut end [17:55:26]Read from MH i2c: 01 07 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: 01 07 00 BA 23 00 00 00 00 00 FF 0F F2 [17:55:26]process_action close_receipt done [17:55:26]requested_data is exist [17:55:26]produce_requested_data [17:55:26]requested_item fm.sn is exist - process it [17:55:26]wFMCommunicate request_size=4 [17:55:26]MH_SAM_APDU [17:55:26]CAPDU: 80 11 00 00 [17:55:26]Write to MH i2c: E2 08 00 BB 23 80 11 00 00 00 00 00 00 58 [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:26]Read from MH i2c: E2 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 17 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 17 00 BB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AA [17:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:55:26]wFMCommunicate OK [17:55:26]requested_item fd.num is exist - process it [17:55:26]SAM_PROTO_GetFieldsCounters [17:55:26]wFMCommunicate request_size=4 [17:55:26]MH_SAM_APDU [17:55:26]CAPDU: 80 13 00 00 [17:55:26]Write to MH i2c: E2 08 00 BC 23 80 13 00 00 00 00 00 00 5B [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:26]Read from MH i2c: E2 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 62 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 62 00 BC 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 18 FA 00 00 0E 04 04 00 76 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 4E [17:55: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 18 FA 00 00 0E 04 04 00 76 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 [17:55:26]wFMCommunicate OK [17:55:26]SAM_PROTO_GetFieldsCounters done [17:55:26]requested_item shift.num is exist - process it [17:55:26]requested_item shift.opened is exist - process it [17:55:26]req_shift_opened [17:55:26]FM_GetShiftState [17:55:26]SAM_PROTO_GetShiftState [17:55:26]wFMCommunicate request_size=4 [17:55:26]MH_SAM_APDU [17:55:26]CAPDU: 80 13 01 00 [17:55:26]Write to MH i2c: E2 08 00 BD 23 80 13 01 00 00 00 00 00 5D [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:26]Read from MH i2c: E2 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 0E 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 0E 00 BD 23 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 FD [17:55:26]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:55:26]wFMCommunicate OK [17:55:26]SAM_PROTO_GetShiftState done [17:55:26]FM_GetShiftState done [17:55:26]req_shift_opened done [17:55:26]requested_item shift.open_date is exist - process it [17:55:26]req_shift_open_date [17:55:26]req_shift_open_date done [17:55:26]produce_requested_data done [17:55:26]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64024,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:55:26]process_action_free close_receipt [17:55:26]json_value_free [17:55:26]json_value_free done [17:55:26]process_json_proto returns [17:55:26]Send response to host [17:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64024,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:55:26]free response buf [17:55:26]execute_script done [17:55:26]execute_script returns [17:55:26]free content buf [17:55:26]Sock 7.Close socket [17:55:26]Sock 7.Thread stoped [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:16]accept exits with 9 [17:56:16]New connection [17:56:16]New thread 3066912100 created [17:56:16]Thread 3067055460 joined [17:56:16]Waiting for new connection... [17:56:16] Sock 9.Parse request [17:56:16]Sock 9.Check first char [17:56:16]Sock 9.First char is OK [17:56:16]request: POST /json_proto HTTP/1.0 [17:56:16]Method: POST [17:56:16]URL: /json_proto [17:56:16]Method is POST - this is cgi request [17:56:16]url: /json_proto [17:56:16]query_string will be loaded in cgi processing [17:56:16]execute_cgi json_proto POST (null) [17:56:16]execute_cgi path=json_proto method=POST [17:56:16]POST find Content-Length [17:56:16]Host: 172.17.60.69:8080 [17:56:16]Content-Length: 677 [17:56:16]Content-Type: application/json [17:56:16] [17:56:16]POST finish read [17:56:16]Found Content-Length = 677 [17:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544948", "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" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:16]execute_script... [17:56:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544948", "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" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:16]POST & json_proto [17:56:16]process_json_proto [17:56:16]json parsed OK: [17:56:16]protocol is kg_v1.0 [17:56:16]action value=close_receipt [17:56:16]process_action close_receipt [17:56:16]cmd_close_receipt [17:56:16]MH_GetDate [17:56:16]Write to MH i2c: F0 00 00 BE 23 D0 [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: F0 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: F0 09 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: F0 09 00 BE 23 00 44 55 5F 66 6A 96 4A 66 E7 [17:56:16]GetLastDocTimeStamp 1717523727 [17:56:16]current date 1717523780 [17:56:16]FM_GetShiftState [17:56:16]SAM_PROTO_GetShiftState [17:56:16]wFMCommunicate request_size=4 [17:56:16]MH_SAM_APDU [17:56:16]CAPDU: 80 13 01 00 [17:56:16]Write to MH i2c: E2 08 00 BF 23 80 13 01 00 00 00 00 00 5F [17:56:16]Write i2c OK [17:56:16]MH_I2C_Read... [17:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:16]Read from MH i2c: E2 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 0E 00 [17:56:16]MH_I2C_Read... [17:56:16]Read from MH i2c: E2 0E 00 BF 23 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 FF [17:56:16]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:56:16]wFMCommunicate OK [17:56:16]SAM_PROTO_GetShiftState done [17:56:16]FM_GetShiftState done [17:56:16]opened in 1717459574 [17:56:16]opened+sec_in_day 1717545974 [17:56:16]quantity*price = 50041 [17:56:16]sum+1 = 50042 [17:56:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 110 04.06.2024 17:56 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64025 ФПД: 21875699422038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175620&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64025&fm=21875699422038&tin=02508201610067®Number=0000000000092737&sum=50000 [17:56:17]StoreToDocumentArchive [17:56:17]shift 374 fd 64025 [17:56:17]save to /storage/0374/doc_00064025 [17:56:17]save last doc name /storage/0374/doc_00064025 to /storage/kkm_last_doc_name [17:56:17]save OK [17:56:17]Clear old archive folders... [17:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:17]tlvbuf is 012C67D0 [17:56:17]SAM_PROTO_ClearQueue [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 09 00 00 [17:56:17]Write to MH i2c: E2 08 00 CC 23 80 09 00 00 00 00 00 00 61 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 CC 23 00 90 00 63 [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]SAM_PROTO_ClearQueue done [17:56:17]KKMCreateOFDPacket [17:56:17]OFDProtocolAddRootSTLVToBuf [17:56:17]FM_MakeSignedData [17:56:17]FM_MakeSignedData [17:56:17]SAM_PROTO_SignData [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 01 02 [17:56:17]Write to MH i2c: E2 08 00 CD 23 80 0D 01 02 00 00 00 00 69 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 CD 23 00 90 00 64 [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]wFMCommunicate request_size=255 [17:56:17]MH_SAM_APDU [17:56: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 6E 00 00 00 F4 03 04 00 44 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 19 FA 00 00 35 04 06 00 13 [17:56:17]Write to MH i2c: E2 02 01 CE 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 44 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 19 FA 00 00 35 04 06 00 13 00 00 63 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 CE 23 00 90 00 65 [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]wFMCommunicate request_size=10 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 02 02 05 E5 55 4B 13 56 [17:56:17]Write to MH i2c: E2 0D 00 CF 23 80 0D 02 02 05 00 E5 55 4B 13 56 00 00 64 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 CF 23 00 90 00 66 [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 03 02 [17:56:17]Write to MH i2c: E2 08 00 D0 23 80 0D 03 02 00 00 00 00 6E [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0B 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0B 00 D0 23 00 6F D9 F5 9C 9E ED AC E2 90 00 61 [17:56:17]RAPDU: 6F D9 F5 9C 9E ED AC E2 90 00 [17:56:17]wFMCommunicate OK [17:56:17]SAM_PROTO_SignData done [17:56:17]FM_MakeSignedData done [17:56:17]CreateOFDProtocolMessage [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 11 00 00 [17:56:17]Write to MH i2c: E2 08 00 D1 23 80 11 00 00 00 00 00 00 6E [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 17 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 17 00 D1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C0 [17:56: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:56:17]wFMCommunicate OK [17:56:17]CreateOFDProtocolMessage done [17:56:17]OFDSenderStorePacket 64025 [17:56:17]StoreOFDPacket docnum=64025 [17:56: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 8B B2 07 01 62 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 44 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 19 FA 00 00 35 04 06 00 13 E5 55 4B 13 56 6F D9 F5 9C 9E ED AC E2 [17:56:17]CheckFolder [17:56:17]dirname=/storage/ofd_packets [17:56:17]CheckFolder done [17:56:17]ProducePacketName [17:56:17]name=ofd_packets/00064025 [17:56:17]NVStorageSaveData ofd_packets/00064025 [17:56:17]File name is /storage/ofd_packets/00064025 [17:56:17]Write 301 bytes [17:56:17]NVStorageSaveData done [17:56:17]OFDSenderStorePacket done [17:56:17]KKMCreateOFDPacket done [17:56:17]NVStorageSaveData kkm_last_timestamp [17:56:17]File name is /storage/kkm_last_timestamp [17:56:17]Write 4 bytes [17:56:17]NVStorageSaveData done [17:56:17]ExternCall_PrintAddStr [17:56:17]wPrintStart [17:56:17]Write to MH i2c: 01 00 00 D2 23 F5 [17:56:17]OFD Sender: Processing packet 64025 [packets to send 14, broken 13] [17:56:17]ProducePacketName [17:56:17]name=ofd_packets/00064025 [17:56:17]OFD Sender: To server: pG, [17:56:17]CommunicateWithHost lk.salyk.kg:30040 [17:56:17]ConnectInit lk.salyk.kg [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 07 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 07 00 D2 23 00 00 00 00 00 FF 0F 0A [17:56:17]RasterBufferAndPrint [17:56:17]line Счет N : (1)544948 [17:56:17]line ИНН: 02508201610067 [17:56:17]line Контрольно-Кассовый Чек [17:56:17]line ПРОДАЖА [17:56:17]line ТРК (МРК, ГНК) : 22 [17:56:17]line Товар: 2710124130 [17:56:17]line Аи-92-К-5 [17:56:17]line 7.480 * 66.90 [17:56:17]line = 500.41 [17:56:17]line НДС 12% НСП 1% [17:56:17]line > о реализуемом товаре [17:56:17]line ОКРУГЛЕНИЕ: -0.41 [17:56:17]line ИТОГО: 500.00 [17:56:17]line Внесено: 500.00 [17:56:17]line СДАЧА: 0.00 [17:56:17]line НСП 1% : 4.43 [17:56:17]line НДС 12% : 53.14 [17:56:17]line Наличными: 500.00 [17:56:17]line Безнал.: 0.00 [17:56:17]line Место: АЗС № 117 "Партнер Нефть" [17:56:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:56:17]line СНО: Общий режим [17:56:17]line Чек 110 04.06.2024 17:56 [17:56:17]line Смена: 374 ФФД: 1.0 [17:56:17]line ЗНМ: 0300000031 [17:56:17]line РНМ: 0000000000092737 [17:56:17]line Версия ККМ: 001 [17:56:17]line ФМ: 0000000000875074 [17:56:17]line ФД: 64025 [17:56:17]line ФПД: 21875699422038 [17:56:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175620&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64025&fm=21875699422038&tin=02508201610067®Number=0000000000092737&sum=50000 [17:56:18]Connected sock=10 [17:56:18]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 8B B2 07 01 62 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 44 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 19 FA 00 00 35 04 06 00 13 E5 55 4B 13 56 6F D9 F5 9C 9E ED AC E2 [17:56:18]written 0, free lines is 4095 [17:56: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 EE 1B 47 00 B7 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 19 FA 00 00 F4 03 04 00 11 01 5F 66 B6 04 01 00 00 21 30 D1 0C 75 B7 7E 71 [17:56:18]CommunicateWithHost err = 0 [17:56:18]CheckOFDResponse [17:56:18]1017 (14) - 77093643461234 [17:56:18]1041 (16) - 0000000000875074 [17:56:18]1040 (4) - 64025 [17:56:18]1012 (4) - 04.06.2024 11:57 [17:56:18]1206 (1) - 0 [17:56:18]OFD Sender: Remove packet 64025 [17:56:18]ProducePacketName [17:56:18]name=ofd_packets/00064025 [17:56:18]NVStorageDeleteData [17:56:18]Write to MH i2c: 01 00 00 FD 23 20 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: 01 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: 01 07 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: 01 07 00 FD 23 00 00 00 00 00 D0 0C 03 [17:56:18]RasterBufferAndPrint [17:56:18]line [17:56:18]line [17:56:18]line [17:56:18]line [17:56:18]line [17:56:18]written 0, free lines is 3287 [17:56:18]MH_Cut [17:56:18]Write to MH i2c: D1 01 00 04 24 01 FA [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: D1 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: D1 01 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: D1 01 00 04 24 00 F9 [17:56:18]Write to MH i2c: 01 00 00 05 24 29 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]OFD Sender: No OFD packet to send [17:56:19]*** Cut start [17:56:19]*** Partial cut [17:56:19]*** CUTSNS_PIN = 1 [17:56:19]*** CUTSNS_PIN = 0 [17:56:19]*** Brake cut motor [17:56:19]Read from MH i2c: 01 [17:56:20]MH_I2C_Read... [17:56:20]*** Stop cut motor [17:56:20]*** Cut end [17:56:20]Read from MH i2c: 01 07 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 07 00 05 24 00 00 00 00 00 FF 0F 3E [17:56:20]process_action close_receipt done [17:56:20]requested_data is exist [17:56:20]produce_requested_data [17:56:20]requested_item fm.sn is exist - process it [17:56:20]wFMCommunicate request_size=4 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 11 00 00 [17:56:20]Write to MH i2c: E2 08 00 06 24 80 11 00 00 00 00 00 00 A4 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 17 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 17 00 06 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F6 [17:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:56:20]wFMCommunicate OK [17:56:20]requested_item fd.num is exist - process it [17:56:20]SAM_PROTO_GetFieldsCounters [17:56:20]wFMCommunicate request_size=4 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 13 00 00 [17:56:20]Write to MH i2c: E2 08 00 07 24 80 13 00 00 00 00 00 00 A7 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 62 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 62 00 07 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 19 FA 00 00 0E 04 04 00 76 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 9E [17:56:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 19 FA 00 00 0E 04 04 00 76 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 [17:56:20]wFMCommunicate OK [17:56:20]SAM_PROTO_GetFieldsCounters done [17:56:20]requested_item shift.num is exist - process it [17:56:20]requested_item shift.opened is exist - process it [17:56:20]req_shift_opened [17:56:20]FM_GetShiftState [17:56:20]SAM_PROTO_GetShiftState [17:56:20]wFMCommunicate request_size=4 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 13 01 00 [17:56:20]Write to MH i2c: E2 08 00 08 24 80 13 01 00 00 00 00 00 A9 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 0E 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 0E 00 08 24 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 49 [17:56:20]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:56:20]wFMCommunicate OK [17:56:20]SAM_PROTO_GetShiftState done [17:56:20]FM_GetShiftState done [17:56:20]req_shift_opened done [17:56:20]requested_item shift.open_date is exist - process it [17:56:20]req_shift_open_date [17:56:20]req_shift_open_date done [17:56:20]produce_requested_data done [17:56:20]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64025,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:56:20]process_action_free close_receipt [17:56:20]json_value_free [17:56:20]json_value_free done [17:56:20]process_json_proto returns [17:56:20]Send response to host [17:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64025,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:56:20]free response buf [17:56:20]execute_script done [17:56:20]execute_script returns [17:56:20]free content buf [17:56:20]Sock 9.Close socket [17:56:20]Sock 9.Thread stoped [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:15]accept exits with 7 [17:57:15]New connection [17:57:15]New thread 3067055460 created [17:57:15]Thread 3066912100 joined [17:57:15]Waiting for new connection... [17:57:15] Sock 7.Parse request [17:57:15]Sock 7.Check first char [17:57:15]Sock 7.First char is OK [17:57:15]request: POST /json_proto HTTP/1.0 [17:57:15]Method: POST [17:57:15]URL: /json_proto [17:57:15]Method is POST - this is cgi request [17:57:15]url: /json_proto [17:57:15]query_string will be loaded in cgi processing [17:57:15]execute_cgi json_proto POST (null) [17:57:15]execute_cgi path=json_proto method=POST [17:57:15]POST find Content-Length [17:57:15]Host: 172.17.60.69:8080 [17:57:15]Content-Length: 685 [17:57:15]Content-Type: application/json [17:57:15] [17:57:15]POST finish read [17:57:15]Found Content-Length = 685 [17:57:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 28.660, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:15]execute_script... [17:57:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 28.660, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:15]POST & json_proto [17:57:15]process_json_proto [17:57:15]json parsed OK: [17:57:15]protocol is kg_v1.0 [17:57:15]action value=close_receipt [17:57:15]process_action close_receipt [17:57:15]cmd_close_receipt [17:57:15]MH_GetDate [17:57:15]Write to MH i2c: F0 00 00 09 24 1C [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: F0 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: F0 09 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: F0 09 00 09 24 00 7F 55 5F 66 6A 96 4A 66 6E [17:57:15]GetLastDocTimeStamp 1717523780 [17:57:15]current date 1717523839 [17:57:15]FM_GetShiftState [17:57:15]SAM_PROTO_GetShiftState [17:57:15]wFMCommunicate request_size=4 [17:57:15]MH_SAM_APDU [17:57:15]CAPDU: 80 13 01 00 [17:57:15]Write to MH i2c: E2 08 00 0A 24 80 13 01 00 00 00 00 00 AB [17:57:15]Write i2c OK [17:57:15]MH_I2C_Read... [17:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:15]Read from MH i2c: E2 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 0E 00 [17:57:15]MH_I2C_Read... [17:57:15]Read from MH i2c: E2 0E 00 0A 24 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 4B [17:57:15]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:57:15]wFMCommunicate OK [17:57:15]SAM_PROTO_GetShiftState done [17:57:15]FM_GetShiftState done [17:57:15]opened in 1717459574 [17:57:15]opened+sec_in_day 1717545974 [17:57:15]quantity*price = 100023 [17:57:15]sum+1 = 100024 [17:57:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 111 04.06.2024 17:57 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64026 ФПД: 204933547119802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175719&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64026&fm=204933547119802&tin=02508201610067®Number=0000000000092737&sum=100000 [17:57:16]StoreToDocumentArchive [17:57:16]shift 374 fd 64026 [17:57:16]save to /storage/0374/doc_00064026 [17:57:16]save last doc name /storage/0374/doc_00064026 to /storage/kkm_last_doc_name [17:57:16]save OK [17:57:16]Clear old archive folders... [17:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:57:16]tlvbuf is B6EF36A0 [17:57:16]SAM_PROTO_ClearQueue [17:57:16]wFMCommunicate request_size=4 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 09 00 00 [17:57:16]Write to MH i2c: E2 08 00 17 24 80 09 00 00 00 00 00 00 AD [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 17 24 00 90 00 AF [17:57:16]RAPDU: 90 00 [17:57:16]wFMCommunicate OK [17:57:16]SAM_PROTO_ClearQueue done [17:57:16]KKMCreateOFDPacket [17:57:16]OFDProtocolAddRootSTLVToBuf [17:57:16]FM_MakeSignedData [17:57:16]FM_MakeSignedData [17:57:16]SAM_PROTO_SignData [17:57:16]wFMCommunicate request_size=4 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 0D 01 02 [17:57:16]Write to MH i2c: E2 08 00 18 24 80 0D 01 02 00 00 00 00 B5 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:16]Read from MH i2c: E2 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 [17:57:16]MH_I2C_Read... [17:57:16]Read from MH i2c: E2 03 00 18 24 00 90 00 B0 [17:57:16]RAPDU: 90 00 [17:57:16]wFMCommunicate OK [17:57:16]wFMCommunicate request_size=255 [17:57:16]MH_SAM_APDU [17:57:16]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 6F 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7F 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1A FA 00 00 35 04 06 00 BA 62 [17:57:16]Write to MH i2c: E2 02 01 19 24 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 6F 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7F 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1A FA 00 00 35 04 06 00 BA 62 00 00 D4 [17:57:16]Write i2c OK [17:57:16]MH_I2C_Read... [17:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:17]Read from MH i2c: E2 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 03 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 03 00 19 24 00 90 00 B1 [17:57:17]RAPDU: 90 00 [17:57:17]wFMCommunicate OK [17:57:17]wFMCommunicate request_size=9 [17:57:17]MH_SAM_APDU [17:57:17]CAPDU: 80 0D 02 02 04 CF 47 54 BA [17:57:17]Write to MH i2c: E2 0C 00 1A 24 80 0D 02 02 04 00 CF 47 54 BA 00 00 E4 [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:17]Read from MH i2c: E2 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 03 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 03 00 1A 24 00 90 00 B2 [17:57:17]RAPDU: 90 00 [17:57:17]wFMCommunicate OK [17:57:17]wFMCommunicate request_size=4 [17:57:17]MH_SAM_APDU [17:57:17]CAPDU: 80 0D 03 02 [17:57:17]Write to MH i2c: E2 08 00 1B 24 80 0D 03 02 00 00 00 00 BA [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:17]Read from MH i2c: E2 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 0B 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 0B 00 1B 24 00 C9 EC 53 52 57 CE 2F 9D 90 00 06 [17:57:17]RAPDU: C9 EC 53 52 57 CE 2F 9D 90 00 [17:57:17]wFMCommunicate OK [17:57:17]SAM_PROTO_SignData done [17:57:17]FM_MakeSignedData done [17:57:17]CreateOFDProtocolMessage [17:57:17]wFMCommunicate request_size=4 [17:57:17]MH_SAM_APDU [17:57:17]CAPDU: 80 11 00 00 [17:57:17]Write to MH i2c: E2 08 00 1C 24 80 11 00 00 00 00 00 00 BA [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:17]Read from MH i2c: E2 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 17 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: E2 17 00 1C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0C [17:57: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:57:17]wFMCommunicate OK [17:57:17]CreateOFDProtocolMessage done [17:57:17]OFDSenderStorePacket 64026 [17:57:17]StoreOFDPacket docnum=64026 [17:57: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 0E 01 00 00 B8 57 06 01 41 49 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 6F 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7F 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1A FA 00 00 35 04 06 00 BA 62 CF 47 54 BA C9 EC 53 52 57 CE 2F 9D [17:57:17]CheckFolder [17:57:17]dirname=/storage/ofd_packets [17:57:17]CheckFolder done [17:57:17]ProducePacketName [17:57:17]name=ofd_packets/00064026 [17:57:17]NVStorageSaveData ofd_packets/00064026 [17:57:17]File name is /storage/ofd_packets/00064026 [17:57:17]Write 300 bytes [17:57:17]NVStorageSaveData done [17:57:17]OFDSenderStorePacket done [17:57:17]KKMCreateOFDPacket done [17:57:17]NVStorageSaveData kkm_last_timestamp [17:57:17]File name is /storage/kkm_last_timestamp [17:57:17]Write 4 bytes [17:57:17]NVStorageSaveData done [17:57:17]ExternCall_PrintAddStr [17:57:17]wPrintStart [17:57:17]Write to MH i2c: 01 00 00 1D 24 41 [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 07 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 07 00 1D 24 00 00 00 00 00 FF 0F 56 [17:57:17]RasterBufferAndPrint [17:57:17]line Счет N : (1)544947 [17:57:17]line ИНН: 02508201610067 [17:57:17]line Контрольно-Кассовый Чек [17:57:17]line ПРОДАЖА [17:57:17]line ТРК (МРК, ГНК) : 72 [17:57:17]line Товар: 2711190000 [17:57:17]line ГАЗ-К-5 [17:57:17]line 28.660 * 34.90 [17:57:17]line = 1000.23 [17:57:17]line НДС 12% НСП 1% [17:57:17]line > о реализуемом товаре [17:57:17]line ОКРУГЛЕНИЕ: -0.23 [17:57:17]line ИТОГО: 1000.00 [17:57:17]line Внесено: 1000.00 [17:57:17]line СДАЧА: 0.00 [17:57:17]line НСП 1% : 8.85 [17:57:17]line НДС 12% : 106.22 [17:57:17]line Наличными: 1000.00 [17:57:17]line Безнал.: 0.00 [17:57:17]line Место: АЗС № 117 "Партнер Нефть" [17:57:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:57:17]line СНО: Общий режим [17:57:17]line Чек 111 04.06.2024 17:57 [17:57:17]line Смена: 374 ФФД: 1.0 [17:57:17]line ЗНМ: 0300000031 [17:57:17]line РНМ: 0000000000092737 [17:57:17]line Версия ККМ: 001 [17:57:17]line ФМ: 0000000000875074 [17:57:17]line ФД: 64026 [17:57:17]line ФПД: 204933547119802 [17:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175719&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64026&fm=204933547119802&tin=02508201610067®Number=0000000000092737&sum=100000 [17:57:17]OFD Sender: Processing packet 64026 [packets to send 14, broken 13] [17:57:17]ProducePacketName [17:57:17]name=ofd_packets/00064026 [17:57:17]OFD Sender: To server: pG, [17:57:17]CommunicateWithHost lk.salyk.kg:30040 [17:57:17]ConnectInit lk.salyk.kg [17:57:17]written 0, free lines is 4095 [17:57:17]Connected sock=10 [17:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0E 01 00 00 B8 57 06 01 41 49 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F4 6F 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7F 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1A FA 00 00 35 04 06 00 BA 62 CF 47 54 BA C9 EC 53 52 57 CE 2F 9D [17:57: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 16 AD 47 00 0B 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 1A FA 00 00 F4 03 04 00 4D 01 5F 66 B6 04 01 00 00 BF 81 88 3C C4 62 1C C7 [17:57:17]CommunicateWithHost err = 0 [17:57:17]CheckOFDResponse [17:57:17]1017 (14) - 77093643461234 [17:57:17]1041 (16) - 0000000000875074 [17:57:17]1040 (4) - 64026 [17:57:17]1012 (4) - 04.06.2024 11:58 [17:57:17]1206 (1) - 0 [17:57:17]OFD Sender: Remove packet 64026 [17:57:17]ProducePacketName [17:57:17]name=ofd_packets/00064026 [17:57:17]NVStorageDeleteData [17:57:17]Write to MH i2c: 01 00 00 48 24 6C [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 07 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: 01 07 00 48 24 00 00 00 00 00 DD 0C 5C [17:57:17]RasterBufferAndPrint [17:57:17]line [17:57:17]line [17:57:17]line [17:57:17]line [17:57:17]line [17:57:17]written 0, free lines is 3299 [17:57:17]MH_Cut [17:57:17]Write to MH i2c: D1 01 00 4F 24 01 45 [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: D1 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: D1 01 00 [17:57:17]MH_I2C_Read... [17:57:17]Read from MH i2c: D1 01 00 4F 24 00 44 [17:57:17]Write to MH i2c: 01 00 00 50 24 74 [17:57:17]Write i2c OK [17:57:17]MH_I2C_Read... [17:57:18]OFD Sender: No OFD packet to send [17:57:18]*** Cut start [17:57:18]*** Partial cut [17:57:18]*** CUTSNS_PIN = 1 [17:57:18]*** CUTSNS_PIN = 0 [17:57:19]*** Brake cut motor [17:57:19]Read from MH i2c: 01 [17:57:19]MH_I2C_Read... [17:57:19]*** Stop cut motor [17:57:19]*** Cut end [17:57:19]Read from MH i2c: 01 07 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: 01 07 00 50 24 00 00 00 00 00 FF 0F 89 [17:57:19]process_action close_receipt done [17:57:19]requested_data is exist [17:57:19]produce_requested_data [17:57:19]requested_item fm.sn is exist - process it [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 11 00 00 [17:57:19]Write to MH i2c: E2 08 00 51 24 80 11 00 00 00 00 00 00 EF [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 17 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 17 00 51 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 41 [17:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:57:19]wFMCommunicate OK [17:57:19]requested_item fd.num is exist - process it [17:57:19]SAM_PROTO_GetFieldsCounters [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 13 00 00 [17:57:19]Write to MH i2c: E2 08 00 52 24 80 13 00 00 00 00 00 00 F2 [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 62 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 62 00 52 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 1A FA 00 00 0E 04 04 00 76 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 ED [17:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1A FA 00 00 0E 04 04 00 76 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 [17:57:19]wFMCommunicate OK [17:57:19]SAM_PROTO_GetFieldsCounters done [17:57:19]requested_item shift.num is exist - process it [17:57:19]requested_item shift.opened is exist - process it [17:57:19]req_shift_opened [17:57:19]FM_GetShiftState [17:57:19]SAM_PROTO_GetShiftState [17:57:19]wFMCommunicate request_size=4 [17:57:19]MH_SAM_APDU [17:57:19]CAPDU: 80 13 01 00 [17:57:19]Write to MH i2c: E2 08 00 53 24 80 13 01 00 00 00 00 00 F4 [17:57:19]Write i2c OK [17:57:19]MH_I2C_Read... [17:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:19]Read from MH i2c: E2 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 0E 00 [17:57:19]MH_I2C_Read... [17:57:19]Read from MH i2c: E2 0E 00 53 24 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 94 [17:57:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:57:19]wFMCommunicate OK [17:57:19]SAM_PROTO_GetShiftState done [17:57:19]FM_GetShiftState done [17:57:19]req_shift_opened done [17:57:19]requested_item shift.open_date is exist - process it [17:57:19]req_shift_open_date [17:57:19]req_shift_open_date done [17:57:19]produce_requested_data done [17:57:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64026,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:57:19]process_action_free close_receipt [17:57:19]json_value_free [17:57:19]json_value_free done [17:57:19]process_json_proto returns [17:57:19]Send response to host [17:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64026,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:57:19]free response buf [17:57:19]execute_script done [17:57:19]execute_script returns [17:57:19]free content buf [17:57:19]Sock 7.Close socket [17:57:19]Sock 7.Thread stoped [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:30]accept exits with 9 [17:57:30]New connection [17:57:30]New thread 3066912100 created [17:57:30]Thread 3067055460 joined [17:57:30]Waiting for new connection... [17:57:30] Sock 9.Parse request [17:57:30]Sock 9.Check first char [17:57:30]Sock 9.First char is OK [17:57:30]request: POST /json_proto HTTP/1.0 [17:57:30]Method: POST [17:57:30]URL: /json_proto [17:57:30]Method is POST - this is cgi request [17:57:30]url: /json_proto [17:57:30]query_string will be loaded in cgi processing [17:57:30]execute_cgi json_proto POST (null) [17:57:30]execute_cgi path=json_proto method=POST [17:57:30]POST find Content-Length [17:57:30]Host: 172.17.60.69:8080 [17:57:30]Content-Length: 677 [17:57:30]Content-Type: application/json [17:57:30] [17:57:30]POST finish read [17:57:30]Found Content-Length = 677 [17:57:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544951", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:30]execute_script... [17:57:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544951", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:30]POST & json_proto [17:57:30]process_json_proto [17:57:30]json parsed OK: [17:57:30]protocol is kg_v1.0 [17:57:30]action value=close_receipt [17:57:30]process_action close_receipt [17:57:30]cmd_close_receipt [17:57:30]MH_GetDate [17:57:30]Write to MH i2c: F0 00 00 54 24 67 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: F0 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: F0 09 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: F0 09 00 54 24 00 8E 55 5F 66 6A 96 4A 66 C8 [17:57:30]GetLastDocTimeStamp 1717523839 [17:57:30]current date 1717523854 [17:57:30]FM_GetShiftState [17:57:30]SAM_PROTO_GetShiftState [17:57:30]wFMCommunicate request_size=4 [17:57:30]MH_SAM_APDU [17:57:30]CAPDU: 80 13 01 00 [17:57:30]Write to MH i2c: E2 08 00 55 24 80 13 01 00 00 00 00 00 F6 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:30]Read from MH i2c: E2 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 0E 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 0E 00 55 24 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 96 [17:57:30]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:57:30]wFMCommunicate OK [17:57:30]SAM_PROTO_GetShiftState done [17:57:30]FM_GetShiftState done [17:57:30]opened in 1717459574 [17:57:30]opened+sec_in_day 1717545974 [17:57:30]quantity*price = 30038 [17:57:30]sum+1 = 30039 [17:57:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 112 04.06.2024 17:57 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64027 ФПД: 280116061628033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175734&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64027&fm=280116061628033&tin=02508201610067®Number=0000000000092737&sum=30000 [17:57:31]StoreToDocumentArchive [17:57:31]shift 374 fd 64027 [17:57:31]save to /storage/0374/doc_00064027 [17:57:31]save last doc name /storage/0374/doc_00064027 to /storage/kkm_last_doc_name [17:57:31]save OK [17:57:31]Clear old archive folders... [17:57:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:31]tlvbuf is B6F6E470 [17:57:31]SAM_PROTO_ClearQueue [17:57:31]wFMCommunicate request_size=4 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 09 00 00 [17:57:31]Write to MH i2c: E2 08 00 62 24 80 09 00 00 00 00 00 00 F8 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 62 24 00 90 00 FA [17:57:31]RAPDU: 90 00 [17:57:31]wFMCommunicate OK [17:57:31]SAM_PROTO_ClearQueue done [17:57:31]KKMCreateOFDPacket [17:57:31]OFDProtocolAddRootSTLVToBuf [17:57:31]FM_MakeSignedData [17:57:31]FM_MakeSignedData [17:57:31]SAM_PROTO_SignData [17:57:31]wFMCommunicate request_size=4 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 0D 01 02 [17:57:31]Write to MH i2c: E2 08 00 63 24 80 0D 01 02 00 00 00 00 00 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 63 24 00 90 00 FB [17:57:31]RAPDU: 90 00 [17:57:31]wFMCommunicate OK [17:57:31]wFMCommunicate request_size=255 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B FA 00 00 35 04 06 00 FE [17:57:31]Write to MH i2c: E2 02 01 64 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B FA 00 00 35 04 06 00 FE 00 00 27 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 64 24 00 90 00 FC [17:57:31]RAPDU: 90 00 [17:57:31]wFMCommunicate OK [17:57:31]wFMCommunicate request_size=10 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 0D 02 02 05 C3 9A 59 66 81 [17:57:31]Write to MH i2c: E2 0D 00 65 24 80 0D 02 02 05 00 C3 9A 59 66 81 00 00 AA [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 65 24 00 90 00 FD [17:57:31]RAPDU: 90 00 [17:57:31]wFMCommunicate OK [17:57:31]wFMCommunicate request_size=4 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 0D 03 02 [17:57:31]Write to MH i2c: E2 08 00 66 24 80 0D 03 02 00 00 00 00 05 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 0B 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 0B 00 66 24 00 23 C7 DD 5C 32 28 D2 00 90 00 55 [17:57:31]RAPDU: 23 C7 DD 5C 32 28 D2 00 90 00 [17:57:31]wFMCommunicate OK [17:57:31]SAM_PROTO_SignData done [17:57:31]FM_MakeSignedData done [17:57:31]CreateOFDProtocolMessage [17:57:31]wFMCommunicate request_size=4 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 11 00 00 [17:57:31]Write to MH i2c: E2 08 00 67 24 80 11 00 00 00 00 00 00 05 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 17 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 17 00 67 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 57 [17:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:57:31]wFMCommunicate OK [17:57:31]CreateOFDProtocolMessage done [17:57:31]OFDSenderStorePacket 64027 [17:57:31]StoreOFDPacket docnum=64027 [17:57: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 0F 01 00 00 4D 48 07 01 60 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B FA 00 00 35 04 06 00 FE C3 9A 59 66 81 23 C7 DD 5C 32 28 D2 00 [17:57:31]CheckFolder [17:57:31]dirname=/storage/ofd_packets [17:57:31]CheckFolder done [17:57:31]ProducePacketName [17:57:31]name=ofd_packets/00064027 [17:57:31]NVStorageSaveData ofd_packets/00064027 [17:57:31]File name is /storage/ofd_packets/00064027 [17:57:31]Write 301 bytes [17:57:31]NVStorageSaveData done [17:57:31]OFDSenderStorePacket done [17:57:31]KKMCreateOFDPacket done [17:57:31]NVStorageSaveData kkm_last_timestamp [17:57:31]File name is /storage/kkm_last_timestamp [17:57:31]Write 4 bytes [17:57:31]NVStorageSaveData done [17:57:31]ExternCall_PrintAddStr [17:57:31]wPrintStart [17:57:31]Write to MH i2c: 01 00 00 68 24 8C [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: 01 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: 01 07 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: 01 07 00 68 24 00 00 00 00 00 FF 0F A1 [17:57:31]RasterBufferAndPrint [17:57:31]line Счет N : (1)544951 [17:57:31]line ИНН: 02508201610067 [17:57:31]line Контрольно-Кассовый Чек [17:57:31]line ПРОДАЖА [17:57:31]line ТРК (МРК, ГНК) : 22 [17:57:31]line Товар: 2710124130 [17:57:31]line Аи-92-К-5 [17:57:31]line 4.490 * 66.90 [17:57:31]line = 300.38 [17:57:31]line НДС 12% НСП 1% [17:57:31]line > о реализуемом товаре [17:57:31]line ОКРУГЛЕНИЕ: -0.38 [17:57:31]line ИТОГО: 300.00 [17:57:31]line Внесено: 300.00 [17:57:31]line СДАЧА: 0.00 [17:57:31]line НСП 1% : 2.66 [17:57:31]line НДС 12% : 31.90 [17:57:31]line Наличными: 300.00 [17:57:31]line Безнал.: 0.00 [17:57:31]line Место: АЗС № 117 "Партнер Нефть" [17:57:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:57:31]line СНО: Общий режим [17:57:31]line Чек 112 04.06.2024 17:57 [17:57:31]line Смена: 374 ФФД: 1.0 [17:57:31]line ЗНМ: 0300000031 [17:57:31]line РНМ: 0000000000092737 [17:57:31]line Версия ККМ: 001 [17:57:31]line ФМ: 0000000000875074 [17:57:31]line ФД: 64027 [17:57:31]line ФПД: 280116061628033 [17:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175734&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64027&fm=280116061628033&tin=02508201610067®Number=0000000000092737&sum=30000 [17:57:32]OFD Sender: Processing packet 64027 [packets to send 14, broken 13] [17:57:32]ProducePacketName [17:57:32]name=ofd_packets/00064027 [17:57:32]OFD Sender: To server: pG, [17:57:32]CommunicateWithHost lk.salyk.kg:30040 [17:57:32]ConnectInit lk.salyk.kg [17:57:32]written 0, free lines is 4095 [17:57:32]Connected sock=10 [17:57: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 0F 01 00 00 4D 48 07 01 60 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B FA 00 00 35 04 06 00 FE C3 9A 59 66 81 23 C7 DD 5C 32 28 D2 00 [17:57: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 53 82 47 00 54 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1B FA 00 00 F4 03 04 00 5B 01 5F 66 B6 04 01 00 00 D7 CF 1E 80 70 29 AC 6C [17:57:32]CommunicateWithHost err = 0 [17:57:32]CheckOFDResponse [17:57:32]1017 (14) - 77093643461234 [17:57:32]1041 (16) - 0000000000875074 [17:57:32]1040 (4) - 64027 [17:57:32]1012 (4) - 04.06.2024 11:58 [17:57:32]1206 (1) - 0 [17:57:32]OFD Sender: Remove packet 64027 [17:57:32]ProducePacketName [17:57:32]name=ofd_packets/00064027 [17:57:32]NVStorageDeleteData [17:57:32]Write to MH i2c: 01 00 00 93 24 B7 [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: 01 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: 01 07 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: 01 07 00 93 24 00 00 00 00 00 E0 0C AA [17:57:32]RasterBufferAndPrint [17:57:32]line [17:57:32]line [17:57:32]line [17:57:32]line [17:57:32]line [17:57:32]written 0, free lines is 3302 [17:57:32]MH_Cut [17:57:32]Write to MH i2c: D1 01 00 9A 24 01 90 [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: D1 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: D1 01 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: D1 01 00 9A 24 00 8F [17:57:32]Write to MH i2c: 01 00 00 9B 24 BF [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:33]OFD Sender: No OFD packet to send [17:57:33]*** Cut start [17:57:33]*** Partial cut [17:57:33]*** CUTSNS_PIN = 1 [17:57:33]*** CUTSNS_PIN = 0 [17:57:33]*** Brake cut motor [17:57:34]Read from MH i2c: 01 [17:57:34]MH_I2C_Read... [17:57:34]*** Stop cut motor [17:57:34]*** Cut end [17:57:34]Read from MH i2c: 01 07 00 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: 01 07 00 9B 24 00 00 00 00 00 FF 0F D4 [17:57:34]process_action close_receipt done [17:57:34]requested_data is exist [17:57:34]produce_requested_data [17:57:34]requested_item fm.sn is exist - process it [17:57:34]wFMCommunicate request_size=4 [17:57:34]MH_SAM_APDU [17:57:34]CAPDU: 80 11 00 00 [17:57:34]Write to MH i2c: E2 08 00 9C 24 80 11 00 00 00 00 00 00 3A [17:57:34]Write i2c OK [17:57:34]MH_I2C_Read... [17:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:34]Read from MH i2c: E2 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: E2 17 00 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: E2 17 00 9C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8C [17:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:57:34]wFMCommunicate OK [17:57:34]requested_item fd.num is exist - process it [17:57:34]SAM_PROTO_GetFieldsCounters [17:57:34]wFMCommunicate request_size=4 [17:57:34]MH_SAM_APDU [17:57:34]CAPDU: 80 13 00 00 [17:57:34]Write to MH i2c: E2 08 00 9D 24 80 13 00 00 00 00 00 00 3D [17:57:34]Write i2c OK [17:57:34]MH_I2C_Read... [17:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:34]Read from MH i2c: E2 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: E2 62 00 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: E2 62 00 9D 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 1B FA 00 00 0E 04 04 00 76 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 3C [17:57: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 1B FA 00 00 0E 04 04 00 76 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 [17:57:34]wFMCommunicate OK [17:57:34]SAM_PROTO_GetFieldsCounters done [17:57:34]requested_item shift.num is exist - process it [17:57:34]requested_item shift.opened is exist - process it [17:57:34]req_shift_opened [17:57:34]FM_GetShiftState [17:57:34]SAM_PROTO_GetShiftState [17:57:34]wFMCommunicate request_size=4 [17:57:34]MH_SAM_APDU [17:57:34]CAPDU: 80 13 01 00 [17:57:34]Write to MH i2c: E2 08 00 9E 24 80 13 01 00 00 00 00 00 3F [17:57:34]Write i2c OK [17:57:34]MH_I2C_Read... [17:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:34]Read from MH i2c: E2 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: E2 0E 00 [17:57:34]MH_I2C_Read... [17:57:34]Read from MH i2c: E2 0E 00 9E 24 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 DF [17:57:34]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:57:34]wFMCommunicate OK [17:57:34]SAM_PROTO_GetShiftState done [17:57:34]FM_GetShiftState done [17:57:34]req_shift_opened done [17:57:34]requested_item shift.open_date is exist - process it [17:57:34]req_shift_open_date [17:57:34]req_shift_open_date done [17:57:34]produce_requested_data done [17:57:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64027,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:57:34]process_action_free close_receipt [17:57:34]json_value_free [17:57:34]json_value_free done [17:57:34]process_json_proto returns [17:57:34]Send response to host [17:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64027,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:57:34]free response buf [17:57:34]execute_script done [17:57:34]execute_script returns [17:57:34]free content buf [17:57:34]Sock 9.Close socket [17:57:34]Sock 9.Thread stoped [17:57:38]OFD Sender: No OFD packet to send [17:57:41]accept exits with 7 [17:57:41]New connection [17:57:41]New thread 3067055460 created [17:57:41]Thread 3066912100 joined [17:57:41]Waiting for new connection... [17:57:41] Sock 7.Parse request [17:57:41]Sock 7.Check first char [17:57:41]Sock 7.First char is OK [17:57:41]request: POST /json_proto HTTP/1.0 [17:57:41]Method: POST [17:57:41]URL: /json_proto [17:57:41]Method is POST - this is cgi request [17:57:41]url: /json_proto [17:57:41]query_string will be loaded in cgi processing [17:57:41]execute_cgi json_proto POST (null) [17:57:41]execute_cgi path=json_proto method=POST [17:57:41]POST find Content-Length [17:57:41]Host: 172.17.60.69:8080 [17:57:41]Content-Length: 978 [17:57:41]Content-Type: application/json [17:57:41] [17:57:41]POST finish read [17:57:41]Found Content-Length = 978 [17:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 24.870, "sum" : 1800.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 12.43 \u0441\u043E\u043C", "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:41]execute_script... [17:57:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 24.870, "sum" : 1800.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 117\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 12.43 \u0441\u043E\u043C", "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:41]POST & json_proto [17:57:41]process_json_proto [17:57:41]json parsed OK: [17:57:41]protocol is kg_v1.0 [17:57:41]action value=close_receipt [17:57:41]process_action close_receipt [17:57:41]cmd_close_receipt [17:57:41]MH_GetDate [17:57:41]Write to MH i2c: F0 00 00 9F 24 B2 [17:57:41]Write i2c OK [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: F0 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: F0 09 00 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: F0 09 00 9F 24 00 99 55 5F 66 6A 96 4A 66 1E [17:57:41]GetLastDocTimeStamp 1717523854 [17:57:41]current date 1717523865 [17:57:41]FM_GetShiftState [17:57:41]SAM_PROTO_GetShiftState [17:57:41]wFMCommunicate request_size=4 [17:57:41]MH_SAM_APDU [17:57:41]CAPDU: 80 13 01 00 [17:57:41]Write to MH i2c: E2 08 00 A0 24 80 13 01 00 00 00 00 00 41 [17:57:41]Write i2c OK [17:57:41]MH_I2C_Read... [17:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:41]Read from MH i2c: E2 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: E2 0E 00 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: E2 0E 00 A0 24 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 E1 [17:57:41]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:57:41]wFMCommunicate OK [17:57:41]SAM_PROTO_GetShiftState done [17:57:41]FM_GetShiftState done [17:57:41]opened in 1717459574 [17:57:41]opened+sec_in_day 1717545974 [17:57:41]quantity*price = 180058 [17:57:41]sum+1 = 180060 [17:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 113 04.06.2024 17:57 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Дисконтная программа ДТ номер 117 сэкономлено 12.43 сом ФМ: 0000000000875074 ФД: 64028 ФПД: 178970955153326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175746&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64028&fm=178970955153326&tin=02508201610067®Number=0000000000092737&sum=180000 [17:57:42]StoreToDocumentArchive [17:57:42]shift 374 fd 64028 [17:57:42]save to /storage/0374/doc_00064028 [17:57:42]save last doc name /storage/0374/doc_00064028 to /storage/kkm_last_doc_name [17:57:42]save OK [17:57:42]Clear old archive folders... [17:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:57:42]tlvbuf is 012CB640 [17:57:42]SAM_PROTO_ClearQueue [17:57:42]wFMCommunicate request_size=4 [17:57:42]MH_SAM_APDU [17:57:42]CAPDU: 80 09 00 00 [17:57:42]Write to MH i2c: E2 08 00 AD 24 80 09 00 00 00 00 00 00 43 [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:42]Read from MH i2c: E2 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 03 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 03 00 AD 24 00 90 00 45 [17:57:42]RAPDU: 90 00 [17:57:42]wFMCommunicate OK [17:57:42]SAM_PROTO_ClearQueue done [17:57:42]KKMCreateOFDPacket [17:57:42]OFDProtocolAddRootSTLVToBuf [17:57:42]FM_MakeSignedData [17:57:42]FM_MakeSignedData [17:57:42]SAM_PROTO_SignData [17:57:42]wFMCommunicate request_size=4 [17:57:42]MH_SAM_APDU [17:57:42]CAPDU: 80 0D 01 02 [17:57:42]Write to MH i2c: E2 08 00 AE 24 80 0D 01 02 00 00 00 00 4B [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:43]Read from MH i2c: E2 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 AE 24 00 90 00 46 [17:57:43]RAPDU: 90 00 [17:57:43]wFMCommunicate OK [17:57:43]wFMCommunicate request_size=255 [17:57:43]MH_SAM_APDU [17:57:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 61 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 9A 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1C FA 00 00 35 04 06 00 A2 C5 EC 34 [17:57:43]Write to MH i2c: E2 02 01 AF 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 61 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 9A 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1C FA 00 00 35 04 06 00 A2 C5 EC 34 00 00 E6 [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:43]OFD Sender: No OFD packet to send [17:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:43]Read from MH i2c: E2 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 AF 24 00 90 00 47 [17:57:43]RAPDU: 90 00 [17:57:43]wFMCommunicate OK [17:57:43]wFMCommunicate request_size=7 [17:57:43]MH_SAM_APDU [17:57:43]CAPDU: 80 0D 02 02 02 FF AE [17:57:43]Write to MH i2c: E2 0A 00 B0 24 80 0D 02 02 02 00 FF AE 00 00 FF [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:43]Read from MH i2c: E2 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 B0 24 00 90 00 48 [17:57:43]RAPDU: 90 00 [17:57:43]wFMCommunicate OK [17:57:43]wFMCommunicate request_size=4 [17:57:43]MH_SAM_APDU [17:57:43]CAPDU: 80 0D 03 02 [17:57:43]Write to MH i2c: E2 08 00 B1 24 80 0D 03 02 00 00 00 00 50 [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:43]Read from MH i2c: E2 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 0B 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 0B 00 B1 24 00 3F 4F 39 CC 8D 7A 6D 9D 90 00 F5 [17:57:43]RAPDU: 3F 4F 39 CC 8D 7A 6D 9D 90 00 [17:57:43]wFMCommunicate OK [17:57:43]SAM_PROTO_SignData done [17:57:43]FM_MakeSignedData done [17:57:43]CreateOFDProtocolMessage [17:57:43]wFMCommunicate request_size=4 [17:57:43]MH_SAM_APDU [17:57:43]CAPDU: 80 11 00 00 [17:57:43]Write to MH i2c: E2 08 00 B2 24 80 11 00 00 00 00 00 00 50 [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:43]Read from MH i2c: E2 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 17 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 17 00 B2 24 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:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:57:43]wFMCommunicate OK [17:57:43]CreateOFDProtocolMessage done [17:57:43]OFDSenderStorePacket 64028 [17:57:43]StoreOFDPacket docnum=64028 [17:57:43]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 47 D4 04 01 6B 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 61 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 9A 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1C FA 00 00 35 04 06 00 A2 C5 EC 34 FF AE 3F 4F 39 CC 8D 7A 6D 9D [17:57:43]CheckFolder [17:57:43]dirname=/storage/ofd_packets [17:57:43]CheckFolder done [17:57:43]ProducePacketName [17:57:43]name=ofd_packets/00064028 [17:57:43]NVStorageSaveData ofd_packets/00064028 [17:57:43]File name is /storage/ofd_packets/00064028 [17:57:43]Write 298 bytes [17:57:43]NVStorageSaveData done [17:57:43]OFDSenderStorePacket done [17:57:43]KKMCreateOFDPacket done [17:57:43]NVStorageSaveData kkm_last_timestamp [17:57:43]File name is /storage/kkm_last_timestamp [17:57:43]Write 4 bytes [17:57:43]NVStorageSaveData done [17:57:43]ExternCall_PrintAddStr [17:57:43]wPrintStart [17:57:43]Write to MH i2c: 01 00 00 B3 24 D7 [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: 01 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: 01 07 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: 01 07 00 B3 24 00 00 00 00 00 FF 0F EC [17:57:43]RasterBufferAndPrint [17:57:43]line Счет N : (1)544949 [17:57:43]line ИНН: 02508201610067 [17:57:43]line Контрольно-Кассовый Чек [17:57:43]line ПРОДАЖА [17:57:43]line ТРК (МРК, ГНК) : 11 [17:57:43]line Товар: 2710194210 [17:57:43]line ДТ-К-5 [17:57:43]line 24.870 * 72.40 [17:57:43]line = 1800.59 [17:57:43]line НДС 12% НСП 1% [17:57:43]line > о реализуемом товаре [17:57:43]line ОКРУГЛЕНИЕ: -0.59 [17:57:43]line ИТОГО: 1800.00 [17:57:43]line Внесено: 1800.00 [17:57:43]line СДАЧА: 0.00 [17:57:43]line НСП 1% : 15.93 [17:57:43]line НДС 12% : 191.21 [17:57:43]line Наличными: 1800.00 [17:57:43]line Безнал.: 0.00 [17:57:43]line Место: АЗС № 117 "Партнер Нефть" [17:57:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:57:43]line СНО: Общий режим [17:57:43]line Чек 113 04.06.2024 17:57 [17:57:43]line Смена: 374 ФФД: 1.0 [17:57:43]line ЗНМ: 0300000031 [17:57:43]line РНМ: 0000000000092737 [17:57:43]line Версия ККМ: 001 [17:57:43]line [17:57:43]line Дисконтная программа [17:57:43]line ДТ [17:57:43]line номер 117 [17:57:43]line сэкономлено 12.43 сом [17:57:43]line ФМ: 0000000000875074 [17:57:43]line ФД: 64028 [17:57:43]line ФПД: 178970955153326 [17:57:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175746&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64028&fm=178970955153326&tin=02508201610067®Number=0000000000092737&sum=180000 [17:57:43]written 0, free lines is 4095 [17:57:43]OFD Sender: Processing packet 64028 [packets to send 14, broken 13] [17:57:43]ProducePacketName [17:57:43]name=ofd_packets/00064028 [17:57:43]OFD Sender: To server: pG, [17:57:43]CommunicateWithHost lk.salyk.kg:30040 [17:57:43]ConnectInit lk.salyk.kg [17:57:43]Connected sock=10 [17:57: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 0C 01 00 00 47 D4 04 01 6B 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 61 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 9A 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1C FA 00 00 35 04 06 00 A2 C5 EC 34 FF AE 3F 4F 39 CC 8D 7A 6D 9D [17:57: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 03 9A 47 00 A2 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1C FA 00 00 F4 03 04 00 67 01 5F 66 B6 04 01 00 00 AA 4A BA F4 0F B7 17 23 [17:57:43]CommunicateWithHost err = 0 [17:57:43]CheckOFDResponse [17:57:43]1017 (14) - 77093643461234 [17:57:43]1041 (16) - 0000000000875074 [17:57:43]1040 (4) - 64028 [17:57:43]1012 (4) - 04.06.2024 11:58 [17:57:43]1206 (1) - 0 [17:57:43]OFD Sender: Remove packet 64028 [17:57:43]ProducePacketName [17:57:43]name=ofd_packets/00064028 [17:57:43]NVStorageDeleteData [17:57:43]Write to MH i2c: 01 00 00 E3 24 07 [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: 01 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: 01 07 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: 01 07 00 E3 24 00 00 00 00 00 85 0C 9F [17:57:43]RasterBufferAndPrint [17:57:43]line [17:57:43]line [17:57:43]line [17:57:43]line [17:57:43]line [17:57:43]written 0, free lines is 3214 [17:57:43]MH_Cut [17:57:43]Write to MH i2c: D1 01 00 EA 24 01 E0 [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: D1 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: D1 01 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: D1 01 00 EA 24 00 DF [17:57:43]Write to MH i2c: 01 00 00 EB 24 0F [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:44]OFD Sender: No OFD packet to send [17:57:44]*** Cut start [17:57:44]*** Partial cut [17:57:44]*** CUTSNS_PIN = 1 [17:57:44]*** CUTSNS_PIN = 0 [17:57:45]*** Brake cut motor [17:57:45]Read from MH i2c: 01 [17:57:45]MH_I2C_Read... [17:57:45]*** Stop cut motor [17:57:45]*** Cut end [17:57:45]Read from MH i2c: 01 07 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: 01 07 00 EB 24 00 00 00 00 00 FF 0F 24 [17:57:45]process_action close_receipt done [17:57:45]requested_data is exist [17:57:45]produce_requested_data [17:57:45]requested_item fm.sn is exist - process it [17:57:45]wFMCommunicate request_size=4 [17:57:45]MH_SAM_APDU [17:57:45]CAPDU: 80 11 00 00 [17:57:45]Write to MH i2c: E2 08 00 EC 24 80 11 00 00 00 00 00 00 8A [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:45]Read from MH i2c: E2 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 17 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 17 00 EC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DC [17:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:57:45]wFMCommunicate OK [17:57:45]requested_item fd.num is exist - process it [17:57:45]SAM_PROTO_GetFieldsCounters [17:57:45]wFMCommunicate request_size=4 [17:57:45]MH_SAM_APDU [17:57:45]CAPDU: 80 13 00 00 [17:57:45]Write to MH i2c: E2 08 00 ED 24 80 13 00 00 00 00 00 00 8D [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:45]Read from MH i2c: E2 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 62 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 62 00 ED 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 1C FA 00 00 0E 04 04 00 76 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 90 [17:57: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 1C FA 00 00 0E 04 04 00 76 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 [17:57:45]wFMCommunicate OK [17:57:45]SAM_PROTO_GetFieldsCounters done [17:57:45]requested_item shift.num is exist - process it [17:57:45]requested_item shift.opened is exist - process it [17:57:45]req_shift_opened [17:57:45]FM_GetShiftState [17:57:45]SAM_PROTO_GetShiftState [17:57:45]wFMCommunicate request_size=4 [17:57:45]MH_SAM_APDU [17:57:45]CAPDU: 80 13 01 00 [17:57:45]Write to MH i2c: E2 08 00 EE 24 80 13 01 00 00 00 00 00 8F [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:45]Read from MH i2c: E2 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 0E 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: E2 0E 00 EE 24 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 2F [17:57:45]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:57:45]wFMCommunicate OK [17:57:45]SAM_PROTO_GetShiftState done [17:57:45]FM_GetShiftState done [17:57:45]req_shift_opened done [17:57:45]requested_item shift.open_date is exist - process it [17:57:45]req_shift_open_date [17:57:45]req_shift_open_date done [17:57:45]produce_requested_data done [17:57:45]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64028,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:57:45]process_action_free close_receipt [17:57:45]json_value_free [17:57:45]json_value_free done [17:57:45]process_json_proto returns [17:57:45]Send response to host [17:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64028,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:57:45]free response buf [17:57:45]execute_script done [17:57:45]execute_script returns [17:57:45]free content buf [17:57:45]Sock 7.Close socket [17:57:45]Sock 7.Thread stoped [17:57:49]OFD Sender: No OFD packet to send [17:57:53]accept exits with 9 [17:57:53]New connection [17:57:53]New thread 3066912100 created [17:57:53]Thread 3067055460 joined [17:57:53]Waiting for new connection... [17:57:53] Sock 9.Parse request [17:57:53]Sock 9.Check first char [17:57:53]Sock 9.First char is OK [17:57:53]request: POST /json_proto HTTP/1.0 [17:57:53]Method: POST [17:57:53]URL: /json_proto [17:57:53]Method is POST - this is cgi request [17:57:53]url: /json_proto [17:57:53]query_string will be loaded in cgi processing [17:57:53]execute_cgi json_proto POST (null) [17:57:53]execute_cgi path=json_proto method=POST [17:57:53]POST find Content-Length [17:57:53]Host: 172.17.60.69:8080 [17:57:53]Content-Length: 675 [17:57:53]Content-Type: application/json [17:57:53] [17:57:53]POST finish read [17:57:53]Found Content-Length = 675 [17:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 17.680, "sum" : 1200.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:53]execute_script... [17:57:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 17.680, "sum" : 1200.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:53]POST & json_proto [17:57:53]process_json_proto [17:57:53]json parsed OK: [17:57:53]protocol is kg_v1.0 [17:57:53]action value=close_receipt [17:57:53]process_action close_receipt [17:57:53]cmd_close_receipt [17:57:53]MH_GetDate [17:57:53]Write to MH i2c: F0 00 00 EF 24 02 [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: F0 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: F0 09 00 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: F0 09 00 EF 24 00 A6 55 5F 66 6A 96 4A 66 7B [17:57:53]GetLastDocTimeStamp 1717523866 [17:57:53]current date 1717523878 [17:57:53]FM_GetShiftState [17:57:53]SAM_PROTO_GetShiftState [17:57:53]wFMCommunicate request_size=4 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 13 01 00 [17:57:53]Write to MH i2c: E2 08 00 F0 24 80 13 01 00 00 00 00 00 91 [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:53]Read from MH i2c: E2 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 0E 00 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 0E 00 F0 24 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 31 [17:57:53]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:57:53]wFMCommunicate OK [17:57:53]SAM_PROTO_GetShiftState done [17:57:53]FM_GetShiftState done [17:57:53]opened in 1717459574 [17:57:53]opened+sec_in_day 1717545974 [17:57:53]quantity*price = 120047 [17:57:53]sum+1 = 120048 [17:57:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 114 04.06.2024 17:57 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64029 ФПД: 186129586387630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175758&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64029&fm=186129586387630&tin=02508201610067®Number=0000000000092737&sum=120000 [17:57:55]StoreToDocumentArchive [17:57:55]shift 374 fd 64029 [17:57:55]save to /storage/0374/doc_00064029 [17:57:55]save last doc name /storage/0374/doc_00064029 to /storage/kkm_last_doc_name [17:57:55]save OK [17:57:55]Clear old archive folders... [17:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:57:55]tlvbuf is 012D9070 [17:57:55]SAM_PROTO_ClearQueue [17:57:55]wFMCommunicate request_size=4 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 09 00 00 [17:57:55]Write to MH i2c: E2 08 00 FD 24 80 09 00 00 00 00 00 00 93 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:55]Read from MH i2c: E2 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 03 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 03 00 FD 24 00 90 00 95 [17:57:55]RAPDU: 90 00 [17:57:55]wFMCommunicate OK [17:57:55]SAM_PROTO_ClearQueue done [17:57:55]KKMCreateOFDPacket [17:57:55]OFDProtocolAddRootSTLVToBuf [17:57:55]FM_MakeSignedData [17:57:55]FM_MakeSignedData [17:57:55]SAM_PROTO_SignData [17:57:55]wFMCommunicate request_size=4 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 0D 01 02 [17:57:55]Write to MH i2c: E2 08 00 FE 24 80 0D 01 02 00 00 00 00 9B [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:55]Read from MH i2c: E2 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 03 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 03 00 FE 24 00 90 00 96 [17:57:55]RAPDU: 90 00 [17:57:55]wFMCommunicate OK [17:57:55]wFMCommunicate request_size=255 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A6 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1D FA 00 00 35 04 06 00 [17:57:55]Write to MH i2c: E2 02 01 FF 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A6 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1D FA 00 00 35 04 06 00 00 00 0E [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:55]Read from MH i2c: E2 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 03 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 03 00 FF 24 00 90 00 97 [17:57:55]RAPDU: 90 00 [17:57:55]wFMCommunicate OK [17:57:55]wFMCommunicate request_size=11 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 0D 02 02 06 A9 48 AB E0 FA AE [17:57:55]Write to MH i2c: E2 0E 00 00 25 80 0D 02 02 06 00 A9 48 AB E0 FA AE 00 00 CF [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:55]Read from MH i2c: E2 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 03 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 03 00 00 25 00 90 00 99 [17:57:55]RAPDU: 90 00 [17:57:55]wFMCommunicate OK [17:57:55]wFMCommunicate request_size=4 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 0D 03 02 [17:57:55]Write to MH i2c: E2 08 00 01 25 80 0D 03 02 00 00 00 00 A1 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:55]Read from MH i2c: E2 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 0B 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 0B 00 01 25 00 94 4A 9B 62 29 57 5D 72 90 00 CC [17:57:55]RAPDU: 94 4A 9B 62 29 57 5D 72 90 00 [17:57:55]wFMCommunicate OK [17:57:55]SAM_PROTO_SignData done [17:57:55]FM_MakeSignedData done [17:57:55]CreateOFDProtocolMessage [17:57:55]wFMCommunicate request_size=4 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 11 00 00 [17:57:55]Write to MH i2c: E2 08 00 02 25 80 11 00 00 00 00 00 00 A1 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:55]Read from MH i2c: E2 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 17 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 17 00 02 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F3 [17:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:57:55]wFMCommunicate OK [17:57:55]CreateOFDProtocolMessage done [17:57:55]OFDSenderStorePacket 64029 [17:57:55]StoreOFDPacket docnum=64029 [17:57: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 10 01 00 00 6E 55 08 01 02 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A6 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1D FA 00 00 35 04 06 00 A9 48 AB E0 FA AE 94 4A 9B 62 29 57 5D 72 [17:57:55]CheckFolder [17:57:55]dirname=/storage/ofd_packets [17:57:55]CheckFolder done [17:57:55]ProducePacketName [17:57:55]name=ofd_packets/00064029 [17:57:55]NVStorageSaveData ofd_packets/00064029 [17:57:55]File name is /storage/ofd_packets/00064029 [17:57:55]Write 302 bytes [17:57:55]NVStorageSaveData done [17:57:55]OFDSenderStorePacket done [17:57:55]KKMCreateOFDPacket done [17:57:55]NVStorageSaveData kkm_last_timestamp [17:57:55]File name is /storage/kkm_last_timestamp [17:57:55]Write 4 bytes [17:57:55]NVStorageSaveData done [17:57:55]ExternCall_PrintAddStr [17:57:55]wPrintStart [17:57:55]Write to MH i2c: 01 00 00 03 25 28 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: 01 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: 01 07 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: 01 07 00 03 25 00 00 00 00 00 FF 0F 3D [17:57:55]RasterBufferAndPrint [17:57:55]line Счет N : (1)544950 [17:57:55]line ИНН: 02508201610067 [17:57:55]line Контрольно-Кассовый Чек [17:57:55]line ПРОДАЖА [17:57:55]line ТРК (МРК, ГНК) : 44 [17:57:55]line Товар: 2710124130 [17:57:55]line SUPER 92-К-5 [17:57:55]line 17.680 * 67.90 [17:57:55]line = 1200.47 [17:57:55]line НДС 12% НСП 1% [17:57:55]line > о реализуемом товаре [17:57:55]line ОКРУГЛЕНИЕ: -0.47 [17:57:55]line ИТОГО: 1200.00 [17:57:55]line Внесено: 1200.00 [17:57:55]line СДАЧА: 0.00 [17:57:55]line НСП 1% : 10.62 [17:57:55]line НДС 12% : 127.48 [17:57:55]line Наличными: 1200.00 [17:57:55]line Безнал.: 0.00 [17:57:55]line Место: АЗС № 117 "Партнер Нефть" [17:57:55]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [17:57:55]line СНО: Общий режим [17:57:55]line Чек 114 04.06.2024 17:57 [17:57:55]line Смена: 374 ФФД: 1.0 [17:57:55]line ЗНМ: 0300000031 [17:57:55]line РНМ: 0000000000092737 [17:57:55]line Версия ККМ: 001 [17:57:55]line ФМ: 0000000000875074 [17:57:55]line ФД: 64029 [17:57:55]line ФПД: 186129586387630 [17:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T175758&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64029&fm=186129586387630&tin=02508201610067®Number=0000000000092737&sum=120000 [17:57:55]written 0, free lines is 4095 [17:57:55]OFD Sender: Processing packet 64029 [packets to send 14, broken 13] [17:57:55]ProducePacketName [17:57:55]name=ofd_packets/00064029 [17:57:55]OFD Sender: To server: pG, [17:57:55]CommunicateWithHost lk.salyk.kg:30040 [17:57:55]ConnectInit lk.salyk.kg [17:57:55]Connected sock=10 [17:57: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 10 01 00 00 6E 55 08 01 02 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 A6 55 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1D FA 00 00 35 04 06 00 A9 48 AB E0 FA AE 94 4A 9B 62 29 57 5D 72 [17:57: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 A8 13 47 00 BF D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1D FA 00 00 F4 03 04 00 73 01 5F 66 B6 04 01 00 00 7D BF BC 29 A8 55 19 78 [17:57:56]CommunicateWithHost err = 0 [17:57:56]CheckOFDResponse [17:57:56]1017 (14) - 77093643461234 [17:57:56]1041 (16) - 0000000000875074 [17:57:56]1040 (4) - 64029 [17:57:56]1012 (4) - 04.06.2024 11:58 [17:57:56]1206 (1) - 0 [17:57:56]OFD Sender: Remove packet 64029 [17:57:56]ProducePacketName [17:57:56]name=ofd_packets/00064029 [17:57:56]NVStorageDeleteData [17:57:56]Write to MH i2c: 01 00 00 2E 25 53 [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: 01 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: 01 07 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: 01 07 00 2E 25 00 00 00 00 00 FF 0C 65 [17:57:56]RasterBufferAndPrint [17:57:56]line [17:57:56]line [17:57:56]line [17:57:56]line [17:57:56]line [17:57:56]written 0, free lines is 3338 [17:57:56]MH_Cut [17:57:56]Write to MH i2c: D1 01 00 35 25 01 2C [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: D1 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: D1 01 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: D1 01 00 35 25 00 2B [17:57:56]Write to MH i2c: 01 00 00 36 25 5B [17:57:56]Write i2c OK [17:57:56]MH_I2C_Read... [17:57:56]OFD Sender: No OFD packet to send [17:57:56]*** Cut start [17:57:56]*** Partial cut [17:57:56]*** CUTSNS_PIN = 1 [17:57:56]*** CUTSNS_PIN = 0 [17:57:57]*** Brake cut motor [17:57:57]Read from MH i2c: 01 [17:57:57]MH_I2C_Read... [17:57:57]*** Stop cut motor [17:57:57]*** Cut end [17:57:57]Read from MH i2c: 01 07 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: 01 07 00 36 25 00 00 00 00 00 FF 0F 70 [17:57:57]process_action close_receipt done [17:57:57]requested_data is exist [17:57:57]produce_requested_data [17:57:57]requested_item fm.sn is exist - process it [17:57:57]wFMCommunicate request_size=4 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 11 00 00 [17:57:57]Write to MH i2c: E2 08 00 37 25 80 11 00 00 00 00 00 00 D6 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 17 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 17 00 37 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 28 [17:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [17:57:57]wFMCommunicate OK [17:57:57]requested_item fd.num is exist - process it [17:57:57]SAM_PROTO_GetFieldsCounters [17:57:57]wFMCommunicate request_size=4 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 13 00 00 [17:57:57]Write to MH i2c: E2 08 00 38 25 80 13 00 00 00 00 00 00 D9 [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 62 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 62 00 38 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 1D FA 00 00 0E 04 04 00 76 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 E0 [17:57: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 1D FA 00 00 0E 04 04 00 76 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 [17:57:57]wFMCommunicate OK [17:57:57]SAM_PROTO_GetFieldsCounters done [17:57:57]requested_item shift.num is exist - process it [17:57:57]requested_item shift.opened is exist - process it [17:57:57]req_shift_opened [17:57:57]FM_GetShiftState [17:57:57]SAM_PROTO_GetShiftState [17:57:57]wFMCommunicate request_size=4 [17:57:57]MH_SAM_APDU [17:57:57]CAPDU: 80 13 01 00 [17:57:57]Write to MH i2c: E2 08 00 39 25 80 13 01 00 00 00 00 00 DB [17:57:57]Write i2c OK [17:57:57]MH_I2C_Read... [17:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:57]Read from MH i2c: E2 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 0E 00 [17:57:57]MH_I2C_Read... [17:57:57]Read from MH i2c: E2 0E 00 39 25 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7B [17:57:57]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [17:57:57]wFMCommunicate OK [17:57:57]SAM_PROTO_GetShiftState done [17:57:57]FM_GetShiftState done [17:57:57]req_shift_opened done [17:57:57]requested_item shift.open_date is exist - process it [17:57:57]req_shift_open_date [17:57:57]req_shift_open_date done [17:57:57]produce_requested_data done [17:57:57]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64029,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [17:57:57]process_action_free close_receipt [17:57:57]json_value_free [17:57:57]json_value_free done [17:57:57]process_json_proto returns [17:57:57]Send response to host [17:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64029,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [17:57:57]free response buf [17:57:57]execute_script done [17:57:57]execute_script returns [17:57:57]free content buf [17:57:57]Sock 9.Close socket [17:57:57]Sock 9.Thread stoped [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:17]accept exits with 7 [18:09:17]New connection [18:09:17]New thread 3067055460 created [18:09:17]Thread 3066912100 joined [18:09:17]Waiting for new connection... [18:09:17] Sock 7.Parse request [18:09:17]Sock 7.Check first char [18:09:17]Sock 7.First char is OK [18:09:17]request: POST /json_proto HTTP/1.0 [18:09:17]Method: POST [18:09:17]URL: /json_proto [18:09:17]Method is POST - this is cgi request [18:09:17]url: /json_proto [18:09:17]query_string will be loaded in cgi processing [18:09:17]execute_cgi json_proto POST (null) [18:09:17]execute_cgi path=json_proto method=POST [18:09:17]POST find Content-Length [18:09:17]Host: 172.17.60.69:8080 [18:09:17]Content-Length: 677 [18:09:17]Content-Type: application/json [18:09:17] [18:09:17]POST finish read [18:09:17]Found Content-Length = 677 [18:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544970", "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" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:17]execute_script... [18:09:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544970", "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" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:17]POST & json_proto [18:09:17]process_json_proto [18:09:17]json parsed OK: [18:09:17]protocol is kg_v1.0 [18:09:17]action value=close_receipt [18:09:17]process_action close_receipt [18:09:17]cmd_close_receipt [18:09:17]MH_GetDate [18:09:17]Write to MH i2c: F0 00 00 3A 25 4E [18:09:17]Write i2c OK [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: F0 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: F0 09 00 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: F0 09 00 3A 25 00 51 58 5F 66 6A 96 4A 66 75 [18:09:17]GetLastDocTimeStamp 1717523878 [18:09:17]current date 1717524561 [18:09:17]FM_GetShiftState [18:09:17]SAM_PROTO_GetShiftState [18:09:17]wFMCommunicate request_size=4 [18:09:17]MH_SAM_APDU [18:09:17]CAPDU: 80 13 01 00 [18:09:17]Write to MH i2c: E2 08 00 3B 25 80 13 01 00 00 00 00 00 DD [18:09:17]Write i2c OK [18:09:17]MH_I2C_Read... [18:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:17]Read from MH i2c: E2 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 0E 00 [18:09:17]MH_I2C_Read... [18:09:17]Read from MH i2c: E2 0E 00 3B 25 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7D [18:09:17]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:09:17]wFMCommunicate OK [18:09:17]SAM_PROTO_GetShiftState done [18:09:17]FM_GetShiftState done [18:09:17]opened in 1717459574 [18:09:17]opened+sec_in_day 1717545974 [18:09:17]quantity*price = 20003 [18:09:17]sum+1 = 20004 [18:09:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 115 04.06.2024 18:09 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64030 ФПД: 39948965450639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180921&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64030&fm=39948965450639&tin=02508201610067®Number=0000000000092737&sum=20000 [18:09:18]StoreToDocumentArchive [18:09:18]shift 374 fd 64030 [18:09:18]save to /storage/0374/doc_00064030 [18:09:18]save last doc name /storage/0374/doc_00064030 to /storage/kkm_last_doc_name [18:09:18]save OK [18:09:18]Clear old archive folders... [18:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:18]tlvbuf is 012EFE80 [18:09:18]SAM_PROTO_ClearQueue [18:09:18]wFMCommunicate request_size=4 [18:09:18]MH_SAM_APDU [18:09:18]CAPDU: 80 09 00 00 [18:09:18]Write to MH i2c: E2 08 00 48 25 80 09 00 00 00 00 00 00 DF [18:09:18]Write i2c OK [18:09:18]MH_I2C_Read... [18:09:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:18]Read from MH i2c: E2 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 03 00 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 03 00 48 25 00 90 00 E1 [18:09:18]RAPDU: 90 00 [18:09:18]wFMCommunicate OK [18:09:18]SAM_PROTO_ClearQueue done [18:09:18]KKMCreateOFDPacket [18:09:18]OFDProtocolAddRootSTLVToBuf [18:09:18]FM_MakeSignedData [18:09:18]FM_MakeSignedData [18:09:18]SAM_PROTO_SignData [18:09:18]wFMCommunicate request_size=4 [18:09:18]MH_SAM_APDU [18:09:18]CAPDU: 80 0D 01 02 [18:09:18]Write to MH i2c: E2 08 00 49 25 80 0D 01 02 00 00 00 00 E7 [18:09:18]Write i2c OK [18:09:18]MH_I2C_Read... [18:09:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:18]Read from MH i2c: E2 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 03 00 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 03 00 49 25 00 90 00 E2 [18:09:18]RAPDU: 90 00 [18:09:18]wFMCommunicate OK [18:09:18]wFMCommunicate request_size=255 [18:09:18]MH_SAM_APDU [18:09:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 51 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1E FA 00 00 35 04 06 00 24 [18:09:18]Write to MH i2c: E2 02 01 4A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 51 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1E FA 00 00 35 04 06 00 24 00 00 CE [18:09:18]Write i2c OK [18:09:18]MH_I2C_Read... [18:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:18]Read from MH i2c: E2 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 03 00 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 03 00 4A 25 00 90 00 E3 [18:09:18]RAPDU: 90 00 [18:09:18]wFMCommunicate OK [18:09:18]wFMCommunicate request_size=10 [18:09:18]MH_SAM_APDU [18:09:18]CAPDU: 80 0D 02 02 05 55 57 E5 13 8F [18:09:18]Write to MH i2c: E2 0D 00 4B 25 80 0D 02 02 05 00 55 57 E5 13 8F 00 00 27 [18:09:18]Write i2c OK [18:09:18]MH_I2C_Read... [18:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:18]Read from MH i2c: E2 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 03 00 [18:09:18]MH_I2C_Read... [18:09:18]Read from MH i2c: E2 03 00 4B 25 00 90 00 E4 [18:09:18]RAPDU: 90 00 [18:09:18]wFMCommunicate OK [18:09:18]wFMCommunicate request_size=4 [18:09:18]MH_SAM_APDU [18:09:18]CAPDU: 80 0D 03 02 [18:09:18]Write to MH i2c: E2 08 00 4C 25 80 0D 03 02 00 00 00 00 EC [18:09:18]Write i2c OK [18:09:18]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 0B 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 0B 00 4C 25 00 DF A0 41 65 E2 49 E9 B4 90 00 DA [18:09:19]RAPDU: DF A0 41 65 E2 49 E9 B4 90 00 [18:09:19]wFMCommunicate OK [18:09:19]SAM_PROTO_SignData done [18:09:19]FM_MakeSignedData done [18:09:19]CreateOFDProtocolMessage [18:09:19]wFMCommunicate request_size=4 [18:09:19]MH_SAM_APDU [18:09:19]CAPDU: 80 11 00 00 [18:09:19]Write to MH i2c: E2 08 00 4D 25 80 11 00 00 00 00 00 00 EC [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:19]Read from MH i2c: E2 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 17 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: E2 17 00 4D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3E [18:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:09:19]wFMCommunicate OK [18:09:19]CreateOFDProtocolMessage done [18:09:19]OFDSenderStorePacket 64030 [18:09:19]StoreOFDPacket docnum=64030 [18:09: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 0F 01 00 00 33 B4 07 01 D7 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 51 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1E FA 00 00 35 04 06 00 24 55 57 E5 13 8F DF A0 41 65 E2 49 E9 B4 [18:09:19]CheckFolder [18:09:19]dirname=/storage/ofd_packets [18:09:19]CheckFolder done [18:09:19]ProducePacketName [18:09:19]name=ofd_packets/00064030 [18:09:19]NVStorageSaveData ofd_packets/00064030 [18:09:19]File name is /storage/ofd_packets/00064030 [18:09:19]Write 301 bytes [18:09:19]NVStorageSaveData done [18:09:19]OFDSenderStorePacket done [18:09:19]KKMCreateOFDPacket done [18:09:19]NVStorageSaveData kkm_last_timestamp [18:09:19]File name is /storage/kkm_last_timestamp [18:09:19]Write 4 bytes [18:09:19]NVStorageSaveData done [18:09:19]ExternCall_PrintAddStr [18:09:19]wPrintStart [18:09:19]Write to MH i2c: 01 00 00 4E 25 73 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 07 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 07 00 4E 25 00 00 00 00 00 FF 0F 88 [18:09:19]RasterBufferAndPrint [18:09:19]line Счет N : (1)544970 [18:09:19]line ИНН: 02508201610067 [18:09:19]line Контрольно-Кассовый Чек [18:09:19]line ПРОДАЖА [18:09:19]line ТРК (МРК, ГНК) : 22 [18:09:19]line Товар: 2710124130 [18:09:19]line Аи-92-К-5 [18:09:19]line 2.990 * 66.90 [18:09:19]line = 200.03 [18:09:19]line НДС 12% НСП 1% [18:09:19]line > о реализуемом товаре [18:09:19]line ОКРУГЛЕНИЕ: -0.03 [18:09:19]line ИТОГО: 200.00 [18:09:19]line Внесено: 200.00 [18:09:19]line СДАЧА: 0.00 [18:09:19]line НСП 1% : 1.77 [18:09:19]line НДС 12% : 21.24 [18:09:19]line Наличными: 200.00 [18:09:19]line Безнал.: 0.00 [18:09:19]line Место: АЗС № 117 "Партнер Нефть" [18:09:19]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:09:19]line СНО: Общий режим [18:09:19]line Чек 115 04.06.2024 18:09 [18:09:19]line Смена: 374 ФФД: 1.0 [18:09:19]line ЗНМ: 0300000031 [18:09:19]line РНМ: 0000000000092737 [18:09:19]line Версия ККМ: 001 [18:09:19]line ФМ: 0000000000875074 [18:09:19]line ФД: 64030 [18:09:19]line ФПД: 39948965450639 [18:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180921&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64030&fm=39948965450639&tin=02508201610067®Number=0000000000092737&sum=20000 [18:09:19]written 0, free lines is 4095 [18:09:19]OFD Sender: Processing packet 64030 [packets to send 14, broken 13] [18:09:19]ProducePacketName [18:09:19]name=ofd_packets/00064030 [18:09:19]OFD Sender: To server: pG, [18:09:19]CommunicateWithHost lk.salyk.kg:30040 [18:09:19]ConnectInit lk.salyk.kg [18:09:19]Connected sock=10 [18:09: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 0F 01 00 00 33 B4 07 01 D7 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 51 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1E FA 00 00 35 04 06 00 24 55 57 E5 13 8F DF A0 41 65 E2 49 E9 B4 [18:09: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 19 5D 47 00 C1 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1E FA 00 00 F4 03 04 00 1E 04 5F 66 B6 04 01 00 00 F4 81 71 19 98 92 7E 15 [18:09:19]CommunicateWithHost err = 0 [18:09:19]CheckOFDResponse [18:09:19]1017 (14) - 77093643461234 [18:09:19]1041 (16) - 0000000000875074 [18:09:19]1040 (4) - 64030 [18:09:19]1012 (4) - 04.06.2024 12:10 [18:09:19]1206 (1) - 0 [18:09:19]OFD Sender: Remove packet 64030 [18:09:19]ProducePacketName [18:09:19]name=ofd_packets/00064030 [18:09:19]NVStorageDeleteData [18:09:19]Write to MH i2c: 01 00 00 79 25 9E [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 07 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: 01 07 00 79 25 00 00 00 00 00 F2 0C A3 [18:09:19]RasterBufferAndPrint [18:09:19]line [18:09:19]line [18:09:19]line [18:09:19]line [18:09:19]line [18:09:19]written 0, free lines is 3320 [18:09:19]MH_Cut [18:09:19]Write to MH i2c: D1 01 00 80 25 01 77 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: D1 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: D1 01 00 [18:09:19]MH_I2C_Read... [18:09:19]Read from MH i2c: D1 01 00 80 25 00 76 [18:09:19]Write to MH i2c: 01 00 00 81 25 A6 [18:09:19]Write i2c OK [18:09:19]MH_I2C_Read... [18:09:19]OFD Sender: No OFD packet to send [18:09:20]*** Cut start [18:09:20]*** Partial cut [18:09:20]*** CUTSNS_PIN = 1 [18:09:20]*** CUTSNS_PIN = 0 [18:09:20]*** Brake cut motor [18:09:20]Read from MH i2c: 01 [18:09:20]MH_I2C_Read... [18:09:20]*** Stop cut motor [18:09:20]*** Cut end [18:09:20]Read from MH i2c: 01 07 00 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: 01 07 00 81 25 00 00 00 00 00 FF 0F BB [18:09:20]process_action close_receipt done [18:09:20]requested_data is exist [18:09:20]produce_requested_data [18:09:20]requested_item fm.sn is exist - process it [18:09:20]wFMCommunicate request_size=4 [18:09:20]MH_SAM_APDU [18:09:20]CAPDU: 80 11 00 00 [18:09:20]Write to MH i2c: E2 08 00 82 25 80 11 00 00 00 00 00 00 21 [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 17 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 17 00 82 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 73 [18:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:09:21]wFMCommunicate OK [18:09:21]requested_item fd.num is exist - process it [18:09:21]SAM_PROTO_GetFieldsCounters [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 13 00 00 [18:09:21]Write to MH i2c: E2 08 00 83 25 80 13 00 00 00 00 00 00 24 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 62 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 62 00 83 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 1E FA 00 00 0E 04 04 00 76 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 2F [18:09: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 1E FA 00 00 0E 04 04 00 76 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 [18:09:21]wFMCommunicate OK [18:09:21]SAM_PROTO_GetFieldsCounters done [18:09:21]requested_item shift.num is exist - process it [18:09:21]requested_item shift.opened is exist - process it [18:09:21]req_shift_opened [18:09:21]FM_GetShiftState [18:09:21]SAM_PROTO_GetShiftState [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 13 01 00 [18:09:21]Write to MH i2c: E2 08 00 84 25 80 13 01 00 00 00 00 00 26 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 0E 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 0E 00 84 25 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C6 [18:09:21]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:09:21]wFMCommunicate OK [18:09:21]SAM_PROTO_GetShiftState done [18:09:21]FM_GetShiftState done [18:09:21]req_shift_opened done [18:09:21]requested_item shift.open_date is exist - process it [18:09:21]req_shift_open_date [18:09:21]req_shift_open_date done [18:09:21]produce_requested_data done [18:09:21]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64030,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:09:21]process_action_free close_receipt [18:09:21]json_value_free [18:09:21]json_value_free done [18:09:21]process_json_proto returns [18:09:21]Send response to host [18:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64030,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:09:21]free response buf [18:09:21]execute_script done [18:09:21]execute_script returns [18:09:21]free content buf [18:09:21]Sock 7.Close socket [18:09:21]Sock 7.Thread stoped [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]accept exits with 9 [18:09:49]New connection [18:09:49]New thread 3066912100 created [18:09:49]Thread 3067055460 joined [18:09:49]Waiting for new connection... [18:09:49] Sock 9.Parse request [18:09:49]Sock 9.Check first char [18:09:49]Sock 9.First char is OK [18:09:49]request: POST /json_proto HTTP/1.0 [18:09:49]Method: POST [18:09:49]URL: /json_proto [18:09:49]Method is POST - this is cgi request [18:09:49]url: /json_proto [18:09:49]query_string will be loaded in cgi processing [18:09:49]execute_cgi json_proto POST (null) [18:09:49]execute_cgi path=json_proto method=POST [18:09:49]POST find Content-Length [18:09:49]Host: 172.17.60.69:8080 [18:09:49]Content-Length: 892 [18:09:49]Content-Type: application/json [18:09:49] [18:09:49]POST finish read [18:09:49]Found Content-Length = 892 [18:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73580", "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 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:49]execute_script... [18:09:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73580", "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 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:49]POST & json_proto [18:09:49]process_json_proto [18:09:49]json parsed OK: [18:09:49]protocol is kg_v1.0 [18:09:49]action value=close_receipt [18:09:49]process_action close_receipt [18:09:49]cmd_close_receipt [18:09:49]MH_GetDate [18:09:49]Write to MH i2c: F0 00 00 85 25 99 [18:09:49]Write i2c OK [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: F0 [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: F0 09 00 [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: F0 09 00 85 25 00 71 58 5F 66 6A 96 4A 66 E0 [18:09:49]GetLastDocTimeStamp 1717524561 [18:09:49]current date 1717524593 [18:09:49]FM_GetShiftState [18:09:49]SAM_PROTO_GetShiftState [18:09:49]wFMCommunicate request_size=4 [18:09:49]MH_SAM_APDU [18:09:49]CAPDU: 80 13 01 00 [18:09:49]Write to MH i2c: E2 08 00 86 25 80 13 01 00 00 00 00 00 28 [18:09:49]Write i2c OK [18:09:49]MH_I2C_Read... [18:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:49]Read from MH i2c: E2 [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: E2 0E 00 [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: E2 0E 00 86 25 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C8 [18:09:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:09:49]wFMCommunicate OK [18:09:49]SAM_PROTO_GetShiftState done [18:09:49]FM_GetShiftState done [18:09:49]opened in 1717459574 [18:09:49]opened+sec_in_day 1717545974 [18:09:49]quantity*price = 14000 [18:09:49]sum+1 = 14001 [18:09:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.05 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 116 04.06.2024 18:09 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64031 ФПД: 41669894720773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180953&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64031&fm=41669894720773&tin=02508201610067®Number=0000000000092737&sum=33000 0 [18:09:50]StoreToDocumentArchive [18:09:50]shift 374 fd 64031 [18:09:50]save to /storage/0374/doc_00064031 [18:09:50]save last doc name /storage/0374/doc_00064031 to /storage/kkm_last_doc_name [18:09:50]save OK [18:09:50]Clear old archive folders... [18:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=396 [18:09:50]tlvbuf is 012B5090 [18:09:50]SAM_PROTO_ClearQueue [18:09:50]wFMCommunicate request_size=4 [18:09:50]MH_SAM_APDU [18:09:50]CAPDU: 80 09 00 00 [18:09:50]Write to MH i2c: E2 08 00 93 25 80 09 00 00 00 00 00 00 2A [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:50]Read from MH i2c: E2 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 93 25 00 90 00 2C [18:09:50]RAPDU: 90 00 [18:09:50]wFMCommunicate OK [18:09:50]SAM_PROTO_ClearQueue done [18:09:50]KKMCreateOFDPacket [18:09:50]OFDProtocolAddRootSTLVToBuf [18:09:50]FM_MakeSignedData [18:09:50]FM_MakeSignedData [18:09:50]SAM_PROTO_SignData [18:09:50]wFMCommunicate request_size=4 [18:09:50]MH_SAM_APDU [18:09:50]CAPDU: 80 0D 01 02 [18:09:50]Write to MH i2c: E2 08 00 94 25 80 0D 01 02 00 00 00 00 32 [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:50]Read from MH i2c: E2 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 94 25 00 90 00 2D [18:09:50]RAPDU: 90 00 [18:09:50]wFMCommunicate OK [18:09:50]wFMCommunicate request_size=255 [18:09:50]MH_SAM_APDU [18:09:50]CAPDU: 80 0D 02 02 FA 03 00 8C 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF [18:09:50]Write to MH i2c: E2 02 01 95 25 80 0D 02 02 FA 00 03 00 8C 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 00 00 A9 [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:50]Read from MH i2c: E2 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 95 25 00 90 00 2E [18:09:50]RAPDU: 90 00 [18:09:50]wFMCommunicate OK [18:09:50]wFMCommunicate request_size=155 [18:09:50]MH_SAM_APDU [18:09:50]CAPDU: 80 0D 02 02 96 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 B1 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 71 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1F FA 00 00 35 04 06 00 25 E6 07 45 CD 05 [18:09:50]Write to MH i2c: E2 9E 00 96 25 80 0D 02 02 96 00 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 B1 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 71 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1F FA 00 00 35 04 06 00 25 E6 07 45 CD 05 00 00 A3 [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:50]Read from MH i2c: E2 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 96 25 00 90 00 2F [18:09:50]RAPDU: 90 00 [18:09:50]wFMCommunicate OK [18:09:50]wFMCommunicate request_size=4 [18:09:50]MH_SAM_APDU [18:09:50]CAPDU: 80 0D 03 02 [18:09:50]Write to MH i2c: E2 08 00 97 25 80 0D 03 02 00 00 00 00 37 [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:50]Read from MH i2c: E2 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 0B 00 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 0B 00 97 25 00 47 0F 50 BC B8 86 FC 8C 90 00 60 [18:09:50]RAPDU: 47 0F 50 BC B8 86 FC 8C 90 00 [18:09:50]wFMCommunicate OK [18:09:50]SAM_PROTO_SignData done [18:09:50]FM_MakeSignedData done [18:09:50]CreateOFDProtocolMessage [18:09:50]wFMCommunicate request_size=4 [18:09:50]MH_SAM_APDU [18:09:50]CAPDU: 80 11 00 00 [18:09:50]Write to MH i2c: E2 08 00 98 25 80 11 00 00 00 00 00 00 37 [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:50]Read from MH i2c: E2 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 17 00 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 17 00 98 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 89 [18:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:09:50]wFMCommunicate OK [18:09:50]CreateOFDProtocolMessage done [18:09:50]OFDSenderStorePacket 64031 [18:09:50]StoreOFDPacket docnum=64031 [18:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 A0 01 00 00 A8 2C 98 01 1F 47 5A 03 01 00 03 00 8C 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B1 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 71 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1F FA 00 00 35 04 06 00 25 E6 07 45 CD 05 47 0F 50 BC B8 86 FC 8C [18:09:50]CheckFolder [18:09:50]dirname=/storage/ofd_packets [18:09:50]CheckFolder done [18:09:50]ProducePacketName [18:09:50]name=ofd_packets/00064031 [18:09:50]NVStorageSaveData ofd_packets/00064031 [18:09:50]File name is /storage/ofd_packets/00064031 [18:09:50]Write 446 bytes [18:09:50]NVStorageSaveData done [18:09:50]OFDSenderStorePacket done [18:09:50]KKMCreateOFDPacket done [18:09:50]NVStorageSaveData kkm_last_timestamp [18:09:50]File name is /storage/kkm_last_timestamp [18:09:50]Write 4 bytes [18:09:50]NVStorageSaveData done [18:09:50]ExternCall_PrintAddStr [18:09:50]wPrintStart [18:09:50]Write to MH i2c: 01 00 00 99 25 BE [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: 01 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: 01 07 00 [18:09:51]MH_I2C_Read... [18:09:51]OFD Sender: Processing packet 64031 [packets to send 14, broken 13] [18:09:51]ProducePacketName [18:09:51]name=ofd_packets/00064031 [18:09:51]OFD Sender: To server: pG, [18:09:51]CommunicateWithHost lk.salyk.kg:30040 [18:09:51]ConnectInit lk.salyk.kg [18:09:51]Read from MH i2c: 01 07 00 99 25 00 00 00 00 00 FF 0F D3 [18:09:51]RasterBufferAndPrint [18:09:51]line Счет N : (3)73580 [18:09:51]line ИНН: 02508201610067 [18:09:51]line Контрольно-Кассовый Чек [18:09:51]line ПРОДАЖА [18:09:51]line Товар: 48747059 [18:09:51]line Сигареты Winston Legend Blue [18:09:51]line 1.000 * 140.00 [18:09:51]line = 140.00 [18:09:51]line НДС 12% НСП 1% [18:09:51]line > о реализуемом товаре [18:09:51]line Товар: 4700000480050 [18:09:51]line Напиток Nitro Energy эн green ж/б 0,45л [18:09:51]line 2.000 * 95.00 [18:09:51]line = 190.00 [18:09:51]line НДС 12% НСП 1% [18:09:51]line > о реализуемом товаре [18:09:51]line ИТОГО: 330.00 [18:09:51]line НСП 1% : 2.92 [18:09:51]line НДС 12% : 35.05 [18:09:51]line Наличными: 330.00 [18:09:51]line Безнал.: 0.00 [18:09:51]line Место: АЗС № 117 "Партнер Нефть" [18:09:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:09:51]line СНО: Общий режим [18:09:51]line Чек 116 04.06.2024 18:09 [18:09:51]line Смена: 374 ФФД: 1.0 [18:09:51]line ЗНМ: 0300000031 [18:09:51]line РНМ: 0000000000092737 [18:09:51]line Версия ККМ: 001 [18:09:51]line ФМ: 0000000000875074 [18:09:51]line ФД: 64031 [18:09:51]line ФПД: 41669894720773 [18:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T180953&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64031&fm=41669894720773&tin=02508201610067®Number=0000000000092737&sum=33000 [18:09:51]line 0 [18:09:51]written 0, free lines is 4095 [18:09:51]Connected sock=10 [18:09: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 A0 01 00 00 A8 2C 98 01 1F 47 5A 03 01 00 03 00 8C 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B1 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 71 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 1F FA 00 00 35 04 06 00 25 E6 07 45 CD 05 47 0F 50 BC B8 86 FC 8C [18:09: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 62 B5 47 00 DB 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 1F FA 00 00 F4 03 04 00 3F 04 5F 66 B6 04 01 00 00 89 FA 6E CF 13 FE 4C 06 [18:09:51]CommunicateWithHost err = 0 [18:09:51]CheckOFDResponse [18:09:51]1017 (14) - 77093643461234 [18:09:51]1041 (16) - 0000000000875074 [18:09:51]1040 (4) - 64031 [18:09:51]1012 (4) - 04.06.2024 12:10 [18:09:51]1206 (1) - 0 [18:09:51]OFD Sender: Remove packet 64031 [18:09:51]ProducePacketName [18:09:51]name=ofd_packets/00064031 [18:09:51]NVStorageDeleteData [18:09:51]Write to MH i2c: 01 00 00 C9 25 EE [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: 01 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: 01 07 00 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: 01 07 00 C9 25 00 00 00 00 00 65 0C 66 [18:09:51]RasterBufferAndPrint [18:09:51]line [18:09:51]line [18:09:51]line [18:09:51]line [18:09:51]line [18:09:51]written 0, free lines is 3179 [18:09:51]MH_Cut [18:09:51]Write to MH i2c: D1 01 00 D0 25 01 C7 [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: D1 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: D1 01 00 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: D1 01 00 D0 25 00 C6 [18:09:51]Write to MH i2c: 01 00 00 D1 25 F6 [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:52]OFD Sender: No OFD packet to send [18:09:52]*** Cut start [18:09:52]*** Partial cut [18:09:52]*** CUTSNS_PIN = 1 [18:09:52]*** CUTSNS_PIN = 0 [18:09:52]*** Brake cut motor [18:09:53]Read from MH i2c: 01 [18:09:53]MH_I2C_Read... [18:09:53]*** Stop cut motor [18:09:53]*** Cut end [18:09:53]Read from MH i2c: 01 07 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: 01 07 00 D1 25 00 00 00 00 00 FF 0F 0B [18:09:53]process_action close_receipt done [18:09:53]requested_data is exist [18:09:53]produce_requested_data [18:09:53]requested_item fm.sn is exist - process it [18:09:53]wFMCommunicate request_size=4 [18:09:53]MH_SAM_APDU [18:09:53]CAPDU: 80 11 00 00 [18:09:53]Write to MH i2c: E2 08 00 D2 25 80 11 00 00 00 00 00 00 71 [18:09:53]Write i2c OK [18:09:53]MH_I2C_Read... [18:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:53]Read from MH i2c: E2 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 17 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 17 00 D2 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C3 [18: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 [18:09:53]wFMCommunicate OK [18:09:53]requested_item fd.num is exist - process it [18:09:53]SAM_PROTO_GetFieldsCounters [18:09:53]wFMCommunicate request_size=4 [18:09:53]MH_SAM_APDU [18:09:53]CAPDU: 80 13 00 00 [18:09:53]Write to MH i2c: E2 08 00 D3 25 80 13 00 00 00 00 00 00 74 [18:09:53]Write i2c OK [18:09:53]MH_I2C_Read... [18:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:53]Read from MH i2c: E2 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 62 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 62 00 D3 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 1F FA 00 00 0E 04 04 00 76 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 83 [18:09: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 1F FA 00 00 0E 04 04 00 76 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 [18:09:53]wFMCommunicate OK [18:09:53]SAM_PROTO_GetFieldsCounters done [18:09:53]requested_item shift.num is exist - process it [18:09:53]requested_item shift.opened is exist - process it [18:09:53]req_shift_opened [18:09:53]FM_GetShiftState [18:09:53]SAM_PROTO_GetShiftState [18:09:53]wFMCommunicate request_size=4 [18:09:53]MH_SAM_APDU [18:09:53]CAPDU: 80 13 01 00 [18:09:53]Write to MH i2c: E2 08 00 D4 25 80 13 01 00 00 00 00 00 76 [18:09:53]Write i2c OK [18:09:53]MH_I2C_Read... [18:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:53]Read from MH i2c: E2 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 0E 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 0E 00 D4 25 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 16 [18:09:53]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:09:53]wFMCommunicate OK [18:09:53]SAM_PROTO_GetShiftState done [18:09:53]FM_GetShiftState done [18:09:53]req_shift_opened done [18:09:53]requested_item shift.open_date is exist - process it [18:09:53]req_shift_open_date [18:09:53]req_shift_open_date done [18:09:53]produce_requested_data done [18:09:53]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64031,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:09:53]process_action_free close_receipt [18:09:53]json_value_free [18:09:53]json_value_free done [18:09:53]process_json_proto returns [18:09:53]Send response to host [18:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64031,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:09:53]free response buf [18:09:53]execute_script done [18:09:53]execute_script returns [18:09:53]free content buf [18:09:53]Sock 9.Close socket [18:09:53]Sock 9.Thread stoped [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:08]accept exits with 7 [18:11:08]New connection [18:11:08]New thread 3067055460 created [18:11:08]Thread 3066912100 joined [18:11:08]Waiting for new connection... [18:11:08] Sock 7.Parse request [18:11:08]Sock 7.Check first char [18:11:08]Sock 7.First char is OK [18:11:08]request: POST /json_proto HTTP/1.0 [18:11:08]Method: POST [18:11:08]URL: /json_proto [18:11:08]Method is POST - this is cgi request [18:11:08]url: /json_proto [18:11:08]query_string will be loaded in cgi processing [18:11:08]execute_cgi json_proto POST (null) [18:11:08]execute_cgi path=json_proto method=POST [18:11:08]POST find Content-Length [18:11:08]Host: 172.17.60.69:8080 [18:11:08]Content-Length: 569 [18:11:08]Content-Type: application/json [18:11:08] [18:11:08]POST finish read [18:11:08]Found Content-Length = 569 [18:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73581", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:08]execute_script... [18:11:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73581", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:08]POST & json_proto [18:11:08]process_json_proto [18:11:08]json parsed OK: [18:11:08]protocol is kg_v1.0 [18:11:08]action value=close_receipt [18:11:08]process_action close_receipt [18:11:08]cmd_close_receipt [18:11:08]MH_GetDate [18:11:08]Write to MH i2c: F0 00 00 D5 25 E9 [18:11:08]Write i2c OK [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: F0 [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: F0 09 00 [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: F0 09 00 D5 25 00 C1 58 5F 66 6A 96 4A 66 80 [18:11:08]GetLastDocTimeStamp 1717524593 [18:11:08]current date 1717524673 [18:11:08]FM_GetShiftState [18:11:08]SAM_PROTO_GetShiftState [18:11:08]wFMCommunicate request_size=4 [18:11:08]MH_SAM_APDU [18:11:08]CAPDU: 80 13 01 00 [18:11:08]Write to MH i2c: E2 08 00 D6 25 80 13 01 00 00 00 00 00 78 [18:11:08]Write i2c OK [18:11:08]MH_I2C_Read... [18:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:08]Read from MH i2c: E2 [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: E2 0E 00 [18:11:08]MH_I2C_Read... [18:11:08]Read from MH i2c: E2 0E 00 D6 25 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 18 [18:11:08]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:11:08]wFMCommunicate OK [18:11:08]SAM_PROTO_GetShiftState done [18:11:08]FM_GetShiftState done [18:11:08]opened in 1717459574 [18:11:08]opened+sec_in_day 1717545974 [18:11:08]quantity*price = 13000 [18:11:08]sum+1 = 13001 [18:11:08]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 СНО: Общий режим Чек 117 04.06.2024 18:11 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64032 ФПД: 1050325137874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181113&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64032&fm=1050325137874&tin=02508201610067®Number=0000000000092737&sum=13000 0 [18:11:10]StoreToDocumentArchive [18:11:10]shift 374 fd 64032 [18:11:10]save to /storage/0374/doc_00064032 [18:11:10]save last doc name /storage/0374/doc_00064032 to /storage/kkm_last_doc_name [18:11:10]save OK [18:11:10]Clear old archive folders... [18:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=254 [18:11:10]tlvbuf is 0127CCF0 [18:11:10]SAM_PROTO_ClearQueue [18:11:10]wFMCommunicate request_size=4 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 09 00 00 [18:11:10]Write to MH i2c: E2 08 00 E3 25 80 09 00 00 00 00 00 00 7A [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 E3 25 00 90 00 7C [18:11:10]RAPDU: 90 00 [18:11:10]wFMCommunicate OK [18:11:10]SAM_PROTO_ClearQueue done [18:11:10]KKMCreateOFDPacket [18:11:10]OFDProtocolAddRootSTLVToBuf [18:11:10]FM_MakeSignedData [18:11:10]FM_MakeSignedData [18:11:10]SAM_PROTO_SignData [18:11:10]wFMCommunicate request_size=4 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 0D 01 02 [18:11:10]Write to MH i2c: E2 08 00 E4 25 80 0D 01 02 00 00 00 00 82 [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 E4 25 00 90 00 7D [18:11:10]RAPDU: 90 00 [18:11:10]wFMCommunicate OK [18:11:10]wFMCommunicate request_size=255 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 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 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 75 00 00 00 F4 03 04 00 C1 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 FA 00 00 35 04 [18:11:10]Write to MH i2c: E2 02 01 E5 25 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 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 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 75 00 00 00 F4 03 04 00 C1 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 FA 00 00 35 04 00 00 6C [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:10]Read from MH i2c: E2 03 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 E5 25 00 90 00 7E [18:11:10]RAPDU: 90 00 [18:11:10]wFMCommunicate OK [18:11:10]wFMCommunicate request_size=13 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 0D 02 02 08 06 00 00 F4 8C 41 B9 D2 [18:11:10]Write to MH i2c: E2 10 00 E6 25 80 0D 02 02 08 00 06 00 00 F4 8C 41 B9 D2 00 00 E7 [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 03 00 E6 25 00 90 00 7F [18:11:10]RAPDU: 90 00 [18:11:10]wFMCommunicate OK [18:11:10]wFMCommunicate request_size=4 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 0D 03 02 [18:11:10]Write to MH i2c: E2 08 00 E7 25 80 0D 03 02 00 00 00 00 87 [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 0B 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 0B 00 E7 25 00 7C 8A 98 2A EC DD 60 EB 90 00 64 [18:11:10]RAPDU: 7C 8A 98 2A EC DD 60 EB 90 00 [18:11:10]wFMCommunicate OK [18:11:10]SAM_PROTO_SignData done [18:11:10]FM_MakeSignedData done [18:11:10]CreateOFDProtocolMessage [18:11:10]wFMCommunicate request_size=4 [18:11:10]MH_SAM_APDU [18:11:10]CAPDU: 80 11 00 00 [18:11:10]Write to MH i2c: E2 08 00 E8 25 80 11 00 00 00 00 00 00 87 [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:10]Read from MH i2c: E2 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 17 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: E2 17 00 E8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D9 [18: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 [18:11:10]wFMCommunicate OK [18:11:10]CreateOFDProtocolMessage done [18:11:10]OFDSenderStorePacket 64032 [18:11:10]StoreOFDPacket docnum=64032 [18:11: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 12 01 00 00 AC 9A 0A 01 E7 F9 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 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 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 75 00 00 00 F4 03 04 00 C1 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 FA 00 00 35 04 06 00 00 F4 8C 41 B9 D2 7C 8A 98 2A EC DD 60 EB [18:11:10]CheckFolder [18:11:10]dirname=/storage/ofd_packets [18:11:10]CheckFolder done [18:11:10]ProducePacketName [18:11:10]name=ofd_packets/00064032 [18:11:10]NVStorageSaveData ofd_packets/00064032 [18:11:10]File name is /storage/ofd_packets/00064032 [18:11:10]Write 304 bytes [18:11:10]NVStorageSaveData done [18:11:10]OFDSenderStorePacket done [18:11:10]KKMCreateOFDPacket done [18:11:10]NVStorageSaveData kkm_last_timestamp [18:11:10]File name is /storage/kkm_last_timestamp [18:11:10]Write 4 bytes [18:11:10]NVStorageSaveData done [18:11:10]ExternCall_PrintAddStr [18:11:10]wPrintStart [18:11:10]Write to MH i2c: 01 00 00 E9 25 0E [18:11:10]Write i2c OK [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: 01 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: 01 07 00 [18:11:10]MH_I2C_Read... [18:11:10]Read from MH i2c: 01 07 00 E9 25 00 00 00 00 00 FF 0F 23 [18:11:10]RasterBufferAndPrint [18:11:10]line Счет N : (3)73581 [18:11:10]line ИНН: 02508201610067 [18:11:10]line Контрольно-Кассовый Чек [18:11:10]line ПРОДАЖА [18:11:10]line Товар: 48744546 [18:11:10]line LD Compact Silver [18:11:10]line 1.000 * 130.00 [18:11:10]line = 130.00 [18:11:10]line НДС 12% НСП 1% [18:11:10]line > о реализуемом товаре [18:11:10]line ИТОГО: 130.00 [18:11:10]line НСП 1% : 1.15 [18:11:10]line НДС 12% : 13.80 [18:11:10]line Наличными: 130.00 [18:11:10]line Безнал.: 0.00 [18:11:10]line Место: АЗС № 117 "Партнер Нефть" [18:11:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:11:10]line СНО: Общий режим [18:11:10]line Чек 117 04.06.2024 18:11 [18:11:10]line Смена: 374 ФФД: 1.0 [18:11:10]line ЗНМ: 0300000031 [18:11:10]line РНМ: 0000000000092737 [18:11:10]line Версия ККМ: 001 [18:11:10]line ФМ: 0000000000875074 [18:11:10]line ФД: 64032 [18:11:10]line ФПД: 1050325137874 [18:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181113&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64032&fm=1050325137874&tin=02508201610067®Number=0000000000092737&sum=13000 [18:11:10]OFD Sender: Processing packet 64032 [packets to send 14, broken 13] [18:11:10]ProducePacketName [18:11:10]name=ofd_packets/00064032 [18:11:10]OFD Sender: To server: pG, [18:11:10]CommunicateWithHost lk.salyk.kg:30040 [18:11:10]ConnectInit lk.salyk.kg [18:11:10]line 0 [18:11:10]written 0, free lines is 4095 [18:11:11]Connected sock=10 [18:11: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 12 01 00 00 AC 9A 0A 01 E7 F9 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 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 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 75 00 00 00 F4 03 04 00 C1 58 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 FA 00 00 35 04 06 00 00 F4 8C 41 B9 D2 7C 8A 98 2A EC DD 60 EB [18:11: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 A2 34 47 00 F0 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 20 FA 00 00 F4 03 04 00 8E 04 5F 66 B6 04 01 00 00 F8 89 9B A9 B4 BC 68 83 [18:11:11]CommunicateWithHost err = 0 [18:11:11]CheckOFDResponse [18:11:11]1017 (14) - 77093643461234 [18:11:11]1041 (16) - 0000000000875074 [18:11:11]1040 (4) - 64032 [18:11:11]1012 (4) - 04.06.2024 12:11 [18:11:11]1206 (1) - 0 [18:11:11]OFD Sender: Remove packet 64032 [18:11:11]ProducePacketName [18:11:11]name=ofd_packets/00064032 [18:11:11]NVStorageDeleteData [18:11:11]Write to MH i2c: 01 00 00 11 26 37 [18:11:11]Write i2c OK [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: 01 [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: 01 07 00 [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: 01 07 00 11 26 00 00 00 00 00 13 0D 5E [18:11:11]RasterBufferAndPrint [18:11:11]line [18:11:11]line [18:11:11]line [18:11:11]line [18:11:11]line [18:11:11]written 0, free lines is 3354 [18:11:11]MH_Cut [18:11:11]Write to MH i2c: D1 01 00 18 26 01 10 [18:11:11]Write i2c OK [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: D1 [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: D1 01 00 [18:11:11]MH_I2C_Read... [18:11:11]Read from MH i2c: D1 01 00 18 26 00 0F [18:11:11]Write to MH i2c: 01 00 00 19 26 3F [18:11:11]Write i2c OK [18:11:11]MH_I2C_Read... [18:11:11]OFD Sender: No OFD packet to send [18:11:12]*** Cut start [18:11:12]*** Partial cut [18:11:12]*** CUTSNS_PIN = 1 [18:11:12]*** CUTSNS_PIN = 0 [18:11:12]*** Brake cut motor [18:11:12]Read from MH i2c: 01 [18:11:12]MH_I2C_Read... [18:11:12]*** Stop cut motor [18:11:12]*** Cut end [18:11:12]Read from MH i2c: 01 07 00 [18:11:12]MH_I2C_Read... [18:11:12]Read from MH i2c: 01 07 00 19 26 00 00 00 00 00 FF 0F 54 [18:11:12]process_action close_receipt done [18:11:12]requested_data is exist [18:11:12]produce_requested_data [18:11:12]requested_item fm.sn is exist - process it [18:11:12]wFMCommunicate request_size=4 [18:11:12]MH_SAM_APDU [18:11:12]CAPDU: 80 11 00 00 [18:11:12]Write to MH i2c: E2 08 00 1A 26 80 11 00 00 00 00 00 00 BA [18:11:12]Write i2c OK [18:11:12]MH_I2C_Read... [18:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:12]Read from MH i2c: E2 [18:11:12]MH_I2C_Read... [18:11:12]Read from MH i2c: E2 17 00 [18:11:12]MH_I2C_Read... [18:11:12]Read from MH i2c: E2 17 00 1A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0C [18:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:11:12]wFMCommunicate OK [18:11:12]requested_item fd.num is exist - process it [18:11:12]SAM_PROTO_GetFieldsCounters [18:11:12]wFMCommunicate request_size=4 [18:11:12]MH_SAM_APDU [18:11:12]CAPDU: 80 13 00 00 [18:11:12]Write to MH i2c: E2 08 00 1B 26 80 13 00 00 00 00 00 00 BD [18:11:12]Write i2c OK [18:11:12]MH_I2C_Read... [18:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:12]Read from MH i2c: E2 [18:11:12]MH_I2C_Read... [18:11:12]Read from MH i2c: E2 62 00 [18:11:12]MH_I2C_Read... [18:11:12]Read from MH i2c: E2 62 00 1B 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 20 FA 00 00 0E 04 04 00 76 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 D0 [18:11: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 20 FA 00 00 0E 04 04 00 76 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 [18:11:12]wFMCommunicate OK [18:11:12]SAM_PROTO_GetFieldsCounters done [18:11:12]requested_item shift.num is exist - process it [18:11:12]requested_item shift.opened is exist - process it [18:11:12]req_shift_opened [18:11:12]FM_GetShiftState [18:11:12]SAM_PROTO_GetShiftState [18:11:12]wFMCommunicate request_size=4 [18:11:12]MH_SAM_APDU [18:11:12]CAPDU: 80 13 01 00 [18:11:12]Write to MH i2c: E2 08 00 1C 26 80 13 01 00 00 00 00 00 BF [18:11:12]Write i2c OK [18:11:12]MH_I2C_Read... [18:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:12]Read from MH i2c: E2 [18:11:12]MH_I2C_Read... [18:11:12]Read from MH i2c: E2 0E 00 [18:11:12]MH_I2C_Read... [18:11:12]Read from MH i2c: E2 0E 00 1C 26 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 5F [18:11:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:11:12]wFMCommunicate OK [18:11:12]SAM_PROTO_GetShiftState done [18:11:12]FM_GetShiftState done [18:11:12]req_shift_opened done [18:11:12]requested_item shift.open_date is exist - process it [18:11:12]req_shift_open_date [18:11:12]req_shift_open_date done [18:11:12]produce_requested_data done [18:11:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64032,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:11:12]process_action_free close_receipt [18:11:12]json_value_free [18:11:12]json_value_free done [18:11:12]process_json_proto returns [18:11:12]Send response to host [18:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64032,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:11:12]free response buf [18:11:12]execute_script done [18:11:12]execute_script returns [18:11:12]free content buf [18:11:12]Sock 7.Close socket [18:11:12]Sock 7.Thread stoped [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:13]accept exits with 9 [18:13:13]New connection [18:13:13]New thread 3066912100 created [18:13:13]Thread 3067055460 joined [18:13:13]Waiting for new connection... [18:13:13] Sock 9.Parse request [18:13:13]Sock 9.Check first char [18:13:13]Sock 9.First char is OK [18:13:13]request: POST /json_proto HTTP/1.0 [18:13:13]Method: POST [18:13:13]URL: /json_proto [18:13:13]Method is POST - this is cgi request [18:13:13]url: /json_proto [18:13:13]query_string will be loaded in cgi processing [18:13:13]execute_cgi json_proto POST (null) [18:13:13]execute_cgi path=json_proto method=POST [18:13:13]POST find Content-Length [18:13:13]Host: 172.17.60.69:8080 [18:13:13]Content-Length: 798 [18:13:13]Content-Type: application/json [18:13:13] [18:13:13]POST finish read [18:13:13]Found Content-Length = 798 [18:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73582", "tax_sys" : 0, "items" : [ { "code": "4680036912698", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B MINT", "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" ] } } [18:13:13]execute_script... [18:13: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)73582", "tax_sys" : 0, "items" : [ { "code": "4680036912698", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B MINT", "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" ] } } [18:13:13]POST & json_proto [18:13:13]process_json_proto [18:13:13]json parsed OK: [18:13:13]protocol is kg_v1.0 [18:13:13]action value=close_receipt [18:13:13]process_action close_receipt [18:13:13]cmd_close_receipt [18:13:13]MH_GetDate [18:13:13]Write to MH i2c: F0 00 00 1D 26 32 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: F0 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: F0 09 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: F0 09 00 1D 26 00 3D 59 5F 66 6A 96 4A 66 46 [18:13:13]GetLastDocTimeStamp 1717524673 [18:13:13]current date 1717524797 [18:13:13]FM_GetShiftState [18:13:13]SAM_PROTO_GetShiftState [18:13:13]wFMCommunicate request_size=4 [18:13:13]MH_SAM_APDU [18:13:13]CAPDU: 80 13 01 00 [18:13:13]Write to MH i2c: E2 08 00 1E 26 80 13 01 00 00 00 00 00 C1 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:13]Read from MH i2c: E2 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 0E 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 0E 00 1E 26 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 61 [18:13:13]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:13:13]wFMCommunicate OK [18:13:13]SAM_PROTO_GetShiftState done [18:13:13]FM_GetShiftState done [18:13:13]opened in 1717459574 [18:13:13]opened+sec_in_day 1717545974 [18:13:13]quantity*price = 11000 [18:13:13]sum+1 = 11001 [18:13:13]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 СНО: Общий режим Чек 118 04.06.2024 18:13 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64033 ФПД: 61736801345558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181317&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64033&fm=61736801345558&tin=02508201610067®Number=0000000000092737&sum=11000 0 [18:13:14]StoreToDocumentArchive [18:13:14]shift 374 fd 64033 [18:13:14]save to /storage/0374/doc_00064033 [18:13:14]save last doc name /storage/0374/doc_00064033 to /storage/kkm_last_doc_name [18:13:14]save OK [18:13:14]Clear old archive folders... [18:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:13:14]tlvbuf is 0125BD40 [18:13:14]SAM_PROTO_ClearQueue [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 09 00 00 [18:13:14]Write to MH i2c: E2 08 00 2B 26 80 09 00 00 00 00 00 00 C3 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 2B 26 00 90 00 C5 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]SAM_PROTO_ClearQueue done [18:13:14]KKMCreateOFDPacket [18:13:14]OFDProtocolAddRootSTLVToBuf [18:13:14]FM_MakeSignedData [18:13:14]FM_MakeSignedData [18:13:14]SAM_PROTO_SignData [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 01 02 [18:13:14]Write to MH i2c: E2 08 00 2C 26 80 0D 01 02 00 00 00 00 CB [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 2C 26 00 90 00 C6 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]wFMCommunicate request_size=255 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 32 36 39 38 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 4D 49 4E 54 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 76 00 00 00 F4 03 04 00 3D 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [18:13:14]Write to MH i2c: E2 02 01 2D 26 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 32 36 39 38 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 4D 49 4E 54 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 76 00 00 00 F4 03 04 00 3D 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 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 16 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 2D 26 00 90 00 C7 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]wFMCommunicate request_size=41 [18:13:14]MH_SAM_APDU [18:13:14]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 21 FA 00 00 35 04 06 00 38 26 38 1D 20 16 [18:13:14]Write to MH i2c: E2 2C 00 2E 26 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 21 FA 00 00 35 04 06 00 38 26 38 1D 20 16 00 00 A0 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 2E 26 00 90 00 C8 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 03 02 [18:13:14]Write to MH i2c: E2 08 00 2F 26 80 0D 03 02 00 00 00 00 D0 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 0B 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 0B 00 2F 26 00 63 38 6A 0B 19 B2 42 BB 90 00 A9 [18:13:14]RAPDU: 63 38 6A 0B 19 B2 42 BB 90 00 [18:13:14]wFMCommunicate OK [18:13:14]SAM_PROTO_SignData done [18:13:14]FM_MakeSignedData done [18:13:14]CreateOFDProtocolMessage [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 11 00 00 [18:13:14]Write to MH i2c: E2 08 00 30 26 80 11 00 00 00 00 00 00 D0 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 17 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 17 00 30 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 22 [18: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 [18:13:14]wFMCommunicate OK [18:13:14]CreateOFDProtocolMessage done [18:13:14]OFDSenderStorePacket 64033 [18:13:14]StoreOFDPacket docnum=64033 [18:13: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 2E 01 00 00 24 77 26 01 CB D2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 32 36 39 38 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 4D 49 4E 54 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 76 00 00 00 F4 03 04 00 3D 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 21 FA 00 00 35 04 06 00 38 26 38 1D 20 16 63 38 6A 0B 19 B2 42 BB [18:13:14]CheckFolder [18:13:14]dirname=/storage/ofd_packets [18:13:14]CheckFolder done [18:13:14]ProducePacketName [18:13:14]name=ofd_packets/00064033 [18:13:14]NVStorageSaveData ofd_packets/00064033 [18:13:14]File name is /storage/ofd_packets/00064033 [18:13:14]Write 332 bytes [18:13:14]NVStorageSaveData done [18:13:14]OFDSenderStorePacket done [18:13:14]KKMCreateOFDPacket done [18:13:14]NVStorageSaveData kkm_last_timestamp [18:13:14]File name is /storage/kkm_last_timestamp [18:13:14]Write 4 bytes [18:13:14]NVStorageSaveData done [18:13:14]ExternCall_PrintAddStr [18:13:14]wPrintStart [18:13:14]Write to MH i2c: 01 00 00 31 26 57 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: 01 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: 01 07 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: 01 07 00 31 26 00 00 00 00 00 FF 0F 6C [18:13:14]RasterBufferAndPrint [18:13:14]line Счет N : (3)73582 [18:13:14]line ИНН: 02508201610067 [18:13:14]line Контрольно-Кассовый Чек [18:13:14]line ПРОДАЖА [18:13:14]line Товар: 4680036912698 [18:13:14]line Напиток Gorilla ж/б 0,45л MINT [18:13:14]line 1.000 * 110.00 [18:13:14]line = 110.00 [18:13:14]line НДС 12% НСП 1% [18:13:14]line > о реализуемом товаре [18:13:14]line ИТОГО: 110.00 [18:13:14]line НСП 1% : 0.97 [18:13:14]line НДС 12% : 11.68 [18:13:14]line Наличными: 0.00 [18:13:14]line Безнал.: 110.00 [18:13:14]line Место: АЗС № 117 "Партнер Нефть" [18:13:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:13:14]line СНО: Общий режим [18:13:14]line Чек 118 04.06.2024 18:13 [18:13:14]line Смена: 374 ФФД: 1.0 [18:13:14]line ЗНМ: 0300000031 [18:13:14]line РНМ: 0000000000092737 [18:13:14]line Версия ККМ: 001 [18:13:14]line Платежная система: O! деньги [18:13:14]line ФМ: 0000000000875074 [18:13:14]line ФД: 64033 [18:13:14]line ФПД: 61736801345558 [18:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181317&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64033&fm=61736801345558&tin=02508201610067®Number=0000000000092737&sum=11000 [18:13:15]line 0 [18:13:15]OFD Sender: Processing packet 64033 [packets to send 14, broken 13] [18:13:15]ProducePacketName [18:13:15]name=ofd_packets/00064033 [18:13:15]OFD Sender: To server: pG, [18:13:15]CommunicateWithHost lk.salyk.kg:30040 [18:13:15]ConnectInit lk.salyk.kg [18:13:15]written 0, free lines is 4095 [18:13:15]Connected sock=10 [18:13: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 2E 01 00 00 24 77 26 01 CB D2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 38 30 30 33 36 39 31 32 36 39 38 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 4D 49 4E 54 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 76 00 00 00 F4 03 04 00 3D 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 21 FA 00 00 35 04 06 00 38 26 38 1D 20 16 63 38 6A 0B 19 B2 42 BB [18:13: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 BC 9B 47 00 D6 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 21 FA 00 00 F4 03 04 00 0A 05 5F 66 B6 04 01 00 00 D5 94 EE D3 D9 E4 26 49 [18:13:15]CommunicateWithHost err = 0 [18:13:15]CheckOFDResponse [18:13:15]1017 (14) - 77093643461234 [18:13:15]1041 (16) - 0000000000875074 [18:13:15]1040 (4) - 64033 [18:13:15]1012 (4) - 04.06.2024 12:14 [18:13:15]1206 (1) - 0 [18:13:15]OFD Sender: Remove packet 64033 [18:13:15]ProducePacketName [18:13:15]name=ofd_packets/00064033 [18:13:15]NVStorageDeleteData [18:13:15]Write to MH i2c: 01 00 00 5C 26 82 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 07 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 07 00 5C 26 00 00 00 00 00 CA 0C 5F [18:13:15]RasterBufferAndPrint [18:13:15]line [18:13:15]line [18:13:15]line [18:13:15]line [18:13:15]line [18:13:15]written 0, free lines is 3280 [18:13:15]MH_Cut [18:13:15]Write to MH i2c: D1 01 00 63 26 01 5B [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: D1 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: D1 01 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: D1 01 00 63 26 00 5A [18:13:15]Write to MH i2c: 01 00 00 64 26 8A [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]OFD Sender: No OFD packet to send [18:13:16]*** Cut start [18:13:16]*** Partial cut [18:13:16]*** CUTSNS_PIN = 1 [18:13:16]*** CUTSNS_PIN = 0 [18:13:16]*** Brake cut motor [18:13:16]Read from MH i2c: 01 [18:13:16]MH_I2C_Read... [18:13:16]*** Stop cut motor [18:13:16]*** Cut end [18:13:16]Read from MH i2c: 01 07 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 07 00 64 26 00 00 00 00 00 FF 0F 9F [18:13:16]process_action close_receipt done [18:13:16]requested_data is exist [18:13:16]produce_requested_data [18:13:16]requested_item fm.sn is exist - process it [18:13:16]wFMCommunicate request_size=4 [18:13:16]MH_SAM_APDU [18:13:16]CAPDU: 80 11 00 00 [18:13:16]Write to MH i2c: E2 08 00 65 26 80 11 00 00 00 00 00 00 05 [18:13:16]Write i2c OK [18:13:16]MH_I2C_Read... [18:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:17]Read from MH i2c: E2 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 17 00 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 17 00 65 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 57 [18:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:13:17]wFMCommunicate OK [18:13:17]requested_item fd.num is exist - process it [18:13:17]SAM_PROTO_GetFieldsCounters [18:13:17]wFMCommunicate request_size=4 [18:13:17]MH_SAM_APDU [18:13:17]CAPDU: 80 13 00 00 [18:13:17]Write to MH i2c: E2 08 00 66 26 80 13 00 00 00 00 00 00 08 [18:13:17]Write i2c OK [18:13:17]MH_I2C_Read... [18:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:17]Read from MH i2c: E2 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 62 00 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 62 00 66 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 21 FA 00 00 0E 04 04 00 76 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 1F [18:13: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 21 FA 00 00 0E 04 04 00 76 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 [18:13:17]wFMCommunicate OK [18:13:17]SAM_PROTO_GetFieldsCounters done [18:13:17]requested_item shift.num is exist - process it [18:13:17]requested_item shift.opened is exist - process it [18:13:17]req_shift_opened [18:13:17]FM_GetShiftState [18:13:17]SAM_PROTO_GetShiftState [18:13:17]wFMCommunicate request_size=4 [18:13:17]MH_SAM_APDU [18:13:17]CAPDU: 80 13 01 00 [18:13:17]Write to MH i2c: E2 08 00 67 26 80 13 01 00 00 00 00 00 0A [18:13:17]Write i2c OK [18:13:17]MH_I2C_Read... [18:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:17]Read from MH i2c: E2 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 0E 00 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 0E 00 67 26 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 AA [18:13:17]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:13:17]wFMCommunicate OK [18:13:17]SAM_PROTO_GetShiftState done [18:13:17]FM_GetShiftState done [18:13:17]req_shift_opened done [18:13:17]requested_item shift.open_date is exist - process it [18:13:17]req_shift_open_date [18:13:17]req_shift_open_date done [18:13:17]produce_requested_data done [18:13:17]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64033,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:13:17]process_action_free close_receipt [18:13:17]json_value_free [18:13:17]json_value_free done [18:13:17]process_json_proto returns [18:13:17]Send response to host [18:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64033,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:13:17]free response buf [18:13:17]execute_script done [18:13:17]execute_script returns [18:13:17]free content buf [18:13:17]Sock 9.Close socket [18:13:17]Sock 9.Thread stoped [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]accept exits with 7 [18:13:30]New connection [18:13:30]New thread 3067055460 created [18:13:30]Thread 3066912100 joined [18:13:30]Waiting for new connection... [18:13:30] Sock 7.Parse request [18:13:30]Sock 7.Check first char [18:13:30]Sock 7.First char is OK [18:13:30]request: POST /json_proto HTTP/1.0 [18:13:30]Method: POST [18:13:30]URL: /json_proto [18:13:30]Method is POST - this is cgi request [18:13:30]url: /json_proto [18:13:30]query_string will be loaded in cgi processing [18:13:30]execute_cgi json_proto POST (null) [18:13:30]execute_cgi path=json_proto method=POST [18:13:30]POST find Content-Length [18:13:30]Host: 172.17.60.69:8080 [18:13:30]Content-Length: 629 [18:13:30]Content-Type: application/json [18:13:30] [18:13:30]POST finish read [18:13:30]Found Content-Length = 629 [18:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73583", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:30]execute_script... [18:13: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)73583", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:30]POST & json_proto [18:13:30]process_json_proto [18:13:30]json parsed OK: [18:13:30]protocol is kg_v1.0 [18:13:30]action value=close_receipt [18:13:30]process_action close_receipt [18:13:30]cmd_close_receipt [18:13:30]MH_GetDate [18:13:30]Write to MH i2c: F0 00 00 68 26 7D [18:13:30]Write i2c OK [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: F0 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: F0 09 00 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: F0 09 00 68 26 00 4E 59 5F 66 6A 96 4A 66 A2 [18:13:30]GetLastDocTimeStamp 1717524797 [18:13:30]current date 1717524814 [18:13:30]FM_GetShiftState [18:13:30]SAM_PROTO_GetShiftState [18:13:30]wFMCommunicate request_size=4 [18:13:30]MH_SAM_APDU [18:13:30]CAPDU: 80 13 01 00 [18:13:30]Write to MH i2c: E2 08 00 69 26 80 13 01 00 00 00 00 00 0C [18:13:30]Write i2c OK [18:13:30]MH_I2C_Read... [18:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:30]Read from MH i2c: E2 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 0E 00 [18:13:30]MH_I2C_Read... [18:13:30]Read from MH i2c: E2 0E 00 69 26 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 AC [18:13:30]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:13:30]wFMCommunicate OK [18:13:30]SAM_PROTO_GetShiftState done [18:13:30]FM_GetShiftState done [18:13:30]opened in 1717459574 [18:13:30]opened+sec_in_day 1717545974 [18:13:30]quantity*price = 5000 [18:13:30]sum+1 = 5001 [18:13:30]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 СНО: Общий режим Чек 119 04.06.2024 18:13 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64034 ФПД: 33565542143250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181334&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64034&fm=33565542143250&tin=02508201610067®Number=0000000000092737&sum=5000 0 [18:13:31]StoreToDocumentArchive [18:13:31]shift 374 fd 64034 [18:13:31]save to /storage/0374/doc_00064034 [18:13:31]save last doc name /storage/0374/doc_00064034 to /storage/kkm_last_doc_name [18:13:31]save OK [18:13:31]Clear old archive folders... [18:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:13:31]tlvbuf is 0132D120 [18:13:31]SAM_PROTO_ClearQueue [18:13:31]wFMCommunicate request_size=4 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 09 00 00 [18:13:31]Write to MH i2c: E2 08 00 76 26 80 09 00 00 00 00 00 00 0E [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 76 26 00 90 00 10 [18:13:31]RAPDU: 90 00 [18:13:31]wFMCommunicate OK [18:13:31]SAM_PROTO_ClearQueue done [18:13:31]KKMCreateOFDPacket [18:13:31]OFDProtocolAddRootSTLVToBuf [18:13:31]FM_MakeSignedData [18:13:31]FM_MakeSignedData [18:13:31]SAM_PROTO_SignData [18:13:31]wFMCommunicate request_size=4 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 0D 01 02 [18:13:31]Write to MH i2c: E2 08 00 77 26 80 0D 01 02 00 00 00 00 16 [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 77 26 00 90 00 11 [18:13:31]RAPDU: 90 00 [18:13:31]wFMCommunicate OK [18:13:31]wFMCommunicate request_size=255 [18:13:31]MH_SAM_APDU [18:13:31]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 77 00 00 00 F4 03 04 00 4E 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [18:13:31]Write to MH i2c: E2 02 01 78 26 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 77 00 00 00 F4 03 04 00 4E 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 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 8A [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 78 26 00 90 00 12 [18:13:31]RAPDU: 90 00 [18:13:31]wFMCommunicate OK [18:13:31]wFMCommunicate request_size=28 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 0D 02 02 17 37 35 30 37 34 10 04 04 00 22 FA 00 00 35 04 06 00 1E 87 16 37 55 12 [18:13:31]Write to MH i2c: E2 1F 00 79 26 80 0D 02 02 17 00 37 35 30 37 34 10 04 04 00 22 FA 00 00 35 04 06 00 1E 87 16 37 55 12 00 00 1A [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 03 00 79 26 00 90 00 13 [18:13:31]RAPDU: 90 00 [18:13:31]wFMCommunicate OK [18:13:31]wFMCommunicate request_size=4 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 0D 03 02 [18:13:31]Write to MH i2c: E2 08 00 7A 26 80 0D 03 02 00 00 00 00 1B [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 0B 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 0B 00 7A 26 00 E8 8B 26 F3 F5 F0 FB 63 90 00 EB [18:13:31]RAPDU: E8 8B 26 F3 F5 F0 FB 63 90 00 [18:13:31]wFMCommunicate OK [18:13:31]SAM_PROTO_SignData done [18:13:31]FM_MakeSignedData done [18:13:31]CreateOFDProtocolMessage [18:13:31]wFMCommunicate request_size=4 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 11 00 00 [18:13:31]Write to MH i2c: E2 08 00 7B 26 80 11 00 00 00 00 00 00 1B [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 17 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 17 00 7B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6D [18:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:13:31]wFMCommunicate OK [18:13:31]CreateOFDProtocolMessage done [18:13:31]OFDSenderStorePacket 64034 [18:13:31]StoreOFDPacket docnum=64034 [18:13: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 21 01 00 00 CA 2E 19 01 18 01 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 77 00 00 00 F4 03 04 00 4E 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 22 FA 00 00 35 04 06 00 1E 87 16 37 55 12 E8 8B 26 F3 F5 F0 FB 63 [18:13:31]CheckFolder [18:13:31]dirname=/storage/ofd_packets [18:13:31]CheckFolder done [18:13:31]ProducePacketName [18:13:31]name=ofd_packets/00064034 [18:13:31]NVStorageSaveData ofd_packets/00064034 [18:13:31]File name is /storage/ofd_packets/00064034 [18:13:31]Write 319 bytes [18:13:31]NVStorageSaveData done [18:13:31]OFDSenderStorePacket done [18:13:31]KKMCreateOFDPacket done [18:13:31]NVStorageSaveData kkm_last_timestamp [18:13:31]File name is /storage/kkm_last_timestamp [18:13:31]Write 4 bytes [18:13:31]NVStorageSaveData done [18:13:31]ExternCall_PrintAddStr [18:13:31]wPrintStart [18:13:31]Write to MH i2c: 01 00 00 7C 26 A2 [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: 01 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: 01 07 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 FF 0F B7 [18:13:31]RasterBufferAndPrint [18:13:31]line Счет N : (3)73583 [18:13:31]line ИНН: 02508201610067 [18:13:31]line Контрольно-Кассовый Чек [18:13:31]line ПРОДАЖА [18:13:31]line Товар: 4700000160358 [18:13:31]line Вода Легенда 1л [18:13:31]line 1.000 * 50.00 [18:13:31]line = 50.00 [18:13:31]line НДС 12% НСП 1% [18:13:31]line > о реализуемом товаре [18:13:31]line ИТОГО: 50.00 [18:13:31]line НСП 1% : 0.44 [18:13:31]line НДС 12% : 5.31 [18:13:31]line Наличными: 50.00 [18:13:31]line Безнал.: 0.00 [18:13:31]line Место: АЗС № 117 "Партнер Нефть" [18:13:31]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:13:31]line СНО: Общий режим [18:13:31]line Чек 119 04.06.2024 18:13 [18:13:31]line Смена: 374 ФФД: 1.0 [18:13:31]line ЗНМ: 0300000031 [18:13:31]line РНМ: 0000000000092737 [18:13:31]line Версия ККМ: 001 [18:13:31]line ФМ: 0000000000875074 [18:13:31]line ФД: 64034 [18:13:31]line ФПД: 33565542143250 [18:13:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181334&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64034&fm=33565542143250&tin=02508201610067®Number=0000000000092737&sum=5000 [18:13:32]OFD Sender: Processing packet 64034 [packets to send 14, broken 13] [18:13:32]ProducePacketName [18:13:32]name=ofd_packets/00064034 [18:13:32]OFD Sender: To server: pG, [18:13:32]CommunicateWithHost lk.salyk.kg:30040 [18:13:32]ConnectInit lk.salyk.kg [18:13:32]line 0 [18:13:32]written 0, free lines is 4095 [18:13:32]Connected sock=10 [18:13: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 21 01 00 00 CA 2E 19 01 18 01 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 77 00 00 00 F4 03 04 00 4E 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 22 FA 00 00 35 04 06 00 1E 87 16 37 55 12 E8 8B 26 F3 F5 F0 FB 63 [18:13: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 27 E2 47 00 2C 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 22 FA 00 00 F4 03 04 00 1B 05 5F 66 B6 04 01 00 00 23 3F E3 C7 79 CC FD 3E [18:13:32]CommunicateWithHost err = 0 [18:13:32]CheckOFDResponse [18:13:32]1017 (14) - 77093643461234 [18:13:32]1041 (16) - 0000000000875074 [18:13:32]1040 (4) - 64034 [18:13:32]1012 (4) - 04.06.2024 12:14 [18:13:32]1206 (1) - 0 [18:13:32]OFD Sender: Remove packet 64034 [18:13:32]ProducePacketName [18:13:32]name=ofd_packets/00064034 [18:13:32]NVStorageDeleteData [18:13:32]Write to MH i2c: 01 00 00 A4 26 CA [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: 01 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: 01 07 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: 01 07 00 A4 26 00 00 00 00 00 1B 0D F9 [18:13:32]RasterBufferAndPrint [18:13:32]line [18:13:32]line [18:13:32]line [18:13:32]line [18:13:32]line [18:13:32]written 0, free lines is 3361 [18:13:32]MH_Cut [18:13:32]Write to MH i2c: D1 01 00 AB 26 01 A3 [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: D1 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: D1 01 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: D1 01 00 AB 26 00 A2 [18:13:32]Write to MH i2c: 01 00 00 AC 26 D2 [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]OFD Sender: No OFD packet to send [18:13:33]*** Cut start [18:13:33]*** Partial cut [18:13:33]*** CUTSNS_PIN = 1 [18:13:33]*** CUTSNS_PIN = 0 [18:13:33]*** Brake cut motor [18:13:33]Read from MH i2c: 01 [18:13:33]MH_I2C_Read... [18:13:33]*** Stop cut motor [18:13:33]*** Cut end [18:13:33]Read from MH i2c: 01 07 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 07 00 AC 26 00 00 00 00 00 FF 0F E7 [18:13:33]process_action close_receipt done [18:13:33]requested_data is exist [18:13:33]produce_requested_data [18:13:33]requested_item fm.sn is exist - process it [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 11 00 00 [18:13:33]Write to MH i2c: E2 08 00 AD 26 80 11 00 00 00 00 00 00 4D [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 AD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9F [18:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:13:33]wFMCommunicate OK [18:13:33]requested_item fd.num is exist - process it [18:13:33]SAM_PROTO_GetFieldsCounters [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 13 00 00 [18:13:33]Write to MH i2c: E2 08 00 AE 26 80 13 00 00 00 00 00 00 50 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 62 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 62 00 AE 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 22 FA 00 00 0E 04 04 00 76 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 6B [18:13: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 22 FA 00 00 0E 04 04 00 76 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 [18:13:34]wFMCommunicate OK [18:13:34]SAM_PROTO_GetFieldsCounters done [18:13:34]requested_item shift.num is exist - process it [18:13:34]requested_item shift.opened is exist - process it [18:13:34]req_shift_opened [18:13:34]FM_GetShiftState [18:13:34]SAM_PROTO_GetShiftState [18:13:34]wFMCommunicate request_size=4 [18:13:34]MH_SAM_APDU [18:13:34]CAPDU: 80 13 01 00 [18:13:34]Write to MH i2c: E2 08 00 AF 26 80 13 01 00 00 00 00 00 52 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:34]Read from MH i2c: E2 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 0E 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: E2 0E 00 AF 26 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F2 [18:13:34]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:13:34]wFMCommunicate OK [18:13:34]SAM_PROTO_GetShiftState done [18:13:34]FM_GetShiftState done [18:13:34]req_shift_opened done [18:13:34]requested_item shift.open_date is exist - process it [18:13:34]req_shift_open_date [18:13:34]req_shift_open_date done [18:13:34]produce_requested_data done [18:13:34]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64034,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:13:34]process_action_free close_receipt [18:13:34]json_value_free [18:13:34]json_value_free done [18:13:34]process_json_proto returns [18:13:34]Send response to host [18:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64034,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:13:34]free response buf [18:13:34]execute_script done [18:13:34]execute_script returns [18:13:34]free content buf [18:13:34]Sock 7.Close socket [18:13:34]Sock 7.Thread stoped [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:55]accept exits with 9 [18:14:55]New connection [18:14:55]New thread 3066912100 created [18:14:55]Thread 3067055460 joined [18:14:55]Waiting for new connection... [18:14:55] Sock 9.Parse request [18:14:55]Sock 9.Check first char [18:14:55]Sock 9.First char is OK [18:14:55]request: POST /json_proto HTTP/1.0 [18:14:55]Method: POST [18:14:55]URL: /json_proto [18:14:55]Method is POST - this is cgi request [18:14:55]url: /json_proto [18:14:55]query_string will be loaded in cgi processing [18:14:55]execute_cgi json_proto POST (null) [18:14:55]execute_cgi path=json_proto method=POST [18:14:55]POST find Content-Length [18:14:55]Host: 172.17.60.69:8080 [18:14:55]Content-Length: 645 [18:14:55]Content-Type: application/json [18:14:55] [18:14:55]POST finish read [18:14:55]Found Content-Length = 645 [18:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73584", "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" ] } } [18:14:55]execute_script... [18:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73584", "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" ] } } [18:14:55]POST & json_proto [18:14:55]process_json_proto [18:14:55]json parsed OK: [18:14:55]protocol is kg_v1.0 [18:14:55]action value=close_receipt [18:14:55]process_action close_receipt [18:14:55]cmd_close_receipt [18:14:55]MH_GetDate [18:14:55]Write to MH i2c: F0 00 00 B0 26 C5 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: F0 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: F0 09 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: F0 09 00 B0 26 00 A4 59 5F 66 6A 96 4A 66 40 [18:14:55]GetLastDocTimeStamp 1717524814 [18:14:55]current date 1717524900 [18:14:55]FM_GetShiftState [18:14:55]SAM_PROTO_GetShiftState [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 13 01 00 [18:14:55]Write to MH i2c: E2 08 00 B1 26 80 13 01 00 00 00 00 00 54 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0E 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0E 00 B1 26 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F4 [18:14:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:14:55]wFMCommunicate OK [18:14:55]SAM_PROTO_GetShiftState done [18:14:55]FM_GetShiftState done [18:14:55]opened in 1717459574 [18:14:55]opened+sec_in_day 1717545974 [18:14:55]quantity*price = 12500 [18:14:55]sum+1 = 12501 [18:14:55]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 СНО: Общий режим Чек 120 04.06.2024 18:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64035 ФПД: 77303686351410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181500&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64035&fm=77303686351410&tin=02508201610067®Number=0000000000092737&sum=12500 0 [18:14:57]StoreToDocumentArchive [18:14:57]shift 374 fd 64035 [18:14:57]save to /storage/0374/doc_00064035 [18:14:57]save last doc name /storage/0374/doc_00064035 to /storage/kkm_last_doc_name [18:14:57]save OK [18:14:57]Clear old archive folders... [18:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:14:57]tlvbuf is 0132CED0 [18:14:57]SAM_PROTO_ClearQueue [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 09 00 00 [18:14:57]Write to MH i2c: E2 08 00 BE 26 80 09 00 00 00 00 00 00 56 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 BE 26 00 90 00 58 [18:14:57]RAPDU: 90 00 [18:14:57]wFMCommunicate OK [18:14:57]SAM_PROTO_ClearQueue done [18:14:57]KKMCreateOFDPacket [18:14:57]OFDProtocolAddRootSTLVToBuf [18:14:57]FM_MakeSignedData [18:14:57]FM_MakeSignedData [18:14:57]SAM_PROTO_SignData [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 0D 01 02 [18:14:57]Write to MH i2c: E2 08 00 BF 26 80 0D 01 02 00 00 00 00 5E [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 BF 26 00 90 00 59 [18:14:57]RAPDU: 90 00 [18:14:57]wFMCommunicate OK [18:14:57]wFMCommunicate request_size=255 [18:14:57]MH_SAM_APDU [18:14:57]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 78 00 00 00 F4 03 04 00 A4 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 [18:14:57]Write to MH i2c: E2 02 01 C0 26 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 78 00 00 00 F4 03 04 00 A4 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 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 10 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 C0 26 00 90 00 5A [18:14:57]RAPDU: 90 00 [18:14:57]wFMCommunicate OK [18:14:57]wFMCommunicate request_size=41 [18:14:57]MH_SAM_APDU [18:14:57]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 23 FA 00 00 35 04 06 00 46 4E AA C3 CA 32 [18:14:57]Write to MH i2c: E2 2C 00 C1 26 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 23 FA 00 00 35 04 06 00 46 4E AA C3 CA 32 00 00 49 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 C1 26 00 90 00 5B [18:14:57]RAPDU: 90 00 [18:14:57]wFMCommunicate OK [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 0D 03 02 [18:14:57]Write to MH i2c: E2 08 00 C2 26 80 0D 03 02 00 00 00 00 63 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0B 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0B 00 C2 26 00 44 7C 04 10 20 52 DB 40 90 00 C5 [18:14:57]RAPDU: 44 7C 04 10 20 52 DB 40 90 00 [18:14:57]wFMCommunicate OK [18:14:57]SAM_PROTO_SignData done [18:14:57]FM_MakeSignedData done [18:14:57]CreateOFDProtocolMessage [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 11 00 00 [18:14:57]Write to MH i2c: E2 08 00 C3 26 80 11 00 00 00 00 00 00 63 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 C3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B5 [18:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:14:57]wFMCommunicate OK [18:14:57]CreateOFDProtocolMessage done [18:14:57]OFDSenderStorePacket 64035 [18:14:57]StoreOFDPacket docnum=64035 [18:14: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 2E 01 00 00 92 D6 26 01 E9 86 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 78 00 00 00 F4 03 04 00 A4 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 23 FA 00 00 35 04 06 00 46 4E AA C3 CA 32 44 7C 04 10 20 52 DB 40 [18:14:57]CheckFolder [18:14:57]dirname=/storage/ofd_packets [18:14:57]CheckFolder done [18:14:57]ProducePacketName [18:14:57]name=ofd_packets/00064035 [18:14:57]NVStorageSaveData ofd_packets/00064035 [18:14:57]File name is /storage/ofd_packets/00064035 [18:14:57]Write 332 bytes [18:14:57]NVStorageSaveData done [18:14:57]OFDSenderStorePacket done [18:14:57]KKMCreateOFDPacket done [18:14:57]NVStorageSaveData kkm_last_timestamp [18:14:57]File name is /storage/kkm_last_timestamp [18:14:57]Write 4 bytes [18:14:57]NVStorageSaveData done [18:14:57]ExternCall_PrintAddStr [18:14:57]wPrintStart [18:14:57]Write to MH i2c: 01 00 00 C4 26 EA [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 C4 26 00 00 00 00 00 FF 0F FF [18:14:57]RasterBufferAndPrint [18:14:57]line Счет N : (3)73584 [18:14:57]line ИНН: 02508201610067 [18:14:57]line Контрольно-Кассовый Чек [18:14:57]line ПРОДАЖА [18:14:57]line Товар: 2000036220012 [18:14:57]line Кофе Капучино XL(GABB TRADE) [18:14:57]line 1.000 * 125.00 [18:14:57]line = 125.00 [18:14:57]line НДС 12% НСП 1% [18:14:57]line > о реализуемом товаре [18:14:57]line ИТОГО: 125.00 [18:14:57]line НСП 1% : 1.11 [18:14:57]line НДС 12% : 13.27 [18:14:57]line Наличными: 125.00 [18:14:57]line Безнал.: 0.00 [18:14:57]line Место: АЗС № 117 "Партнер Нефть" [18:14:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:14:57]line СНО: Общий режим [18:14:57]line Чек 120 04.06.2024 18:15 [18:14:57]line Смена: 374 ФФД: 1.0 [18:14:57]line ЗНМ: 0300000031 [18:14:57]line РНМ: 0000000000092737 [18:14:57]line Версия ККМ: 001 [18:14:57]line ФМ: 0000000000875074 [18:14:57]line ФД: 64035 [18:14:57]line ФПД: 77303686351410 [18:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T181500&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64035&fm=77303686351410&tin=02508201610067®Number=0000000000092737&sum=12500 [18:14:57]line 0 [18:14:57]OFD Sender: Processing packet 64035 [packets to send 14, broken 13] [18:14:57]ProducePacketName [18:14:57]name=ofd_packets/00064035 [18:14:57]OFD Sender: To server: pG, [18:14:57]CommunicateWithHost lk.salyk.kg:30040 [18:14:57]ConnectInit lk.salyk.kg [18:14:57]written 0, free lines is 4095 [18:14:58]Connected sock=11 [18:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2E 01 00 00 92 D6 26 01 E9 86 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 78 00 00 00 F4 03 04 00 A4 59 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 23 FA 00 00 35 04 06 00 46 4E AA C3 CA 32 44 7C 04 10 20 52 DB 40 [18:14: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 4B AA 47 00 A1 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 23 FA 00 00 F4 03 04 00 71 05 5F 66 B6 04 01 00 00 E0 8C B8 96 55 14 E3 40 [18:14:58]CommunicateWithHost err = 0 [18:14:58]CheckOFDResponse [18:14:58]1017 (14) - 77093643461234 [18:14:58]1041 (16) - 0000000000875074 [18:14:58]1040 (4) - 64035 [18:14:58]1012 (4) - 04.06.2024 12:15 [18:14:58]1206 (1) - 0 [18:14:58]OFD Sender: Remove packet 64035 [18:14:58]ProducePacketName [18:14:58]name=ofd_packets/00064035 [18:14:58]NVStorageDeleteData [18:14:58]Write to MH i2c: 01 00 00 ED 26 13 [18:14:58]Write i2c OK [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: 01 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: 01 07 00 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: 01 07 00 ED 26 00 00 00 00 00 E8 0C 0E [18:14:58]RasterBufferAndPrint [18:14:58]line [18:14:58]line [18:14:58]line [18:14:58]line [18:14:58]line [18:14:58]written 0, free lines is 3313 [18:14:58]MH_Cut [18:14:58]Write to MH i2c: D1 01 00 F4 26 01 EC [18:14:58]Write i2c OK [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: D1 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: D1 01 00 [18:14:58]MH_I2C_Read... [18:14:58]Read from MH i2c: D1 01 00 F4 26 00 EB [18:14:58]Write to MH i2c: 01 00 00 F5 26 1B [18:14:58]Write i2c OK [18:14:58]MH_I2C_Read... [18:14:58]OFD Sender: No OFD packet to send [18:14:59]*** Cut start [18:14:59]*** Partial cut [18:14:59]*** CUTSNS_PIN = 1 [18:14:59]*** CUTSNS_PIN = 0 [18:14:59]*** Brake cut motor [18:14:59]Read from MH i2c: 01 [18:14:59]MH_I2C_Read... [18:14:59]*** Stop cut motor [18:14:59]*** Cut end [18:14:59]Read from MH i2c: 01 07 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: 01 07 00 F5 26 00 00 00 00 00 FF 0F 30 [18:14:59]process_action close_receipt done [18:14:59]requested_data is exist [18:14:59]produce_requested_data [18:14:59]requested_item fm.sn is exist - process it [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 11 00 00 [18:14:59]Write to MH i2c: E2 08 00 F6 26 80 11 00 00 00 00 00 00 96 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 17 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 17 00 F6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E8 [18:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:14:59]wFMCommunicate OK [18:14:59]requested_item fd.num is exist - process it [18:14:59]SAM_PROTO_GetFieldsCounters [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 13 00 00 [18:14:59]Write to MH i2c: E2 08 00 F7 26 80 13 00 00 00 00 00 00 99 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:00]Read from MH i2c: E2 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 62 00 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 62 00 F7 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 23 FA 00 00 0E 04 04 00 76 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 B8 [18:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 23 FA 00 00 0E 04 04 00 76 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 [18:15:00]wFMCommunicate OK [18:15:00]SAM_PROTO_GetFieldsCounters done [18:15:00]requested_item shift.num is exist - process it [18:15:00]requested_item shift.opened is exist - process it [18:15:00]req_shift_opened [18:15:00]FM_GetShiftState [18:15:00]SAM_PROTO_GetShiftState [18:15:00]wFMCommunicate request_size=4 [18:15:00]MH_SAM_APDU [18:15:00]CAPDU: 80 13 01 00 [18:15:00]Write to MH i2c: E2 08 00 F8 26 80 13 01 00 00 00 00 00 9B [18:15:00]Write i2c OK [18:15:00]MH_I2C_Read... [18:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:00]Read from MH i2c: E2 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 0E 00 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 0E 00 F8 26 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 3B [18:15:00]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:15:00]wFMCommunicate OK [18:15:00]SAM_PROTO_GetShiftState done [18:15:00]FM_GetShiftState done [18:15:00]req_shift_opened done [18:15:00]requested_item shift.open_date is exist - process it [18:15:00]req_shift_open_date [18:15:00]req_shift_open_date done [18:15:00]produce_requested_data done [18:15:00]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64035,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:15:00]process_action_free close_receipt [18:15:00]json_value_free [18:15:00]json_value_free done [18:15:00]process_json_proto returns [18:15:00]Send response to host [18:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64035,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:15:00]free response buf [18:15:00]execute_script done [18:15:00]execute_script returns [18:15:00]free content buf [18:15:00]Sock 9.Close socket [18:15:00]Sock 9.Thread stoped [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:57]accept exits with 10 [18:25:57]New connection [18:25:57]New thread 3067055460 created [18:25:57]Thread 3066912100 joined [18:25:57]Waiting for new connection... [18:25:57] Sock 10.Parse request [18:25:57]Sock 10.Check first char [18:25:57]Sock 10.First char is OK [18:25:57]request: POST /json_proto HTTP/1.0 [18:25:57]Method: POST [18:25:57]URL: /json_proto [18:25:57]Method is POST - this is cgi request [18:25:57]url: /json_proto [18:25:57]query_string will be loaded in cgi processing [18:25:57]execute_cgi json_proto POST (null) [18:25:57]execute_cgi path=json_proto method=POST [18:25:57]POST find Content-Length [18:25:57]Host: 172.17.60.69:8080 [18:25:57]Content-Length: 670 [18:25:57]Content-Type: application/json [18:25:57] [18:25:57]POST finish read [18:25:57]Found Content-Length = 670 [18:25:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 5.900, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:57]execute_script... [18:25:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.90, "quantity" : 5.900, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:57]POST & json_proto [18:25:57]process_json_proto [18:25:57]json parsed OK: [18:25:57]protocol is kg_v1.0 [18:25:57]action value=close_receipt [18:25:57]process_action close_receipt [18:25:57]cmd_close_receipt [18:25:57]MH_GetDate [18:25:57]Write to MH i2c: F0 00 00 F9 26 0E [18:25:57]Write i2c OK [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: F0 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: F0 09 00 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: F0 09 00 F9 26 00 3A 5C 5F 66 6A 96 4A 66 22 [18:25:57]GetLastDocTimeStamp 1717524900 [18:25:57]current date 1717525562 [18:25:57]FM_GetShiftState [18:25:57]SAM_PROTO_GetShiftState [18:25:57]wFMCommunicate request_size=4 [18:25:57]MH_SAM_APDU [18:25:57]CAPDU: 80 13 01 00 [18:25:57]Write to MH i2c: E2 08 00 FA 26 80 13 01 00 00 00 00 00 9D [18:25:57]Write i2c OK [18:25:57]MH_I2C_Read... [18:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:57]Read from MH i2c: E2 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 0E 00 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 0E 00 FA 26 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 3D [18:25:57]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:25:57]wFMCommunicate OK [18:25:57]SAM_PROTO_GetShiftState done [18:25:57]FM_GetShiftState done [18:25:57]opened in 1717459574 [18:25:57]opened+sec_in_day 1717545974 [18:25:57]quantity*price = 40061 [18:25:57]sum+1 = 40062 [18:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 121 04.06.2024 18:26 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64036 ФПД: 236509145098344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182602&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64036&fm=236509145098344&tin=02508201610067®Number=0000000000092737&sum=40000 [18:25:59]StoreToDocumentArchive [18:25:59]shift 374 fd 64036 [18:25:59]save to /storage/0374/doc_00064036 [18:25:59]save last doc name /storage/0374/doc_00064036 to /storage/kkm_last_doc_name [18:25:59]save OK [18:25:59]Clear old archive folders... [18:25:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:25:59]tlvbuf is 0132D0D0 [18:25:59]SAM_PROTO_ClearQueue [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 09 00 00 [18:25:59]Write to MH i2c: E2 08 00 07 27 80 09 00 00 00 00 00 00 A0 [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 07 27 00 90 00 A2 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]SAM_PROTO_ClearQueue done [18:25:59]KKMCreateOFDPacket [18:25:59]OFDProtocolAddRootSTLVToBuf [18:25:59]FM_MakeSignedData [18:25:59]FM_MakeSignedData [18:25:59]SAM_PROTO_SignData [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 01 02 [18:25:59]Write to MH i2c: E2 08 00 08 27 80 0D 01 02 00 00 00 00 A8 [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 08 27 00 90 00 A3 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]wFMCommunicate request_size=255 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 3A 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 24 FA 00 00 35 04 06 00 [18:25:59]Write to MH i2c: E2 02 01 09 27 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 3A 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 24 FA 00 00 35 04 06 00 00 00 5F [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]OFD Sender: No OFD packet to send [18:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 09 27 00 90 00 A4 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]wFMCommunicate request_size=11 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 02 02 06 D7 1A 93 94 68 68 [18:25:59]Write to MH i2c: E2 0E 00 0A 27 80 0D 02 02 06 00 D7 1A 93 94 68 68 00 00 9F [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 0A 27 00 90 00 A5 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 03 02 [18:25:59]Write to MH i2c: E2 08 00 0B 27 80 0D 03 02 00 00 00 00 AD [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 0B 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 0B 00 0B 27 00 C8 46 C9 92 A3 A7 58 24 90 00 DD [18:25:59]RAPDU: C8 46 C9 92 A3 A7 58 24 90 00 [18:25:59]wFMCommunicate OK [18:25:59]SAM_PROTO_SignData done [18:25:59]FM_MakeSignedData done [18:25:59]CreateOFDProtocolMessage [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 11 00 00 [18:25:59]Write to MH i2c: E2 08 00 0C 27 80 11 00 00 00 00 00 00 AD [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 17 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 17 00 0C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FF [18:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:25:59]wFMCommunicate OK [18:25:59]CreateOFDProtocolMessage done [18:25:59]OFDSenderStorePacket 64036 [18:25:59]StoreOFDPacket docnum=64036 [18:25: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 10 01 00 00 88 C2 08 01 29 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 3A 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 24 FA 00 00 35 04 06 00 D7 1A 93 94 68 68 C8 46 C9 92 A3 A7 58 24 [18:25:59]CheckFolder [18:25:59]dirname=/storage/ofd_packets [18:25:59]CheckFolder done [18:25:59]ProducePacketName [18:25:59]name=ofd_packets/00064036 [18:25:59]NVStorageSaveData ofd_packets/00064036 [18:25:59]File name is /storage/ofd_packets/00064036 [18:25:59]Write 302 bytes [18:25:59]NVStorageSaveData done [18:25:59]OFDSenderStorePacket done [18:25:59]KKMCreateOFDPacket done [18:25:59]NVStorageSaveData kkm_last_timestamp [18:25:59]File name is /storage/kkm_last_timestamp [18:25:59]Write 4 bytes [18:25:59]NVStorageSaveData done [18:25:59]ExternCall_PrintAddStr [18:25:59]wPrintStart [18:25:59]Write to MH i2c: 01 00 00 0D 27 34 [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: 01 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: 01 07 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: 01 07 00 0D 27 00 00 00 00 00 FF 0F 49 [18:25:59]RasterBufferAndPrint [18:25:59]line Счет N : (1)544998 [18:25:59]line ИНН: 02508201610067 [18:25:59]line Контрольно-Кассовый Чек [18:25:59]line ПРОДАЖА [18:25:59]line ТРК (МРК, ГНК) : 14 [18:25:59]line Товар: 2710124130 [18:25:59]line SUPER 92-К-5 [18:25:59]line 5.900 * 67.90 [18:25:59]line = 400.61 [18:25:59]line НДС 12% НСП 1% [18:25:59]line > о реализуемом товаре [18:25:59]line ОКРУГЛЕНИЕ: -0.61 [18:25:59]line ИТОГО: 400.00 [18:25:59]line Внесено: 400.00 [18:25:59]line СДАЧА: 0.00 [18:25:59]line НСП 1% : 3.54 [18:25:59]line НДС 12% : 42.54 [18:25:59]line Наличными: 400.00 [18:25:59]line Безнал.: 0.00 [18:25:59]line Место: АЗС № 117 "Партнер Нефть" [18:25:59]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:25:59]line СНО: Общий режим [18:25:59]line Чек 121 04.06.2024 18:26 [18:25:59]line Смена: 374 ФФД: 1.0 [18:25:59]line ЗНМ: 0300000031 [18:25:59]line РНМ: 0000000000092737 [18:25:59]line Версия ККМ: 001 [18:25:59]line ФМ: 0000000000875074 [18:25:59]line ФД: 64036 [18:25:59]line ФПД: 236509145098344 [18:25:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182602&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64036&fm=236509145098344&tin=02508201610067®Number=0000000000092737&sum=40000 [18:25:59]OFD Sender: Processing packet 64036 [packets to send 14, broken 13] [18:25:59]ProducePacketName [18:25:59]name=ofd_packets/00064036 [18:25:59]OFD Sender: To server: pG, [18:25:59]CommunicateWithHost lk.salyk.kg:30040 [18:25:59]ConnectInit lk.salyk.kg [18:25:59]written 0, free lines is 4095 [18:26:00]Connected sock=11 [18:26:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 01 00 00 88 C2 08 01 29 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 3A 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 24 FA 00 00 35 04 06 00 D7 1A 93 94 68 68 C8 46 C9 92 A3 A7 58 24 [18:26: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 2D D2 47 00 FC 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 24 FA 00 00 F4 03 04 00 07 08 5F 66 B6 04 01 00 00 70 55 35 F4 AE 05 EC 19 [18:26:00]CommunicateWithHost err = 0 [18:26:00]CheckOFDResponse [18:26:00]1017 (14) - 77093643461234 [18:26:00]1041 (16) - 0000000000875074 [18:26:00]1040 (4) - 64036 [18:26:00]1012 (4) - 04.06.2024 12:26 [18:26:00]1206 (1) - 0 [18:26:00]OFD Sender: Remove packet 64036 [18:26:00]ProducePacketName [18:26:00]name=ofd_packets/00064036 [18:26:00]NVStorageDeleteData [18:26:00]Write to MH i2c: 01 00 00 38 27 5F [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 38 27 00 00 00 00 00 E4 0C 56 [18:26:00]RasterBufferAndPrint [18:26:00]line [18:26:00]line [18:26:00]line [18:26:00]line [18:26:00]line [18:26:00]written 0, free lines is 3306 [18:26:00]MH_Cut [18:26:00]Write to MH i2c: D1 01 00 3F 27 01 38 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: D1 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: D1 01 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: D1 01 00 3F 27 00 37 [18:26:00]Write to MH i2c: 01 00 00 40 27 67 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]OFD Sender: No OFD packet to send [18:26:01]*** Cut start [18:26:01]*** Partial cut [18:26:01]*** CUTSNS_PIN = 1 [18:26:01]*** CUTSNS_PIN = 0 [18:26:01]*** Brake cut motor [18:26:01]Read from MH i2c: 01 [18:26:01]MH_I2C_Read... [18:26:01]*** Stop cut motor [18:26:01]*** Cut end [18:26:01]Read from MH i2c: 01 07 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 07 00 40 27 00 00 00 00 00 FF 0F 7C [18:26:01]process_action close_receipt done [18:26:01]requested_data is exist [18:26:01]produce_requested_data [18:26:01]requested_item fm.sn is exist - process it [18:26:01]wFMCommunicate request_size=4 [18:26:01]MH_SAM_APDU [18:26:01]CAPDU: 80 11 00 00 [18:26:01]Write to MH i2c: E2 08 00 41 27 80 11 00 00 00 00 00 00 E2 [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:01]Read from MH i2c: E2 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 17 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 17 00 41 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 34 [18:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:26:01]wFMCommunicate OK [18:26:01]requested_item fd.num is exist - process it [18:26:01]SAM_PROTO_GetFieldsCounters [18:26:01]wFMCommunicate request_size=4 [18:26:01]MH_SAM_APDU [18:26:01]CAPDU: 80 13 00 00 [18:26:01]Write to MH i2c: E2 08 00 42 27 80 13 00 00 00 00 00 00 E5 [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:02]Read from MH i2c: E2 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 62 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 62 00 42 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 24 FA 00 00 0E 04 04 00 76 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 08 [18:26:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 24 FA 00 00 0E 04 04 00 76 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 [18:26:02]wFMCommunicate OK [18:26:02]SAM_PROTO_GetFieldsCounters done [18:26:02]requested_item shift.num is exist - process it [18:26:02]requested_item shift.opened is exist - process it [18:26:02]req_shift_opened [18:26:02]FM_GetShiftState [18:26:02]SAM_PROTO_GetShiftState [18:26:02]wFMCommunicate request_size=4 [18:26:02]MH_SAM_APDU [18:26:02]CAPDU: 80 13 01 00 [18:26:02]Write to MH i2c: E2 08 00 43 27 80 13 01 00 00 00 00 00 E7 [18:26:02]Write i2c OK [18:26:02]MH_I2C_Read... [18:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:02]Read from MH i2c: E2 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 0E 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 0E 00 43 27 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 87 [18:26:02]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:26:02]wFMCommunicate OK [18:26:02]SAM_PROTO_GetShiftState done [18:26:02]FM_GetShiftState done [18:26:02]req_shift_opened done [18:26:02]requested_item shift.open_date is exist - process it [18:26:02]req_shift_open_date [18:26:02]req_shift_open_date done [18:26:02]produce_requested_data done [18:26:02]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64036,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:26:02]process_action_free close_receipt [18:26:02]json_value_free [18:26:02]json_value_free done [18:26:02]process_json_proto returns [18:26:02]Send response to host [18:26:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64036,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:26:02]free response buf [18:26:02]execute_script done [18:26:02]execute_script returns [18:26:02]free content buf [18:26:02]Sock 10.Close socket [18:26:02]Sock 10.Thread stoped [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:42]accept exits with 7 [18:26:42]New connection [18:26:42]New thread 3066912100 created [18:26:42]Thread 3067055460 joined [18:26:42]Waiting for new connection... [18:26:42] Sock 7.Parse request [18:26:42]Sock 7.Check first char [18:26:42]Sock 7.First char is OK [18:26:42]request: POST /json_proto HTTP/1.0 [18:26:42]Method: POST [18:26:42]URL: /json_proto [18:26:42]Method is POST - this is cgi request [18:26:42]url: /json_proto [18:26:42]query_string will be loaded in cgi processing [18:26:42]execute_cgi json_proto POST (null) [18:26:42]execute_cgi path=json_proto method=POST [18:26:42]POST find Content-Length [18:26:42]Host: 172.17.60.69:8080 [18:26:42]Content-Length: 1172 [18:26:42]Content-Type: application/json [18:26:42] [18:26:42]POST finish read [18:26:42]Found Content-Length = 1172 [18:26:42]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 : \u0421\u0438\u043A\u0441\u0430\u0439 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)545000\u000A04.06.2024 18:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.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\u000A3890081\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:42]execute_script... [18:26:42]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 : \u0421\u0438\u043A\u0441\u0430\u0439 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)545000\u000A04.06.2024 18:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.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\u000A3890081\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:42]POST & json_proto [18:26:42]process_json_proto [18:26:42]json parsed OK: [18:26:42]protocol is kg_v1.0 [18:26:42]action value=print_text [18:26:42]process_action print_text [18:26:42]cmd_print_text [18:26:42]ExternCall_PrintAddStr [18:26:42]wPrintStart [18:26:42]Write to MH i2c: 01 00 00 44 27 6B [18:26:42]Write i2c OK [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: 01 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: 01 07 00 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: 01 07 00 44 27 00 00 00 00 00 FF 0F 80 [18:26:42]RasterBufferAndPrint [18:26:42]line *****ТОВАРНЫЙ ЧЕК***** [18:26:42]line АЗС 117 [18:26:42]line Партнер нефть [18:26:42]line 02508201610067 [18:26:42]line Кассир : Сиксай К. [18:26:42]line Счет N : (1)545000 [18:26:42]line 04.06.2024 18:20 [18:26:42]line ПРОДАЖА [18:26:42]line ТРК (МРК, ГНК): 22 [18:26:42]line Вид ГСМ : 2710124130 [18:26:42]line Аи-92-К-5 [18:26:42]line 10.000 x 66.90 [18:26:42]line ИТОГ: 669.00 [18:26:42]line Тип оплаты: Талоны: Партнер нефть [18:26:42]line 3890081 [18:26:42]line ______________________ [18:26:42]line (подпись) [18:26:42]written 0, free lines is 4095 [18:26:42]Write to MH i2c: 01 00 00 58 27 7F [18:26:42]Write i2c OK [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: 01 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: 01 07 00 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: 01 07 00 58 27 00 00 00 00 00 12 0E A6 [18:26:42]RasterBufferAndPrint [18:26:42]line [18:26:42]line [18:26:42]line [18:26:42]line [18:26:42]line [18:26:42]written 0, free lines is 3604 [18:26:42]MH_Cut [18:26:42]Write to MH i2c: D1 01 00 5F 27 01 58 [18:26:42]Write i2c OK [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: D1 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: D1 01 00 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: D1 01 00 5F 27 00 57 [18:26:42]Write to MH i2c: 01 00 00 60 27 87 [18:26:42]Write i2c OK [18:26:42]MH_I2C_Read... [18:26:43]*** Cut start [18:26:43]*** Partial cut [18:26:43]*** CUTSNS_PIN = 1 [18:26:43]*** CUTSNS_PIN = 0 [18:26:43]*** Brake cut motor [18:26:43]Read from MH i2c: 01 [18:26:43]MH_I2C_Read... [18:26:43]*** Stop cut motor [18:26:43]*** Cut end [18:26:43]Read from MH i2c: 01 07 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: 01 07 00 60 27 00 00 00 00 00 FF 0F 9C [18:26:43]process_action print_text done [18:26:43]requested_data is exist [18:26:43]produce_requested_data [18:26:43]requested_item fm.sn is exist - process it [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 11 00 00 [18:26:43]Write to MH i2c: E2 08 00 61 27 80 11 00 00 00 00 00 00 02 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:43]Read from MH i2c: E2 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 17 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 17 00 61 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 54 [18: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 [18:26:43]wFMCommunicate OK [18:26:43]requested_item fd.num is exist - process it [18:26:43]SAM_PROTO_GetFieldsCounters [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 13 00 00 [18:26:43]Write to MH i2c: E2 08 00 62 27 80 13 00 00 00 00 00 00 05 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 62 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 62 00 62 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 24 FA 00 00 0E 04 04 00 76 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 28 [18: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 24 FA 00 00 0E 04 04 00 76 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 [18:26:44]wFMCommunicate OK [18:26:44]SAM_PROTO_GetFieldsCounters done [18:26:44]requested_item shift.num is exist - process it [18:26:44]requested_item shift.opened is exist - process it [18:26:44]req_shift_opened [18:26:44]FM_GetShiftState [18:26:44]SAM_PROTO_GetShiftState [18:26:44]wFMCommunicate request_size=4 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 13 01 00 [18:26:44]Write to MH i2c: E2 08 00 63 27 80 13 01 00 00 00 00 00 07 [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 0E 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 0E 00 63 27 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A7 [18:26:44]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:26:44]wFMCommunicate OK [18:26:44]SAM_PROTO_GetShiftState done [18:26:44]FM_GetShiftState done [18:26:44]req_shift_opened done [18:26:44]requested_item shift.open_date is exist - process it [18:26:44]req_shift_open_date [18:26:44]req_shift_open_date done [18:26:44]produce_requested_data done [18:26:44]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64036,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:26:44]process_action_free print_text [18:26:44]json_value_free [18:26:44]json_value_free done [18:26:44]process_json_proto returns [18:26:44]Send response to host [18:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64036,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:26:44]free response buf [18:26:44]execute_script done [18:26:44]execute_script returns [18:26:44]free content buf [18:26:44]Sock 7.Close socket [18:26:44]Sock 7.Thread stoped [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]accept exits with 10 [18:29:05]New connection [18:29:05]New thread 3067055460 created [18:29:05]Thread 3066912100 joined [18:29:05]Waiting for new connection... [18:29:05] Sock 10.Parse request [18:29:05]Sock 10.Check first char [18:29:05]Sock 10.First char is OK [18:29:05]request: POST /json_proto HTTP/1.0 [18:29:05]Method: POST [18:29:05]URL: /json_proto [18:29:05]Method is POST - this is cgi request [18:29:05]url: /json_proto [18:29:05]query_string will be loaded in cgi processing [18:29:05]execute_cgi json_proto POST (null) [18:29:05]execute_cgi path=json_proto method=POST [18:29:05]POST find Content-Length [18:29:05]Host: 172.17.60.69:8080 [18:29:05]Content-Length: 685 [18:29:05]Content-Type: application/json [18:29:05] [18:29:05]POST finish read [18:29:05]Found Content-Length = 685 [18:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 40.120, "sum" : 1400.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:05]execute_script... [18:29:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)544999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 40.120, "sum" : 1400.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:05]POST & json_proto [18:29:05]process_json_proto [18:29:05]json parsed OK: [18:29:05]protocol is kg_v1.0 [18:29:05]action value=close_receipt [18:29:05]process_action close_receipt [18:29:05]cmd_close_receipt [18:29:05]MH_GetDate [18:29:05]Write to MH i2c: F0 00 00 64 27 7A [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: F0 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: F0 09 00 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: F0 09 00 64 27 00 F5 5C 5F 66 6A 96 4A 66 49 [18:29:05]GetLastDocTimeStamp 1717525562 [18:29:05]current date 1717525749 [18:29:05]FM_GetShiftState [18:29:05]SAM_PROTO_GetShiftState [18:29:05]wFMCommunicate request_size=4 [18:29:05]MH_SAM_APDU [18:29:05]CAPDU: 80 13 01 00 [18:29:05]Write to MH i2c: E2 08 00 65 27 80 13 01 00 00 00 00 00 09 [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:05]Read from MH i2c: E2 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: E2 0E 00 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: E2 0E 00 65 27 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A9 [18:29:05]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:29:05]wFMCommunicate OK [18:29:05]SAM_PROTO_GetShiftState done [18:29:05]FM_GetShiftState done [18:29:05]opened in 1717459574 [18:29:05]opened+sec_in_day 1717545974 [18:29:05]quantity*price = 140018 [18:29:05]sum+1 = 140020 [18:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 122 04.06.2024 18:29 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64037 ФПД: 98001972491115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182909&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64037&fm=98001972491115&tin=02508201610067®Number=0000000000092737&sum=140000 [18:29:06]StoreToDocumentArchive [18:29:06]shift 374 fd 64037 [18:29:06]save to /storage/0374/doc_00064037 [18:29:06]save last doc name /storage/0374/doc_00064037 to /storage/kkm_last_doc_name [18:29:06]save OK [18:29:06]Clear old archive folders... [18:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:29:06]tlvbuf is 0125B980 [18:29:06]SAM_PROTO_ClearQueue [18:29:06]wFMCommunicate request_size=4 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 09 00 00 [18:29:06]Write to MH i2c: E2 08 00 72 27 80 09 00 00 00 00 00 00 0B [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:06]Read from MH i2c: E2 03 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 03 00 72 27 00 90 00 0D [18:29:06]RAPDU: 90 00 [18:29:06]wFMCommunicate OK [18:29:06]SAM_PROTO_ClearQueue done [18:29:06]KKMCreateOFDPacket [18:29:06]OFDProtocolAddRootSTLVToBuf [18:29:06]FM_MakeSignedData [18:29:06]FM_MakeSignedData [18:29:06]SAM_PROTO_SignData [18:29:06]wFMCommunicate request_size=4 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 0D 01 02 [18:29:06]Write to MH i2c: E2 08 00 73 27 80 0D 01 02 00 00 00 00 13 [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 03 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 03 00 73 27 00 90 00 0E [18:29:06]RAPDU: 90 00 [18:29:06]wFMCommunicate OK [18:29:06]wFMCommunicate request_size=255 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 9C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 F3 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F5 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 25 FA 00 00 35 04 06 00 59 21 [18:29:06]Write to MH i2c: E2 02 01 74 27 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 9C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 F3 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F5 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 25 FA 00 00 35 04 06 00 59 21 00 00 B2 [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 03 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 03 00 74 27 00 90 00 0F [18:29:06]RAPDU: 90 00 [18:29:06]wFMCommunicate OK [18:29:06]wFMCommunicate request_size=9 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 0D 02 02 04 DC C1 F3 6B [18:29:06]Write to MH i2c: E2 0C 00 75 27 80 0D 02 02 04 00 DC C1 F3 6B 00 00 19 [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 03 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 03 00 75 27 00 90 00 10 [18:29:06]RAPDU: 90 00 [18:29:06]wFMCommunicate OK [18:29:06]wFMCommunicate request_size=4 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 0D 03 02 [18:29:06]Write to MH i2c: E2 08 00 76 27 80 0D 03 02 00 00 00 00 18 [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 0B 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 0B 00 76 27 00 40 8B 14 46 63 15 D9 E3 90 00 72 [18:29:06]RAPDU: 40 8B 14 46 63 15 D9 E3 90 00 [18:29:06]wFMCommunicate OK [18:29:06]SAM_PROTO_SignData done [18:29:06]FM_MakeSignedData done [18:29:06]CreateOFDProtocolMessage [18:29:06]wFMCommunicate request_size=4 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 11 00 00 [18:29:06]Write to MH i2c: E2 08 00 77 27 80 11 00 00 00 00 00 00 18 [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 17 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 17 00 77 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 6A [18:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:29:06]wFMCommunicate OK [18:29:06]CreateOFDProtocolMessage done [18:29:06]OFDSenderStorePacket 64037 [18:29:06]StoreOFDPacket docnum=64037 [18:29: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 0E 01 00 00 0C DF 06 01 18 97 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 9C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 F3 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F5 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 25 FA 00 00 35 04 06 00 59 21 DC C1 F3 6B 40 8B 14 46 63 15 D9 E3 [18:29:06]CheckFolder [18:29:06]dirname=/storage/ofd_packets [18:29:06]CheckFolder done [18:29:06]ProducePacketName [18:29:06]name=ofd_packets/00064037 [18:29:06]NVStorageSaveData ofd_packets/00064037 [18:29:06]File name is /storage/ofd_packets/00064037 [18:29:06]Write 300 bytes [18:29:06]NVStorageSaveData done [18:29:06]OFDSenderStorePacket done [18:29:06]KKMCreateOFDPacket done [18:29:06]NVStorageSaveData kkm_last_timestamp [18:29:06]File name is /storage/kkm_last_timestamp [18:29:06]Write 4 bytes [18:29:06]NVStorageSaveData done [18:29:06]ExternCall_PrintAddStr [18:29:06]wPrintStart [18:29:06]Write to MH i2c: 01 00 00 78 27 9F [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: 01 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: 01 07 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: 01 07 00 78 27 00 00 00 00 00 FF 0F B4 [18:29:06]RasterBufferAndPrint [18:29:06]line Счет N : (1)544999 [18:29:06]line ИНН: 02508201610067 [18:29:06]line Контрольно-Кассовый Чек [18:29:06]line ПРОДАЖА [18:29:06]line ТРК (МРК, ГНК) : 72 [18:29:06]line Товар: 2711190000 [18:29:06]line ГАЗ-К-5 [18:29:06]line 40.120 * 34.90 [18:29:06]line = 1400.19 [18:29:06]line НДС 12% НСП 1% [18:29:06]line > о реализуемом товаре [18:29:06]line ОКРУГЛЕНИЕ: -0.19 [18:29:06]line ИТОГО: 1400.00 [18:29:06]line Внесено: 1400.00 [18:29:06]line СДАЧА: 0.00 [18:29:06]line НСП 1% : 12.39 [18:29:06]line НДС 12% : 148.69 [18:29:06]line Наличными: 1400.00 [18:29:06]line Безнал.: 0.00 [18:29:06]line Место: АЗС № 117 "Партнер Нефть" [18:29:06]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:29:06]line СНО: Общий режим [18:29:06]line Чек 122 04.06.2024 18:29 [18:29:06]line Смена: 374 ФФД: 1.0 [18:29:06]line ЗНМ: 0300000031 [18:29:06]line РНМ: 0000000000092737 [18:29:06]line Версия ККМ: 001 [18:29:06]line ФМ: 0000000000875074 [18:29:06]line ФД: 64037 [18:29:06]line ФПД: 98001972491115 [18:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182909&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64037&fm=98001972491115&tin=02508201610067®Number=0000000000092737&sum=140000 [18:29:07]OFD Sender: Processing packet 64037 [packets to send 14, broken 13] [18:29:07]ProducePacketName [18:29:07]name=ofd_packets/00064037 [18:29:07]OFD Sender: To server: pG, [18:29:07]CommunicateWithHost lk.salyk.kg:30040 [18:29:07]ConnectInit lk.salyk.kg [18:29:07]written 0, free lines is 4095 [18:29:07]Connected sock=7 [18:29: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 0E 01 00 00 0C DF 06 01 18 97 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B8 9C 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 F3 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 F5 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 25 FA 00 00 35 04 06 00 59 21 DC C1 F3 6B 40 8B 14 46 63 15 D9 E3 [18:29: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 3D 75 47 00 9E 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 25 FA 00 00 F4 03 04 00 C3 08 5F 66 B6 04 01 00 00 4B 34 B9 1F B7 14 13 C2 [18:29:07]CommunicateWithHost err = 0 [18:29:07]CheckOFDResponse [18:29:07]1017 (14) - 77093643461234 [18:29:07]1041 (16) - 0000000000875074 [18:29:07]1040 (4) - 64037 [18:29:07]1012 (4) - 04.06.2024 12:29 [18:29:07]1206 (1) - 0 [18:29:07]OFD Sender: Remove packet 64037 [18:29:07]ProducePacketName [18:29:07]name=ofd_packets/00064037 [18:29:07]NVStorageDeleteData [18:29:07]Write to MH i2c: 01 00 00 A3 27 CA [18:29:07]Write i2c OK [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: 01 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: 01 07 00 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: 01 07 00 A3 27 00 00 00 00 00 EC 0C C9 [18:29:07]RasterBufferAndPrint [18:29:07]line [18:29:07]line [18:29:07]line [18:29:07]line [18:29:07]line [18:29:07]written 0, free lines is 3314 [18:29:07]MH_Cut [18:29:07]Write to MH i2c: D1 01 00 AA 27 01 A3 [18:29:07]Write i2c OK [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: D1 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: D1 01 00 [18:29:07]MH_I2C_Read... [18:29:07]Read from MH i2c: D1 01 00 AA 27 00 A2 [18:29:07]Write to MH i2c: 01 00 00 AB 27 D2 [18:29:07]Write i2c OK [18:29:07]MH_I2C_Read... [18:29:08]OFD Sender: No OFD packet to send [18:29:08]*** Cut start [18:29:08]*** Partial cut [18:29:08]*** CUTSNS_PIN = 1 [18:29:08]*** CUTSNS_PIN = 0 [18:29:08]*** Brake cut motor [18:29:09]Read from MH i2c: 01 [18:29:09]MH_I2C_Read... [18:29:09]*** Stop cut motor [18:29:09]*** Cut end [18:29:09]Read from MH i2c: 01 07 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: 01 07 00 AB 27 00 00 00 00 00 FF 0F E7 [18:29:09]process_action close_receipt done [18:29:09]requested_data is exist [18:29:09]produce_requested_data [18:29:09]requested_item fm.sn is exist - process it [18:29:09]wFMCommunicate request_size=4 [18:29:09]MH_SAM_APDU [18:29:09]CAPDU: 80 11 00 00 [18:29:09]Write to MH i2c: E2 08 00 AC 27 80 11 00 00 00 00 00 00 4D [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:09]Read from MH i2c: E2 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 17 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 17 00 AC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9F [18:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:29:09]wFMCommunicate OK [18:29:09]requested_item fd.num is exist - process it [18:29:09]SAM_PROTO_GetFieldsCounters [18:29:09]wFMCommunicate request_size=4 [18:29:09]MH_SAM_APDU [18:29:09]CAPDU: 80 13 00 00 [18:29:09]Write to MH i2c: E2 08 00 AD 27 80 13 00 00 00 00 00 00 50 [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:09]Read from MH i2c: E2 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 62 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 62 00 AD 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 25 FA 00 00 0E 04 04 00 76 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 77 [18:29: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 25 FA 00 00 0E 04 04 00 76 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 [18:29:09]wFMCommunicate OK [18:29:09]SAM_PROTO_GetFieldsCounters done [18:29:09]requested_item shift.num is exist - process it [18:29:09]requested_item shift.opened is exist - process it [18:29:09]req_shift_opened [18:29:09]FM_GetShiftState [18:29:09]SAM_PROTO_GetShiftState [18:29:09]wFMCommunicate request_size=4 [18:29:09]MH_SAM_APDU [18:29:09]CAPDU: 80 13 01 00 [18:29:09]Write to MH i2c: E2 08 00 AE 27 80 13 01 00 00 00 00 00 52 [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:09]Read from MH i2c: E2 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 0E 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 0E 00 AE 27 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F2 [18:29:09]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:29:09]wFMCommunicate OK [18:29:09]SAM_PROTO_GetShiftState done [18:29:09]FM_GetShiftState done [18:29:09]req_shift_opened done [18:29:09]requested_item shift.open_date is exist - process it [18:29:09]req_shift_open_date [18:29:09]req_shift_open_date done [18:29:09]produce_requested_data done [18:29:09]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64037,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:29:09]process_action_free close_receipt [18:29:09]json_value_free [18:29:09]json_value_free done [18:29:09]process_json_proto returns [18:29:09]Send response to host [18:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64037,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:29:09]free response buf [18:29:09]execute_script done [18:29:09]execute_script returns [18:29:09]free content buf [18:29:09]Sock 10.Close socket [18:29:09]Sock 10.Thread stoped [18:29:09]accept exits with 9 [18:29:09]New connection [18:29:09]New thread 3066912100 created [18:29:09]Thread 3067055460 joined [18:29:09]Waiting for new connection... [18:29:09] Sock 9.Parse request [18:29:09]Sock 9.Check first char [18:29:09]Sock 9.First char is OK [18:29:09]request: POST /json_proto HTTP/1.0 [18:29:09]Method: POST [18:29:09]URL: /json_proto [18:29:09]Method is POST - this is cgi request [18:29:09]url: /json_proto [18:29:09]query_string will be loaded in cgi processing [18:29:09]execute_cgi json_proto POST (null) [18:29:09]execute_cgi path=json_proto method=POST [18:29:09]POST find Content-Length [18:29:09]Host: 172.17.60.69:8080 [18:29:09]Content-Length: 677 [18:29:09]Content-Type: application/json [18:29:09] [18:29:09]POST finish read [18:29:09]Found Content-Length = 677 [18:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545003", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:09]execute_script... [18:29:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545003", "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" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:09]POST & json_proto [18:29:09]process_json_proto [18:29:09]json parsed OK: [18:29:09]protocol is kg_v1.0 [18:29:09]action value=close_receipt [18:29:09]process_action close_receipt [18:29:09]cmd_close_receipt [18:29:09]MH_GetDate [18:29:09]Write to MH i2c: F0 00 00 AF 27 C5 [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: F0 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: F0 09 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: F0 09 00 AF 27 00 FA 5C 5F 66 6A 96 4A 66 99 [18:29:09]GetLastDocTimeStamp 1717525749 [18:29:09]current date 1717525754 [18:29:09]FM_GetShiftState [18:29:09]SAM_PROTO_GetShiftState [18:29:09]wFMCommunicate request_size=4 [18:29:09]MH_SAM_APDU [18:29:09]CAPDU: 80 13 01 00 [18:29:09]Write to MH i2c: E2 08 00 B0 27 80 13 01 00 00 00 00 00 54 [18:29:09]Write i2c OK [18:29:09]MH_I2C_Read... [18:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:09]Read from MH i2c: E2 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 0E 00 [18:29:09]MH_I2C_Read... [18:29:09]Read from MH i2c: E2 0E 00 B0 27 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 F4 [18:29:09]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:29:09]wFMCommunicate OK [18:29:09]SAM_PROTO_GetShiftState done [18:29:09]FM_GetShiftState done [18:29:09]opened in 1717459574 [18:29:09]opened+sec_in_day 1717545974 [18:29:09]quantity*price = 30038 [18:29:09]sum+1 = 30039 [18:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 123 04.06.2024 18:29 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64038 ФПД: 221142304516023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182914&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64038&fm=221142304516023&tin=02508201610067®Number=0000000000092737&sum=30000 [18:29:11]StoreToDocumentArchive [18:29:11]shift 374 fd 64038 [18:29:11]save to /storage/0374/doc_00064038 [18:29:11]save last doc name /storage/0374/doc_00064038 to /storage/kkm_last_doc_name [18:29:11]save OK [18:29:11]Clear old archive folders... [18:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:11]tlvbuf is 012DCC80 [18:29:11]SAM_PROTO_ClearQueue [18:29:11]wFMCommunicate request_size=4 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 09 00 00 [18:29:11]Write to MH i2c: E2 08 00 BD 27 80 09 00 00 00 00 00 00 56 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 BD 27 00 90 00 58 [18:29:11]RAPDU: 90 00 [18:29:11]wFMCommunicate OK [18:29:11]SAM_PROTO_ClearQueue done [18:29:11]KKMCreateOFDPacket [18:29:11]OFDProtocolAddRootSTLVToBuf [18:29:11]FM_MakeSignedData [18:29:11]FM_MakeSignedData [18:29:11]SAM_PROTO_SignData [18:29:11]wFMCommunicate request_size=4 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 0D 01 02 [18:29:11]Write to MH i2c: E2 08 00 BE 27 80 0D 01 02 00 00 00 00 5E [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 BE 27 00 90 00 59 [18:29:11]RAPDU: 90 00 [18:29:11]wFMCommunicate OK [18:29:11]wFMCommunicate request_size=255 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 FA 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 FA 00 00 35 04 06 00 C9 [18:29:11]Write to MH i2c: E2 02 01 BF 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 FA 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 FA 00 00 35 04 06 00 C9 00 00 D9 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 BF 27 00 90 00 5A [18:29:11]RAPDU: 90 00 [18:29:11]wFMCommunicate OK [18:29:11]wFMCommunicate request_size=10 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 0D 02 02 05 20 B4 81 67 B7 [18:29:11]Write to MH i2c: E2 0D 00 C0 27 80 0D 02 02 05 00 20 B4 81 67 B7 00 00 DE [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 03 00 C0 27 00 90 00 5B [18:29:11]RAPDU: 90 00 [18:29:11]wFMCommunicate OK [18:29:11]wFMCommunicate request_size=4 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 0D 03 02 [18:29:11]Write to MH i2c: E2 08 00 C1 27 80 0D 03 02 00 00 00 00 63 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 0B 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 0B 00 C1 27 00 0F 42 A5 56 22 3E 0C 6A 90 00 86 [18:29:11]RAPDU: 0F 42 A5 56 22 3E 0C 6A 90 00 [18:29:11]wFMCommunicate OK [18:29:11]SAM_PROTO_SignData done [18:29:11]FM_MakeSignedData done [18:29:11]CreateOFDProtocolMessage [18:29:11]wFMCommunicate request_size=4 [18:29:11]MH_SAM_APDU [18:29:11]CAPDU: 80 11 00 00 [18:29:11]Write to MH i2c: E2 08 00 C2 27 80 11 00 00 00 00 00 00 63 [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:11]Read from MH i2c: E2 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 17 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: E2 17 00 C2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B5 [18:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:29:11]wFMCommunicate OK [18:29:11]CreateOFDProtocolMessage done [18:29:11]OFDSenderStorePacket 64038 [18:29:11]StoreOFDPacket docnum=64038 [18:29: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 0F 01 00 00 10 04 07 01 7B 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 FA 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 FA 00 00 35 04 06 00 C9 20 B4 81 67 B7 0F 42 A5 56 22 3E 0C 6A [18:29:11]CheckFolder [18:29:11]dirname=/storage/ofd_packets [18:29:11]CheckFolder done [18:29:11]ProducePacketName [18:29:11]name=ofd_packets/00064038 [18:29:11]NVStorageSaveData ofd_packets/00064038 [18:29:11]File name is /storage/ofd_packets/00064038 [18:29:11]Write 301 bytes [18:29:11]NVStorageSaveData done [18:29:11]OFDSenderStorePacket done [18:29:11]KKMCreateOFDPacket done [18:29:11]NVStorageSaveData kkm_last_timestamp [18:29:11]File name is /storage/kkm_last_timestamp [18:29:11]Write 4 bytes [18:29:11]NVStorageSaveData done [18:29:11]ExternCall_PrintAddStr [18:29:11]wPrintStart [18:29:11]Write to MH i2c: 01 00 00 C3 27 EA [18:29:11]Write i2c OK [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: 01 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: 01 07 00 [18:29:11]MH_I2C_Read... [18:29:11]Read from MH i2c: 01 07 00 C3 27 00 00 00 00 00 FF 0F FF [18:29:11]RasterBufferAndPrint [18:29:11]line Счет N : (1)545003 [18:29:11]line ИНН: 02508201610067 [18:29:11]line Контрольно-Кассовый Чек [18:29:11]line ПРОДАЖА [18:29:11]line ТРК (МРК, ГНК) : 22 [18:29:11]line Товар: 2710124130 [18:29:11]line Аи-92-К-5 [18:29:11]line 4.490 * 66.90 [18:29:11]line = 300.38 [18:29:11]line НДС 12% НСП 1% [18:29:11]line > о реализуемом товаре [18:29:11]line ОКРУГЛЕНИЕ: -0.38 [18:29:11]line ИТОГО: 300.00 [18:29:11]line Внесено: 300.00 [18:29:11]line СДАЧА: 0.00 [18:29:11]line НСП 1% : 2.66 [18:29:11]line НДС 12% : 31.90 [18:29:11]line Наличными: 300.00 [18:29:11]line Безнал.: 0.00 [18:29:11]line Место: АЗС № 117 "Партнер Нефть" [18:29:11]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:29:11]line СНО: Общий режим [18:29:11]line Чек 123 04.06.2024 18:29 [18:29:11]line Смена: 374 ФФД: 1.0 [18:29:11]line ЗНМ: 0300000031 [18:29:11]line РНМ: 0000000000092737 [18:29:11]line Версия ККМ: 001 [18:29:11]line ФМ: 0000000000875074 [18:29:11]line ФД: 64038 [18:29:11]line ФПД: 221142304516023 [18:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182914&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64038&fm=221142304516023&tin=02508201610067®Number=0000000000092737&sum=30000 [18:29:12]OFD Sender: Processing packet 64038 [packets to send 14, broken 13] [18:29:12]ProducePacketName [18:29:12]name=ofd_packets/00064038 [18:29:12]written 0, free lines is 4095 [18:29:12]OFD Sender: To server: pG, [18:29:12]CommunicateWithHost lk.salyk.kg:30040 [18:29:12]ConnectInit lk.salyk.kg [18:29:12]Connected sock=10 [18:29: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 0F 01 00 00 10 04 07 01 7B 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 FA 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 FA 00 00 35 04 06 00 C9 20 B4 81 67 B7 0F 42 A5 56 22 3E 0C 6A [18:29: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 63 7D 47 00 7F B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 26 FA 00 00 F4 03 04 00 C8 08 5F 66 B6 04 01 00 00 50 33 43 09 D8 02 67 7E [18:29:12]CommunicateWithHost err = 0 [18:29:12]CheckOFDResponse [18:29:12]1017 (14) - 77093643461234 [18:29:12]1041 (16) - 0000000000875074 [18:29:12]1040 (4) - 64038 [18:29:12]1012 (4) - 04.06.2024 12:30 [18:29:12]1206 (1) - 0 [18:29:12]OFD Sender: Remove packet 64038 [18:29:12]ProducePacketName [18:29:12]name=ofd_packets/00064038 [18:29:12]NVStorageDeleteData [18:29:12]Write to MH i2c: 01 00 00 EE 27 15 [18:29:12]Write i2c OK [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: 01 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: 01 07 00 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: 01 07 00 EE 27 00 00 00 00 00 F0 0C 18 [18:29:12]RasterBufferAndPrint [18:29:12]line [18:29:12]line [18:29:12]line [18:29:12]line [18:29:12]line [18:29:12]written 0, free lines is 3328 [18:29:12]MH_Cut [18:29:12]Write to MH i2c: D1 01 00 F5 27 01 EE [18:29:12]Write i2c OK [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: D1 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: D1 01 00 [18:29:12]MH_I2C_Read... [18:29:12]Read from MH i2c: D1 01 00 F5 27 00 ED [18:29:12]Write to MH i2c: 01 00 00 F6 27 1D [18:29:12]Write i2c OK [18:29:12]MH_I2C_Read... [18:29:13]OFD Sender: No OFD packet to send [18:29:13]*** Cut start [18:29:13]*** Partial cut [18:29:13]*** CUTSNS_PIN = 1 [18:29:13]*** CUTSNS_PIN = 0 [18:29:13]*** Brake cut motor [18:29:14]Read from MH i2c: 01 [18:29:14]MH_I2C_Read... [18:29:14]*** Stop cut motor [18:29:14]*** Cut end [18:29:14]Read from MH i2c: 01 07 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: 01 07 00 F6 27 00 00 00 00 00 FF 0F 32 [18:29:14]process_action close_receipt done [18:29:14]requested_data is exist [18:29:14]produce_requested_data [18:29:14]requested_item fm.sn is exist - process it [18:29:14]wFMCommunicate request_size=4 [18:29:14]MH_SAM_APDU [18:29:14]CAPDU: 80 11 00 00 [18:29:14]Write to MH i2c: E2 08 00 F7 27 80 11 00 00 00 00 00 00 98 [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:14]Read from MH i2c: E2 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 17 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 17 00 F7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EA [18:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:29:14]wFMCommunicate OK [18:29:14]requested_item fd.num is exist - process it [18:29:14]SAM_PROTO_GetFieldsCounters [18:29:14]wFMCommunicate request_size=4 [18:29:14]MH_SAM_APDU [18:29:14]CAPDU: 80 13 00 00 [18:29:14]Write to MH i2c: E2 08 00 F8 27 80 13 00 00 00 00 00 00 9B [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:14]Read from MH i2c: E2 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 62 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 62 00 F8 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 26 FA 00 00 0E 04 04 00 76 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 C6 [18:29: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 26 FA 00 00 0E 04 04 00 76 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 [18:29:14]wFMCommunicate OK [18:29:14]SAM_PROTO_GetFieldsCounters done [18:29:14]requested_item shift.num is exist - process it [18:29:14]requested_item shift.opened is exist - process it [18:29:14]req_shift_opened [18:29:14]FM_GetShiftState [18:29:14]SAM_PROTO_GetShiftState [18:29:14]wFMCommunicate request_size=4 [18:29:14]MH_SAM_APDU [18:29:14]CAPDU: 80 13 01 00 [18:29:14]Write to MH i2c: E2 08 00 F9 27 80 13 01 00 00 00 00 00 9D [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:14]Read from MH i2c: E2 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 0E 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 0E 00 F9 27 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 3D [18:29:14]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:29:14]wFMCommunicate OK [18:29:14]SAM_PROTO_GetShiftState done [18:29:14]FM_GetShiftState done [18:29:14]req_shift_opened done [18:29:14]requested_item shift.open_date is exist - process it [18:29:14]req_shift_open_date [18:29:14]req_shift_open_date done [18:29:14]produce_requested_data done [18:29:14]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64038,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:29:14]process_action_free close_receipt [18:29:14]json_value_free [18:29:14]json_value_free done [18:29:14]process_json_proto returns [18:29:14]Send response to host [18:29:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64038,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:29:14]free response buf [18:29:14]execute_script done [18:29:14]execute_script returns [18:29:14]free content buf [18:29:14]Sock 9.Close socket [18:29:14]Sock 9.Thread stoped [18:29:14]accept exits with 7 [18:29:14]New connection [18:29:14]New thread 3067055460 created [18:29:14]Thread 3066912100 joined [18:29:14]Waiting for new connection... [18:29:14] Sock 7.Parse request [18:29:14]Sock 7.Check first char [18:29:14]Sock 7.First char is OK [18:29:14]request: POST /json_proto HTTP/1.0 [18:29:14]Method: POST [18:29:14]URL: /json_proto [18:29:14]Method is POST - this is cgi request [18:29:14]url: /json_proto [18:29:14]query_string will be loaded in cgi processing [18:29:14]execute_cgi json_proto POST (null) [18:29:14]execute_cgi path=json_proto method=POST [18:29:14]POST find Content-Length [18:29:14]Host: 172.17.60.69:8080 [18:29:14]Content-Length: 677 [18:29:14]Content-Type: application/json [18:29:14] [18:29:14]POST finish read [18:29:14]Found Content-Length = 677 [18:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545004", "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" ] } } [18:29:14]execute_script... [18:29:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545004", "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" ] } } [18:29:14]POST & json_proto [18:29:14]process_json_proto [18:29:14]json parsed OK: [18:29:14]protocol is kg_v1.0 [18:29:14]action value=close_receipt [18:29:14]process_action close_receipt [18:29:14]cmd_close_receipt [18:29:14]MH_GetDate [18:29:14]Write to MH i2c: F0 00 00 FA 27 10 [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: F0 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: F0 09 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: F0 09 00 FA 27 00 FF 5C 5F 66 6A 96 4A 66 E9 [18:29:14]GetLastDocTimeStamp 1717525754 [18:29:14]current date 1717525759 [18:29:14]FM_GetShiftState [18:29:14]SAM_PROTO_GetShiftState [18:29:14]wFMCommunicate request_size=4 [18:29:14]MH_SAM_APDU [18:29:14]CAPDU: 80 13 01 00 [18:29:14]Write to MH i2c: E2 08 00 FB 27 80 13 01 00 00 00 00 00 9F [18:29:14]Write i2c OK [18:29:14]MH_I2C_Read... [18:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:14]Read from MH i2c: E2 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 0E 00 [18:29:14]MH_I2C_Read... [18:29:14]Read from MH i2c: E2 0E 00 FB 27 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 3F [18:29:14]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:29:14]wFMCommunicate OK [18:29:14]SAM_PROTO_GetShiftState done [18:29:14]FM_GetShiftState done [18:29:14]opened in 1717459574 [18:29:14]opened+sec_in_day 1717545974 [18:29:14]quantity*price = 50041 [18:29:14]sum+1 = 50042 [18:29:14]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 СНО: Общий режим Чек 124 04.06.2024 18:29 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64039 ФПД: 254811186576095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182919&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64039&fm=254811186576095&tin=02508201610067®Number=0000000000092737&sum=50000 [18:29:16]StoreToDocumentArchive [18:29:16]shift 374 fd 64039 [18:29:16]save to /storage/0374/doc_00064039 [18:29:16]save last doc name /storage/0374/doc_00064039 to /storage/kkm_last_doc_name [18:29:16]save OK [18:29:16]Clear old archive folders... [18:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:16]tlvbuf is 012E9700 [18:29:16]SAM_PROTO_ClearQueue [18:29:16]wFMCommunicate request_size=4 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 09 00 00 [18:29:16]Write to MH i2c: E2 08 00 08 28 80 09 00 00 00 00 00 00 A2 [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 08 28 00 90 00 A4 [18:29:16]RAPDU: 90 00 [18:29:16]wFMCommunicate OK [18:29:16]SAM_PROTO_ClearQueue done [18:29:16]KKMCreateOFDPacket [18:29:16]OFDProtocolAddRootSTLVToBuf [18:29:16]FM_MakeSignedData [18:29:16]FM_MakeSignedData [18:29:16]SAM_PROTO_SignData [18:29:16]wFMCommunicate request_size=4 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 0D 01 02 [18:29:16]Write to MH i2c: E2 08 00 09 28 80 0D 01 02 00 00 00 00 AA [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 09 28 00 90 00 A5 [18:29:16]RAPDU: 90 00 [18:29:16]wFMCommunicate OK [18:29:16]wFMCommunicate request_size=255 [18:29:16]MH_SAM_APDU [18:29: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 7C 00 00 00 F4 03 04 00 FF 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 27 FA 00 00 35 04 06 00 E7 [18:29:16]Write to MH i2c: E2 02 01 0A 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 FF 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 27 FA 00 00 35 04 06 00 E7 00 00 56 [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 0A 28 00 90 00 A6 [18:29:16]RAPDU: 90 00 [18:29:16]wFMCommunicate OK [18:29:16]wFMCommunicate request_size=10 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 0D 02 02 05 BF DA 42 BA DF [18:29:16]Write to MH i2c: E2 0D 00 0B 28 80 0D 02 02 05 00 BF DA 42 BA DF 00 00 2B [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 03 00 0B 28 00 90 00 A7 [18:29:16]RAPDU: 90 00 [18:29:16]wFMCommunicate OK [18:29:16]wFMCommunicate request_size=4 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 0D 03 02 [18:29:16]Write to MH i2c: E2 08 00 0C 28 80 0D 03 02 00 00 00 00 AF [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 0B 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 0B 00 0C 28 00 2D 60 70 76 1F D7 19 C8 90 00 FA [18:29:16]RAPDU: 2D 60 70 76 1F D7 19 C8 90 00 [18:29:16]wFMCommunicate OK [18:29:16]SAM_PROTO_SignData done [18:29:16]FM_MakeSignedData done [18:29:16]CreateOFDProtocolMessage [18:29:16]wFMCommunicate request_size=4 [18:29:16]MH_SAM_APDU [18:29:16]CAPDU: 80 11 00 00 [18:29:16]Write to MH i2c: E2 08 00 0D 28 80 11 00 00 00 00 00 00 AF [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:16]Read from MH i2c: E2 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 17 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: E2 17 00 0D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 01 [18:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:29:16]wFMCommunicate OK [18:29:16]CreateOFDProtocolMessage done [18:29:16]OFDSenderStorePacket 64039 [18:29:16]StoreOFDPacket docnum=64039 [18:29: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 0F 01 00 00 46 94 07 01 64 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 FF 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 27 FA 00 00 35 04 06 00 E7 BF DA 42 BA DF 2D 60 70 76 1F D7 19 C8 [18:29:16]CheckFolder [18:29:16]dirname=/storage/ofd_packets [18:29:16]CheckFolder done [18:29:16]ProducePacketName [18:29:16]name=ofd_packets/00064039 [18:29:16]NVStorageSaveData ofd_packets/00064039 [18:29:16]File name is /storage/ofd_packets/00064039 [18:29:16]Write 301 bytes [18:29:16]NVStorageSaveData done [18:29:16]OFDSenderStorePacket done [18:29:16]KKMCreateOFDPacket done [18:29:16]NVStorageSaveData kkm_last_timestamp [18:29:16]File name is /storage/kkm_last_timestamp [18:29:16]Write 4 bytes [18:29:16]NVStorageSaveData done [18:29:16]ExternCall_PrintAddStr [18:29:16]wPrintStart [18:29:16]Write to MH i2c: 01 00 00 0E 28 36 [18:29:16]Write i2c OK [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: 01 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: 01 07 00 [18:29:16]MH_I2C_Read... [18:29:16]Read from MH i2c: 01 07 00 0E 28 00 00 00 00 00 FF 0F 4B [18:29:16]RasterBufferAndPrint [18:29:16]line Счет N : (1)545004 [18:29:16]line ИНН: 02508201610067 [18:29:16]line Контрольно-Кассовый Чек [18:29:16]line ПРОДАЖА [18:29:16]line ТРК (МРК, ГНК) : 12 [18:29:16]line Товар: 2710124130 [18:29:16]line Аи-92-К-5 [18:29:16]line 7.480 * 66.90 [18:29:16]line = 500.41 [18:29:16]line НДС 12% НСП 1% [18:29:16]line > о реализуемом товаре [18:29:16]line ОКРУГЛЕНИЕ: -0.41 [18:29:16]line ИТОГО: 500.00 [18:29:16]line Внесено: 500.00 [18:29:16]line СДАЧА: 0.00 [18:29:16]line НСП 1% : 4.43 [18:29:16]line НДС 12% : 53.14 [18:29:16]line Наличными: 500.00 [18:29:16]line Безнал.: 0.00 [18:29:16]line Место: АЗС № 117 "Партнер Нефть" [18:29:16]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:29:16]line СНО: Общий режим [18:29:16]line Чек 124 04.06.2024 18:29 [18:29:16]line Смена: 374 ФФД: 1.0 [18:29:16]line ЗНМ: 0300000031 [18:29:16]line РНМ: 0000000000092737 [18:29:16]line Версия ККМ: 001 [18:29:16]line ФМ: 0000000000875074 [18:29:16]line ФД: 64039 [18:29:16]line ФПД: 254811186576095 [18:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T182919&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64039&fm=254811186576095&tin=02508201610067®Number=0000000000092737&sum=50000 [18:29:17]OFD Sender: Processing packet 64039 [packets to send 14, broken 13] [18:29:17]ProducePacketName [18:29:17]name=ofd_packets/00064039 [18:29:17]OFD Sender: To server: pG, [18:29:17]CommunicateWithHost lk.salyk.kg:30040 [18:29:17]ConnectInit lk.salyk.kg [18:29:17]written 0, free lines is 4095 [18:29:17]Connected sock=10 [18:29: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 46 94 07 01 64 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 FF 5C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 27 FA 00 00 35 04 06 00 E7 BF DA 42 BA DF 2D 60 70 76 1F D7 19 C8 [18:29: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 FA 35 47 00 5E 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 27 FA 00 00 F4 03 04 00 CD 08 5F 66 B6 04 01 00 00 15 BD 95 FA ED A1 C3 FD [18:29:17]CommunicateWithHost err = 0 [18:29:17]CheckOFDResponse [18:29:17]1017 (14) - 77093643461234 [18:29:17]1041 (16) - 0000000000875074 [18:29:17]1040 (4) - 64039 [18:29:17]1012 (4) - 04.06.2024 12:30 [18:29:17]1206 (1) - 0 [18:29:17]OFD Sender: Remove packet 64039 [18:29:17]ProducePacketName [18:29:17]name=ofd_packets/00064039 [18:29:17]NVStorageDeleteData [18:29:17]Write to MH i2c: 01 00 00 39 28 61 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 07 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: 01 07 00 39 28 00 00 00 00 00 06 0D 7B [18:29:17]RasterBufferAndPrint [18:29:17]line [18:29:17]line [18:29:17]line [18:29:17]line [18:29:17]line [18:29:17]written 0, free lines is 3358 [18:29:17]MH_Cut [18:29:17]Write to MH i2c: D1 01 00 40 28 01 3A [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: D1 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: D1 01 00 [18:29:17]MH_I2C_Read... [18:29:17]Read from MH i2c: D1 01 00 40 28 00 39 [18:29:17]Write to MH i2c: 01 00 00 41 28 69 [18:29:17]Write i2c OK [18:29:17]MH_I2C_Read... [18:29:18]OFD Sender: No OFD packet to send [18:29:18]*** Cut start [18:29:18]*** Partial cut [18:29:18]*** CUTSNS_PIN = 1 [18:29:18]*** CUTSNS_PIN = 0 [18:29:18]*** Brake cut motor [18:29:19]Read from MH i2c: 01 [18:29:19]MH_I2C_Read... [18:29:19]*** Stop cut motor [18:29:19]*** Cut end [18:29:19]Read from MH i2c: 01 07 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: 01 07 00 41 28 00 00 00 00 00 FF 0F 7E [18:29:19]process_action close_receipt done [18:29:19]requested_data is exist [18:29:19]produce_requested_data [18:29:19]requested_item fm.sn is exist - process it [18:29:19]wFMCommunicate request_size=4 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 11 00 00 [18:29:19]Write to MH i2c: E2 08 00 42 28 80 11 00 00 00 00 00 00 E4 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 17 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 17 00 42 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 36 [18:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:29:19]wFMCommunicate OK [18:29:19]requested_item fd.num is exist - process it [18:29:19]SAM_PROTO_GetFieldsCounters [18:29:19]wFMCommunicate request_size=4 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 13 00 00 [18:29:19]Write to MH i2c: E2 08 00 43 28 80 13 00 00 00 00 00 00 E7 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 62 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 62 00 43 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 27 FA 00 00 0E 04 04 00 76 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 16 [18:29: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 27 FA 00 00 0E 04 04 00 76 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 [18:29:19]wFMCommunicate OK [18:29:19]SAM_PROTO_GetFieldsCounters done [18:29:19]requested_item shift.num is exist - process it [18:29:19]requested_item shift.opened is exist - process it [18:29:19]req_shift_opened [18:29:19]FM_GetShiftState [18:29:19]SAM_PROTO_GetShiftState [18:29:19]wFMCommunicate request_size=4 [18:29:19]MH_SAM_APDU [18:29:19]CAPDU: 80 13 01 00 [18:29:19]Write to MH i2c: E2 08 00 44 28 80 13 01 00 00 00 00 00 E9 [18:29:19]Write i2c OK [18:29:19]MH_I2C_Read... [18:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:19]Read from MH i2c: E2 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 0E 00 [18:29:19]MH_I2C_Read... [18:29:19]Read from MH i2c: E2 0E 00 44 28 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 89 [18:29:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:29:19]wFMCommunicate OK [18:29:19]SAM_PROTO_GetShiftState done [18:29:19]FM_GetShiftState done [18:29:19]req_shift_opened done [18:29:19]requested_item shift.open_date is exist - process it [18:29:19]req_shift_open_date [18:29:19]req_shift_open_date done [18:29:19]produce_requested_data done [18:29:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64039,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:29:19]process_action_free close_receipt [18:29:19]json_value_free [18:29:19]json_value_free done [18:29:19]process_json_proto returns [18:29:19]Send response to host [18:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64039,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:29:19]free response buf [18:29:19]execute_script done [18:29:19]execute_script returns [18:29:19]free content buf [18:29:19]Sock 7.Close socket [18:29:19]Sock 7.Thread stoped [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:55]accept exits with 9 [18:32:55]New connection [18:32:55]New thread 3066912100 created [18:32:55]Thread 3067055460 joined [18:32:55]Waiting for new connection... [18:32:55] Sock 9.Parse request [18:32:55]Sock 9.Check first char [18:32:55]Sock 9.First char is OK [18:32:55]request: POST /json_proto HTTP/1.0 [18:32:55]Method: POST [18:32:55]URL: /json_proto [18:32:55]Method is POST - this is cgi request [18:32:55]url: /json_proto [18:32:55]query_string will be loaded in cgi processing [18:32:55]execute_cgi json_proto POST (null) [18:32:55]execute_cgi path=json_proto method=POST [18:32:55]POST find Content-Length [18:32:55]Host: 172.17.60.69:8080 [18:32:55]Content-Length: 677 [18:32:55]Content-Type: application/json [18:32:55] [18:32:55]POST finish read [18:32:55]Found Content-Length = 677 [18:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:55]execute_script... [18:32:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:55]POST & json_proto [18:32:55]process_json_proto [18:32:55]json parsed OK: [18:32:55]protocol is kg_v1.0 [18:32:55]action value=close_receipt [18:32:55]process_action close_receipt [18:32:55]cmd_close_receipt [18:32:55]MH_GetDate [18:32:55]Write to MH i2c: F0 00 00 45 28 5C [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: F0 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: F0 09 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: F0 09 00 45 28 00 DC 5D 5F 66 6A 96 4A 66 13 [18:32:55]GetLastDocTimeStamp 1717525759 [18:32:55]current date 1717525980 [18:32:55]FM_GetShiftState [18:32:55]SAM_PROTO_GetShiftState [18:32:55]wFMCommunicate request_size=4 [18:32:55]MH_SAM_APDU [18:32:55]CAPDU: 80 13 01 00 [18:32:55]Write to MH i2c: E2 08 00 46 28 80 13 01 00 00 00 00 00 EB [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:55]Read from MH i2c: E2 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 0E 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 0E 00 46 28 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 8B [18:32:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:32:55]wFMCommunicate OK [18:32:55]SAM_PROTO_GetShiftState done [18:32:55]FM_GetShiftState done [18:32:55]opened in 1717459574 [18:32:55]opened+sec_in_day 1717545974 [18:32:55]quantity*price = 50030 [18:32:55]sum+1 = 50031 [18:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 125 04.06.2024 18:33 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64040 ФПД: 41383934403119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183300&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64040&fm=41383934403119&tin=02508201610067®Number=0000000000092737&sum=50000 [18:32:56]StoreToDocumentArchive [18:32:56]shift 374 fd 64040 [18:32:56]save to /storage/0374/doc_00064040 [18:32:56]save last doc name /storage/0374/doc_00064040 to /storage/kkm_last_doc_name [18:32:56]save OK [18:32:56]Clear old archive folders... [18:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:56]tlvbuf is 012CEE70 [18:32:56]SAM_PROTO_ClearQueue [18:32:56]wFMCommunicate request_size=4 [18:32:56]MH_SAM_APDU [18:32:56]CAPDU: 80 09 00 00 [18:32:56]Write to MH i2c: E2 08 00 53 28 80 09 00 00 00 00 00 00 ED [18:32:56]Write i2c OK [18:32:56]MH_I2C_Read... [18:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 53 28 00 90 00 EF [18:32:57]RAPDU: 90 00 [18:32:57]wFMCommunicate OK [18:32:57]SAM_PROTO_ClearQueue done [18:32:57]KKMCreateOFDPacket [18:32:57]OFDProtocolAddRootSTLVToBuf [18:32:57]FM_MakeSignedData [18:32:57]FM_MakeSignedData [18:32:57]SAM_PROTO_SignData [18:32:57]wFMCommunicate request_size=4 [18:32:57]MH_SAM_APDU [18:32:57]CAPDU: 80 0D 01 02 [18:32:57]Write to MH i2c: E2 08 00 54 28 80 0D 01 02 00 00 00 00 F5 [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 54 28 00 90 00 F0 [18:32:57]RAPDU: 90 00 [18:32:57]wFMCommunicate OK [18:32:57]wFMCommunicate request_size=255 [18:32:57]MH_SAM_APDU [18:32:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 DC 5D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 28 FA 00 00 35 04 06 00 25 [18:32:57]Write to MH i2c: E2 02 01 55 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 DC 5D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 28 FA 00 00 35 04 06 00 25 00 00 AC [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 55 28 00 90 00 F1 [18:32:57]RAPDU: 90 00 [18:32:57]wFMCommunicate OK [18:32:57]wFMCommunicate request_size=10 [18:32:57]MH_SAM_APDU [18:32:57]CAPDU: 80 0D 02 02 05 A3 72 B5 A2 2F [18:32:57]Write to MH i2c: E2 0D 00 56 28 80 0D 02 02 05 00 A3 72 B5 A2 2F 00 00 9D [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 03 00 56 28 00 90 00 F2 [18:32:57]RAPDU: 90 00 [18:32:57]wFMCommunicate OK [18:32:57]wFMCommunicate request_size=4 [18:32:57]MH_SAM_APDU [18:32:57]CAPDU: 80 0D 03 02 [18:32:57]Write to MH i2c: E2 08 00 57 28 80 0D 03 02 00 00 00 00 FA [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 0B 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 0B 00 57 28 00 DB 0D 8D A3 C6 B3 3B 37 90 00 FE [18:32:57]RAPDU: DB 0D 8D A3 C6 B3 3B 37 90 00 [18:32:57]wFMCommunicate OK [18:32:57]SAM_PROTO_SignData done [18:32:57]FM_MakeSignedData done [18:32:57]CreateOFDProtocolMessage [18:32:57]wFMCommunicate request_size=4 [18:32:57]MH_SAM_APDU [18:32:57]CAPDU: 80 11 00 00 [18:32:57]Write to MH i2c: E2 08 00 58 28 80 11 00 00 00 00 00 00 FA [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:57]Read from MH i2c: E2 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 17 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: E2 17 00 58 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4C [18:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:32:57]wFMCommunicate OK [18:32:57]CreateOFDProtocolMessage done [18:32:57]OFDSenderStorePacket 64040 [18:32:57]StoreOFDPacket docnum=64040 [18:32: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 0F 01 00 00 7C 0D 07 01 5D EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 DC 5D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 28 FA 00 00 35 04 06 00 25 A3 72 B5 A2 2F DB 0D 8D A3 C6 B3 3B 37 [18:32:57]CheckFolder [18:32:57]dirname=/storage/ofd_packets [18:32:57]CheckFolder done [18:32:57]ProducePacketName [18:32:57]name=ofd_packets/00064040 [18:32:57]NVStorageSaveData ofd_packets/00064040 [18:32:57]File name is /storage/ofd_packets/00064040 [18:32:57]Write 301 bytes [18:32:57]NVStorageSaveData done [18:32:57]OFDSenderStorePacket done [18:32:57]KKMCreateOFDPacket done [18:32:57]NVStorageSaveData kkm_last_timestamp [18:32:57]File name is /storage/kkm_last_timestamp [18:32:57]Write 4 bytes [18:32:57]NVStorageSaveData done [18:32:57]ExternCall_PrintAddStr [18:32:57]wPrintStart [18:32:57]Write to MH i2c: 01 00 00 59 28 81 [18:32:57]Write i2c OK [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: 01 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: 01 07 00 [18:32:57]MH_I2C_Read... [18:32:57]Read from MH i2c: 01 07 00 59 28 00 00 00 00 00 FF 0F 96 [18:32:57]RasterBufferAndPrint [18:32:57]line Счет N : (1)545009 [18:32:57]line ИНН: 02508201610067 [18:32:57]line Контрольно-Кассовый Чек [18:32:57]line ПРОДАЖА [18:32:57]line ТРК (МРК, ГНК) : 13 [18:32:57]line Товар: 2710124500 [18:32:57]line Аи-95-К-5 [18:32:57]line 6.770 * 73.90 [18:32:57]line = 500.30 [18:32:57]line НДС 12% НСП 1% [18:32:57]line > о реализуемом товаре [18:32:57]line ОКРУГЛЕНИЕ: -0.30 [18:32:57]line ИТОГО: 500.00 [18:32:57]line Внесено: 500.00 [18:32:57]line СДАЧА: 0.00 [18:32:57]line НСП 1% : 4.43 [18:32:57]line НДС 12% : 53.13 [18:32:57]line Наличными: 500.00 [18:32:57]line Безнал.: 0.00 [18:32:57]line Место: АЗС № 117 "Партнер Нефть" [18:32:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:32:57]line СНО: Общий режим [18:32:57]line Чек 125 04.06.2024 18:33 [18:32:57]line Смена: 374 ФФД: 1.0 [18:32:57]line ЗНМ: 0300000031 [18:32:57]line РНМ: 0000000000092737 [18:32:57]line Версия ККМ: 001 [18:32:57]line ФМ: 0000000000875074 [18:32:57]line ФД: 64040 [18:32:57]line ФПД: 41383934403119 [18:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183300&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64040&fm=41383934403119&tin=02508201610067®Number=0000000000092737&sum=50000 [18:32:57]OFD Sender: Processing packet 64040 [packets to send 14, broken 13] [18:32:57]ProducePacketName [18:32:57]name=ofd_packets/00064040 [18:32:57]OFD Sender: To server: pG, [18:32:57]CommunicateWithHost lk.salyk.kg:30040 [18:32:57]ConnectInit lk.salyk.kg [18:32:57]written 0, free lines is 4095 [18:32:57]Connected sock=10 [18:32:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0F 01 00 00 7C 0D 07 01 5D EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 DC 5D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 28 FA 00 00 35 04 06 00 25 A3 72 B5 A2 2F DB 0D 8D A3 C6 B3 3B 37 [18:32: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 18 6F 47 00 2F 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 28 FA 00 00 F4 03 04 00 A9 09 5F 66 B6 04 01 00 00 2C B1 E7 BA C7 DF E0 50 [18:32:58]CommunicateWithHost err = 0 [18:32:58]CheckOFDResponse [18:32:58]1017 (14) - 77093643461234 [18:32:58]1041 (16) - 0000000000875074 [18:32:58]1040 (4) - 64040 [18:32:58]1012 (4) - 04.06.2024 12:33 [18:32:58]1206 (1) - 0 [18:32:58]OFD Sender: Remove packet 64040 [18:32:58]ProducePacketName [18:32:58]name=ofd_packets/00064040 [18:32:58]NVStorageDeleteData [18:32:58]Write to MH i2c: 01 00 00 84 28 AC [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 07 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 07 00 84 28 00 00 00 00 00 E4 0C A3 [18:32:58]RasterBufferAndPrint [18:32:58]line [18:32:58]line [18:32:58]line [18:32:58]line [18:32:58]line [18:32:58]written 0, free lines is 3306 [18:32:58]MH_Cut [18:32:58]Write to MH i2c: D1 01 00 8B 28 01 85 [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: D1 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: D1 01 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: D1 01 00 8B 28 00 84 [18:32:58]Write to MH i2c: 01 00 00 8C 28 B4 [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]OFD Sender: No OFD packet to send [18:32:59]*** Cut start [18:32:59]*** Partial cut [18:32:59]*** CUTSNS_PIN = 1 [18:32:59]*** CUTSNS_PIN = 0 [18:32:59]*** Brake cut motor [18:32:59]Read from MH i2c: 01 [18:32:59]MH_I2C_Read... [18:32:59]*** Stop cut motor [18:32:59]*** Cut end [18:32:59]Read from MH i2c: 01 07 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 FF 0F C9 [18:32:59]process_action close_receipt done [18:32:59]requested_data is exist [18:32:59]produce_requested_data [18:32:59]requested_item fm.sn is exist - process it [18:32:59]wFMCommunicate request_size=4 [18:32:59]MH_SAM_APDU [18:32:59]CAPDU: 80 11 00 00 [18:32:59]Write to MH i2c: E2 08 00 8D 28 80 11 00 00 00 00 00 00 2F [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:59]Read from MH i2c: E2 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 17 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 17 00 8D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 81 [18: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 [18:32:59]wFMCommunicate OK [18:32:59]requested_item fd.num is exist - process it [18:32:59]SAM_PROTO_GetFieldsCounters [18:32:59]wFMCommunicate request_size=4 [18:32:59]MH_SAM_APDU [18:32:59]CAPDU: 80 13 00 00 [18:32:59]Write to MH i2c: E2 08 00 8E 28 80 13 00 00 00 00 00 00 32 [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:59]Read from MH i2c: E2 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 62 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 62 00 8E 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 28 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [18:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 28 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:59]wFMCommunicate OK [18:32:59]SAM_PROTO_GetFieldsCounters done [18:32:59]requested_item shift.num is exist - process it [18:32:59]requested_item shift.opened is exist - process it [18:32:59]req_shift_opened [18:32:59]FM_GetShiftState [18:32:59]SAM_PROTO_GetShiftState [18:32:59]wFMCommunicate request_size=4 [18:32:59]MH_SAM_APDU [18:32:59]CAPDU: 80 13 01 00 [18:32:59]Write to MH i2c: E2 08 00 8F 28 80 13 01 00 00 00 00 00 34 [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:59]Read from MH i2c: E2 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 0E 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 0E 00 8F 28 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D4 [18:32:59]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:32:59]wFMCommunicate OK [18:32:59]SAM_PROTO_GetShiftState done [18:32:59]FM_GetShiftState done [18:32:59]req_shift_opened done [18:32:59]requested_item shift.open_date is exist - process it [18:32:59]req_shift_open_date [18:32:59]req_shift_open_date done [18:32:59]produce_requested_data done [18:32:59]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64040,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:32:59]process_action_free close_receipt [18:32:59]json_value_free [18:32:59]json_value_free done [18:32:59]process_json_proto returns [18:32:59]Send response to host [18:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64040,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:32:59]free response buf [18:32:59]execute_script done [18:32:59]execute_script returns [18:32:59]free content buf [18:32:59]Sock 9.Close socket [18:32:59]Sock 9.Thread stoped [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:20]accept exits with 7 [18:33:20]New connection [18:33:20]New thread 3067055460 created [18:33:20]Thread 3066912100 joined [18:33:20]Waiting for new connection... [18:33:20] Sock 7.Parse request [18:33:20]Sock 7.Check first char [18:33:20]Sock 7.First char is OK [18:33:20]request: POST /json_proto HTTP/1.0 [18:33:20]Method: POST [18:33:20]URL: /json_proto [18:33:20]Method is POST - this is cgi request [18:33:20]url: /json_proto [18:33:20]query_string will be loaded in cgi processing [18:33:20]execute_cgi json_proto POST (null) [18:33:20]execute_cgi path=json_proto method=POST [18:33:20]POST find Content-Length [18:33:20]Host: 172.17.60.69:8080 [18:33:20]Content-Length: 681 [18:33:20]Content-Type: application/json [18:33:20] [18:33:20]POST finish read [18:33:20]Found Content-Length = 681 [18:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 12.900, "sum" : 450.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:20]execute_script... [18:33:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 12.900, "sum" : 450.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:20]POST & json_proto [18:33:20]process_json_proto [18:33:20]json parsed OK: [18:33:20]protocol is kg_v1.0 [18:33:20]action value=close_receipt [18:33:20]process_action close_receipt [18:33:20]cmd_close_receipt [18:33:20]MH_GetDate [18:33:20]Write to MH i2c: F0 00 00 90 28 A7 [18:33:20]Write i2c OK [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: F0 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: F0 09 00 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: F0 09 00 90 28 00 F5 5D 5F 66 6A 96 4A 66 77 [18:33:20]GetLastDocTimeStamp 1717525980 [18:33:20]current date 1717526005 [18:33:20]FM_GetShiftState [18:33:20]SAM_PROTO_GetShiftState [18:33:20]wFMCommunicate request_size=4 [18:33:20]MH_SAM_APDU [18:33:20]CAPDU: 80 13 01 00 [18:33:20]Write to MH i2c: E2 08 00 91 28 80 13 01 00 00 00 00 00 36 [18:33:20]Write i2c OK [18:33:20]MH_I2C_Read... [18:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:20]Read from MH i2c: E2 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: E2 0E 00 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: E2 0E 00 91 28 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D6 [18:33:20]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:33:20]wFMCommunicate OK [18:33:20]SAM_PROTO_GetShiftState done [18:33:20]FM_GetShiftState done [18:33:20]opened in 1717459574 [18:33:20]opened+sec_in_day 1717545974 [18:33:20]quantity*price = 45021 [18:33:20]sum+1 = 45022 [18:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 126 04.06.2024 18:33 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64041 ФПД: 23817079084684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183325&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64041&fm=23817079084684&tin=02508201610067®Number=0000000000092737&sum=45000 [18:33:21]StoreToDocumentArchive [18:33:21]shift 374 fd 64041 [18:33:21]save to /storage/0374/doc_00064041 [18:33:21]save last doc name /storage/0374/doc_00064041 to /storage/kkm_last_doc_name [18:33:21]save OK [18:33:21]Clear old archive folders... [18:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:33:21]tlvbuf is 0132CF00 [18:33:21]SAM_PROTO_ClearQueue [18:33:21]wFMCommunicate request_size=4 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 09 00 00 [18:33:21]Write to MH i2c: E2 08 00 9E 28 80 09 00 00 00 00 00 00 38 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 9E 28 00 90 00 3A [18:33:22]RAPDU: 90 00 [18:33:22]wFMCommunicate OK [18:33:22]SAM_PROTO_ClearQueue done [18:33:22]KKMCreateOFDPacket [18:33:22]OFDProtocolAddRootSTLVToBuf [18:33:22]FM_MakeSignedData [18:33:22]FM_MakeSignedData [18:33:22]SAM_PROTO_SignData [18:33:22]wFMCommunicate request_size=4 [18:33:22]MH_SAM_APDU [18:33:22]CAPDU: 80 0D 01 02 [18:33:22]Write to MH i2c: E2 08 00 9F 28 80 0D 01 02 00 00 00 00 40 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 9F 28 00 90 00 3B [18:33:22]RAPDU: 90 00 [18:33:22]wFMCommunicate OK [18:33:22]wFMCommunicate request_size=255 [18:33:22]MH_SAM_APDU [18:33:22]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 32 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 DD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F5 5D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 29 FA 00 00 35 04 06 00 15 A9 [18:33:22]Write to MH i2c: E2 02 01 A0 28 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 32 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 DD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F5 5D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 29 FA 00 00 35 04 06 00 15 A9 00 00 ED [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 A0 28 00 90 00 3C [18:33:22]RAPDU: 90 00 [18:33:22]wFMCommunicate OK [18:33:22]wFMCommunicate request_size=9 [18:33:22]MH_SAM_APDU [18:33:22]CAPDU: 80 0D 02 02 04 58 89 D6 8C [18:33:22]Write to MH i2c: E2 0C 00 A1 28 80 0D 02 02 04 00 58 89 D6 8C 00 00 8E [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 A1 28 00 90 00 3D [18:33:22]RAPDU: 90 00 [18:33:22]wFMCommunicate OK [18:33:22]wFMCommunicate request_size=4 [18:33:22]MH_SAM_APDU [18:33:22]CAPDU: 80 0D 03 02 [18:33:22]Write to MH i2c: E2 08 00 A2 28 80 0D 03 02 00 00 00 00 45 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 0B 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 0B 00 A2 28 00 F7 3B 46 52 2F 1E B8 EF 90 00 04 [18:33:22]RAPDU: F7 3B 46 52 2F 1E B8 EF 90 00 [18:33:22]wFMCommunicate OK [18:33:22]SAM_PROTO_SignData done [18:33:22]FM_MakeSignedData done [18:33:22]CreateOFDProtocolMessage [18:33:22]wFMCommunicate request_size=4 [18:33:22]MH_SAM_APDU [18:33:22]CAPDU: 80 11 00 00 [18:33:22]Write to MH i2c: E2 08 00 A3 28 80 11 00 00 00 00 00 00 45 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 17 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 17 00 A3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 97 [18:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:33:22]wFMCommunicate OK [18:33:22]CreateOFDProtocolMessage done [18:33:22]OFDSenderStorePacket 64041 [18:33:22]StoreOFDPacket docnum=64041 [18:33: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 0E 01 00 00 A2 DD 06 01 BF A3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 32 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 DD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F5 5D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 29 FA 00 00 35 04 06 00 15 A9 58 89 D6 8C F7 3B 46 52 2F 1E B8 EF [18:33:22]CheckFolder [18:33:22]dirname=/storage/ofd_packets [18:33:22]CheckFolder done [18:33:22]ProducePacketName [18:33:22]name=ofd_packets/00064041 [18:33:22]NVStorageSaveData ofd_packets/00064041 [18:33:22]File name is /storage/ofd_packets/00064041 [18:33:22]Write 300 bytes [18:33:22]NVStorageSaveData done [18:33:22]OFDSenderStorePacket done [18:33:22]KKMCreateOFDPacket done [18:33:22]NVStorageSaveData kkm_last_timestamp [18:33:22]File name is /storage/kkm_last_timestamp [18:33:22]Write 4 bytes [18:33:22]NVStorageSaveData done [18:33:22]ExternCall_PrintAddStr [18:33:22]wPrintStart [18:33:22]Write to MH i2c: 01 00 00 A4 28 CC [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 A4 28 00 00 00 00 00 FF 0F E1 [18:33:22]RasterBufferAndPrint [18:33:22]line Счет N : (1)545010 [18:33:22]line ИНН: 02508201610067 [18:33:22]line Контрольно-Кассовый Чек [18:33:22]line ПРОДАЖА [18:33:22]line ТРК (МРК, ГНК) : 72 [18:33:22]line Товар: 2711190000 [18:33:22]line ГАЗ-К-5 [18:33:22]line 12.900 * 34.90 [18:33:22]line = 450.21 [18:33:22]line НДС 12% НСП 1% [18:33:22]line > о реализуемом товаре [18:33:22]line ОКРУГЛЕНИЕ: -0.21 [18:33:22]line ИТОГО: 450.00 [18:33:22]line Внесено: 450.00 [18:33:22]line СДАЧА: 0.00 [18:33:22]line НСП 1% : 3.98 [18:33:22]line НДС 12% : 47.81 [18:33:22]line Наличными: 450.00 [18:33:22]line Безнал.: 0.00 [18:33:22]line Место: АЗС № 117 "Партнер Нефть" [18:33:22]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:33:22]line СНО: Общий режим [18:33:22]line Чек 126 04.06.2024 18:33 [18:33:22]line Смена: 374 ФФД: 1.0 [18:33:22]line ЗНМ: 0300000031 [18:33:22]line РНМ: 0000000000092737 [18:33:22]line Версия ККМ: 001 [18:33:22]line ФМ: 0000000000875074 [18:33:22]line ФД: 64041 [18:33:22]line ФПД: 23817079084684 [18:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183325&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64041&fm=23817079084684&tin=02508201610067®Number=0000000000092737&sum=45000 [18:33:22]OFD Sender: Processing packet 64041 [packets to send 14, broken 13] [18:33:22]ProducePacketName [18:33:22]name=ofd_packets/00064041 [18:33:22]OFD Sender: To server: pG, [18:33:22]CommunicateWithHost lk.salyk.kg:30040 [18:33:22]ConnectInit lk.salyk.kg [18:33:22]written 0, free lines is 4095 [18:33:22]Connected sock=10 [18:33: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 0E 01 00 00 A2 DD 06 01 BF A3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 32 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 DD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F5 5D 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 29 FA 00 00 35 04 06 00 15 A9 58 89 D6 8C F7 3B 46 52 2F 1E B8 EF [18:33: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 06 3A 47 00 60 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 29 FA 00 00 F4 03 04 00 C2 09 5F 66 B6 04 01 00 00 D0 3B BF DE 4F 7A 5C 4C [18:33:23]CommunicateWithHost err = 0 [18:33:23]CheckOFDResponse [18:33:23]1017 (14) - 77093643461234 [18:33:23]1041 (16) - 0000000000875074 [18:33:23]1040 (4) - 64041 [18:33:23]1012 (4) - 04.06.2024 12:34 [18:33:23]1206 (1) - 0 [18:33:23]OFD Sender: Remove packet 64041 [18:33:23]ProducePacketName [18:33:23]name=ofd_packets/00064041 [18:33:23]NVStorageDeleteData [18:33:23]Write to MH i2c: 01 00 00 CF 28 F7 [18:33:23]Write i2c OK [18:33:23]MH_I2C_Read... [18:33:23]Read from MH i2c: 01 [18:33:23]MH_I2C_Read... [18:33:23]Read from MH i2c: 01 07 00 [18:33:23]MH_I2C_Read... [18:33:23]Read from MH i2c: 01 07 00 CF 28 00 00 00 00 00 E1 0C EB [18:33:23]RasterBufferAndPrint [18:33:23]line [18:33:23]line [18:33:23]line [18:33:23]line [18:33:23]line [18:33:23]written 0, free lines is 3306 [18:33:23]MH_Cut [18:33:23]Write to MH i2c: D1 01 00 D6 28 01 D0 [18:33:23]Write i2c OK [18:33:23]MH_I2C_Read... [18:33:23]Read from MH i2c: D1 [18:33:23]MH_I2C_Read... [18:33:23]Read from MH i2c: D1 01 00 [18:33:23]MH_I2C_Read... [18:33:23]Read from MH i2c: D1 01 00 D6 28 00 CF [18:33:23]Write to MH i2c: 01 00 00 D7 28 FF [18:33:23]Write i2c OK [18:33:23]MH_I2C_Read... [18:33:23]OFD Sender: No OFD packet to send [18:33:24]*** Cut start [18:33:24]*** Partial cut [18:33:24]*** CUTSNS_PIN = 1 [18:33:24]*** CUTSNS_PIN = 0 [18:33:24]*** Brake cut motor [18:33:24]Read from MH i2c: 01 [18:33:24]MH_I2C_Read... [18:33:24]*** Stop cut motor [18:33:24]*** Cut end [18:33:24]Read from MH i2c: 01 07 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: 01 07 00 D7 28 00 00 00 00 00 FF 0F 14 [18:33:24]process_action close_receipt done [18:33:24]requested_data is exist [18:33:24]produce_requested_data [18:33:24]requested_item fm.sn is exist - process it [18:33:24]wFMCommunicate request_size=4 [18:33:24]MH_SAM_APDU [18:33:24]CAPDU: 80 11 00 00 [18:33:24]Write to MH i2c: E2 08 00 D8 28 80 11 00 00 00 00 00 00 7A [18:33:24]Write i2c OK [18:33:24]MH_I2C_Read... [18:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:24]Read from MH i2c: E2 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 17 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 17 00 D8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CC [18:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:33:24]wFMCommunicate OK [18:33:24]requested_item fd.num is exist - process it [18:33:24]SAM_PROTO_GetFieldsCounters [18:33:24]wFMCommunicate request_size=4 [18:33:24]MH_SAM_APDU [18:33:24]CAPDU: 80 13 00 00 [18:33:24]Write to MH i2c: E2 08 00 D9 28 80 13 00 00 00 00 00 00 7D [18:33:24]Write i2c OK [18:33:24]MH_I2C_Read... [18:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:24]Read from MH i2c: E2 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 62 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 62 00 D9 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 29 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [18:33: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 29 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:24]wFMCommunicate OK [18:33:24]SAM_PROTO_GetFieldsCounters done [18:33:24]requested_item shift.num is exist - process it [18:33:24]requested_item shift.opened is exist - process it [18:33:24]req_shift_opened [18:33:24]FM_GetShiftState [18:33:24]SAM_PROTO_GetShiftState [18:33:24]wFMCommunicate request_size=4 [18:33:24]MH_SAM_APDU [18:33:24]CAPDU: 80 13 01 00 [18:33:24]Write to MH i2c: E2 08 00 DA 28 80 13 01 00 00 00 00 00 7F [18:33:24]Write i2c OK [18:33:24]MH_I2C_Read... [18:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:24]Read from MH i2c: E2 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 0E 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 0E 00 DA 28 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1F [18:33:24]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:33:24]wFMCommunicate OK [18:33:24]SAM_PROTO_GetShiftState done [18:33:24]FM_GetShiftState done [18:33:24]req_shift_opened done [18:33:24]requested_item shift.open_date is exist - process it [18:33:24]req_shift_open_date [18:33:24]req_shift_open_date done [18:33:24]produce_requested_data done [18:33:24]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64041,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:33:24]process_action_free close_receipt [18:33:24]json_value_free [18:33:24]json_value_free done [18:33:24]process_json_proto returns [18:33:24]Send response to host [18:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64041,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:33:24]free response buf [18:33:24]execute_script done [18:33:24]execute_script returns [18:33:24]free content buf [18:33:24]Sock 7.Close socket [18:33:24]Sock 7.Thread stoped [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:01]accept exits with 9 [18:35:01]New connection [18:35:01]New thread 3066912100 created [18:35:01]Thread 3067055460 joined [18:35:01]Waiting for new connection... [18:35:01] Sock 9.Parse request [18:35:01]Sock 9.Check first char [18:35:01]Sock 9.First char is OK [18:35:01]request: POST /json_proto HTTP/1.0 [18:35:01]Method: POST [18:35:01]URL: /json_proto [18:35:01]Method is POST - this is cgi request [18:35:01]url: /json_proto [18:35:01]query_string will be loaded in cgi processing [18:35:01]execute_cgi json_proto POST (null) [18:35:01]execute_cgi path=json_proto method=POST [18:35:01]POST find Content-Length [18:35:01]Host: 172.17.60.69:8080 [18:35:01]Content-Length: 679 [18:35:01]Content-Type: application/json [18:35:01] [18:35:01]POST finish read [18:35:01]Found Content-Length = 679 [18:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:01]execute_script... [18:35:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:01]POST & json_proto [18:35:01]process_json_proto [18:35:01]json parsed OK: [18:35:01]protocol is kg_v1.0 [18:35:01]action value=close_receipt [18:35:01]process_action close_receipt [18:35:01]cmd_close_receipt [18:35:01]MH_GetDate [18:35:01]Write to MH i2c: F0 00 00 DB 28 F2 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: F0 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: F0 09 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: F0 09 00 DB 28 00 59 5E 5F 66 6A 96 4A 66 27 [18:35:01]GetLastDocTimeStamp 1717526005 [18:35:01]current date 1717526105 [18:35:01]FM_GetShiftState [18:35:01]SAM_PROTO_GetShiftState [18:35:01]wFMCommunicate request_size=4 [18:35:01]MH_SAM_APDU [18:35:01]CAPDU: 80 13 01 00 [18:35:01]Write to MH i2c: E2 08 00 DC 28 80 13 01 00 00 00 00 00 81 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:01]Read from MH i2c: E2 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 0E 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: E2 0E 00 DC 28 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 21 [18:35:01]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:35:01]wFMCommunicate OK [18:35:01]SAM_PROTO_GetShiftState done [18:35:01]FM_GetShiftState done [18:35:01]opened in 1717459574 [18:35:01]opened+sec_in_day 1717545974 [18:35:01]quantity*price = 300056 [18:35:01]sum+1 = 300057 [18:35:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 127 04.06.2024 18:35 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64042 ФПД: 133205086807455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183505&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64042&fm=133205086807455&tin=02508201610067®Number=0000000000092737&sum=300000 [18:35:02]StoreToDocumentArchive [18:35:02]shift 374 fd 64042 [18:35:02]save to /storage/0374/doc_00064042 [18:35:02]save last doc name /storage/0374/doc_00064042 to /storage/kkm_last_doc_name [18:35:02]save OK [18:35:02]Clear old archive folders... [18:35:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:35:02]tlvbuf is B6EF3650 [18:35:02]SAM_PROTO_ClearQueue [18:35:02]wFMCommunicate request_size=4 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 09 00 00 [18:35:02]Write to MH i2c: E2 08 00 E9 28 80 09 00 00 00 00 00 00 83 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:02]Read from MH i2c: E2 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 E9 28 00 90 00 85 [18:35:02]RAPDU: 90 00 [18:35:02]wFMCommunicate OK [18:35:02]SAM_PROTO_ClearQueue done [18:35:02]KKMCreateOFDPacket [18:35:02]OFDProtocolAddRootSTLVToBuf [18:35:02]FM_MakeSignedData [18:35:02]FM_MakeSignedData [18:35:02]SAM_PROTO_SignData [18:35:02]wFMCommunicate request_size=4 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 0D 01 02 [18:35:02]Write to MH i2c: E2 08 00 EA 28 80 0D 01 02 00 00 00 00 8B [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:02]Read from MH i2c: E2 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 EA 28 00 90 00 86 [18:35:02]RAPDU: 90 00 [18:35:02]wFMCommunicate OK [18:35:02]wFMCommunicate request_size=255 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 59 5E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A FA 00 00 35 04 06 00 79 26 39 E1 [18:35:02]Write to MH i2c: E2 02 01 EB 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 59 5E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A FA 00 00 35 04 06 00 79 26 39 E1 00 00 32 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:02]Read from MH i2c: E2 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 EB 28 00 90 00 87 [18:35:02]RAPDU: 90 00 [18:35:02]wFMCommunicate OK [18:35:02]wFMCommunicate request_size=7 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 0D 02 02 02 A5 9F [18:35:02]Write to MH i2c: E2 0A 00 EC 28 80 0D 02 02 02 00 A5 9F 00 00 D6 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:02]Read from MH i2c: E2 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 03 00 EC 28 00 90 00 88 [18:35:02]RAPDU: 90 00 [18:35:02]wFMCommunicate OK [18:35:02]wFMCommunicate request_size=4 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 0D 03 02 [18:35:02]Write to MH i2c: E2 08 00 ED 28 80 0D 03 02 00 00 00 00 90 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:02]Read from MH i2c: E2 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 0B 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 0B 00 ED 28 00 15 A3 75 D8 31 3A 72 05 90 00 78 [18:35:02]RAPDU: 15 A3 75 D8 31 3A 72 05 90 00 [18:35:02]wFMCommunicate OK [18:35:02]SAM_PROTO_SignData done [18:35:02]FM_MakeSignedData done [18:35:02]CreateOFDProtocolMessage [18:35:02]wFMCommunicate request_size=4 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 11 00 00 [18:35:02]Write to MH i2c: E2 08 00 EE 28 80 11 00 00 00 00 00 00 90 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:02]Read from MH i2c: E2 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 17 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 17 00 EE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E2 [18:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:35:02]wFMCommunicate OK [18:35:02]CreateOFDProtocolMessage done [18:35:02]OFDSenderStorePacket 64042 [18:35:02]StoreOFDPacket docnum=64042 [18:35: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 0C 01 00 00 5F 33 04 01 15 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 59 5E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A FA 00 00 35 04 06 00 79 26 39 E1 A5 9F 15 A3 75 D8 31 3A 72 05 [18:35:02]CheckFolder [18:35:02]dirname=/storage/ofd_packets [18:35:02]CheckFolder done [18:35:02]ProducePacketName [18:35:02]name=ofd_packets/00064042 [18:35:02]NVStorageSaveData ofd_packets/00064042 [18:35:02]File name is /storage/ofd_packets/00064042 [18:35:02]Write 298 bytes [18:35:02]NVStorageSaveData done [18:35:02]OFDSenderStorePacket done [18:35:02]KKMCreateOFDPacket done [18:35:02]NVStorageSaveData kkm_last_timestamp [18:35:02]File name is /storage/kkm_last_timestamp [18:35:02]Write 4 bytes [18:35:02]NVStorageSaveData done [18:35:02]ExternCall_PrintAddStr [18:35:02]wPrintStart [18:35:02]Write to MH i2c: 01 00 00 EF 28 17 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: 01 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: 01 07 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: 01 07 00 EF 28 00 00 00 00 00 FF 0F 2C [18:35:02]RasterBufferAndPrint [18:35:02]line Счет N : (1)545011 [18:35:02]line ИНН: 02508201610067 [18:35:02]line Контрольно-Кассовый Чек [18:35:02]line ПРОДАЖА [18:35:02]line ТРК (МРК, ГНК) : 41 [18:35:02]line Товар: 2710194210 [18:35:02]line ДТ-К-5 [18:35:02]line 41.160 * 72.90 [18:35:02]line = 3000.56 [18:35:02]line НДС 12% НСП 1% [18:35:02]line > о реализуемом товаре [18:35:02]line ОКРУГЛЕНИЕ: -0.56 [18:35:02]line ИТОГО: 3000.00 [18:35:02]line Внесено: 3000.00 [18:35:02]line СДАЧА: 0.00 [18:35:02]line НСП 1% : 26.55 [18:35:02]line НДС 12% : 318.64 [18:35:02]line Наличными: 3000.00 [18:35:02]line Безнал.: 0.00 [18:35:02]line Место: АЗС № 117 "Партнер Нефть" [18:35:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:35:02]line СНО: Общий режим [18:35:02]line Чек 127 04.06.2024 18:35 [18:35:02]line Смена: 374 ФФД: 1.0 [18:35:02]line ЗНМ: 0300000031 [18:35:02]line РНМ: 0000000000092737 [18:35:02]line Версия ККМ: 001 [18:35:02]line ФМ: 0000000000875074 [18:35:02]line ФД: 64042 [18:35:02]line ФПД: 133205086807455 [18:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183505&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64042&fm=133205086807455&tin=02508201610067®Number=0000000000092737&sum=300000 [18:35:03]OFD Sender: Processing packet 64042 [packets to send 14, broken 13] [18:35:03]ProducePacketName [18:35:03]name=ofd_packets/00064042 [18:35:03]OFD Sender: To server: pG, [18:35:03]CommunicateWithHost lk.salyk.kg:30040 [18:35:03]ConnectInit lk.salyk.kg [18:35:03]written 0, free lines is 4095 [18:35:03]Connected sock=10 [18:35:03]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 5F 33 04 01 15 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 59 5E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A FA 00 00 35 04 06 00 79 26 39 E1 A5 9F 15 A3 75 D8 31 3A 72 05 [18:35:03]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 5B B3 47 00 75 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2A FA 00 00 F4 03 04 00 27 0A 5F 66 B6 04 01 00 00 88 83 7F C9 F7 E8 56 DC [18:35:03]CommunicateWithHost err = 0 [18:35:03]CheckOFDResponse [18:35:03]1017 (14) - 77093643461234 [18:35:03]1041 (16) - 0000000000875074 [18:35:03]1040 (4) - 64042 [18:35:03]1012 (4) - 04.06.2024 12:35 [18:35:03]1206 (1) - 0 [18:35:03]OFD Sender: Remove packet 64042 [18:35:03]ProducePacketName [18:35:03]name=ofd_packets/00064042 [18:35:03]NVStorageDeleteData [18:35:03]Write to MH i2c: 01 00 00 1A 29 43 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 1A 29 00 00 00 00 00 EF 0C 45 [18:35:03]RasterBufferAndPrint [18:35:03]line [18:35:03]line [18:35:03]line [18:35:03]line [18:35:03]line [18:35:03]written 0, free lines is 3317 [18:35:03]MH_Cut [18:35:03]Write to MH i2c: D1 01 00 21 29 01 1C [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: D1 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: D1 01 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: D1 01 00 21 29 00 1B [18:35:03]Write to MH i2c: 01 00 00 22 29 4B [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:04]OFD Sender: No OFD packet to send [18:35:04]*** Cut start [18:35:04]*** Partial cut [18:35:04]*** CUTSNS_PIN = 1 [18:35:04]*** CUTSNS_PIN = 0 [18:35:04]*** Brake cut motor [18:35:05]Read from MH i2c: 01 [18:35:05]MH_I2C_Read... [18:35:05]*** Stop cut motor [18:35:05]*** Cut end [18:35:05]Read from MH i2c: 01 07 00 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: 01 07 00 22 29 00 00 00 00 00 FF 0F 60 [18:35:05]process_action close_receipt done [18:35:05]requested_data is exist [18:35:05]produce_requested_data [18:35:05]requested_item fm.sn is exist - process it [18:35:05]wFMCommunicate request_size=4 [18:35:05]MH_SAM_APDU [18:35:05]CAPDU: 80 11 00 00 [18:35:05]Write to MH i2c: E2 08 00 23 29 80 11 00 00 00 00 00 00 C6 [18:35:05]Write i2c OK [18:35:05]MH_I2C_Read... [18:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:05]Read from MH i2c: E2 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 17 00 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 17 00 23 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 18 [18:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:35:05]wFMCommunicate OK [18:35:05]requested_item fd.num is exist - process it [18:35:05]SAM_PROTO_GetFieldsCounters [18:35:05]wFMCommunicate request_size=4 [18:35:05]MH_SAM_APDU [18:35:05]CAPDU: 80 13 00 00 [18:35:05]Write to MH i2c: E2 08 00 24 29 80 13 00 00 00 00 00 00 C9 [18:35:05]Write i2c OK [18:35:05]MH_I2C_Read... [18:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:05]Read from MH i2c: E2 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 62 00 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 62 00 24 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 2A FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [18:35:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2A FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:05]wFMCommunicate OK [18:35:05]SAM_PROTO_GetFieldsCounters done [18:35:05]requested_item shift.num is exist - process it [18:35:05]requested_item shift.opened is exist - process it [18:35:05]req_shift_opened [18:35:05]FM_GetShiftState [18:35:05]SAM_PROTO_GetShiftState [18:35:05]wFMCommunicate request_size=4 [18:35:05]MH_SAM_APDU [18:35:05]CAPDU: 80 13 01 00 [18:35:05]Write to MH i2c: E2 08 00 25 29 80 13 01 00 00 00 00 00 CB [18:35:05]Write i2c OK [18:35:05]MH_I2C_Read... [18:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:05]Read from MH i2c: E2 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 0E 00 [18:35:05]MH_I2C_Read... [18:35:05]Read from MH i2c: E2 0E 00 25 29 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6B [18:35:05]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:35:05]wFMCommunicate OK [18:35:05]SAM_PROTO_GetShiftState done [18:35:05]FM_GetShiftState done [18:35:05]req_shift_opened done [18:35:05]requested_item shift.open_date is exist - process it [18:35:05]req_shift_open_date [18:35:05]req_shift_open_date done [18:35:05]produce_requested_data done [18:35:05]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64042,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [18:35:05]process_action_free close_receipt [18:35:05]json_value_free [18:35:05]json_value_free done [18:35:05]process_json_proto returns [18:35:05]Send response to host [18:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64042,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [18:35:05]free response buf [18:35:05]execute_script done [18:35:05]execute_script returns [18:35:05]free content buf [18:35:05]Sock 9.Close socket [18:35:05]Sock 9.Thread stoped [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:03]accept exits with 7 [18:36:03]New connection [18:36:03]New thread 3067055460 created [18:36:03]Thread 3066912100 joined [18:36:03]Waiting for new connection... [18:36:03] Sock 7.Parse request [18:36:03]Sock 7.Check first char [18:36:03]Sock 7.First char is OK [18:36:03]request: POST /json_proto HTTP/1.0 [18:36:03]Method: POST [18:36:03]URL: /json_proto [18:36:03]Method is POST - this is cgi request [18:36:03]url: /json_proto [18:36:03]query_string will be loaded in cgi processing [18:36:03]execute_cgi json_proto POST (null) [18:36:03]execute_cgi path=json_proto method=POST [18:36:03]POST find Content-Length [18:36:03]Host: 172.17.60.69:8080 [18:36:03]Content-Length: 846 [18:36:03]Content-Type: application/json [18:36:03] [18:36:03]POST finish read [18:36:03]Found Content-Length = 846 [18:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 57.310, "sum" : 2000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:03]execute_script... [18:36:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.90, "quantity" : 57.310, "sum" : 2000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:03]POST & json_proto [18:36:03]process_json_proto [18:36:03]json parsed OK: [18:36:03]protocol is kg_v1.0 [18:36:03]action value=close_receipt [18:36:03]process_action close_receipt [18:36:03]cmd_close_receipt [18:36:03]MH_GetDate [18:36:03]Write to MH i2c: F0 00 00 26 29 3E [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: F0 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: F0 09 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: F0 09 00 26 29 00 97 5E 5F 66 6A 96 4A 66 B1 [18:36:03]GetLastDocTimeStamp 1717526105 [18:36:03]current date 1717526167 [18:36:03]FM_GetShiftState [18:36:03]SAM_PROTO_GetShiftState [18:36:03]wFMCommunicate request_size=4 [18:36:03]MH_SAM_APDU [18:36:03]CAPDU: 80 13 01 00 [18:36:03]Write to MH i2c: E2 08 00 27 29 80 13 01 00 00 00 00 00 CD [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:03]Read from MH i2c: E2 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 0E 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 0E 00 27 29 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 6D [18:36:03]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [18:36:03]wFMCommunicate OK [18:36:03]SAM_PROTO_GetShiftState done [18:36:03]FM_GetShiftState done [18:36:03]opened in 1717459574 [18:36:03]opened+sec_in_day 1717545974 [18:36:03]quantity*price = 200011 [18:36:03]sum+1 = 200013 [18:36:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.12 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.12 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 128 04.06.2024 18:36 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64043 ФПД: 97163205527417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183608&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64043&fm=97163205527417&tin=02508201610067®Number=0000000000092737&sum=200012 [18:36:04]StoreToDocumentArchive [18:36:04]shift 374 fd 64043 [18:36:04]save to /storage/0374/doc_00064043 [18:36:04]save last doc name /storage/0374/doc_00064043 to /storage/kkm_last_doc_name [18:36:04]save OK [18:36:04]Clear old archive folders... [18:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:36:04]tlvbuf is 012DCF30 [18:36:04]SAM_PROTO_ClearQueue [18:36:04]wFMCommunicate request_size=4 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 09 00 00 [18:36:04]Write to MH i2c: E2 08 00 34 29 80 09 00 00 00 00 00 00 CF [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 03 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 03 00 34 29 00 90 00 D1 [18:36:04]RAPDU: 90 00 [18:36:04]wFMCommunicate OK [18:36:04]SAM_PROTO_ClearQueue done [18:36:04]KKMCreateOFDPacket [18:36:04]OFDProtocolAddRootSTLVToBuf [18:36:04]FM_MakeSignedData [18:36:04]FM_MakeSignedData [18:36:04]SAM_PROTO_SignData [18:36:04]wFMCommunicate request_size=4 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 0D 01 02 [18:36:04]Write to MH i2c: E2 08 00 35 29 80 0D 01 02 00 00 00 00 D7 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 03 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 03 00 35 29 00 90 00 D2 [18:36:04]RAPDU: 90 00 [18:36:04]wFMCommunicate OK [18:36:04]wFMCommunicate request_size=255 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE DF 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 4C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 98 5E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B FA 00 00 35 04 06 00 58 5E [18:36:04]Write to MH i2c: E2 02 01 36 29 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE DF 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 4C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 98 5E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B FA 00 00 35 04 06 00 58 5E 00 00 D1 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:05]Read from MH i2c: E2 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 03 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 03 00 36 29 00 90 00 D3 [18:36:05]RAPDU: 90 00 [18:36:05]wFMCommunicate OK [18:36:05]wFMCommunicate request_size=9 [18:36:05]MH_SAM_APDU [18:36:05]CAPDU: 80 0D 02 02 04 92 59 C7 79 [18:36:05]Write to MH i2c: E2 0C 00 37 29 80 0D 02 02 04 00 92 59 C7 79 00 00 0D [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 [18:36:05]MH_I2C_Read... [18:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:05]Read from MH i2c: E2 03 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 03 00 37 29 00 90 00 D4 [18:36:05]RAPDU: 90 00 [18:36:05]wFMCommunicate OK [18:36:05]wFMCommunicate request_size=4 [18:36:05]MH_SAM_APDU [18:36:05]CAPDU: 80 0D 03 02 [18:36:05]Write to MH i2c: E2 08 00 38 29 80 0D 03 02 00 00 00 00 DC [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:05]Read from MH i2c: E2 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 0B 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 0B 00 38 29 00 BB 16 48 09 4C 8D 2F F1 90 00 F8 [18:36:05]RAPDU: BB 16 48 09 4C 8D 2F F1 90 00 [18:36:05]wFMCommunicate OK [18:36:05]SAM_PROTO_SignData done [18:36:05]FM_MakeSignedData done [18:36:05]CreateOFDProtocolMessage [18:36:05]wFMCommunicate request_size=4 [18:36:05]MH_SAM_APDU [18:36:05]CAPDU: 80 11 00 00 [18:36:05]Write to MH i2c: E2 08 00 39 29 80 11 00 00 00 00 00 00 DC [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:05]Read from MH i2c: E2 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 17 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: E2 17 00 39 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2E [18:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:36:05]wFMCommunicate OK [18:36:05]CreateOFDProtocolMessage done [18:36:05]OFDSenderStorePacket 64043 [18:36:05]StoreOFDPacket docnum=64043 [18:36: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 0E 01 00 00 A3 A2 06 01 8F 5B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE DF 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 4C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 98 5E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B FA 00 00 35 04 06 00 58 5E 92 59 C7 79 BB 16 48 09 4C 8D 2F F1 [18:36:05]CheckFolder [18:36:05]dirname=/storage/ofd_packets [18:36:05]CheckFolder done [18:36:05]ProducePacketName [18:36:05]name=ofd_packets/00064043 [18:36:05]NVStorageSaveData ofd_packets/00064043 [18:36:05]File name is /storage/ofd_packets/00064043 [18:36:05]Write 300 bytes [18:36:05]NVStorageSaveData done [18:36:05]OFDSenderStorePacket done [18:36:05]KKMCreateOFDPacket done [18:36:05]NVStorageSaveData kkm_last_timestamp [18:36:05]File name is /storage/kkm_last_timestamp [18:36:05]Write 4 bytes [18:36:05]NVStorageSaveData done [18:36:05]ExternCall_PrintAddStr [18:36:05]wPrintStart [18:36:05]Write to MH i2c: 01 00 00 3A 29 63 [18:36:05]Write i2c OK [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: 01 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: 01 07 00 [18:36:05]MH_I2C_Read... [18:36:05]Read from MH i2c: 01 07 00 3A 29 00 00 00 00 00 FF 0F 78 [18:36:05]RasterBufferAndPrint [18:36:05]line Счет N : (1)545008 [18:36:05]line ИНН: 02508201610067 [18:36:05]line Контрольно-Кассовый Чек [18:36:05]line ПРОДАЖА [18:36:05]line ТРК (МРК, ГНК) : 71 [18:36:05]line Товар: 2711190000 [18:36:05]line ГАЗ-К-5 [18:36:05]line 57.310 * 34.90 [18:36:05]line = 2000.12 [18:36:05]line НДС 12% НСП 1% [18:36:05]line > о реализуемом товаре [18:36:05]line ИТОГО: 2000.12 [18:36:05]line НСП 1% : 17.70 [18:36:05]line НДС 12% : 212.40 [18:36:05]line Наличными: 0.00 [18:36:05]line Безнал.: 2000.12 [18:36:05]line Место: АЗС № 117 "Партнер Нефть" [18:36:05]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [18:36:05]line СНО: Общий режим [18:36:05]line Чек 128 04.06.2024 18:36 [18:36:05]line Смена: 374 ФФД: 1.0 [18:36:05]line ЗНМ: 0300000031 [18:36:05]line РНМ: 0000000000092737 [18:36:05]line Версия ККМ: 001 [18:36:05]line Платежная система: АКБ Кыргызстан [18:36:05]line ФМ: 0000000000875074 [18:36:05]line ФД: 64043 [18:36:05]line ФПД: 97163205527417 [18:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183608&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64043&fm=97163205527417&tin=02508201610067®Number=0000000000092737&sum=200012 [18:36:05]OFD Sender: Processing packet 64043 [packets to send 14, broken 13] [18:36:05]ProducePacketName [18:36:05]name=ofd_packets/00064043 [18:36:05]OFD Sender: To server: pG, [18:36:05]CommunicateWithHost lk.salyk.kg:30040 [18:36:05]ConnectInit lk.salyk.kg [18:36:05]written 0, free lines is 4095 [18:36:05]Connected sock=10 [18:36: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 0E 01 00 00 A3 A2 06 01 8F 5B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DE DF 00 00 00 00 00 37 04 06 00 A2 0D 00 00 00 00 13 04 06 00 4C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 98 5E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B FA 00 00 35 04 06 00 58 5E 92 59 C7 79 BB 16 48 09 4C 8D 2F F1 [18:36: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 BE 00 47 00 F3 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2B FA 00 00 F4 03 04 00 65 0A 5F 66 B6 04 01 00 00 1D 70 67 6C 1A BE 53 99 [18:36:05]CommunicateWithHost err = 0 [18:36:05]CheckOFDResponse [18:36:05]1017 (14) - 77093643461234 [18:36:05]1041 (16) - 0000000000875074 [18:36:05]1040 (4) - 64043 [18:36:05]1012 (4) - 04.06.2024 12:36 [18:36:05]1206 (1) - 0 [18:36:05]OFD Sender: Remove packet 64043 [18:36:05]ProducePacketName [18:36:05]name=ofd_packets/00064043 [18:36:05]NVStorageDeleteData [18:36:06]Write to MH i2c: 01 00 00 64 29 8D [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 07 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 07 00 64 29 00 00 00 00 00 F8 0C 98 [18:36:06]RasterBufferAndPrint [18:36:06]line [18:36:06]line [18:36:06]line [18:36:06]line [18:36:06]line [18:36:06]written 0, free lines is 3328 [18:36:06]MH_Cut [18:36:06]Write to MH i2c: D1 01 00 6B 29 01 66 [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: D1 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: D1 01 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: D1 01 00 6B 29 00 65 [18:36:06]Write to MH i2c: 01 00 00 6C 29 95 [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]OFD Sender: No OFD packet to send [18:36:06]*** Cut start [18:36:06]*** Partial cut [18:36:06]*** CUTSNS_PIN = 1 [18:36:06]*** CUTSNS_PIN = 0 [18:36:07]*** Brake cut motor [18:36:07]Read from MH i2c: 01 [18:36:07]MH_I2C_Read... [18:36:07]*** Stop cut motor [18:36:07]*** Cut end [18:36:07]Read from MH i2c: 01 07 00 [18:36:07]MH_I2C_Read... [18:36:07]Read from MH i2c: 01 07 00 6C 29 00 00 00 00 00 FF 0F AA [18:36:07]process_action close_receipt done [18:36:07]requested_data is exist [18:36:07]produce_requested_data [18:36:07]requested_item fm.sn is exist - process it [18:36:07]wFMCommunicate request_size=4 [18:36:07]MH_SAM_APDU [18:36:07]CAPDU: 80 11 00 00 [18:36:07]Write to MH i2c: E2 08 00 6D 29 80 11 00 00 00 00 00 00 10 [18:36:07]Write i2c OK [18:36:07]MH_I2C_Read... [18:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:07]Read from MH i2c: E2 [18:36:07]MH_I2C_Read... [18:36:07]Read from MH i2c: E2 17 00 [18:36:07]MH_I2C_Read... [18:36:07]Read from MH i2c: E2 17 00 6D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 62 [18:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [18:36:07]wFMCommunicate OK [18:36:07]requested_item fd.num is exist - process it [18:36:07]SAM_PROTO_GetFieldsCounters [18:36:07]wFMCommunicate request_size=4 [18:36:07]MH_SAM_APDU [18:36:07]CAPDU: 80 13 00 00 [18:36:07]Write to MH i2c: E2 08 00 6E 29 80 13 00 00 00 00 00 00 13 [18:36:07]Write i2c OK [18:36:07]MH_I2C_Read... [18:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:07]Read from MH i2c: E2 [18:36:07]MH_I2C_Read... [18:36:07]Read from MH i2c: E2 62 00 [18:36:07]MH_I2C_Read... [18:36:07]Read from MH i2c: E2 62 00 6E 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 2B FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [18:36: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 2B FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:07]wFMCommunicate OK [18:36:07]SAM_PROTO_GetFieldsCounters done [18:36:07]requested_item shift.num is exist - process it [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 04 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057255F (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10+0=10 [00:00:10]*** BPK Status Register BPK_RDY = 0x2 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 5F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 05 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 46 00 40 00 FF FF 64 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 0A 00 00 00 00 00 00 00 09 [00:00:10]Current date/time: 01.01.1970 00:00 [00:00:10]FM_Init [00:00:10]wFMConnect [00:00:10]MH_SAM_On [00:00:10]Write to MH i2c: E0 00 00 08 00 E7 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_init finished! [00:00:10]*** atr: [00:00:10]*** 0F 3B D5 18 FF 81 91 FE [00:00:10]*** 1F C3 80 73 C8 21 10 0A [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]*** 00 00 00 00 00 00 00 00 [00:00:10]Read from MH i2c: E0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E0 10 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:00:10]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:00:10]wFMCommunicate request_size=10 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:00:10]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 11 00 00 [00:00:10]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [00:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:00:10]wFMCommunicate OK [00:00:10]Detected FM SN is 0000000000875074 [00:00:10]Stored FM SN is 0000000000875074 [00:00:10]wFMCommunicate request_size=9 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 16 00 00 04 FA 15 01 00 [00:00:10]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FA 15 01 00 00 00 A2 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]FM PIN OK [00:00:10]wFMCommunicate request_size=8 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 14 04 00 03 02 00 01 [00:00:10]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=13 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:00:10]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 11 00 00 [00:00:10]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DA [00:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:00:10]wFMCommunicate OK [00:00:10]DocumentArchiveInit [00:00:10]Start Httpd... [00:00:10]Httpd thread 3066944868 created [00:00:10]Write to MH i2c: 01 00 00 0F 00 0F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:00:10]Allocated Socket 5 [00:00:10]Bind OK [00:00:10]Listen OK [00:00:10]httpd running on port 8080 [00:00:10]Waiting for new connection... [00:00:10]MH Int Process started [00:00:10]OFD Sender: Processing packet 64045 [packets to send 14, broken 13] [00:00:10]ProducePacketName [00:00:10]name=ofd_packets/00064045 [00:00:10]OFD Sender: To server: pG, [00:00:10]CommunicateWithHost lk.salyk.kg:30040 [00:00:10]ConnectInit lk.salyk.kg [00:00:10]Connected sock=7 [00:00:10]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 10 01 00 00 C3 31 08 01 3A 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 5C 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 28 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A1 5E 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2D FA 00 00 35 04 06 00 14 87 FA 9A 84 35 52 B2 51 9A 53 2F E6 60 [00:00:10]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 A4 47 00 E4 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2D FA 00 00 F4 03 04 00 F7 0F 5F 66 B6 04 01 00 00 7B B2 6B FD F8 B7 B0 28 [00:00:10]CommunicateWithHost err = 0 [00:00:10]CheckOFDResponse [00:00:10]1017 (14) - 77093643461234 [00:00:10]1041 (16) - 0000000000875074 [00:00:10]1040 (4) - 64045 [00:00:10]1012 (4) - 04.06.2024 13:00 [00:00:10]1206 (1) - 0 [00:00:10]OFD Sender: Remove packet 64045 [00:00:10]ProducePacketName [00:00:10]name=ofd_packets/00064045 [00:00:10]NVStorageDeleteData [00:00:10]accept exits with 6 [00:00:10]New connection [00:00:10]New thread 3066658148 created [00:00:10]Waiting for new connection... [00:00:10] Sock 6.Parse request [00:00:10]Sock 6.Check first char [00:00:10]Sock 6.First char is OK [00:00:10]request: GET /testengine HTTP/1.1 [00:00:10]Method: GET [00:00:10]URL: /testengine [00:00:10]Method is GET - find url and querystring [00:00:10]No ? found - this is static page request [00:00:10]url: /testengine [00:00:10]check /htdocs/testengine [00:00:10]file exist [00:00:10]serve_file /htdocs/testengine/index.html [00:00:10]read remaining request lines [00:00:10]Host: 172.17.60.69:8080 [00:00:10]Connection: keep-alive [00:00:10]Cache-Control: max-age=0 [00:00:10]Upgrade-Insecure-Requests: 1 [00:00:10]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 [00:00:10]Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 [00:00:10]Accept-Encoding: gzip, deflate [00:00:10]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:10] [00:00:10]open file /htdocs/testengine/index.html [00:00:10]send HTTP headers [00:00:10]send file content [00:00:10]Finished. Sent 1003 bytes [00:00:10]close file [00:00:10]Sock 6.Close socket [00:00:10]Sock 6.Thread stoped [00:00:11]accept exits with 7 [00:00:11]New connection [00:00:11]New thread 3066514788 created [00:00:11]Thread 3066658148 joined [00:00:11]Waiting for new connection... [00:00:11]accept exits with 6 [00:00:11]New connection [00:00:11]New thread 3066658148 created [00:00:11]Waiting for new connection... [00:00:11]accept exits with 10 [00:00:11]New connection [00:00:11]New thread 3066371428 created [00:00:11]Waiting for new connection... [00:00:11] Sock 6.Parse request [00:00:11]Sock 6.Check first char [00:00:11]Sock 6.First char is OK [00:00:11]request: GET /testengine/css/app.915bc88f.css HTTP/1.1 [00:00:11]Method: GET [00:00:11]URL: /testengine/css/app.915bc88f.css [00:00:11]Method is GET - find url and querystring [00:00:11]No ? found - this is static page request [00:00:11]url: /testengine/css/app.915bc88f.css [00:00:11]check /htdocs/testengine/css/app.915bc88f.css [00:00:11] Sock 7.Parse request [00:00:11]Sock 7.Check first char [00:00:11]Sock 7.First char is OK [00:00:11]request: GET /testengine/css/chunk-vendors.1a13a212.css HTTP/1.1 [00:00:11]Method: GET [00:00:11]URL: /testengine/css/chunk-vendors.1a13a212.css [00:00:11]Method is GET - find url and querystring [00:00:11]No ? found - this is static page request [00:00:11]url: /testengine/css/chunk-vendors.1a13a212.css [00:00:11]check /htdocs/testengine/css/chunk-vendors.1a13a212.css [00:00:11] Sock 10.Parse request [00:00:11]Sock 10.Check first char [00:00:11]Sock 10.First char is OK [00:00:11]request: GET /testengine/js/app.a9c38288.js HTTP/1.1 [00:00:11]Method: GET [00:00:11]URL: /testengine/js/app.a9c38288.js [00:00:11]Method is GET - find url and querystring [00:00:11]No ? found - this is static page request [00:00:11]url: /testengine/js/app.a9c38288.js [00:00:11]check /htdocs/testengine/js/app.a9c38288.js [00:00:11]file exist [00:00:11]serve_file /htdocs/testengine/css/app.915bc88f.css [00:00:11]read remaining request lines [00:00:11]Host: 172.17.60.69:8080 [00:00:11]Connection: keep-alive [00:00:11]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 [00:00:11]Accept: text/css,*/*;q=0.1 [00:00:11]Referer: http://172.17.60.69:8080/testengine [00:00:11]Accept-Encoding: gzip, deflate [00:00:11]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:11] [00:00:11]open file /htdocs/testengine/css/app.915bc88f.css [00:00:11]send HTTP headers [00:00:11]send file content [00:00:11]file exist [00:00:11]serve_file /htdocs/testengine/css/chunk-vendors.1a13a212.css [00:00:11]read remaining request lines [00:00:11]Host: 172.17.60.69:8080 [00:00:11]Connection: keep-alive [00:00:11]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 [00:00:11]Accept: text/css,*/*;q=0.1 [00:00:11]Referer: http://172.17.60.69:8080/testengine [00:00:11]Accept-Encoding: gzip, deflate [00:00:11]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:11] [00:00:11]open file /htdocs/testengine/css/chunk-vendors.1a13a212.css [00:00:11]send HTTP headers [00:00:11]send file content [00:00:11]Finished. Sent 1227 bytes [00:00:11]close file [00:00:11]Sock 6.Close socket [00:00:11]Sock 6.Thread stoped [00:00:11]file exist [00:00:11]serve_file /htdocs/testengine/js/app.a9c38288.js [00:00:11]read remaining request lines [00:00:11]Host: 172.17.60.69:8080 [00:00:11]Connection: keep-alive [00:00:11]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 [00:00:11]Accept: */* [00:00:11]Referer: http://172.17.60.69:8080/testengine [00:00:11]Accept-Encoding: gzip, deflate [00:00:11]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:11] [00:00:11]open file /htdocs/testengine/js/app.a9c38288.js [00:00:11]send HTTP headers [00:00:11]send file content [00:00:11]Finished. Sent 140 bytes [00:00:11]close file [00:00:11]Sock 7.Close socket [00:00:11]Sock 7.Thread stoped [00:00:11]Finished. Sent 102400 bytes [00:00:11]close file [00:00:11]Sock 10.Close socket [00:00:11]Sock 10.Thread stoped [00:00:11]accept exits with 11 [00:00:11]New connection [00:00:11]New thread 3066228068 created [00:00:11]Thread 3066658148 joined [00:00:11]Thread 3066514788 joined [00:00:11]Thread 3066371428 joined [00:00:11]Waiting for new connection... [00:00:11] Sock 11.Parse request [00:00:11]Sock 11.Check first char [00:00:11]Sock 11.First char is OK [00:00:11]request: GET /testengine/js/chunk-vendors.8f546e50.js HTTP/1.1 [00:00:11]Method: GET [00:00:11]URL: /testengine/js/chunk-vendors.8f546e50.js [00:00:11]Method is GET - find url and querystring [00:00:11]No ? found - this is static page request [00:00:11]url: /testengine/js/chunk-vendors.8f546e50.js [00:00:11]check /htdocs/testengine/js/chunk-vendors.8f546e50.js [00:00:11]file exist [00:00:11]serve_file /htdocs/testengine/js/chunk-vendors.8f546e50.js [00:00:11]read remaining request lines [00:00:11]Host: 172.17.60.69:8080 [00:00:11]Connection: keep-alive [00:00:11]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 [00:00:11]Accept: */* [00:00:11]Referer: http://172.17.60.69:8080/testengine [00:00:11]Accept-Encoding: gzip, deflate [00:00:11]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:11] [00:00:11]open file /htdocs/testengine/js/chunk-vendors.8f546e50.js [00:00:11]send HTTP headers [00:00:11]send file content [00:00:11]OFD Sender: No OFD packet to send [00:00:11]Finished. Sent 165537 bytes [00:00:11]close file [00:00:11]Sock 11.Close socket [00:00:11]Sock 11.Thread stoped [00:00:11]accept exits with 6 [00:00:11]New connection [00:00:11]New thread 3066658148 created [00:00:11]Thread 3066228068 joined [00:00:11]Waiting for new connection... [00:00:11] Sock 6.Parse request [00:00:11]Sock 6.Check first char [00:00:11]Sock 6.First char is OK [00:00:11]request: GET /testengine/favicon.ico HTTP/1.1 [00:00:11]Method: GET [00:00:11]URL: /testengine/favicon.ico [00:00:11]Method is GET - find url and querystring [00:00:11]No ? found - this is static page request [00:00:11]url: /testengine/favicon.ico [00:00:11]check /htdocs/testengine/favicon.ico [00:00:11]file exist [00:00:11]serve_file /htdocs/testengine/favicon.ico [00:00:11]read remaining request lines [00:00:11]Host: 172.17.60.69:8080 [00:00:11]Connection: keep-alive [00:00:11]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 [00:00:11]Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8 [00:00:11]Referer: http://172.17.60.69:8080/testengine [00:00:11]Accept-Encoding: gzip, deflate [00:00:11]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:11] [00:00:11]open file /htdocs/testengine/favicon.ico [00:00:11]send HTTP headers [00:00:11]send file content [00:00:11]Finished. Sent 4286 bytes [00:00:11]close file [00:00:11]Sock 6.Close socket [00:00:11]Sock 6.Thread stoped [00:00:16]OFD Sender: No OFD packet to send [00:00:18]accept exits with 7 [00:00:18]New connection [00:00:18]New thread 3066514788 created [00:00:18]Thread 3066658148 joined [00:00:18]Waiting for new connection... [00:00:18] Sock 7.Parse request [00:00:18]Sock 7.Check first char [00:00:18]Sock 7.First char is OK [00:00:18]request: POST /json_proto HTTP/1.0 [00:00:18]Method: POST [00:00:18]URL: /json_proto [00:00:18]Method is POST - this is cgi request [00:00:18]url: /json_proto [00:00:18]query_string will be loaded in cgi processing [00:00:18]execute_cgi json_proto POST (null) [00:00:18]execute_cgi path=json_proto method=POST [00:00:18]POST find Content-Length [00:00:18]Host: 172.17.60.69:8080 [00:00:18]Content-Length: 215 [00:00:18]Content-Type: application/json [00:00:18] [00:00:18]POST finish read [00:00:18]Found Content-Length = 215 [00:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:18]execute_script... [00:00:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:18]POST & json_proto [00:00:18]process_json_proto [00:00:18]json parsed OK: [00:00:18]protocol is kg_v1.0 [00:00:18]action value=get_value [00:00:18]process_action get_value [00:00:18]cmd_get_value [00:00:18]process_action get_value done [00:00:18]requested_data is exist [00:00:18]produce_requested_data [00:00:18]requested_item kkm.sn is exist - process it [00:00:18]requested_item kkm.ver is exist - process it [00:00:18]requested_item fm.sn is exist - process it [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 11 00 00 [00:00:18]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:18]Read from MH i2c: E2 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 17 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DC [00:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:00:18]wFMCommunicate OK [00:00:18]requested_item fd.num is exist - process it [00:00:18]SAM_PROTO_GetFieldsCounters [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 13 00 00 [00:00:18]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:18]accept exits with 9 [00:00:18]New connection [00:00:18]New thread 3066658148 created [00:00:18]Waiting for new connection... [00:00:18] Sock 9.Parse request [00:00:18]Sock 9.Check first char [00:00:19]Read from MH i2c: E2 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 62 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2D FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [00:00: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 2D FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:19]wFMCommunicate OK [00:00:19]SAM_PROTO_GetFieldsCounters done [00:00:19]requested_item shift.num is exist - process it [00:00:19]requested_item shift.opened is exist - process it [00:00:19]req_shift_opened [00:00:19]FM_GetShiftState [00:00:19]SAM_PROTO_GetShiftState [00:00:19]wFMCommunicate request_size=4 [00:00:19]MH_SAM_APDU [00:00:19]CAPDU: 80 13 01 00 [00:00:19]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:19]Read from MH i2c: E2 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 0E 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 2F [00:00:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [00:00:19]wFMCommunicate OK [00:00:19]SAM_PROTO_GetShiftState done [00:00:19]FM_GetShiftState done [00:00:19]req_shift_opened done [00:00:19]requested_item shift.open_date is exist - process it [00:00:19]req_shift_open_date [00:00:19]req_shift_open_date done [00:00:19]produce_requested_data done [00:00:19]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64045,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [00:00:19]process_action_free get_value [00:00:19]json_value_free [00:00:19]json_value_free done [00:00:19]process_json_proto returns [00:00:19]Send response to host [00:00:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64045,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [00:00:19]free response buf [00:00:19]execute_script done [00:00:19]execute_script returns [00:00:19]free content buf [00:00:19]Sock 7.Close socket [00:00:19]Sock 7.Thread stoped [00:00:19]accept exits with 10 [00:00:19]New connection [00:00:19]New thread 3066371428 created [00:00:19]Thread 3066514788 joined [00:00:19]Waiting for new connection... [00:00:19] Sock 10.Parse request [00:00:19]Sock 10.Check first char [00:00:19]Sock 10.First char is OK [00:00:19]request: POST /json_proto HTTP/1.0 [00:00:19]Method: POST [00:00:19]URL: /json_proto [00:00:19]Method is POST - this is cgi request [00:00:19]url: /json_proto [00:00:19]query_string will be loaded in cgi processing [00:00:19]execute_cgi json_proto POST (null) [00:00:19]execute_cgi path=json_proto method=POST [00:00:19]POST find Content-Length [00:00:19]Host: 172.17.60.69:8080 [00:00:19]Content-Length: 331 [00:00:19]Content-Type: application/json [00:00:19] [00:00:19]POST finish read [00:00:19]Found Content-Length = 331 [00:00:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:19]execute_script... [00:00:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:19]POST & json_proto [00:00:19]process_json_proto [00:00:19]json parsed OK: [00:00:19]protocol is kg_v1.0 [00:00:19]action value=get_value [00:00:19]process_action get_value [00:00:19]cmd_get_value [00:00:19]process_action get_value done [00:00:19]requested_data is exist [00:00:19]produce_requested_data [00:00:19]requested_item fm.sale.total is exist - process it [00:00:19]SAM_PROTO_GetFMData [00:00:19]wFMCommunicate request_size=4 [00:00:19]MH_SAM_APDU [00:00:19]CAPDU: 80 13 03 00 [00:00:19]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:19]Read from MH i2c: E2 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 [00:00:19]MH_I2C_Read... [00:00:19]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 41 F7 00 00 69 04 A1 00 6F 04 04 00 DE F4 00 00 B1 04 04 00 69 C2 08 77 70 04 04 00 76 7D 3C 66 72 04 04 00 F3 44 CC 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 C7 76 A4 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 DB A0 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 63 02 00 00 B1 04 04 00 98 B0 81 03 70 04 04 00 14 55 66 03 72 04 03 00 84 5B 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 9B 56 5F EF 03 09 90 00 D3 [00:00:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 41 F7 00 00 69 04 A1 00 6F 04 04 00 DE F4 00 00 B1 04 04 00 69 C2 08 77 70 04 04 00 76 7D 3C 66 72 04 04 00 F3 44 CC 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 C7 76 A4 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 DB A0 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 63 02 00 00 B1 04 04 00 98 B0 81 03 70 04 04 00 14 55 66 03 72 04 03 00 84 5B 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 9B 56 5F EF 03 09 90 00 [00:00:19]wFMCommunicate OK [00:00:19]wFMCommunicate request_size=4 [00:00:19]MH_SAM_APDU [00:00:19]CAPDU: 80 17 00 00 [00:00:19]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:00:19]Write i2c OK [00:00:19]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A7 F1 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 E9 [00:00:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A7 F1 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 [00:00:20]wFMCommunicate OK [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 17 00 00 [00:00:20]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [00:00:20]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:00:20]wFMCommunicate OK [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 17 00 00 [00:00:20]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [00:00:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:00:20]wFMCommunicate OK [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 17 00 00 [00:00:20]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:00:20]Read from MH i2c: E2 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 E2 00 [00:00:20]MH_I2C_Read... [00:00:20]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [00:00:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:20]wFMCommunicate OK [00:00:20]SAM_PROTO_GetFMData done [00:00:20]requested_item fm.sale_refund.total is exist - process it [00:00:20]requested_item fm.buy.total is exist - process it [00:00:20]requested_item shift.sale.total is exist - process it [00:00:20]SAM_PROTO_GetShiftData [00:00:20]wFMCommunicate request_size=4 [00:00:20]MH_SAM_APDU [00:00:20]CAPDU: 80 13 02 00 [00:00:20]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:00:20]Write i2c OK [00:00:20]MH_I2C_Read... [00:00:21]OFD Sender: No OFD packet to send [00:00:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 18 00 00 B6 04 AA 04 B2 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 B8 C1 44 70 04 03 00 E0 C5 36 72 04 03 00 D8 FB 0D 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 81 4D 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C6 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 B4 F5 70 04 02 00 B4 F5 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 17 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 C0 [00:00:21]RAPDU: B6 04 AA 04 B2 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 B8 C1 44 70 04 03 00 E0 C5 36 72 04 03 00 D8 FB 0D 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 81 4D 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C6 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 95 00 6F 04 04 00 03 00 00 00 B1 04 02 00 B4 F5 70 04 02 00 B4 F5 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 17 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 17 00 00 [00:00:21]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 19 00 00 F6 03 01 00 01 F7 03 02 00 2D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 90 00 DC [00:00:21]RAPDU: F6 03 01 00 01 F7 03 02 00 2D 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 17 00 00 [00:00:21]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:21]Read from MH i2c: E2 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 [00:00:21]MH_I2C_Read... [00:00:21]Read from MH i2c: E2 FD 00 1A 00 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 5A [00:00:21]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:00:21]wFMCommunicate OK [00:00:21]wFMCommunicate request_size=4 [00:00:21]MH_SAM_APDU [00:00:21]CAPDU: 80 17 00 00 [00:00:21]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:00:21]Write i2c OK [00:00:21]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 FD 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 FD 00 1B 00 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 90 00 0A [00:00:22]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 90 00 [00:00:22]wFMCommunicate OK [00:00:22]wFMCommunicate request_size=4 [00:00:22]MH_SAM_APDU [00:00:22]CAPDU: 80 17 00 00 [00:00:22]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 208! [00:00:22]Read from MH i2c: E2 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 D3 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: E2 D3 00 1C 00 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 89 [00:00:22]RAPDU: 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:00:22]wFMCommunicate OK [00:00:22]SAM_PROTO_GetShiftData done [00:00:22]requested_item shift.sale.total_cash is exist - process it [00:00:22]requested_item shift.sale_refund.total is exist - process it [00:00:22]requested_item shift.sale_refund.total_cash is exist - process it [00:00:22]requested_item shift.buy.total is exist - process it [00:00:22]requested_item shift.buy.total_cash is exist - process it [00:00:22]produce_requested_data done [00:00:22]produce_requested_data return {"fm.sale.total":19970627.61,"fm.sale_refund.total":588310.00,"fm.buy.total":0.00,"shift.sale.total":45060.40,"shift.sale.total_cash":35896.00,"shift.sale_refund.total":629.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:00:22]process_action_free get_value [00:00:22]json_value_free [00:00:22]json_value_free done [00:00:22]process_json_proto returns [00:00:22]Send response to host [00:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19970627.61,"fm.sale_refund.total":588310.00,"fm.buy.total":0.00,"shift.sale.total":45060.40,"shift.sale.total_cash":35896.00,"shift.sale_refund.total":629.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:00:22]free response buf [00:00:22]execute_script done [00:00:22]execute_script returns [00:00:22]free content buf [00:00:22]Sock 10.Close socket [00:00:22]Sock 10.Thread stoped [00:00:22]accept exits with 7 [00:00:22]New connection [00:00:22]New thread 3066514788 created [00:00:22]Thread 3066371428 joined [00:00:22]Waiting for new connection... [00:00:22] Sock 7.Parse request [00:00:22]Sock 7.Check first char [00:00:22]Sock 7.First char is OK [00:00:22]request: POST /json_proto HTTP/1.0 [00:00:22]Method: POST [00:00:22]URL: /json_proto [00:00:22]Method is POST - this is cgi request [00:00:22]url: /json_proto [00:00:22]query_string will be loaded in cgi processing [00:00:22]execute_cgi json_proto POST (null) [00:00:22]execute_cgi path=json_proto method=POST [00:00:22]POST find Content-Length [00:00:22]Host: 172.17.60.69:8080 [00:00:22]Content-Length: 144 [00:00:22]Content-Type: application/json [00:00:22] [00:00:22]POST finish read [00:00:22]Found Content-Length = 144 [00:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [00:00:22]execute_script... [00:00:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [00:00:22]POST & json_proto [00:00:22]process_json_proto [00:00:22]json parsed OK: [00:00:22]protocol is kg_v1.0 [00:00:22]action value=print_doc [00:00:22]process_action print_doc [00:00:22]ExternCall_PrintAddStr [00:00:22]wPrintStart [00:00:22]Write to MH i2c: 01 00 00 1D 00 1D [00:00:22]Write i2c OK [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: 01 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: 01 07 00 [00:00:22]MH_I2C_Read... [00:00:22]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [00:00:22]RasterBufferAndPrint [00:00:22]line Счет N : (1)545012 [00:00:22]line ИНН: 02508201610067 [00:00:22]line Контрольно-Кассовый Чек [00:00:22]line ПРОДАЖА [00:00:22]line ТРК (МРК, ГНК) : 34 [00:00:22]line Товар: 2710124130 [00:00:22]line SUPER 92-К-5 [00:00:22]line 23.570 * 67.90 [00:00:22]line = 1600.40 [00:00:22]line НДС 12% НСП 1% [00:00:22]line > о реализуемом товаре [00:00:22]line ОКРУГЛЕНИЕ: -0.40 [00:00:22]line ИТОГО: 1600.00 [00:00:22]line Внесено: 1600.00 [00:00:22]line СДАЧА: 0.00 [00:00:22]line НСП 1% : 14.16 [00:00:22]line НДС 12% : 169.95 [00:00:22]line Наличными: 1600.00 [00:00:22]line Безнал.: 0.00 [00:00:22]line Место: АЗС № 117 "Партнер Нефть" [00:00:22]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [00:00:22]line СНО: Общий режим [00:00:22]line Чек 130 04.06.2024 18:36 [00:00:22]line Смена: 374 ФФД: 1.0 [00:00:22]line ЗНМ: 0300000031 [00:00:22]line РНМ: 0000000000092737 [00:00:22]line Версия ККМ: 001 [00:00:22]line ФМ: 0000000000875074 [00:00:22]line ФД: 64045 [00:00:22]line ФПД: 22574257570869 [00:00:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T183617&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64045&fm=22574257570869&tin=02508201610067®Number=0000000000092737&sum=160000 [00:00:22]written 0, free lines is 4095 [00:00:23]Write to MH i2c: 01 00 00 48 00 48 [00:00:23]Write i2c OK [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: 01 [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: 01 07 00 [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 F2 0C 4D [00:00:23]RasterBufferAndPrint [00:00:23]line [00:00:23]line [00:00:23]line [00:00:23]line [00:00:23]line [00:00:23]written 0, free lines is 3329 [00:00:23]MH_Cut [00:00:23]Write to MH i2c: D1 01 00 4F 00 01 21 [00:00:23]Write i2c OK [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: D1 [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: D1 01 00 [00:00:23]MH_I2C_Read... [00:00:23]Read from MH i2c: D1 01 00 4F 00 00 20 [00:00:23]Write to MH i2c: 01 00 00 50 00 50 [00:00:23]Write i2c OK [00:00:23]MH_I2C_Read... [00:00:24]*** Cut start [00:00:24]*** Partial cut [00:00:24]*** CUTSNS_PIN = 1 [00:00:24]*** CUTSNS_PIN = 0 [00:00:24]*** Brake cut motor [00:00:24]Read from MH i2c: 01 [00:00:24]MH_I2C_Read... [00:00:24]*** Stop cut motor [00:00:24]*** Cut end [00:00:24]Read from MH i2c: 01 07 00 [00:00:24]MH_I2C_Read... [00:00:24]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [00:00:24]process_action print_doc done [00:00:24]requested_data is exist [00:00:24]produce_requested_data [00:00:24]produce_requested_data return (null) [00:00:24]process_action_free print_doc [00:00:24]json_value_free [00:00:24]json_value_free done [00:00:24]process_json_proto returns [00:00:24]Send response to host [00:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [00:00:24]free response buf [00:00:24]execute_script done [00:00:24]execute_script returns [00:00:24]free content buf [00:00:24]Sock 7.Close socket [00:00:24]Sock 7.Thread stoped [00:00:25]accept exits with 10 [00:00:25]New connection [00:00:25]New thread 3066371428 created [00:00:25]Thread 3066514788 joined [00:00:25]Waiting for new connection... [00:00:25] Sock 10.Parse request [00:00:25]Sock 10.Check first char [00:00:25]Sock 10.First char is OK [00:00:25]request: POST /json_proto HTTP/1.0 [00:00:25]Method: POST [00:00:25]URL: /json_proto [00:00:25]Method is POST - this is cgi request [00:00:25]url: /json_proto [00:00:25]query_string will be loaded in cgi processing [00:00:25]execute_cgi json_proto POST (null) [00:00:25]execute_cgi path=json_proto method=POST [00:00:25]POST find Content-Length [00:00:25]Host: 172.17.60.69:8080 [00:00:25]Content-Length: 920 [00:00:25]Content-Type: application/json [00:00:25] [00:00:25]POST finish read [00:00:25]Found Content-Length = 920 [00:00:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73585", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "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" ] } } [00:00:25]execute_script... [00:00: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)73585", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "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" ] } } [00:00:25]POST & json_proto [00:00:25]process_json_proto [00:00:25]json parsed OK: [00:00:25]protocol is kg_v1.0 [00:00:25]action value=close_receipt [00:00:25]process_action close_receipt [00:00:25]cmd_close_receipt [00:00:25]MH_GetDate [00:00:25]Write to MH i2c: F0 00 00 51 00 40 [00:00:25]Write i2c OK [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: F0 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: F0 09 00 [00:00:25]MH_I2C_Read... [00:00:25]Read from MH i2c: F0 09 00 51 00 00 1A 00 00 00 00 00 00 00 63 [00:00:25]GetLastDocTimeStamp 1717526177 [00:00:25]current date 26 [00:00:25]curdatesum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 131 04.06.2024 21:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64046 ФПД: 177058011744936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211525&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64046&fm=177058011744936&tin=02508201610067®Number=0000000000092737&sum=9500 0 [21:15:26]StoreToDocumentArchive [21:15:26]shift 374 fd 64046 [21:15:26]save to /storage/0374/doc_00064046 [21:15:26]save last doc name /storage/0374/doc_00064046 to /storage/kkm_last_doc_name [21:15:26]save OK [21:15:26]Clear old archive folders... [21:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=307 [21:15:26]tlvbuf is 00FD6DD0 [21:15:26]SAM_PROTO_ClearQueue [21:15:26]wFMCommunicate request_size=4 [21:15:26]MH_SAM_APDU [21:15:26]CAPDU: 80 09 00 00 [21:15:26]Write to MH i2c: E2 08 00 5B 00 80 09 00 00 00 00 00 00 CD [21:15:26]Write i2c OK [21:15:26]MH_I2C_Read... [21:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:26]Read from MH i2c: E2 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: E2 03 00 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: E2 03 00 5B 00 00 90 00 CF [21:15:26]RAPDU: 90 00 [21:15:26]wFMCommunicate OK [21:15:26]SAM_PROTO_ClearQueue done [21:15:26]KKMCreateOFDPacket [21:15:26]OFDProtocolAddRootSTLVToBuf [21:15:26]FM_MakeSignedData [21:15:26]FM_MakeSignedData [21:15:26]SAM_PROTO_SignData [21:15:26]wFMCommunicate request_size=4 [21:15:26]MH_SAM_APDU [21:15:26]CAPDU: 80 0D 01 02 [21:15:26]Write to MH i2c: E2 08 00 5C 00 80 0D 01 02 00 00 00 00 D5 [21:15:26]Write i2c OK [21:15:26]MH_I2C_Read... [21:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:26]Read from MH i2c: E2 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: E2 03 00 [21:15:26]MH_I2C_Read... [21:15:26]Read from MH i2c: E2 03 00 5C 00 00 90 00 D0 [21:15:26]RAPDU: 90 00 [21:15:26]wFMCommunicate OK [21:15:26]wFMCommunicate request_size=255 [21:15:26]MH_SAM_APDU [21:15:26]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 83 00 00 00 F4 03 04 00 ED 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 [21:15:26]Write to MH i2c: E2 02 01 5D 00 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 83 00 00 00 F4 03 04 00 ED 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 00 00 1B [21:15:27]Write i2c OK [21:15:27]MH_I2C_Read... [21:15:27]OFD Sender: No OFD packet to send [21:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:27]Read from MH i2c: E2 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 03 00 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 03 00 5D 00 00 90 00 D1 [21:15:27]RAPDU: 90 00 [21:15:27]wFMCommunicate OK [21:15:27]wFMCommunicate request_size=66 [21:15:27]MH_SAM_APDU [21:15:27]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 2E FA 00 00 35 04 06 00 A1 08 87 E5 0A A8 [21:15:27]Write to MH i2c: E2 45 00 5E 00 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 2E FA 00 00 35 04 06 00 A1 08 87 E5 0A A8 00 00 1B [21:15:27]Write i2c OK [21:15:27]MH_I2C_Read... [21:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:27]Read from MH i2c: E2 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 03 00 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [21:15:27]RAPDU: 90 00 [21:15:27]wFMCommunicate OK [21:15:27]wFMCommunicate request_size=4 [21:15:27]MH_SAM_APDU [21:15:27]CAPDU: 80 0D 03 02 [21:15:27]Write to MH i2c: E2 08 00 5F 00 80 0D 03 02 00 00 00 00 DA [21:15:27]Write i2c OK [21:15:27]MH_I2C_Read... [21:15:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:27]Read from MH i2c: E2 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 0B 00 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 0B 00 5F 00 00 6B 63 C9 0B C0 68 F2 2E 90 00 C5 [21:15:27]RAPDU: 6B 63 C9 0B C0 68 F2 2E 90 00 [21:15:27]wFMCommunicate OK [21:15:27]SAM_PROTO_SignData done [21:15:27]FM_MakeSignedData done [21:15:27]CreateOFDProtocolMessage [21:15:27]wFMCommunicate request_size=4 [21:15:27]MH_SAM_APDU [21:15:27]CAPDU: 80 11 00 00 [21:15:27]Write to MH i2c: E2 08 00 60 00 80 11 00 00 00 00 00 00 DA [21:15:27]Write i2c OK [21:15:27]MH_I2C_Read... [21:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:27]Read from MH i2c: E2 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 17 00 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: E2 17 00 60 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2C [21:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:15:27]wFMCommunicate OK [21:15:27]CreateOFDProtocolMessage done [21:15:27]OFDSenderStorePacket 64046 [21:15:27]StoreOFDPacket docnum=64046 [21:15: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 47 01 00 00 FA 2D 3F 01 5E E8 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 83 00 00 00 F4 03 04 00 ED 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2E FA 00 00 35 04 06 00 A1 08 87 E5 0A A8 6B 63 C9 0B C0 68 F2 2E [21:15:27]CheckFolder [21:15:27]dirname=/storage/ofd_packets [21:15:27]CheckFolder done [21:15:27]ProducePacketName [21:15:27]name=ofd_packets/00064046 [21:15:27]NVStorageSaveData ofd_packets/00064046 [21:15:27]File name is /storage/ofd_packets/00064046 [21:15:27]Write 357 bytes [21:15:27]NVStorageSaveData done [21:15:27]OFDSenderStorePacket done [21:15:27]KKMCreateOFDPacket done [21:15:27]NVStorageSaveData kkm_last_timestamp [21:15:27]File name is /storage/kkm_last_timestamp [21:15:27]Write 4 bytes [21:15:27]NVStorageSaveData done [21:15:27]ExternCall_PrintAddStr [21:15:27]wPrintStart [21:15:27]Write to MH i2c: 01 00 00 61 00 61 [21:15:27]Write i2c OK [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: 01 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: 01 07 00 [21:15:27]MH_I2C_Read... [21:15:27]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [21:15:27]RasterBufferAndPrint [21:15:27]line Счет N : (3)73585 [21:15:27]line ИНН: 02508201610067 [21:15:27]line Контрольно-Кассовый Чек [21:15:27]line ПРОДАЖА [21:15:27]line Товар: 4700000481989 [21:15:27]line Напиток энерг Nitro киви-мангостин 0,45 [21:15:27]line 1.000 * 95.00 [21:15:27]line = 95.00 [21:15:27]line НДС 12% НСП 1% [21:15:27]line > о реализуемом товаре [21:15:27]line ИТОГО: 95.00 [21:15:27]line НСП 1% : 0.84 [21:15:27]line НДС 12% : 10.09 [21:15:27]line Наличными: 0.00 [21:15:27]line Безнал.: 95.00 [21:15:27]line Место: АЗС № 117 "Партнер Нефть" [21:15:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:15:27]line СНО: Общий режим [21:15:27]line Чек 131 04.06.2024 21:15 [21:15:27]line Смена: 374 ФФД: 1.0 [21:15:27]line ЗНМ: 0300000031 [21:15:27]line РНМ: 0000000000092737 [21:15:27]line Версия ККМ: 001 [21:15:27]line Платежная система: АКБ Кыргызстан [21:15:27]line ФМ: 0000000000875074 [21:15:27]line ФД: 64046 [21:15:27]line ФПД: 177058011744936 [21:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211525&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64046&fm=177058011744936&tin=02508201610067®Number=0000000000092737&sum=9500 [21:15:27]OFD Sender: Processing packet 64046 [packets to send 14, broken 13] [21:15:27]ProducePacketName [21:15:27]name=ofd_packets/00064046 [21:15:27]OFD Sender: To server: pG, [21:15:27]CommunicateWithHost lk.salyk.kg:30040 [21:15:27]ConnectInit lk.salyk.kg [21:15:27]line 0 [21:15:27]written 0, free lines is 4095 [21:15:27]Connected sock=10 [21:15:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 47 01 00 00 FA 2D 3F 01 5E E8 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 83 00 00 00 F4 03 04 00 ED 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2E FA 00 00 35 04 06 00 A1 08 87 E5 0A A8 6B 63 C9 0B C0 68 F2 2E [21:15: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 92 A4 47 00 EC 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2E FA 00 00 F4 03 04 00 FB 2F 5F 66 B6 04 01 00 00 A2 A5 67 4A 07 D7 93 36 [21:15:28]CommunicateWithHost err = 0 [21:15:28]CheckOFDResponse [21:15:28]1017 (14) - 77093643461234 [21:15:28]1041 (16) - 0000000000875074 [21:15:28]1040 (4) - 64046 [21:15:28]1012 (4) - 04.06.2024 15:17 [21:15:28]1206 (1) - 0 [21:15:28]OFD Sender: Remove packet 64046 [21:15:28]ProducePacketName [21:15:28]name=ofd_packets/00064046 [21:15:28]NVStorageDeleteData [21:15:28]Write to MH i2c: 01 00 00 8C 00 8C [21:15:28]Write i2c OK [21:15:28]MH_I2C_Read... [21:15:28]Read from MH i2c: 01 [21:15:28]MH_I2C_Read... [21:15:28]Read from MH i2c: 01 07 00 [21:15:28]MH_I2C_Read... [21:15:28]Read from MH i2c: 01 07 00 8C 00 00 00 00 00 00 D7 0C 76 [21:15:28]RasterBufferAndPrint [21:15:28]line [21:15:28]line [21:15:28]line [21:15:28]line [21:15:28]line [21:15:28]written 0, free lines is 3306 [21:15:28]MH_Cut [21:15:28]Write to MH i2c: D1 01 00 93 00 01 65 [21:15:28]Write i2c OK [21:15:28]MH_I2C_Read... [21:15:28]Read from MH i2c: D1 [21:15:28]MH_I2C_Read... [21:15:28]Read from MH i2c: D1 01 00 [21:15:28]MH_I2C_Read... [21:15:28]Read from MH i2c: D1 01 00 93 00 00 64 [21:15:28]Write to MH i2c: 01 00 00 94 00 94 [21:15:28]Write i2c OK [21:15:28]MH_I2C_Read... [21:15:28]OFD Sender: No OFD packet to send [21:15:28]*** Cut start [21:15:28]*** Partial cut [21:15:28]*** CUTSNS_PIN = 1 [21:15:28]*** CUTSNS_PIN = 0 [21:15:29]*** Brake cut motor [21:15:29]Read from MH i2c: 01 [21:15:29]MH_I2C_Read... [21:15:29]*** Stop cut motor [21:15:29]*** Cut end [21:15:29]Read from MH i2c: 01 07 00 [21:15:29]MH_I2C_Read... [21:15:29]Read from MH i2c: 01 07 00 94 00 00 00 00 00 00 FF 0F A9 [21:15:29]process_action close_receipt done [21:15:29]requested_data is exist [21:15:29]produce_requested_data [21:15:29]requested_item fm.sn is exist - process it [21:15:29]wFMCommunicate request_size=4 [21:15:29]MH_SAM_APDU [21:15:29]CAPDU: 80 11 00 00 [21:15:29]Write to MH i2c: E2 08 00 95 00 80 11 00 00 00 00 00 00 0F [21:15:29]Write i2c OK [21:15:29]MH_I2C_Read... [21:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:29]Read from MH i2c: E2 [21:15:29]MH_I2C_Read... [21:15:29]Read from MH i2c: E2 17 00 [21:15:29]MH_I2C_Read... [21:15:29]Read from MH i2c: E2 17 00 95 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 61 [21:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:15:29]wFMCommunicate OK [21:15:29]requested_item fd.num is exist - process it [21:15:29]SAM_PROTO_GetFieldsCounters [21:15:29]wFMCommunicate request_size=4 [21:15:29]MH_SAM_APDU [21:15:29]CAPDU: 80 13 00 00 [21:15:29]Write to MH i2c: E2 08 00 96 00 80 13 00 00 00 00 00 00 12 [21:15:29]Write i2c OK [21:15:29]MH_I2C_Read... [21:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:29]Read from MH i2c: E2 [21:15:29]MH_I2C_Read... [21:15:29]Read from MH i2c: E2 62 00 [21:15:29]MH_I2C_Read... [21:15:29]Read from MH i2c: E2 62 00 96 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [21:15: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 2E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:29]wFMCommunicate OK [21:15:29]SAM_PROTO_GetFieldsCounters done [21:15:29]requested_item shift.num is exist - process it [21:15:29]requested_item shift.opened is exist - process it [21:15:29]req_shift_opened [21:15:29]FM_GetShiftState [21:15:29]SAM_PROTO_GetShiftState [21:15:29]wFMCommunicate request_size=4 [21:15:29]MH_SAM_APDU [21:15:29]CAPDU: 80 13 01 00 [21:15:29]Write to MH i2c: E2 08 00 97 00 80 13 01 00 00 00 00 00 14 [21:15:29]Write i2c OK [21:15:29]MH_I2C_Read... [21:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:29]Read from MH i2c: E2 [21:15:29]MH_I2C_Read... [21:15:29]Read from MH i2c: E2 0E 00 [21:15:29]MH_I2C_Read... [21:15:29]Read from MH i2c: E2 0E 00 97 00 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B4 [21:15:29]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:29]wFMCommunicate OK [21:15:29]SAM_PROTO_GetShiftState done [21:15:29]FM_GetShiftState done [21:15:29]req_shift_opened done [21:15:29]requested_item shift.open_date is exist - process it [21:15:29]req_shift_open_date [21:15:29]req_shift_open_date done [21:15:29]produce_requested_data done [21:15:29]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64046,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:15:29]process_action_free close_receipt [21:15:29]json_value_free [21:15:29]json_value_free done [21:15:29]process_json_proto returns [21:15:29]Send response to host [21:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64046,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:15:29]free response buf [21:15:29]execute_script done [21:15:29]execute_script returns [21:15:29]free content buf [21:15:29]Sock 9.Close socket [21:15:29]Sock 9.Thread stoped [21:15:33]OFD Sender: No OFD packet to send [21:15:35]accept exits with 8 [21:15:35]New connection [21:15:35]New thread 3067276644 created [21:15:35]Thread 3067133284 joined [21:15:35]Waiting for new connection... [21:15:35] Sock 8.Parse request [21:15:35]Sock 8.Check first char [21:15:35]Sock 8.First char is OK [21:15:35]request: POST /json_proto HTTP/1.0 [21:15:35]Method: POST [21:15:35]URL: /json_proto [21:15:35]Method is POST - this is cgi request [21:15:35]url: /json_proto [21:15:35]query_string will be loaded in cgi processing [21:15:35]execute_cgi json_proto POST (null) [21:15:35]execute_cgi path=json_proto method=POST [21:15:35]POST find Content-Length [21:15:35]Host: 172.17.60.69:8080 [21:15:35]Content-Length: 712 [21:15:35]Content-Type: application/json [21:15:35] [21:15:35]POST finish read [21:15:35]Found Content-Length = 712 [21:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73586", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:35]execute_script... [21:15: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)73586", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:35]POST & json_proto [21:15:35]process_json_proto [21:15:35]json parsed OK: [21:15:35]protocol is kg_v1.0 [21:15:35]action value=close_receipt [21:15:35]process_action close_receipt [21:15:35]cmd_close_receipt [21:15:35]MH_GetDate [21:15:35]Write to MH i2c: F0 00 00 98 00 87 [21:15:35]Write i2c OK [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: F0 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: F0 09 00 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: F0 09 00 98 00 00 F7 83 5F 66 D2 83 5F 66 E9 [21:15:35]GetLastDocTimeStamp 1717535725 [21:15:35]current date 1717535735 [21:15:35]FM_GetShiftState [21:15:35]SAM_PROTO_GetShiftState [21:15:35]wFMCommunicate request_size=4 [21:15:35]MH_SAM_APDU [21:15:35]CAPDU: 80 13 01 00 [21:15:35]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [21:15:35]Write i2c OK [21:15:35]MH_I2C_Read... [21:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:35]Read from MH i2c: E2 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: E2 0E 00 [21:15:35]MH_I2C_Read... [21:15:35]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B6 [21:15:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:35]wFMCommunicate OK [21:15:35]SAM_PROTO_GetShiftState done [21:15:35]FM_GetShiftState done [21:15:35]opened in 1717459574 [21:15:35]opened+sec_in_day 1717545974 [21:15:35]quantity*price = 6500 [21:15:35]sum+1 = 6501 [21:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 132 04.06.2024 21:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64047 ФПД: 2489961374926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211535&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64047&fm=2489961374926&tin=02508201610067®Number=0000000000092737&sum=6500 0 [21:15:36]StoreToDocumentArchive [21:15:36]shift 374 fd 64047 [21:15:36]save to /storage/0374/doc_00064047 [21:15:36]save last doc name /storage/0374/doc_00064047 to /storage/kkm_last_doc_name [21:15:36]save OK [21:15:36]Clear old archive folders... [21:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=304 [21:15:36]tlvbuf is 00FEAAF0 [21:15:36]SAM_PROTO_ClearQueue [21:15:36]wFMCommunicate request_size=4 [21:15:36]MH_SAM_APDU [21:15:36]CAPDU: 80 09 00 00 [21:15:36]Write to MH i2c: E2 08 00 A6 00 80 09 00 00 00 00 00 00 18 [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:36]Read from MH i2c: E2 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 03 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 03 00 A6 00 00 90 00 1A [21:15:36]RAPDU: 90 00 [21:15:36]wFMCommunicate OK [21:15:36]SAM_PROTO_ClearQueue done [21:15:36]KKMCreateOFDPacket [21:15:36]OFDProtocolAddRootSTLVToBuf [21:15:36]FM_MakeSignedData [21:15:36]FM_MakeSignedData [21:15:36]SAM_PROTO_SignData [21:15:36]wFMCommunicate request_size=4 [21:15:36]MH_SAM_APDU [21:15:36]CAPDU: 80 0D 01 02 [21:15:36]Write to MH i2c: E2 08 00 A7 00 80 0D 01 02 00 00 00 00 20 [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 03 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 03 00 A7 00 00 90 00 1B [21:15:37]RAPDU: 90 00 [21:15:37]wFMCommunicate OK [21:15:37]wFMCommunicate request_size=255 [21:15:37]MH_SAM_APDU [21:15:37]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 F7 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 [21:15:37]Write to MH i2c: E2 02 01 A8 00 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 F7 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 00 00 A7 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 03 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [21:15:37]RAPDU: 90 00 [21:15:37]wFMCommunicate OK [21:15:37]wFMCommunicate request_size=63 [21:15:37]MH_SAM_APDU [21:15:37]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 2F FA 00 00 35 04 06 00 02 43 BD 43 64 CE [21:15:37]Write to MH i2c: E2 42 00 A9 00 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 2F FA 00 00 35 04 06 00 02 43 BD 43 64 CE 00 00 0F [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 03 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [21:15:37]RAPDU: 90 00 [21:15:37]wFMCommunicate OK [21:15:37]wFMCommunicate request_size=4 [21:15:37]MH_SAM_APDU [21:15:37]CAPDU: 80 0D 03 02 [21:15:37]Write to MH i2c: E2 08 00 AA 00 80 0D 03 02 00 00 00 00 25 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 0B 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 0B 00 AA 00 00 A2 6D FE 40 48 2F 12 82 90 00 7E [21:15:37]RAPDU: A2 6D FE 40 48 2F 12 82 90 00 [21:15:37]wFMCommunicate OK [21:15:37]SAM_PROTO_SignData done [21:15:37]FM_MakeSignedData done [21:15:37]CreateOFDProtocolMessage [21:15:37]wFMCommunicate request_size=4 [21:15:37]MH_SAM_APDU [21:15:37]CAPDU: 80 11 00 00 [21:15:37]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:37]Read from MH i2c: E2 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 17 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 77 [21:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:15:37]wFMCommunicate OK [21:15:37]CreateOFDProtocolMessage done [21:15:37]OFDSenderStorePacket 64047 [21:15:37]StoreOFDPacket docnum=64047 [21:15: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 44 01 00 00 6C 00 3C 01 F3 DD 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 F7 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2F FA 00 00 35 04 06 00 02 43 BD 43 64 CE A2 6D FE 40 48 2F 12 82 [21:15:37]CheckFolder [21:15:37]dirname=/storage/ofd_packets [21:15:37]CheckFolder done [21:15:37]ProducePacketName [21:15:37]name=ofd_packets/00064047 [21:15:37]NVStorageSaveData ofd_packets/00064047 [21:15:37]File name is /storage/ofd_packets/00064047 [21:15:37]Write 354 bytes [21:15:37]NVStorageSaveData done [21:15:37]OFDSenderStorePacket done [21:15:37]KKMCreateOFDPacket done [21:15:37]NVStorageSaveData kkm_last_timestamp [21:15:37]File name is /storage/kkm_last_timestamp [21:15:37]Write 4 bytes [21:15:37]NVStorageSaveData done [21:15:37]ExternCall_PrintAddStr [21:15:37]wPrintStart [21:15:37]Write to MH i2c: 01 00 00 AC 00 AC [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: 01 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: 01 07 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [21:15:37]RasterBufferAndPrint [21:15:37]line Счет N : (3)73586 [21:15:37]line ИНН: 02508201610067 [21:15:37]line Контрольно-Кассовый Чек [21:15:37]line ПРОДАЖА [21:15:37]line Товар: 4870001571023 [21:15:37]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [21:15:37]line 1.000 * 65.00 [21:15:37]line = 65.00 [21:15:37]line НДС 12% НСП 1% [21:15:37]line > о реализуемом товаре [21:15:37]line ИТОГО: 65.00 [21:15:37]line НСП 1% : 0.57 [21:15:37]line НДС 12% : 6.90 [21:15:37]line Наличными: 65.00 [21:15:37]line Безнал.: 0.00 [21:15:37]line Место: АЗС № 117 "Партнер Нефть" [21:15:37]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:15:37]line СНО: Общий режим [21:15:37]line Чек 132 04.06.2024 21:15 [21:15:37]line Смена: 374 ФФД: 1.0 [21:15:37]line ЗНМ: 0300000031 [21:15:37]line РНМ: 0000000000092737 [21:15:37]line Версия ККМ: 001 [21:15:37]line ФМ: 0000000000875074 [21:15:37]line ФД: 64047 [21:15:37]line ФПД: 2489961374926 [21:15:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211535&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64047&fm=2489961374926&tin=02508201610067®Number=0000000000092737&sum=6500 [21:15:37]line 0 [21:15:37]written 0, free lines is 4095 [21:15:37]OFD Sender: Processing packet 64047 [packets to send 14, broken 13] [21:15:37]ProducePacketName [21:15:37]name=ofd_packets/00064047 [21:15:37]OFD Sender: To server: pG, [21:15:37]CommunicateWithHost lk.salyk.kg:30040 [21:15:37]ConnectInit lk.salyk.kg [21:15:37]Connected sock=9 [21:15: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 44 01 00 00 6C 00 3C 01 F3 DD 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 F7 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 2F FA 00 00 35 04 06 00 02 43 BD 43 64 CE A2 6D FE 40 48 2F 12 82 [21:15: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 3B AD 47 00 16 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 2F FA 00 00 F4 03 04 00 05 30 5F 66 B6 04 01 00 00 7C 54 7A 89 6E 47 94 56 [21:15:38]CommunicateWithHost err = 0 [21:15:38]CheckOFDResponse [21:15:38]1017 (14) - 77093643461234 [21:15:38]1041 (16) - 0000000000875074 [21:15:38]1040 (4) - 64047 [21:15:38]1012 (4) - 04.06.2024 15:17 [21:15:38]1206 (1) - 0 [21:15:38]OFD Sender: Remove packet 64047 [21:15:38]ProducePacketName [21:15:38]name=ofd_packets/00064047 [21:15:38]NVStorageDeleteData [21:15:38]Write to MH i2c: 01 00 00 D5 00 D5 [21:15:38]Write i2c OK [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: 01 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: 01 07 00 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: 01 07 00 D5 00 00 00 00 00 00 F8 0C E0 [21:15:38]RasterBufferAndPrint [21:15:38]line [21:15:38]line [21:15:38]line [21:15:38]line [21:15:38]line [21:15:38]written 0, free lines is 3338 [21:15:38]MH_Cut [21:15:38]Write to MH i2c: D1 01 00 DC 00 01 AE [21:15:38]Write i2c OK [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: D1 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: D1 01 00 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: D1 01 00 DC 00 00 AD [21:15:38]Write to MH i2c: 01 00 00 DD 00 DD [21:15:38]Write i2c OK [21:15:38]MH_I2C_Read... [21:15:38]OFD Sender: No OFD packet to send [21:15:38]*** Cut start [21:15:38]*** Partial cut [21:15:38]*** CUTSNS_PIN = 1 [21:15:38]*** CUTSNS_PIN = 0 [21:15:39]*** Brake cut motor [21:15:39]Read from MH i2c: 01 [21:15:39]MH_I2C_Read... [21:15:39]*** Stop cut motor [21:15:39]*** Cut end [21:15:39]Read from MH i2c: 01 07 00 [21:15:39]MH_I2C_Read... [21:15:39]Read from MH i2c: 01 07 00 DD 00 00 00 00 00 00 FF 0F F2 [21:15:39]process_action close_receipt done [21:15:39]requested_data is exist [21:15:39]produce_requested_data [21:15:39]requested_item fm.sn is exist - process it [21:15:39]wFMCommunicate request_size=4 [21:15:39]MH_SAM_APDU [21:15:39]CAPDU: 80 11 00 00 [21:15:39]Write to MH i2c: E2 08 00 DE 00 80 11 00 00 00 00 00 00 58 [21:15:39]Write i2c OK [21:15:39]MH_I2C_Read... [21:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:39]Read from MH i2c: E2 [21:15:39]MH_I2C_Read... [21:15:39]Read from MH i2c: E2 17 00 [21:15:39]MH_I2C_Read... [21:15:39]Read from MH i2c: E2 17 00 DE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AA [21:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:15:39]wFMCommunicate OK [21:15:39]requested_item fd.num is exist - process it [21:15:39]SAM_PROTO_GetFieldsCounters [21:15:39]wFMCommunicate request_size=4 [21:15:39]MH_SAM_APDU [21:15:39]CAPDU: 80 13 00 00 [21:15:39]Write to MH i2c: E2 08 00 DF 00 80 13 00 00 00 00 00 00 5B [21:15:39]Write i2c OK [21:15:39]MH_I2C_Read... [21:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:39]Read from MH i2c: E2 [21:15:39]MH_I2C_Read... [21:15:39]Read from MH i2c: E2 62 00 [21:15:39]MH_I2C_Read... [21:15:39]Read from MH i2c: E2 62 00 DF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 2F FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [21:15: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 2F FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:39]wFMCommunicate OK [21:15:39]SAM_PROTO_GetFieldsCounters done [21:15:39]requested_item shift.num is exist - process it [21:15:39]requested_item shift.opened is exist - process it [21:15:39]req_shift_opened [21:15:39]FM_GetShiftState [21:15:39]SAM_PROTO_GetShiftState [21:15:39]wFMCommunicate request_size=4 [21:15:39]MH_SAM_APDU [21:15:39]CAPDU: 80 13 01 00 [21:15:39]Write to MH i2c: E2 08 00 E0 00 80 13 01 00 00 00 00 00 5D [21:15:39]Write i2c OK [21:15:39]MH_I2C_Read... [21:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:39]Read from MH i2c: E2 [21:15:39]MH_I2C_Read... [21:15:39]Read from MH i2c: E2 0E 00 [21:15:39]MH_I2C_Read... [21:15:39]Read from MH i2c: E2 0E 00 E0 00 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 FD [21:15:39]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:39]wFMCommunicate OK [21:15:39]SAM_PROTO_GetShiftState done [21:15:39]FM_GetShiftState done [21:15:39]req_shift_opened done [21:15:39]requested_item shift.open_date is exist - process it [21:15:39]req_shift_open_date [21:15:39]req_shift_open_date done [21:15:39]produce_requested_data done [21:15:39]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64047,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:15:39]process_action_free close_receipt [21:15:39]json_value_free [21:15:39]json_value_free done [21:15:39]process_json_proto returns [21:15:39]Send response to host [21:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64047,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:15:39]free response buf [21:15:39]execute_script done [21:15:39]execute_script returns [21:15:39]free content buf [21:15:39]Sock 8.Close socket [21:15:39]Sock 8.Thread stoped [21:15:41]accept exits with 10 [21:15:41]New connection [21:15:41]New thread 3067133284 created [21:15:41]Thread 3067276644 joined [21:15:41]Waiting for new connection... [21:15:41] Sock 10.Parse request [21:15:41]Sock 10.Check first char [21:15:41]Sock 10.First char is OK [21:15:41]request: POST /json_proto HTTP/1.0 [21:15:41]Method: POST [21:15:41]URL: /json_proto [21:15:41]Method is POST - this is cgi request [21:15:41]url: /json_proto [21:15:41]query_string will be loaded in cgi processing [21:15:41]execute_cgi json_proto POST (null) [21:15:41]execute_cgi path=json_proto method=POST [21:15:41]POST find Content-Length [21:15:41]Host: 172.17.60.69:8080 [21:15:41]Content-Length: 747 [21:15:41]Content-Type: application/json [21:15:41] [21:15:41]POST finish read [21:15:41]Found Content-Length = 747 [21:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73587", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 2.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" ] } } [21:15:41]execute_script... [21: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)73587", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 2.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" ] } } [21:15:41]POST & json_proto [21:15:41]process_json_proto [21:15:41]json parsed OK: [21:15:41]protocol is kg_v1.0 [21:15:41]action value=close_receipt [21:15:41]process_action close_receipt [21:15:41]cmd_close_receipt [21:15:41]MH_GetDate [21:15:41]Write to MH i2c: F0 00 00 E1 00 D0 [21:15:41]Write i2c OK [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: F0 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: F0 09 00 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: F0 09 00 E1 00 00 FD 83 5F 66 D2 83 5F 66 38 [21:15:41]GetLastDocTimeStamp 1717535735 [21:15:41]current date 1717535741 [21:15:41]FM_GetShiftState [21:15:41]SAM_PROTO_GetShiftState [21:15:41]wFMCommunicate request_size=4 [21:15:41]MH_SAM_APDU [21:15:41]CAPDU: 80 13 01 00 [21:15:41]Write to MH i2c: E2 08 00 E2 00 80 13 01 00 00 00 00 00 5F [21:15:41]Write i2c OK [21:15:41]MH_I2C_Read... [21:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:41]Read from MH i2c: E2 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: E2 0E 00 [21:15:41]MH_I2C_Read... [21:15:41]Read from MH i2c: E2 0E 00 E2 00 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 FF [21:15:41]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:41]wFMCommunicate OK [21:15:41]SAM_PROTO_GetShiftState done [21:15:41]FM_GetShiftState done [21:15:41]opened in 1717459574 [21:15:41]opened+sec_in_day 1717545974 [21:15:41]quantity*price = 4000 [21:15:41]sum+1 = 4001 [21:15:41]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 СНО: Общий режим Чек 133 04.06.2024 21:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64048 ФПД: 70294440421434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211541&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64048&fm=70294440421434&tin=02508201610067®Number=0000000000092737&sum=4000 0 [21:15:42]StoreToDocumentArchive [21:15:42]shift 374 fd 64048 [21:15:42]save to /storage/0374/doc_00064048 [21:15:42]save last doc name /storage/0374/doc_00064048 to /storage/kkm_last_doc_name [21:15:42]save OK [21:15:42]Clear old archive folders... [21:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=311 [21:15:42]tlvbuf is 00FA8440 [21:15:42]SAM_PROTO_ClearQueue [21:15:42]wFMCommunicate request_size=4 [21:15:42]MH_SAM_APDU [21:15:42]CAPDU: 80 09 00 00 [21:15:42]Write to MH i2c: E2 08 00 EF 00 80 09 00 00 00 00 00 00 61 [21:15:42]Write i2c OK [21:15:42]MH_I2C_Read... [21:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:42]Read from MH i2c: E2 [21:15:42]MH_I2C_Read... [21:15:42]Read from MH i2c: E2 03 00 [21:15:42]MH_I2C_Read... [21:15:42]Read from MH i2c: E2 03 00 EF 00 00 90 00 63 [21:15:42]RAPDU: 90 00 [21:15:42]wFMCommunicate OK [21:15:42]SAM_PROTO_ClearQueue done [21:15:42]KKMCreateOFDPacket [21:15:42]OFDProtocolAddRootSTLVToBuf [21:15:42]FM_MakeSignedData [21:15:42]FM_MakeSignedData [21:15:42]SAM_PROTO_SignData [21:15:42]wFMCommunicate request_size=4 [21:15:42]MH_SAM_APDU [21:15:42]CAPDU: 80 0D 01 02 [21:15:42]Write to MH i2c: E2 08 00 F0 00 80 0D 01 02 00 00 00 00 69 [21:15:42]Write i2c OK [21:15:42]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 F0 00 00 90 00 64 [21:15:43]RAPDU: 90 00 [21:15:43]wFMCommunicate OK [21:15:43]wFMCommunicate request_size=255 [21:15:43]MH_SAM_APDU [21:15:43]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 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 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 85 00 00 00 F4 03 04 00 FD 83 5F 66 0E 04 04 00 76 01 [21:15:43]Write to MH i2c: E2 02 01 F1 00 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 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 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 85 00 00 00 F4 03 04 00 FD 83 5F 66 0E 04 04 00 76 01 00 00 21 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 F1 00 00 90 00 65 [21:15:43]RAPDU: 90 00 [21:15:43]wFMCommunicate OK [21:15:43]wFMCommunicate request_size=70 [21:15:43]MH_SAM_APDU [21:15:43]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 30 FA 00 00 35 04 06 00 3F EE B3 26 A8 3A [21:15:43]Write to MH i2c: E2 49 00 F2 00 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 30 FA 00 00 35 04 06 00 3F EE B3 26 A8 3A 00 00 97 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]OFD Sender: No OFD packet to send [21:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [21:15:43]RAPDU: 90 00 [21:15:43]wFMCommunicate OK [21:15:43]wFMCommunicate request_size=4 [21:15:43]MH_SAM_APDU [21:15:43]CAPDU: 80 0D 03 02 [21:15:43]Write to MH i2c: E2 08 00 F3 00 80 0D 03 02 00 00 00 00 6E [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 0B 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 0B 00 F3 00 00 3C CC FB 84 ED 7C 56 47 90 00 FC [21:15:43]RAPDU: 3C CC FB 84 ED 7C 56 47 90 00 [21:15:43]wFMCommunicate OK [21:15:43]SAM_PROTO_SignData done [21:15:43]FM_MakeSignedData done [21:15:43]CreateOFDProtocolMessage [21:15:43]wFMCommunicate request_size=4 [21:15:43]MH_SAM_APDU [21:15:43]CAPDU: 80 11 00 00 [21:15:43]Write to MH i2c: E2 08 00 F4 00 80 11 00 00 00 00 00 00 6E [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:43]Read from MH i2c: E2 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 17 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: E2 17 00 F4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C0 [21:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:15:43]wFMCommunicate OK [21:15:43]CreateOFDProtocolMessage done [21:15:43]OFDSenderStorePacket 64048 [21:15:43]StoreOFDPacket docnum=64048 [21:15:43]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 3A A0 43 01 D9 5C 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 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 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 85 00 00 00 F4 03 04 00 FD 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 30 FA 00 00 35 04 06 00 3F EE B3 26 A8 3A 3C CC FB 84 ED 7C 56 47 [21:15:43]CheckFolder [21:15:43]dirname=/storage/ofd_packets [21:15:43]CheckFolder done [21:15:43]ProducePacketName [21:15:43]name=ofd_packets/00064048 [21:15:43]NVStorageSaveData ofd_packets/00064048 [21:15:43]File name is /storage/ofd_packets/00064048 [21:15:43]Write 361 bytes [21:15:43]NVStorageSaveData done [21:15:43]OFDSenderStorePacket done [21:15:43]KKMCreateOFDPacket done [21:15:43]NVStorageSaveData kkm_last_timestamp [21:15:43]File name is /storage/kkm_last_timestamp [21:15:43]Write 4 bytes [21:15:43]NVStorageSaveData done [21:15:43]ExternCall_PrintAddStr [21:15:43]wPrintStart [21:15:43]Write to MH i2c: 01 00 00 F5 00 F5 [21:15:43]Write i2c OK [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: 01 [21:15:43]MH_I2C_Read... [21:15:43]OFD Sender: Processing packet 64048 [packets to send 14, broken 13] [21:15:43]ProducePacketName [21:15:43]name=ofd_packets/00064048 [21:15:43]OFD Sender: To server: pG, [21:15:43]CommunicateWithHost lk.salyk.kg:30040 [21:15:43]ConnectInit lk.salyk.kg [21:15:43]Read from MH i2c: 01 07 00 [21:15:43]MH_I2C_Read... [21:15:43]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [21:15:43]RasterBufferAndPrint [21:15:43]line Счет N : (3)73587 [21:15:43]line ИНН: 02508201610067 [21:15:43]line Контрольно-Кассовый Чек [21:15:43]line ПРОДАЖА [21:15:43]line Товар: 4700003730039 [21:15:43]line Снек Возд пшеница Бадырак сладкая 30гр [21:15:43]line 2.000 * 20.00 [21:15:43]line = 40.00 [21:15:43]line НДС 12% НСП 1% [21:15:43]line > о реализуемом товаре [21:15:43]line ИТОГО: 40.00 [21:15:43]line НСП 1% : 0.35 [21:15:43]line НДС 12% : 4.25 [21:15:43]line Наличными: 40.00 [21:15:43]line Безнал.: 0.00 [21:15:43]line Место: АЗС № 117 "Партнер Нефть" [21:15:43]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:15:43]line СНО: Общий режим [21:15:43]line Чек 133 04.06.2024 21:15 [21:15:43]line Смена: 374 ФФД: 1.0 [21:15:43]line ЗНМ: 0300000031 [21:15:43]line РНМ: 0000000000092737 [21:15:43]line Версия ККМ: 001 [21:15:43]line ФМ: 0000000000875074 [21:15:43]line ФД: 64048 [21:15:43]line ФПД: 70294440421434 [21:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211541&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64048&fm=70294440421434&tin=02508201610067®Number=0000000000092737&sum=4000 [21:15:43]line 0 [21:15:43]written 0, free lines is 4095 [21:15:43]Connected sock=9 [21: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 4B 01 00 00 3A A0 43 01 D9 5C 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 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 07 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 85 00 00 00 F4 03 04 00 FD 83 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 30 FA 00 00 35 04 06 00 3F EE B3 26 A8 3A 3C CC FB 84 ED 7C 56 47 [21:15:44]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 CA F5 47 00 93 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 30 FA 00 00 F4 03 04 00 0B 30 5F 66 B6 04 01 00 00 59 E8 17 7B 2D 01 37 06 [21:15:44]CommunicateWithHost err = 0 [21:15:44]CheckOFDResponse [21:15:44]1017 (14) - 77093643461234 [21:15:44]1041 (16) - 0000000000875074 [21:15:44]1040 (4) - 64048 [21:15:44]1012 (4) - 04.06.2024 15:17 [21:15:44]1206 (1) - 0 [21:15:44]OFD Sender: Remove packet 64048 [21:15:44]ProducePacketName [21:15:44]name=ofd_packets/00064048 [21:15:44]NVStorageDeleteData [21:15:44]Write to MH i2c: 01 00 00 1E 01 1F [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: 01 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: 01 07 00 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: 01 07 00 1E 01 00 00 00 00 00 20 0D 53 [21:15:44]RasterBufferAndPrint [21:15:44]line [21:15:44]line [21:15:44]line [21:15:44]line [21:15:44]line [21:15:44]written 0, free lines is 3386 [21:15:44]MH_Cut [21:15:44]Write to MH i2c: D1 01 00 25 01 01 F8 [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: D1 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: D1 01 00 [21:15:44]MH_I2C_Read... [21:15:44]Read from MH i2c: D1 01 00 25 01 00 F7 [21:15:44]Write to MH i2c: 01 00 00 26 01 27 [21:15:44]Write i2c OK [21:15:44]MH_I2C_Read... [21:15:44]OFD Sender: No OFD packet to send [21:15:45]*** Cut start [21:15:45]*** Partial cut [21:15:45]*** CUTSNS_PIN = 1 [21:15:45]*** CUTSNS_PIN = 0 [21:15:45]*** Brake cut motor [21:15:45]Read from MH i2c: 01 [21:15:45]MH_I2C_Read... [21:15:45]*** Stop cut motor [21:15:45]*** Cut end [21:15:45]Read from MH i2c: 01 07 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [21:15:45]process_action close_receipt done [21:15:45]requested_data is exist [21:15:45]produce_requested_data [21:15:45]requested_item fm.sn is exist - process it [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 11 00 00 [21:15:45]Write to MH i2c: E2 08 00 27 01 80 11 00 00 00 00 00 00 A2 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:45]Read from MH i2c: E2 17 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 17 00 27 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F4 [21: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 [21:15:45]wFMCommunicate OK [21:15:45]requested_item fd.num is exist - process it [21:15:45]SAM_PROTO_GetFieldsCounters [21:15:45]wFMCommunicate request_size=4 [21:15:45]MH_SAM_APDU [21:15:45]CAPDU: 80 13 00 00 [21:15:45]Write to MH i2c: E2 08 00 28 01 80 13 00 00 00 00 00 00 A5 [21:15:45]Write i2c OK [21:15:45]MH_I2C_Read... [21:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:45]Read from MH i2c: E2 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 62 00 [21:15:45]MH_I2C_Read... [21:15:45]Read from MH i2c: E2 62 00 28 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 30 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [21: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 30 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:46]wFMCommunicate OK [21:15:46]SAM_PROTO_GetFieldsCounters done [21:15:46]requested_item shift.num is exist - process it [21:15:46]requested_item shift.opened is exist - process it [21:15:46]req_shift_opened [21:15:46]FM_GetShiftState [21:15:46]SAM_PROTO_GetShiftState [21:15:46]wFMCommunicate request_size=4 [21:15:46]MH_SAM_APDU [21:15:46]CAPDU: 80 13 01 00 [21:15:46]Write to MH i2c: E2 08 00 29 01 80 13 01 00 00 00 00 00 A7 [21:15:46]Write i2c OK [21:15:46]MH_I2C_Read... [21:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:46]Read from MH i2c: E2 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 0E 00 [21:15:46]MH_I2C_Read... [21:15:46]Read from MH i2c: E2 0E 00 29 01 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 47 [21:15:46]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:46]wFMCommunicate OK [21:15:46]SAM_PROTO_GetShiftState done [21:15:46]FM_GetShiftState done [21:15:46]req_shift_opened done [21:15:46]requested_item shift.open_date is exist - process it [21:15:46]req_shift_open_date [21:15:46]req_shift_open_date done [21:15:46]produce_requested_data done [21:15:46]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64048,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:15:46]process_action_free close_receipt [21:15:46]json_value_free [21:15:46]json_value_free done [21:15:46]process_json_proto returns [21:15:46]Send response to host [21:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64048,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:15:46]free response buf [21:15:46]execute_script done [21:15:46]execute_script returns [21:15:46]free content buf [21:15:46]Sock 10.Close socket [21:15:46]Sock 10.Thread stoped [21:15:47]accept exits with 8 [21:15:47]New connection [21:15:47]New thread 3067276644 created [21:15:47]Thread 3067133284 joined [21:15:47]Waiting for new connection... [21:15:47] Sock 8.Parse request [21:15:47]Sock 8.Check first char [21:15:47]Sock 8.First char is OK [21:15:47]request: POST /json_proto HTTP/1.0 [21:15:47]Method: POST [21:15:47]URL: /json_proto [21:15:47]Method is POST - this is cgi request [21:15:47]url: /json_proto [21:15:47]query_string will be loaded in cgi processing [21:15:47]execute_cgi json_proto POST (null) [21:15:47]execute_cgi path=json_proto method=POST [21:15:47]POST find Content-Length [21:15:47]Host: 172.17.60.69:8080 [21:15:47]Content-Length: 620 [21:15:47]Content-Type: application/json [21:15:47] [21:15:47]POST finish read [21:15:47]Found Content-Length = 620 [21:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73588", "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" ] } } [21:15:47]execute_script... [21:15: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)73588", "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" ] } } [21:15:47]POST & json_proto [21:15:47]process_json_proto [21:15:47]json parsed OK: [21:15:47]protocol is kg_v1.0 [21:15:47]action value=close_receipt [21:15:47]process_action close_receipt [21:15:47]cmd_close_receipt [21:15:47]MH_GetDate [21:15:47]Write to MH i2c: F0 00 00 2A 01 1A [21:15:47]Write i2c OK [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: F0 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: F0 09 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: F0 09 00 2A 01 00 03 84 5F 66 D2 83 5F 66 89 [21:15:47]GetLastDocTimeStamp 1717535741 [21:15:47]current date 1717535747 [21:15:47]FM_GetShiftState [21:15:47]SAM_PROTO_GetShiftState [21:15:47]wFMCommunicate request_size=4 [21:15:47]MH_SAM_APDU [21:15:47]CAPDU: 80 13 01 00 [21:15:47]Write to MH i2c: E2 08 00 2B 01 80 13 01 00 00 00 00 00 A9 [21:15:47]Write i2c OK [21:15:47]MH_I2C_Read... [21:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:47]Read from MH i2c: E2 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 0E 00 [21:15:47]MH_I2C_Read... [21:15:47]Read from MH i2c: E2 0E 00 2B 01 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 49 [21:15:47]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:47]wFMCommunicate OK [21:15:47]SAM_PROTO_GetShiftState done [21:15:47]FM_GetShiftState done [21:15:47]opened in 1717459574 [21:15:47]opened+sec_in_day 1717545974 [21:15:47]quantity*price = 14000 [21:15:47]sum+1 = 14001 [21:15:47]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 СНО: Общий режим Чек 134 04.06.2024 21:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64049 ФПД: 180511371188501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211547&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64049&fm=180511371188501&tin=02508201610067®Number=0000000000092737&sum=14000 0 [21:15:49]StoreToDocumentArchive [21:15:49]shift 374 fd 64049 [21:15:49]save to /storage/0374/doc_00064049 [21:15:49]save last doc name /storage/0374/doc_00064049 to /storage/kkm_last_doc_name [21:15:49]save OK [21:15:49]Clear old archive folders... [21:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:15:49]tlvbuf is 00FE3130 [21:15:49]SAM_PROTO_ClearQueue [21:15:49]wFMCommunicate request_size=4 [21:15:49]MH_SAM_APDU [21:15:49]CAPDU: 80 09 00 00 [21:15:49]Write to MH i2c: E2 08 00 38 01 80 09 00 00 00 00 00 00 AB [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:49]Read from MH i2c: E2 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 03 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 03 00 38 01 00 90 00 AD [21:15:49]RAPDU: 90 00 [21:15:49]wFMCommunicate OK [21:15:49]SAM_PROTO_ClearQueue done [21:15:49]KKMCreateOFDPacket [21:15:49]OFDProtocolAddRootSTLVToBuf [21:15:49]FM_MakeSignedData [21:15:49]FM_MakeSignedData [21:15:49]SAM_PROTO_SignData [21:15:49]wFMCommunicate request_size=4 [21:15:49]MH_SAM_APDU [21:15:49]CAPDU: 80 0D 01 02 [21:15:49]Write to MH i2c: E2 08 00 39 01 80 0D 01 02 00 00 00 00 B3 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:49]Read from MH i2c: E2 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 03 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 03 00 39 01 00 90 00 AE [21:15:49]RAPDU: 90 00 [21:15:49]wFMCommunicate OK [21:15:49]wFMCommunicate request_size=255 [21:15:49]MH_SAM_APDU [21:15:49]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 86 00 00 00 F4 03 04 00 03 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [21:15:49]Write to MH i2c: E2 02 01 3A 01 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 86 00 00 00 F4 03 04 00 03 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 F4 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:49]Read from MH i2c: E2 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 03 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 03 00 3A 01 00 90 00 AF [21:15:49]RAPDU: 90 00 [21:15:49]wFMCommunicate OK [21:15:49]wFMCommunicate request_size=32 [21:15:49]MH_SAM_APDU [21:15:49]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 31 FA 00 00 35 04 06 00 A4 2C 94 28 59 15 [21:15:49]Write to MH i2c: E2 23 00 3B 01 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 31 FA 00 00 35 04 06 00 A4 2C 94 28 59 15 00 00 37 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]OFD Sender: No OFD packet to send [21:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:49]Read from MH i2c: E2 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 03 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [21:15:49]RAPDU: 90 00 [21:15:49]wFMCommunicate OK [21:15:49]wFMCommunicate request_size=4 [21:15:49]MH_SAM_APDU [21:15:49]CAPDU: 80 0D 03 02 [21:15:49]Write to MH i2c: E2 08 00 3C 01 80 0D 03 02 00 00 00 00 B8 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:49]Read from MH i2c: E2 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 0B 00 [21:15:49]MH_I2C_Read... [21:15:49]Read from MH i2c: E2 0B 00 3C 01 00 04 FE AE E6 69 79 C5 24 90 00 1A [21:15:49]RAPDU: 04 FE AE E6 69 79 C5 24 90 00 [21:15:49]wFMCommunicate OK [21:15:49]SAM_PROTO_SignData done [21:15:49]FM_MakeSignedData done [21:15:49]CreateOFDProtocolMessage [21:15:49]wFMCommunicate request_size=4 [21:15:49]MH_SAM_APDU [21:15:49]CAPDU: 80 11 00 00 [21:15:49]Write to MH i2c: E2 08 00 3D 01 80 11 00 00 00 00 00 00 B8 [21:15:49]Write i2c OK [21:15:49]MH_I2C_Read... [21:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:50]Read from MH i2c: E2 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 17 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: E2 17 00 3D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 0A [21:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:15:50]wFMCommunicate OK [21:15:50]CreateOFDProtocolMessage done [21:15:50]OFDSenderStorePacket 64049 [21:15:50]StoreOFDPacket docnum=64049 [21:15:50]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 61 63 1D 01 30 D0 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 86 00 00 00 F4 03 04 00 03 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 31 FA 00 00 35 04 06 00 A4 2C 94 28 59 15 04 FE AE E6 69 79 C5 24 [21:15:50]CheckFolder [21:15:50]dirname=/storage/ofd_packets [21:15:50]CheckFolder done [21:15:50]ProducePacketName [21:15:50]name=ofd_packets/00064049 [21:15:50]NVStorageSaveData ofd_packets/00064049 [21:15:50]File name is /storage/ofd_packets/00064049 [21:15:50]Write 323 bytes [21:15:50]NVStorageSaveData done [21:15:50]OFDSenderStorePacket done [21:15:50]KKMCreateOFDPacket done [21:15:50]NVStorageSaveData kkm_last_timestamp [21:15:50]File name is /storage/kkm_last_timestamp [21:15:50]Write 4 bytes [21:15:50]NVStorageSaveData done [21:15:50]ExternCall_PrintAddStr [21:15:50]wPrintStart [21:15:50]Write to MH i2c: 01 00 00 3E 01 3F [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 07 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 FF 0F 54 [21:15:50]RasterBufferAndPrint [21:15:50]line Счет N : (3)73588 [21:15:50]line ИНН: 02508201610067 [21:15:50]line Контрольно-Кассовый Чек [21:15:50]line ПРОДАЖА [21:15:50]line Товар: 48743570 [21:15:50]line Сигареты Winston XStyle Blue [21:15:50]line 1.000 * 140.00 [21:15:50]line = 140.00 [21:15:50]line НДС 12% НСП 1% [21:15:50]line > о реализуемом товаре [21:15:50]line ИТОГО: 140.00 [21:15:50]line НСП 1% : 1.24 [21:15:50]line НДС 12% : 14.87 [21:15:50]line Наличными: 140.00 [21:15:50]line Безнал.: 0.00 [21:15:50]line Место: АЗС № 117 "Партнер Нефть" [21:15:50]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:15:50]line СНО: Общий режим [21:15:50]line Чек 134 04.06.2024 21:15 [21:15:50]line Смена: 374 ФФД: 1.0 [21:15:50]line ЗНМ: 0300000031 [21:15:50]line РНМ: 0000000000092737 [21:15:50]line Версия ККМ: 001 [21:15:50]line ФМ: 0000000000875074 [21:15:50]line ФД: 64049 [21:15:50]line ФПД: 180511371188501 [21:15:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211547&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64049&fm=180511371188501&tin=02508201610067®Number=0000000000092737&sum=14000 [21:15:50]line 0 [21:15:50]written 0, free lines is 4095 [21:15:50]OFD Sender: Processing packet 64049 [packets to send 14, broken 13] [21:15:50]ProducePacketName [21:15:50]name=ofd_packets/00064049 [21:15:50]OFD Sender: To server: pG, [21:15:50]CommunicateWithHost lk.salyk.kg:30040 [21:15:50]ConnectInit lk.salyk.kg [21:15:50]Connected sock=10 [21:15: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 25 01 00 00 61 63 1D 01 30 D0 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 86 00 00 00 F4 03 04 00 03 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 31 FA 00 00 35 04 06 00 A4 2C 94 28 59 15 04 FE AE E6 69 79 C5 24 [21:15:50]Write to MH i2c: 01 00 00 66 01 67 [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 07 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: 01 07 00 66 01 00 00 00 00 00 F3 0C 6D [21:15:50]RasterBufferAndPrint [21:15:50]line [21:15:50]line [21:15:50]line [21:15:50]line [21:15:50]line [21:15:50]written 0, free lines is 3346 [21:15:50]MH_Cut [21:15:50]Write to MH i2c: D1 01 00 6D 01 01 40 [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: D1 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: D1 01 00 [21:15:50]MH_I2C_Read... [21:15:50]Read from MH i2c: D1 01 00 6D 01 00 3F [21:15:50]Write to MH i2c: 01 00 00 6E 01 6F [21:15: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 38 10 47 00 B6 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 31 FA 00 00 F4 03 04 00 11 30 5F 66 B6 04 01 00 00 2F 06 26 00 DA 49 DA D4 [21:15:50]CommunicateWithHost err = 0 [21:15:50]CheckOFDResponse [21:15:50]1017 (14) - 77093643461234 [21:15:50]1041 (16) - 0000000000875074 [21:15:50]1040 (4) - 64049 [21:15:50]1012 (4) - 04.06.2024 15:17 [21:15:50]1206 (1) - 0 [21:15:50]OFD Sender: Remove packet 64049 [21:15:50]ProducePacketName [21:15:50]name=ofd_packets/00064049 [21:15:50]NVStorageDeleteData [21:15:50]Write i2c OK [21:15:50]MH_I2C_Read... [21:15:51]OFD Sender: No OFD packet to send [21:15:51]*** Cut start [21:15:51]*** Partial cut [21:15:51]*** CUTSNS_PIN = 1 [21:15:51]*** CUTSNS_PIN = 0 [21:15:51]*** Brake cut motor [21:15:51]Read from MH i2c: 01 [21:15:51]MH_I2C_Read... [21:15:51]*** Stop cut motor [21:15:51]*** Cut end [21:15:51]Read from MH i2c: 01 07 00 [21:15:51]MH_I2C_Read... [21:15:51]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 FF 0F 84 [21:15:51]process_action close_receipt done [21:15:51]requested_data is exist [21:15:51]produce_requested_data [21:15:51]requested_item fm.sn is exist - process it [21:15:51]wFMCommunicate request_size=4 [21:15:51]MH_SAM_APDU [21:15:51]CAPDU: 80 11 00 00 [21:15:51]Write to MH i2c: E2 08 00 6F 01 80 11 00 00 00 00 00 00 EA [21:15:51]Write i2c OK [21:15:51]MH_I2C_Read... [21:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:52]Read from MH i2c: E2 [21:15:52]MH_I2C_Read... [21:15:52]Read from MH i2c: E2 17 00 [21:15:52]MH_I2C_Read... [21:15:52]Read from MH i2c: E2 17 00 6F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3C [21:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:15:52]wFMCommunicate OK [21:15:52]requested_item fd.num is exist - process it [21:15:52]SAM_PROTO_GetFieldsCounters [21:15:52]wFMCommunicate request_size=4 [21:15:52]MH_SAM_APDU [21:15:52]CAPDU: 80 13 00 00 [21:15:52]Write to MH i2c: E2 08 00 70 01 80 13 00 00 00 00 00 00 ED [21:15:52]Write i2c OK [21:15:52]MH_I2C_Read... [21:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:52]Read from MH i2c: E2 [21:15:52]MH_I2C_Read... [21:15:52]Read from MH i2c: E2 62 00 [21:15:52]MH_I2C_Read... [21:15:52]Read from MH i2c: E2 62 00 70 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 31 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [21:15:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 31 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:52]wFMCommunicate OK [21:15:52]SAM_PROTO_GetFieldsCounters done [21:15:52]requested_item shift.num is exist - process it [21:15:52]requested_item shift.opened is exist - process it [21:15:52]req_shift_opened [21:15:52]FM_GetShiftState [21:15:52]SAM_PROTO_GetShiftState [21:15:52]wFMCommunicate request_size=4 [21:15:52]MH_SAM_APDU [21:15:52]CAPDU: 80 13 01 00 [21:15:52]Write to MH i2c: E2 08 00 71 01 80 13 01 00 00 00 00 00 EF [21:15:52]Write i2c OK [21:15:52]MH_I2C_Read... [21:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:52]Read from MH i2c: E2 [21:15:52]MH_I2C_Read... [21:15:52]Read from MH i2c: E2 0E 00 [21:15:52]MH_I2C_Read... [21:15:52]Read from MH i2c: E2 0E 00 71 01 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 8F [21:15:52]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:52]wFMCommunicate OK [21:15:52]SAM_PROTO_GetShiftState done [21:15:52]FM_GetShiftState done [21:15:52]req_shift_opened done [21:15:52]requested_item shift.open_date is exist - process it [21:15:52]req_shift_open_date [21:15:52]req_shift_open_date done [21:15:52]produce_requested_data done [21:15:52]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64049,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:15:52]process_action_free close_receipt [21:15:52]json_value_free [21:15:52]json_value_free done [21:15:52]process_json_proto returns [21:15:52]Send response to host [21:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64049,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:15:52]free response buf [21:15:52]execute_script done [21:15:52]execute_script returns [21:15:52]free content buf [21:15:52]Sock 8.Close socket [21:15:52]Sock 8.Thread stoped [21:15:53]accept exits with 9 [21:15:53]New connection [21:15:53]New thread 3067133284 created [21:15:53]Thread 3067276644 joined [21:15:53]Waiting for new connection... [21:15:53] Sock 9.Parse request [21:15:53]Sock 9.Check first char [21:15:53]Sock 9.First char is OK [21:15:53]request: POST /json_proto HTTP/1.0 [21:15:53]Method: POST [21:15:53]URL: /json_proto [21:15:53]Method is POST - this is cgi request [21:15:53]url: /json_proto [21:15:53]query_string will be loaded in cgi processing [21:15:53]execute_cgi json_proto POST (null) [21:15:53]execute_cgi path=json_proto method=POST [21:15:53]POST find Content-Length [21:15:53]Host: 172.17.60.69:8080 [21:15:53]Content-Length: 809 [21:15:53]Content-Type: application/json [21:15:53] [21:15:53]POST finish read [21:15:53]Found Content-Length = 809 [21:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73589", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:53]execute_script... [21:15: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)73589", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:53]POST & json_proto [21:15:53]process_json_proto [21:15:53]json parsed OK: [21:15:53]protocol is kg_v1.0 [21:15:53]action value=close_receipt [21:15:53]process_action close_receipt [21:15:53]cmd_close_receipt [21:15:53]MH_GetDate [21:15:53]Write to MH i2c: F0 00 00 72 01 62 [21:15:53]Write i2c OK [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: F0 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: F0 09 00 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: F0 09 00 72 01 00 09 84 5F 66 D2 83 5F 66 D7 [21:15:53]GetLastDocTimeStamp 1717535747 [21:15:53]current date 1717535753 [21:15:53]FM_GetShiftState [21:15:53]SAM_PROTO_GetShiftState [21:15:53]wFMCommunicate request_size=4 [21:15:53]MH_SAM_APDU [21:15:53]CAPDU: 80 13 01 00 [21:15:53]Write to MH i2c: E2 08 00 73 01 80 13 01 00 00 00 00 00 F1 [21:15:53]Write i2c OK [21:15:53]MH_I2C_Read... [21:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:53]Read from MH i2c: E2 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 0E 00 [21:15:53]MH_I2C_Read... [21:15:53]Read from MH i2c: E2 0E 00 73 01 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 91 [21:15:53]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:53]wFMCommunicate OK [21:15:53]SAM_PROTO_GetShiftState done [21:15:53]FM_GetShiftState done [21:15:53]opened in 1717459574 [21:15:53]opened+sec_in_day 1717545974 [21:15:53]quantity*price = 7500 [21:15:53]sum+1 = 7501 [21:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 135 04.06.2024 21:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 64050 ФПД: 181653532687428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211553&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64050&fm=181653532687428&tin=02508201610067®Number=0000000000092737&sum=7500 0 [21:15:55]StoreToDocumentArchive [21:15:55]shift 374 fd 64050 [21:15:55]save to /storage/0374/doc_00064050 [21:15:55]save last doc name /storage/0374/doc_00064050 to /storage/kkm_last_doc_name [21:15:55]save OK [21:15:55]Clear old archive folders... [21:15:55]ProcessDocumentItem done err = 0, tmpTLVsize=268 [21:15:55]tlvbuf is 01012B40 [21:15:55]SAM_PROTO_ClearQueue [21:15:55]wFMCommunicate request_size=4 [21:15:55]MH_SAM_APDU [21:15:55]CAPDU: 80 09 00 00 [21:15:55]Write to MH i2c: E2 08 00 80 01 80 09 00 00 00 00 00 00 F3 [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:55]Read from MH i2c: E2 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 03 00 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 03 00 80 01 00 90 00 F5 [21:15:55]RAPDU: 90 00 [21:15:55]wFMCommunicate OK [21:15:55]SAM_PROTO_ClearQueue done [21:15:55]KKMCreateOFDPacket [21:15:55]OFDProtocolAddRootSTLVToBuf [21:15:55]FM_MakeSignedData [21:15:55]FM_MakeSignedData [21:15:55]SAM_PROTO_SignData [21:15:55]wFMCommunicate request_size=4 [21:15:55]MH_SAM_APDU [21:15:55]CAPDU: 80 0D 01 02 [21:15:55]Write to MH i2c: E2 08 00 81 01 80 0D 01 02 00 00 00 00 FB [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:55]E2 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 03 00 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 03 00 81 01 00 90 00 F6 [21:15:55]RAPDU: 90 00 [21:15:55]wFMCommunicate OK [21:15:55]wFMCommunicate request_size=255 [21:15:55]MH_SAM_APDU [21:15:55]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 09 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [21:15:55]Write to MH i2c: E2 02 01 82 01 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 09 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 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 A9 [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:55]Read from MH i2c: E2 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 03 00 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 03 00 82 01 00 90 00 F7 [21:15:55]RAPDU: 90 00 [21:15:55]wFMCommunicate OK [21:15:55]wFMCommunicate request_size=27 [21:15:55]MH_SAM_APDU [21:15:55]CAPDU: 80 0D 02 02 16 35 30 37 34 10 04 04 00 32 FA 00 00 35 04 06 00 A5 36 82 49 BC 44 [21:15:55]Write to MH i2c: E2 1E 00 83 01 80 0D 02 02 16 00 35 30 37 34 10 04 04 00 32 FA 00 00 35 04 06 00 A5 36 82 49 BC 44 00 00 23 [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:55]Read from MH i2c: E2 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 03 00 [21:15:55]MH_I2C_Read... [21:15:55]Read from MH i2c: E2 03 00 83 01 00 90 00 F8 [21:15:55]RAPDU: 90 00 [21:15:55]wFMCommunicate OK [21:15:55]wFMCommunicate request_size=4 [21:15:55]MH_SAM_APDU [21:15:55]CAPDU: 80 0D 03 02 [21:15:55]Write to MH i2c: E2 08 00 84 01 80 0D 03 02 00 00 00 00 00 [21:15:55]Write i2c OK [21:15:55]MH_I2C_Read... [21:15:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:56]Read from MH i2c: E2 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 0B 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 0B 00 84 01 00 78 A4 D3 F8 D4 EC 72 DE 90 00 F8 [21:15:56]RAPDU: 78 A4 D3 F8 D4 EC 72 DE 90 00 [21:15:56]wFMCommunicate OK [21:15:56]SAM_PROTO_SignData done [21:15:56]FM_MakeSignedData done [21:15:56]CreateOFDProtocolMessage [21:15:56]wFMCommunicate request_size=4 [21:15:56]MH_SAM_APDU [21:15:56]CAPDU: 80 11 00 00 [21:15:56]Write to MH i2c: E2 08 00 85 01 80 11 00 00 00 00 00 00 00 [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:56]Read from MH i2c: E2 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 17 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 17 00 85 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 52 [21:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:15:56]wFMCommunicate OK [21:15:56]CreateOFDProtocolMessage done [21:15:56]OFDSenderStorePacket 64050 [21:15:56]StoreOFDPacket docnum=64050 [21:15: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 20 01 00 00 F5 8F 18 01 7E 81 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 09 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 32 FA 00 00 35 04 06 00 A5 36 82 49 BC 44 78 A4 D3 F8 D4 EC 72 DE [21:15:56]CheckFolder [21:15:56]dirname=/storage/ofd_packets [21:15:56]CheckFolder done [21:15:56]ProducePacketName [21:15:56]name=ofd_packets/00064050 [21:15:56]NVStorageSaveData ofd_packets/00064050 [21:15:56]File name is /storage/ofd_packets/00064050 [21:15:56]Write 318 bytes [21:15:56]NVStorageSaveData done [21:15:56]OFDSenderStorePacket done [21:15:56]KKMCreateOFDPacket done [21:15:56]NVStorageSaveData kkm_last_timestamp [21:15:56]File name is /storage/kkm_last_timestamp [21:15:56]Write 4 bytes [21:15:56]NVStorageSaveData done [21:15:56]ExternCall_PrintAddStr [21:15:56]wPrintStart [21:15:56]Write to MH i2c: 01 00 00 86 01 87 [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 07 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 FF 0F 9C [21:15:56]RasterBufferAndPrint [21:15:56]line Счет N : (3)73589 [21:15:56]line ИНН: 02508201610067 [21:15:56]line Контрольно-Кассовый Чек [21:15:56]line ПРОДАЖА [21:15:56]line Товар: 40822938 [21:15:56]line Напиток Фанта 0,5л [21:15:56]line 1.000 * 75.00 [21:15:56]line = 75.00 [21:15:56]line НДС 12% НСП 1% [21:15:56]line > о реализуемом товаре [21:15:56]line ИТОГО: 75.00 [21:15:56]line НСП 1% : 0.66 [21:15:56]line НДС 12% : 7.96 [21:15:56]line Наличными: 0.00 [21:15:56]line Безнал.: 75.00 [21:15:56]line Место: АЗС № 117 "Партнер Нефть" [21:15:56]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:15:56]line СНО: Общий режим [21:15:56]line Чек 135 04.06.2024 21:15 [21:15:56]line Смена: 374 ФФД: 1.0 [21:15:56]line ЗНМ: 0300000031 [21:15:56]line РНМ: 0000000000092737 [21:15:56]line Версия ККМ: 001 [21:15:56]line Платежная система: Бакай Банк [21:15:56]line ФМ: 0000000000875074 [21:15:56]line ФД: 64050 [21:15:56]line ФПД: 181653532687428 [21:15:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211553&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64050&fm=181653532687428&tin=02508201610067®Number=0000000000092737&sum=7500 [21:15:56]line 0 [21:15:56]OFD Sender: Processing packet 64050 [packets to send 14, broken 13] [21:15:56]ProducePacketName [21:15:56]name=ofd_packets/00064050 [21:15:56]OFD Sender: To server: pG, [21:15:56]CommunicateWithHost lk.salyk.kg:30040 [21:15:56]ConnectInit lk.salyk.kg [21:15:56]written 0, free lines is 4095 [21:15:56]Connected sock=10 [21:15: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 20 01 00 00 F5 8F 18 01 7E 81 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 09 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 32 FA 00 00 35 04 06 00 A5 36 82 49 BC 44 78 A4 D3 F8 D4 EC 72 DE [21:15:56]Write to MH i2c: 01 00 00 B0 01 B1 [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 07 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: 01 07 00 B0 01 00 00 00 00 00 0A 0D CF [21:15:56]RasterBufferAndPrint [21:15:56]line [21:15:56]line [21:15:56]line [21:15:56]line [21:15:56]line [21:15:56]written 0, free lines is 3370 [21:15:56]MH_Cut [21:15:56]Write to MH i2c: D1 01 00 B7 01 01 8A [21:15: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 19 0E 47 00 A2 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 32 FA 00 00 F4 03 04 00 18 30 5F 66 B6 04 01 00 00 CF 21 CE 69 BC 23 31 5E [21:15:56]CommunicateWithHost err = 0 [21:15:56]CheckOFDResponse [21:15:56]1017 (14) - 77093643461234 [21:15:56]1041 (16) - 0000000000875074 [21:15:56]1040 (4) - 64050 [21:15:56]1012 (4) - 04.06.2024 15:17 [21:15:56]1206 (1) - 0 [21:15:56]OFD Sender: Remove packet 64050 [21:15:56]ProducePacketName [21:15:56]name=ofd_packets/00064050 [21:15:56]NVStorageDeleteData [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: D1 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: D1 01 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: D1 01 00 B7 01 00 89 [21:15:57]Write to MH i2c: 01 00 00 B8 01 B9 [21:15:57]Write i2c OK [21:15:57]MH_I2C_Read... [21:15:57]*** Cut start [21:15:57]*** Partial cut [21:15:57]*** CUTSNS_PIN = 1 [21:15:57]OFD Sender: No OFD packet to send [21:15:57]*** CUTSNS_PIN = 0 [21:15:57]*** Brake cut motor [21:15:58]Read from MH i2c: 01 [21:15:58]MH_I2C_Read... [21:15:58]*** Stop cut motor [21:15:58]*** Cut end [21:15:58]Read from MH i2c: 01 07 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 FF 0F CE [21:15:58]process_action close_receipt done [21:15:58]requested_data is exist [21:15:58]produce_requested_data [21:15:58]requested_item fm.sn is exist - process it [21:15:58]wFMCommunicate request_size=4 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 11 00 00 [21:15:58]Write to MH i2c: E2 08 00 B9 01 80 11 00 00 00 00 00 00 34 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 17 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 17 00 B9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 86 [21:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:15:58]wFMCommunicate OK [21:15:58]requested_item fd.num is exist - process it [21:15:58]SAM_PROTO_GetFieldsCounters [21:15:58]wFMCommunicate request_size=4 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 13 00 00 [21:15:58]Write to MH i2c: E2 08 00 BA 01 80 13 00 00 00 00 00 00 37 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 62 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 62 00 BA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 32 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [21:15:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 32 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:58]wFMCommunicate OK [21:15:58]SAM_PROTO_GetFieldsCounters done [21:15:58]requested_item shift.num is exist - process it [21:15:58]requested_item shift.opened is exist - process it [21:15:58]req_shift_opened [21:15:58]FM_GetShiftState [21:15:58]SAM_PROTO_GetShiftState [21:15:58]wFMCommunicate request_size=4 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 13 01 00 [21:15:58]Write to MH i2c: E2 08 00 BB 01 80 13 01 00 00 00 00 00 39 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 0E 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 0E 00 BB 01 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D9 [21:15:58]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:58]wFMCommunicate OK [21:15:58]SAM_PROTO_GetShiftState done [21:15:58]FM_GetShiftState done [21:15:58]req_shift_opened done [21:15:58]requested_item shift.open_date is exist - process it [21:15:58]req_shift_open_date [21:15:58]req_shift_open_date done [21:15:58]produce_requested_data done [21:15:58]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64050,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:15:58]process_action_free close_receipt [21:15:58]json_value_free [21:15:58]json_value_free done [21:15:58]process_json_proto returns [21:15:58]Send response to host [21:15:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64050,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:15:58]free response buf [21:15:58]execute_script done [21:15:58]execute_script returns [21:15:58]free content buf [21:15:58]Sock 9.Close socket [21:15:58]Sock 9.Thread stoped [21:15:59]accept exits with 8 [21:15:59]New connection [21:15:59]New thread 3067276644 created [21:15:59]Thread 3067133284 joined [21:15:59]Waiting for new connection... [21:15:59] Sock 8.Parse request [21:15:59]Sock 8.Check first char [21:15:59]Sock 8.First char is OK [21:15:59]request: POST /json_proto HTTP/1.0 [21:15:59]Method: POST [21:15:59]URL: /json_proto [21:15:59]Method is POST - this is cgi request [21:15:59]url: /json_proto [21:15:59]query_string will be loaded in cgi processing [21:15:59]execute_cgi json_proto POST (null) [21:15:59]execute_cgi path=json_proto method=POST [21:15:59]POST find Content-Length [21:15:59]Host: 172.17.60.69:8080 [21:15:59]Content-Length: 951 [21:15:59]Content-Type: application/json [21:15:59] [21:15:59]POST finish read [21:15:59]Found Content-Length = 951 [21:15:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73590", "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": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 183.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:59]execute_script... [21:15: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)73590", "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": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 183.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:59]POST & json_proto [21:15:59]process_json_proto [21:15:59]json parsed OK: [21:15:59]protocol is kg_v1.0 [21:15:59]action value=close_receipt [21:15:59]process_action close_receipt [21:15:59]cmd_close_receipt [21:15:59]MH_GetDate [21:15:59]Write to MH i2c: F0 00 00 BC 01 AC [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: F0 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: F0 09 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: F0 09 00 BC 01 00 0F 84 5F 66 D2 83 5F 66 27 [21:15:59]GetLastDocTimeStamp 1717535753 [21:15:59]current date 1717535759 [21:15:59]FM_GetShiftState [21:15:59]SAM_PROTO_GetShiftState [21:15:59]wFMCommunicate request_size=4 [21:15:59]MH_SAM_APDU [21:15:59]CAPDU: 80 13 01 00 [21:15:59]Write to MH i2c: E2 08 00 BD 01 80 13 01 00 00 00 00 00 3B [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:59]Read from MH i2c: E2 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 0E 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: E2 0E 00 BD 01 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 DB [21:15:59]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:15:59]wFMCommunicate OK [21:15:59]SAM_PROTO_GetShiftState done [21:15:59]FM_GetShiftState done [21:15:59]opened in 1717459574 [21:15:59]opened+sec_in_day 1717545974 [21:15:59]quantity*price = 15500 [21:15:59]sum+1 = 15501 [21:15:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 183.00 НСП 1% : 1.62 НДС 12% : 19.43 Наличными: 183.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 136 04.06.2024 21:15 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64051 ФПД: 228634294729728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211559&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64051&fm=228634294729728&tin=02508201610067®Number=0000000000092737&sum=18300 0 [21:16:01]StoreToDocumentArchive [21:16:01]shift 374 fd 64051 [21:16:01]save to /storage/0374/doc_00064051 [21:16:01]save last doc name /storage/0374/doc_00064051 to /storage/kkm_last_doc_name [21:16:01]save OK [21:16:01]Clear old archive folders... [21:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=397 [21:16:01]tlvbuf is 00FC7370 [21:16:01]SAM_PROTO_ClearQueue [21:16:01]wFMCommunicate request_size=4 [21:16:01]MH_SAM_APDU [21:16:01]CAPDU: 80 09 00 00 [21:16:01]Write to MH i2c: E2 08 00 CA 01 80 09 00 00 00 00 00 00 3D [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:01]Read from MH i2c: E2 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [21:16:01]RAPDU: 90 00 [21:16:01]wFMCommunicate OK [21:16:01]SAM_PROTO_ClearQueue done [21:16:01]KKMCreateOFDPacket [21:16:01]OFDProtocolAddRootSTLVToBuf [21:16:01]FM_MakeSignedData [21:16:01]FM_MakeSignedData [21:16:01]SAM_PROTO_SignData [21:16:01]wFMCommunicate request_size=4 [21:16:01]MH_SAM_APDU [21:16:01]CAPDU: 80 0D 01 02 [21:16:01]Write to MH i2c: E2 08 00 CB 01 80 0D 01 02 00 00 00 00 45 [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:01]Read from MH i2c: E2 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [21:16:01]RAPDU: 90 00 [21:16:01]wFMCommunicate OK [21:16:01]wFMCommunicate request_size=255 [21:16:01]MH_SAM_APDU [21:16:01]CAPDU: 80 0D 02 02 FA 03 00 8D 01 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 47 00 00 00 00 EB 03 26 00 [21:16:01]Write to MH i2c: E2 02 01 CC 01 80 0D 02 02 FA 00 03 00 8D 01 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 47 00 00 00 00 EB 03 26 00 00 00 81 [21:16:02]Write i2c OK [21:16:02]MH_I2C_Read... [21:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:02]Read from MH i2c: E2 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 03 00 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 03 00 CC 01 00 90 00 41 [21:16:02]RAPDU: 90 00 [21:16:02]wFMCommunicate OK [21:16:02]wFMCommunicate request_size=156 [21:16:02]MH_SAM_APDU [21:16:02]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 07 00 00 00 00 07 04 06 00 7C 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0F 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 33 FA 00 00 35 04 06 00 CF F1 11 EB BC 00 [21:16:02]Write to MH i2c: E2 9F 00 CD 01 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 OFD Sender: No OFD packet to send [21:16:02]00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 07 00 00 00 00 07 04 06 00 7C 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0F 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 33 FA 00 00 35 04 06 00 CF F1 11 EB BC 00 00 00 A0 [21:16:02]Write i2c OK [21:16:02]MH_I2C_Read... [21:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:02]Read from MH i2c: E2 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 03 00 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 03 00 CD 01 00 90 00 42 [21:16:02]RAPDU: 90 00 [21:16:02]wFMCommunicate OK [21:16:02]wFMCommunicate request_size=4 [21:16:02]MH_SAM_APDU [21:16:02]CAPDU: 80 0D 03 02 [21:16:02]Write to MH i2c: E2 08 00 CE 01 80 0D 03 02 00 00 00 00 4A [21:16:02]Write i2c OK [21:16:02]MH_I2C_Read... [21:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:02]Read from MH i2c: E2 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 0B 00 [21:16:02]MH_I2C_Read... [21:16:02]Read from MH i2c: E2 0B 00 CE 01 00 A5 9B AF 75 C5 27 38 B9 90 00 8C [21:16:02]RAPDU: A5 9B AF 75 C5 27 38 B9 90 00 [21:16:02]wFMCommunicate OK [21:16:02]SAM_PROTO_SignData done [21:16:02]FM_MakeSignedData done [21:16:02]CreateOFDProtocolMessage [21:16:03]wFMCommunicate request_size=4 [21:16:03]MH_SAM_APDU [21:16:03]CAPDU: 80 11 00 00 [21:16:03]Write to MH i2c: E2 08 00 CF 01 80 11 00 00 00 00 00 00 4A [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:03]Read from MH i2c: E2 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: E2 17 00 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: E2 17 00 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9C [21:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:03]wFMCommunicate OK [21:16:03]CreateOFDProtocolMessage done [21:16:03]OFDSenderStorePacket 64051 [21:16:03]StoreOFDPacket docnum=64051 [21:16:03]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 50 43 99 01 72 34 5A 03 01 00 03 00 8D 01 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 07 00 00 00 00 07 04 06 00 7C 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0F 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 33 FA 00 00 35 04 06 00 CF F1 11 EB BC 00 A5 9B AF 75 C5 27 38 B9 [21:16:03]CheckFolder [21:16:03]dirname=/storage/ofd_packets [21:16:03]CheckFolder done [21:16:03]ProducePacketName [21:16:03]name=ofd_packets/00064051 [21:16:03]NVStorageSaveData ofd_packets/00064051 [21:16:03]File name is /storage/ofd_packets/00064051 [21:16:03]Write 447 bytes [21:16:03]NVStorageSaveData done [21:16:03]OFDSenderStorePacket done [21:16:03]KKMCreateOFDPacket done [21:16:03]NVStorageSaveData kkm_last_timestamp [21:16:03]File name is /storage/kkm_last_timestamp [21:16:03]Write 4 bytes [21:16:03]NVStorageSaveData done [21:16:03]ExternCall_PrintAddStr [21:16:03]wPrintStart [21:16:03]Write to MH i2c: 01 00 00 D0 01 D1 [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: 01 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: 01 07 00 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 FF 0F E6 [21:16:03]RasterBufferAndPrint [21:16:03]line Счет N : (3)73590 [21:16:03]line ИНН: 02508201610067 [21:16:03]line Контрольно-Кассовый Чек [21:16:03]line ПРОДАЖА [21:16:03]line Товар: 5449000000439 [21:16:03]line Напиток Кока-Кола 1,5л [21:16:03]line 1.000 * 155.00 [21:16:03]line = 155.00 [21:16:03]line НДС 12% НСП 1% [21:16:03]line > о реализуемом товаре [21:16:03]line Товар: 2000053020015 [21:16:03]line Бумажные стаканы 250мл 1шт [21:16:03]line 4.000 * 7.00 [21:16:03]line = 28.00 [21:16:03]line НДС 12% НСП 1% [21:16:03]line > о реализуемом товаре [21:16:03]line ИТОГО: 183.00 [21:16:03]line НСП 1% : 1.62 [21:16:03]line НДС 12% : 19.43 [21:16:03]line Наличными: 183.00 [21:16:03]line Безнал.: 0.00 [21:16:03]line Место: АЗС № 117 "Партнер Нефть" [21:16:03]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:16:03]line СНО: Общий режим [21:16:03]line Чек 136 04.06.2024 21:15 [21:16:03]line Смена: 374 ФФД: 1.0 [21:16:03]line ЗНМ: 0300000031 [21:16:03]line РНМ: 0000000000092737 [21:16:03]line Версия ККМ: 001 [21:16:03]line ФМ: 0000000000875074 [21:16:03]line ФД: 64051 [21:16:03]line ФПД: 228634294729728 [21:16:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211559&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64051&fm=228634294729728&tin=02508201610067®Number=0000000000092737&sum=18300 [21:16:03]OFD Sender: Processing packet 64051 [packets to send 14, broken 13] [21:16:03]ProducePacketName [21:16:03]name=ofd_packets/00064051 [21:16:03]OFD Sender: To server: pG, [21:16:03]CommunicateWithHost lk.salyk.kg:30040 [21:16:03]ConnectInit lk.salyk.kg [21:16:03]line 0 [21:16:03]written 0, free lines is 4095 [21:16:03]Connected sock=10 [21:16:03]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 50 43 99 01 72 34 5A 03 01 00 03 00 8D 01 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 07 00 00 00 00 07 04 06 00 7C 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0F 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 33 FA 00 00 35 04 06 00 CF F1 11 EB BC 00 A5 9B AF 75 C5 27 38 B9 [21:16:03]Write to MH i2c: 01 00 00 FF 01 00 [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: 01 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: 01 07 00 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: 01 07 00 FF 01 00 00 00 00 00 A1 0C B4 [21:16:03]RasterBufferAndPrint [21:16:03]line [21:16:03]line [21:16:03]line [21:16:03]line [21:16:03]line [21:16:03]written 0, free lines is 3270 [21:16:03]MH_Cut [21:16:03]Write to MH i2c: D1 01 00 06 02 01 DA [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: D1 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: D1 01 00 [21:16:03]MH_I2C_Read... [21:16:03]Read from MH i2c: D1 01 00 06 02 00 D9 [21:16:03]Write to MH i2c: 01 00 00 07 02 09 [21:16:03]Write i2c OK [21:16:03]MH_I2C_Read... [21:16:03]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 0F A3 47 00 58 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 33 FA 00 00 F4 03 04 00 1F 30 5F 66 B6 04 01 00 00 E2 10 5B A3 21 83 2C 64 [21:16:04]CommunicateWithHost err = 0 [21:16:04]CheckOFDResponse [21:16:04]1017 (14) - 77093643461234 [21:16:04]1041 (16) - 0000000000875074 [21:16:04]1040 (4) - 64051 [21:16:04]1012 (4) - 04.06.2024 15:17 [21:16:04]1206 (1) - 0 [21:16:04]OFD Sender: Remove packet 64051 [21:16:04]ProducePacketName [21:16:04]name=ofd_packets/00064051 [21:16:04]NVStorageDeleteData [21:16:04]*** Cut start [21:16:04]*** Partial cut [21:16:04]*** CUTSNS_PIN = 1 [21:16:04]OFD Sender: No OFD packet to send [21:16:04]*** CUTSNS_PIN = 0 [21:16:04]*** Brake cut motor [21:16:05]Read from MH i2c: 01 [21:16:05]MH_I2C_Read... [21:16:05]*** Stop cut motor [21:16:05]*** Cut end [21:16:05]Read from MH i2c: 01 07 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 FF 0F 1E [21:16:05]process_action close_receipt done [21:16:05]requested_data is exist [21:16:05]produce_requested_data [21:16:05]requested_item fm.sn is exist - process it [21:16:05]wFMCommunicate request_size=4 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 11 00 00 [21:16:05]Write to MH i2c: E2 08 00 08 02 80 11 00 00 00 00 00 00 84 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 17 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 17 00 08 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [21:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:05]wFMCommunicate OK [21:16:05]requested_item fd.num is exist - process it [21:16:05]SAM_PROTO_GetFieldsCounters [21:16:05]wFMCommunicate request_size=4 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 13 00 00 [21:16:05]Write to MH i2c: E2 08 00 09 02 80 13 00 00 00 00 00 00 87 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 62 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 62 00 09 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 33 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [21:16: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 33 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:05]wFMCommunicate OK [21:16:05]SAM_PROTO_GetFieldsCounters done [21:16:05]requested_item shift.num is exist - process it [21:16:05]requested_item shift.opened is exist - process it [21:16:05]req_shift_opened [21:16:05]FM_GetShiftState [21:16:05]SAM_PROTO_GetShiftState [21:16:05]wFMCommunicate request_size=4 [21:16:05]MH_SAM_APDU [21:16:05]CAPDU: 80 13 01 00 [21:16:05]Write to MH i2c: E2 08 00 0A 02 80 13 01 00 00 00 00 00 89 [21:16:05]Write i2c OK [21:16:05]MH_I2C_Read... [21:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:05]Read from MH i2c: E2 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 0E 00 [21:16:05]MH_I2C_Read... [21:16:05]Read from MH i2c: E2 0E 00 0A 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 29 [21:16:05]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:05]wFMCommunicate OK [21:16:05]SAM_PROTO_GetShiftState done [21:16:05]FM_GetShiftState done [21:16:05]req_shift_opened done [21:16:05]requested_item shift.open_date is exist - process it [21:16:05]req_shift_open_date [21:16:05]req_shift_open_date done [21:16:05]produce_requested_data done [21:16:05]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64051,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:16:05]process_action_free close_receipt [21:16:05]json_value_free [21:16:05]json_value_free done [21:16:05]process_json_proto returns [21:16:05]Send response to host [21:16:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64051,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:16:05]free response buf [21:16:05]execute_script done [21:16:05]execute_script returns [21:16:05]free content buf [21:16:05]Sock 8.Close socket [21:16:05]Sock 8.Thread stoped [21:16:06]accept exits with 9 [21:16:06]New connection [21:16:06]New thread 3067133284 created [21:16:06]Thread 3067276644 joined [21:16:06]Waiting for new connection... [21:16:06] Sock 9.Parse request [21:16:06]Sock 9.Check first char [21:16:06]Sock 9.First char is OK [21:16:06]request: POST /json_proto HTTP/1.0 [21:16:06]Method: POST [21:16:06]URL: /json_proto [21:16:06]Method is POST - this is cgi request [21:16:06]url: /json_proto [21:16:06]query_string will be loaded in cgi processing [21:16:06]execute_cgi json_proto POST (null) [21:16:06]execute_cgi path=json_proto method=POST [21:16:06]POST find Content-Length [21:16:06]Host: 172.17.60.69:8080 [21:16:06]Content-Length: 620 [21:16:06]Content-Type: application/json [21:16:06] [21:16:06]POST finish read [21:16:06]Found Content-Length = 620 [21:16:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73591", "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" ] } } [21:16:06]execute_script... [21:16: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)73591", "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" ] } } [21:16:06]POST & json_proto [21:16:06]process_json_proto [21:16:06]json parsed OK: [21:16:06]protocol is kg_v1.0 [21:16:06]action value=close_receipt [21:16:06]process_action close_receipt [21:16:06]cmd_close_receipt [21:16:06]MH_GetDate [21:16:06]Write to MH i2c: F0 00 00 0B 02 FC [21:16:06]Write i2c OK [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: F0 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: F0 09 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: F0 09 00 0B 02 00 16 84 5F 66 D2 83 5F 66 7E [21:16:06]GetLastDocTimeStamp 1717535759 [21:16:06]current date 1717535766 [21:16:06]FM_GetShiftState [21:16:06]SAM_PROTO_GetShiftState [21:16:06]wFMCommunicate request_size=4 [21:16:06]MH_SAM_APDU [21:16:06]CAPDU: 80 13 01 00 [21:16:06]Write to MH i2c: E2 08 00 0C 02 80 13 01 00 00 00 00 00 8B [21:16:06]Write i2c OK [21:16:06]MH_I2C_Read... [21:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:06]Read from MH i2c: E2 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 0E 00 [21:16:06]MH_I2C_Read... [21:16:06]Read from MH i2c: E2 0E 00 0C 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 2B [21:16:06]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:06]wFMCommunicate OK [21:16:06]SAM_PROTO_GetShiftState done [21:16:06]FM_GetShiftState done [21:16:06]opened in 1717459574 [21:16:06]opened+sec_in_day 1717545974 [21:16:06]quantity*price = 14000 [21:16:06]sum+1 = 14001 [21:16:06]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 СНО: Общий режим Чек 137 04.06.2024 21:16 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64052 ФПД: 161568869083709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211606&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64052&fm=161568869083709&tin=02508201610067®Number=0000000000092737&sum=14000 0 [21:16:08]StoreToDocumentArchive [21:16:08]shift 374 fd 64052 [21:16:08]save to /storage/0374/doc_00064052 [21:16:08]save last doc name /storage/0374/doc_00064052 to /storage/kkm_last_doc_name [21:16:08]save OK [21:16:08]Clear old archive folders... [21:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:16:08]tlvbuf is 00F9EF10 [21:16:08]SAM_PROTO_ClearQueue [21:16:08]wFMCommunicate request_size=4 [21:16:08]MH_SAM_APDU [21:16:08]CAPDU: 80 09 00 00 [21:16:08]Write to MH i2c: E2 08 00 19 02 80 09 00 00 00 00 00 00 8D [21:16:08]Write i2c OK [21:16:08]MH_I2C_Read... [21:16:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:08]Read from MH i2c: E2 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 03 00 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 03 00 19 02 00 90 00 8F [21:16:08]RAPDU: 90 00 [21:16:08]wFMCommunicate OK [21:16:08]SAM_PROTO_ClearQueue done [21:16:08]KKMCreateOFDPacket [21:16:08]OFDProtocolAddRootSTLVToBuf [21:16:08]FM_MakeSignedData [21:16:08]FM_MakeSignedData [21:16:08]SAM_PROTO_SignData [21:16:08]wFMCommunicate request_size=4 [21:16:08]MH_SAM_APDU [21:16:08]CAPDU: 80 0D 01 02 [21:16:08]Write to MH i2c: E2 08 00 1A 02 80 0D 01 02 00 00 00 00 95 [21:16:08]Write i2c OK [21:16:08]MH_I2C_Read... [21:16:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:08]Read from MH i2c: E2 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 03 00 [21:16:08]MH_I2C_Read... [21:16:08]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [21:16:08]RAPDU: 90 00 [21:16:08]wFMCommunicate OK [21:16:08]wFMCommunicate request_size=255 [21:16:08]MH_SAM_APDU [21:16:08]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 89 00 00 00 F4 03 04 00 16 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [21:16:08]Write to MH i2c: E2 02 01 1B 02 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 89 00 00 00 F4 03 04 00 16 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 D8 [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [21:16:09]RAPDU: 90 00 [21:16:09]wFMCommunicate OK [21:16:09]wFMCommunicate request_size=32 [21:16:09]MH_SAM_APDU [21:16:09]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 34 FA 00 00 35 04 06 00 92 F2 2F 0C 6A 3D [21:16:09]Write to MH i2c: E2 23 00 1C 02 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 34 FA 00 00 35 04 06 00 92 F2 2F 0C 6A 3D 00 00 88 [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [21:16:09]RAPDU: 90 00 [21:16:09]wFMCommunicate OK [21:16:09]wFMCommunicate request_size=4 [21:16:09]MH_SAM_APDU [21:16:09]CAPDU: 80 0D 03 02 [21:16:09]Write to MH i2c: E2 08 00 1D 02 80 0D 03 02 00 00 00 00 9A [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 0B 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 0B 00 1D 02 00 36 97 06 06 54 80 FF 99 90 00 E0 [21:16:09]RAPDU: 36 97 06 06 54 80 FF 99 90 00 [21:16:09]wFMCommunicate OK [21:16:09]SAM_PROTO_SignData done [21:16:09]FM_MakeSignedData done [21:16:09]CreateOFDProtocolMessage [21:16:09]wFMCommunicate request_size=4 [21:16:09]MH_SAM_APDU [21:16:09]CAPDU: 80 11 00 00 [21:16:09]Write to MH i2c: E2 08 00 1E 02 80 11 00 00 00 00 00 00 9A [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]OFD Sender: No OFD packet to send [21:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:09]Read from MH i2c: E2 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 17 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: E2 17 00 1E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EC [21:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:09]wFMCommunicate OK [21:16:09]CreateOFDProtocolMessage done [21:16:09]OFDSenderStorePacket 64052 [21:16:09]StoreOFDPacket docnum=64052 [21:16: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 25 01 00 00 2A 39 1D 01 8A 29 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 89 00 00 00 F4 03 04 00 16 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 34 FA 00 00 35 04 06 00 92 F2 2F 0C 6A 3D 36 97 06 06 54 80 FF 99 [21:16:09]CheckFolder [21:16:09]dirname=/storage/ofd_packets [21:16:09]CheckFolder done [21:16:09]ProducePacketName [21:16:09]name=ofd_packets/00064052 [21:16:09]NVStorageSaveData ofd_packets/00064052 [21:16:09]File name is /storage/ofd_packets/00064052 [21:16:09]Write 323 bytes [21:16:09]NVStorageSaveData done [21:16:09]OFDSenderStorePacket done [21:16:09]KKMCreateOFDPacket done [21:16:09]NVStorageSaveData kkm_last_timestamp [21:16:09]File name is /storage/kkm_last_timestamp [21:16:09]Write 4 bytes [21:16:09]NVStorageSaveData done [21:16:09]ExternCall_PrintAddStr [21:16:09]wPrintStart [21:16:09]Write to MH i2c: 01 00 00 1F 02 21 [21:16:09]Write i2c OK [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: 01 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: 01 07 00 [21:16:09]MH_I2C_Read... [21:16:09]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [21:16:09]RasterBufferAndPrint [21:16:09]line Счет N : (3)73591 [21:16:09]line ИНН: 02508201610067 [21:16:09]line Контрольно-Кассовый Чек [21:16:09]line ПРОДАЖА [21:16:09]line Товар: 48747059 [21:16:09]line Сигареты Winston Legend Blue [21:16:09]line 1.000 * 140.00 [21:16:09]line = 140.00 [21:16:09]line НДС 12% НСП 1% [21:16:09]line > о реализуемом товаре [21:16:09]line ИТОГО: 140.00 [21:16:09]line НСП 1% : 1.24 [21:16:09]line НДС 12% : 14.87 [21:16:09]line Наличными: 140.00 [21:16:09]line Безнал.: 0.00 [21:16:09]line Место: АЗС № 117 "Партнер Нефть" [21:16:09]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:16:09]line СНО: Общий режим [21:16:09]line Чек 137 04.06.2024 21:16 [21:16:09]line Смена: 374 ФФД: 1.0 [21:16:09]line ЗНМ: 0300000031 [21:16:09]line РНМ: 0000000000092737 [21:16:09]line Версия ККМ: 001 [21:16:09]line ФМ: 0000000000875074 [21:16:09]line ФД: 64052 [21:16:09]line ФПД: 161568869083709 [21:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211606&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64052&fm=161568869083709&tin=02508201610067®Number=0000000000092737&sum=14000 [21:16:09]OFD Sender: Processing packet 64052 [packets to send 14, broken 13] [21:16:09]ProducePacketName [21:16:09]name=ofd_packets/00064052 [21:16:09]OFD Sender: To server: pG, [21:16:09]CommunicateWithHost lk.salyk.kg:30040 [21:16:09]ConnectInit lk.salyk.kg [21:16:09]line 0 [21:16:09]written 0, free lines is 4095 [21:16:09]Connected sock=10 [21:16: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 25 01 00 00 2A 39 1D 01 8A 29 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 89 00 00 00 F4 03 04 00 16 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 34 FA 00 00 35 04 06 00 92 F2 2F 0C 6A 3D 36 97 06 06 54 80 FF 99 [21:16:10]Write to MH i2c: 01 00 00 48 02 4A [21:16:10]Write i2c OK [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: 01 [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: 01 07 00 [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: 01 07 00 48 02 00 00 00 00 00 F1 0C 4E [21:16:10]RasterBufferAndPrint [21:16:10]line [21:16:10]line [21:16:10]line [21:16:10]line [21:16:10]line [21:16:10]written 0, free lines is 3360 [21:16:10]MH_Cut [21:16:10]Write to MH i2c: D1 01 00 4F 02 01 23 [21:16:10]Write i2c OK [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: D1 [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: D1 01 00 [21:16:10]MH_I2C_Read... [21:16:10]Read from MH i2c: D1 01 00 4F 02 00 22 [21:16:10]Write to MH i2c: 01 00 00 50 02 52 [21:16:10]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 A4 47 00 54 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 34 FA 00 00 F4 03 04 00 25 30 5F 66 B6 04 01 00 00 A9 08 66 D9 15 45 34 E1 [21:16:10]CommunicateWithHost err = 0 [21:16:10]CheckOFDResponse [21:16:10]1017 (14) - 77093643461234 [21:16:10]1041 (16) - 0000000000875074 [21:16:10]1040 (4) - 64052 [21:16:10]1012 (4) - 04.06.2024 15:17 [21:16:10]1206 (1) - 0 [21:16:10]OFD Sender: Remove packet 64052 [21:16:10]ProducePacketName [21:16:10]name=ofd_packets/00064052 [21:16:10]NVStorageDeleteData [21:16:10]Write i2c OK [21:16:10]MH_I2C_Read... [21:16:10]*** Cut start [21:16:10]*** Partial cut [21:16:10]*** CUTSNS_PIN = 1 [21:16:10]OFD Sender: No OFD packet to send [21:16:11]*** CUTSNS_PIN = 0 [21:16:11]*** Brake cut motor [21:16:11]Read from MH i2c: 01 [21:16:11]MH_I2C_Read... [21:16:11]*** Stop cut motor [21:16:11]*** Cut end [21:16:11]Read from MH i2c: 01 07 00 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: 01 07 00 50 02 00 00 00 00 00 FF 0F 67 [21:16:11]process_action close_receipt done [21:16:11]requested_data is exist [21:16:11]produce_requested_data [21:16:11]requested_item fm.sn is exist - process it [21:16:11]wFMCommunicate request_size=4 [21:16:11]MH_SAM_APDU [21:16:11]CAPDU: 80 11 00 00 [21:16:11]Write to MH i2c: E2 08 00 51 02 80 11 00 00 00 00 00 00 CD [21:16:11]Write i2c OK [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: E2 [21:16:11]MH_I2C_Read... [21:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:11]Read from MH i2c: E2 17 00 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: E2 17 00 51 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1F [21:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:11]wFMCommunicate OK [21:16:11]requested_item fd.num is exist - process it [21:16:11]SAM_PROTO_GetFieldsCounters [21:16:11]wFMCommunicate request_size=4 [21:16:11]MH_SAM_APDU [21:16:11]CAPDU: 80 13 00 00 [21:16:11]Write to MH i2c: E2 08 00 52 02 80 13 00 00 00 00 00 00 D0 [21:16:11]Write i2c OK [21:16:11]MH_I2C_Read... [21:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:11]Read from MH i2c: E2 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: E2 62 00 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: E2 62 00 52 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 34 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [21:16: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 34 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:12]wFMCommunicate OK [21:16:12]SAM_PROTO_GetFieldsCounters done [21:16:12]requested_item shift.num is exist - process it [21:16:12]requested_item shift.opened is exist - process it [21:16:12]req_shift_opened [21:16:12]FM_GetShiftState [21:16:12]SAM_PROTO_GetShiftState [21:16:12]wFMCommunicate request_size=4 [21:16:12]MH_SAM_APDU [21:16:12]CAPDU: 80 13 01 00 [21:16:12]Write to MH i2c: E2 08 00 53 02 80 13 01 00 00 00 00 00 D2 [21:16:12]Write i2c OK [21:16:12]MH_I2C_Read... [21:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:12]Read from MH i2c: E2 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 0E 00 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 0E 00 53 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 72 [21:16:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:12]wFMCommunicate OK [21:16:12]SAM_PROTO_GetShiftState done [21:16:12]FM_GetShiftState done [21:16:12]req_shift_opened done [21:16:12]requested_item shift.open_date is exist - process it [21:16:12]req_shift_open_date [21:16:12]req_shift_open_date done [21:16:12]produce_requested_data done [21:16:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64052,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:16:12]process_action_free close_receipt [21:16:12]json_value_free [21:16:12]json_value_free done [21:16:12]process_json_proto returns [21:16:12]Send response to host [21:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64052,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:16:12]free response buf [21:16:12]execute_script done [21:16:12]execute_script returns [21:16:12]free content buf [21:16:12]Sock 9.Close socket [21:16:12]Sock 9.Thread stoped [21:16:13]accept exits with 8 [21:16:13]New connection [21:16:13]New thread 3067276644 created [21:16:13]Thread 3067133284 joined [21:16:13]Waiting for new connection... [21:16:13] Sock 8.Parse request [21:16:13]Sock 8.Check first char [21:16:13]Sock 8.First char is OK [21:16:13]request: POST /json_proto HTTP/1.0 [21:16:13]Method: POST [21:16:13]URL: /json_proto [21:16:13]Method is POST - this is cgi request [21:16:13]url: /json_proto [21:16:13]query_string will be loaded in cgi processing [21:16:13]execute_cgi json_proto POST (null) [21:16:13]execute_cgi path=json_proto method=POST [21:16:13]POST find Content-Length [21:16:13]Host: 172.17.60.69:8080 [21:16:13]Content-Length: 820 [21:16:13]Content-Type: application/json [21:16:13] [21:16:13]POST finish read [21:16:13]Found Content-Length = 820 [21:16:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73592", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:13]execute_script... [21:16: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)73592", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:13]POST & json_proto [21:16:13]process_json_proto [21:16:13]json parsed OK: [21:16:13]protocol is kg_v1.0 [21:16:13]action value=close_receipt [21:16:13]process_action close_receipt [21:16:13]cmd_close_receipt [21:16:13]MH_GetDate [21:16:13]Write to MH i2c: F0 00 00 54 02 45 [21:16:13]Write i2c OK [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: F0 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: F0 09 00 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: F0 09 00 54 02 00 1D 84 5F 66 D2 83 5F 66 CE [21:16:13]GetLastDocTimeStamp 1717535766 [21:16:13]current date 1717535773 [21:16:13]FM_GetShiftState [21:16:13]SAM_PROTO_GetShiftState [21:16:13]wFMCommunicate request_size=4 [21:16:13]MH_SAM_APDU [21:16:13]CAPDU: 80 13 01 00 [21:16:13]Write to MH i2c: E2 08 00 55 02 80 13 01 00 00 00 00 00 D4 [21:16:13]Write i2c OK [21:16:13]MH_I2C_Read... [21:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:13]Read from MH i2c: E2 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: E2 0E 00 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: E2 0E 00 55 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 74 [21:16:13]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:13]wFMCommunicate OK [21:16:13]SAM_PROTO_GetShiftState done [21:16:13]FM_GetShiftState done [21:16:13]opened in 1717459574 [21:16:13]opened+sec_in_day 1717545974 [21:16:13]quantity*price = 11500 [21:16:13]sum+1 = 11501 [21:16:13]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 СНО: Общий режим Чек 138 04.06.2024 21:16 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 64053 ФПД: 106087168344773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211613&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64053&fm=106087168344773&tin=02508201610067®Number=0000000000092737&sum=11500 0 [21:16:15]StoreToDocumentArchive [21:16:15]shift 374 fd 64053 [21:16:15]save to /storage/0374/doc_00064053 [21:16:15]save last doc name /storage/0374/doc_00064053 to /storage/kkm_last_doc_name [21:16:15]save OK [21:16:15]Clear old archive folders... [21:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=280 [21:16:15]tlvbuf is 00FA4E70 [21:16:15]SAM_PROTO_ClearQueue [21:16:15]wFMCommunicate request_size=4 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 09 00 00 [21:16:15]Write to MH i2c: E2 08 00 62 02 80 09 00 00 00 00 00 00 D6 [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:15]Read from MH i2c: E2 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 62 02 00 90 00 D8 [21:16:15]RAPDU: 90 00 [21:16:15]wFMCommunicate OK [21:16:15]SAM_PROTO_ClearQueue done [21:16:15]KKMCreateOFDPacket [21:16:15]OFDProtocolAddRootSTLVToBuf [21:16:15]FM_MakeSignedData [21:16:15]FM_MakeSignedData [21:16:15]SAM_PROTO_SignData [21:16:15]wFMCommunicate request_size=4 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 0D 01 02 [21:16:15]Write to MH i2c: E2 08 00 63 02 80 0D 01 02 00 00 00 00 DE [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:15]Read from MH i2c: E2 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 03 00 63 02 00 90 00 D9 [21:16:15]RAPDU: 90 00 [21:16:15]wFMCommunicate OK [21:16:15]wFMCommunicate request_size=255 [21:16:15]MH_SAM_APDU [21:16:15]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 8A 00 00 00 F4 03 04 00 1D 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [21:16:16]Write to MH i2c: E2 02 01 64 02 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 OFD Sender: No OFD packet to send [21:16:16]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 8A 00 00 00 F4 03 04 00 1D 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 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 88 [21:16:16]Write i2c OK [21:16:16]MH_I2C_Read... [21:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:16]Read from MH i2c: E2 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 03 00 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [21:16:16]RAPDU: 90 00 [21:16:16]wFMCommunicate OK [21:16:16]wFMCommunicate request_size=39 [21:16:16]MH_SAM_APDU [21:16:16]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 35 FA 00 00 35 04 06 00 60 7C 57 FC 02 C5 [21:16:16]Write to MH i2c: E2 2A 00 65 02 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 35 FA 00 00 35 04 06 00 60 7C 57 FC 02 C5 00 00 C0 [21:16:16]Write i2c OK [21:16:16]MH_I2C_Read... [21:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:16]Read from MH i2c: E2 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 03 00 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [21:16:16]RAPDU: 90 00 [21:16:16]wFMCommunicate OK [21:16:16]wFMCommunicate request_size=4 [21:16:16]MH_SAM_APDU [21:16:16]CAPDU: 80 0D 03 02 [21:16:16]Write to MH i2c: E2 08 00 66 02 80 0D 03 02 00 00 00 00 E3 [21:16:16]Write i2c OK [21:16:16]MH_I2C_Read... [21:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:16]Read from MH i2c: E2 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 0B 00 [21:16:16]MH_I2C_Read... [21:16:16]Read from MH i2c: E2 0B 00 66 02 00 7F 1B 98 6B 32 79 5A FE 90 00 84 [21:16:16]RAPDU: 7F 1B 98 6B 32 79 5A FE 90 00 [21:16:16]wFMCommunicate OK [21:16:16]SAM_PROTO_SignData done [21:16:16]FM_MakeSignedData done [21:16:16]CreateOFDProtocolMessage [21:16:16]wFMCommunicate request_size=4 [21:16:16]MH_SAM_APDU [21:16:16]CAPDU: 80 11 00 00 [21:16:16]Write to MH i2c: E2 08 00 67 02 80 11 00 00 00 00 00 00 E3 [21:16:17]Write i2c OK [21:16:17]MH_I2C_Read... [21:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:17]Read from MH i2c: E2 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: E2 17 00 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: E2 17 00 67 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 35 [21:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:17]wFMCommunicate OK [21:16:17]CreateOFDProtocolMessage done [21:16:17]OFDSenderStorePacket 64053 [21:16:17]StoreOFDPacket docnum=64053 [21:16: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 2C 01 00 00 47 43 24 01 F7 45 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 8A 00 00 00 F4 03 04 00 1D 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 35 FA 00 00 35 04 06 00 60 7C 57 FC 02 C5 7F 1B 98 6B 32 79 5A FE [21:16:17]CheckFolder [21:16:17]dirname=/storage/ofd_packets [21:16:17]CheckFolder done [21:16:17]ProducePacketName [21:16:17]name=ofd_packets/00064053 [21:16:17]NVStorageSaveData ofd_packets/00064053 [21:16:17]File name is /storage/ofd_packets/00064053 [21:16:17]Write 330 bytes [21:16:17]NVStorageSaveData done [21:16:17]OFDSenderStorePacket done [21:16:17]KKMCreateOFDPacket done [21:16:17]NVStorageSaveData kkm_last_timestamp [21:16:17]File name is /storage/kkm_last_timestamp [21:16:17]Write 4 bytes [21:16:17]NVStorageSaveData done [21:16:17]ExternCall_PrintAddStr [21:16:17]wPrintStart [21:16:17]Write to MH i2c: 01 00 00 68 02 6A [21:16:17]Write i2c OK [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: 01 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: 01 07 00 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [21:16:17]RasterBufferAndPrint [21:16:17]line Счет N : (3)73592 [21:16:17]line ИНН: 02508201610067 [21:16:17]line Контрольно-Кассовый Чек [21:16:17]line ПРОДАЖА [21:16:17]line Товар: 2000036210013 [21:16:17]line Кофе Капучино (GABB TRADE) [21:16:17]line 1.000 * 115.00 [21:16:17]line = 115.00 [21:16:17]line НДС 12% НСП 1% [21:16:17]line > о реализуемом товаре [21:16:17]line ИТОГО: 115.00 [21:16:17]line НСП 1% : 1.02 [21:16:17]line НДС 12% : 12.21 [21:16:17]line Наличными: 0.00 [21:16:17]line Безнал.: 115.00 [21:16:17]line Место: АЗС № 117 "Партнер Нефть" [21:16:17]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:16:17]line СНО: Общий режим [21:16:17]line Чек 138 04.06.2024 21:16 [21:16:17]line Смена: 374 ФФД: 1.0 [21:16:17]line ЗНМ: 0300000031 [21:16:17]OFD Sender: Processing packet 64053 [packets to send 14, broken 13] [21:16:17]line РНМ: 0000000000092737 [21:16:17]ProducePacketName [21:16:17]line Версия ККМ: 001 [21:16:17]name=ofd_packets/00064053 [21:16:17]line Платежная система: Бакай Банк [21:16:17]OFD Sender: To server: pG, [21:16:17]line ФМ: 0000000000875074 [21:16:17]CommunicateWithHost lk.salyk.kg:30040 [21:16:17]line ФД: 64053 [21:16:17]line ФПД: 106087168344773 [21:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211613&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64053&fm=106087168344773&tin=02508201610067®Number=0000000000092737&sum=11500 [21:16:17]line 0 [21:16:17]written 0, free lines is 4095 [21:16:17]ConnectInit lk.salyk.kg [21:16:17]Connected sock=7 [21:16: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 2C 01 00 00 47 43 24 01 F7 45 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 8A 00 00 00 F4 03 04 00 1D 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 35 FA 00 00 35 04 06 00 60 7C 57 FC 02 C5 7F 1B 98 6B 32 79 5A FE [21:16:17]Write to MH i2c: 01 00 00 92 02 94 [21:16:17]Write i2c OK [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: 01 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: 01 07 00 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: 01 07 00 92 02 00 00 00 00 00 FF 0C A6 [21:16:17]RasterBufferAndPrint [21:16:17]line [21:16:17]line [21:16:17]line [21:16:17]line [21:16:17]line [21:16:17]written 0, free lines is 3373 [21:16:17]MH_Cut [21:16:17]Write to MH i2c: D1 01 00 99 02 01 6D [21:16:17]Write i2c OK [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: D1 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: D1 01 00 [21:16:17]MH_I2C_Read... [21:16:17]Read from MH i2c: D1 01 00 99 02 00 6C [21:16:17]Write to MH i2c: 01 00 00 9A 02 9C [21:16:17]Write i2c OK [21:16:17]MH_I2C_Read... [21:16: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 6D D0 47 00 2A 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 35 FA 00 00 F4 03 04 00 2D 30 5F 66 B6 04 01 00 00 05 16 3C F4 37 B0 35 36 [21:16:18]CommunicateWithHost err = 0 [21:16:18]CheckOFDResponse [21:16:18]1017 (14) - 77093643461234 [21:16:18]1041 (16) - 0000000000875074 [21:16:18]1040 (4) - 64053 [21:16:18]1012 (4) - 04.06.2024 15:18 [21:16:18]1206 (1) - 0 [21:16:18]OFD Sender: Remove packet 64053 [21:16:18]ProducePacketName [21:16:18]name=ofd_packets/00064053 [21:16:18]NVStorageDeleteData [21:16:18]*** Cut start [21:16:18]*** Partial cut [21:16:18]*** CUTSNS_PIN = 1 [21:16:18]OFD Sender: No OFD packet to send [21:16:18]*** CUTSNS_PIN = 0 [21:16:18]*** Brake cut motor [21:16:19]Read from MH i2c: 01 [21:16:19]MH_I2C_Read... [21:16:19]*** Stop cut motor [21:16:19]*** Cut end [21:16:19]Read from MH i2c: 01 07 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 FF 0F B1 [21:16:19]process_action close_receipt done [21:16:19]requested_data is exist [21:16:19]produce_requested_data [21:16:19]requested_item fm.sn is exist - process it [21:16:19]wFMCommunicate request_size=4 [21:16:19]MH_SAM_APDU [21:16:19]CAPDU: 80 11 00 00 [21:16:19]Write to MH i2c: E2 08 00 9B 02 80 11 00 00 00 00 00 00 17 [21:16:19]Write i2c OK [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 [21:16:19]MH_I2C_Read... [21:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:19]Read from MH i2c: E2 17 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 17 00 9B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 69 [21:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:19]wFMCommunicate OK [21:16:19]requested_item fd.num is exist - process it [21:16:19]SAM_PROTO_GetFieldsCounters [21:16:19]wFMCommunicate request_size=4 [21:16:19]MH_SAM_APDU [21:16:19]CAPDU: 80 13 00 00 [21:16:19]Write to MH i2c: E2 08 00 9C 02 80 13 00 00 00 00 00 00 1A [21:16:19]Write i2c OK [21:16:19]MH_I2C_Read... [21:16:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:19]Read from MH i2c: E2 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 62 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 62 00 9C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 35 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [21:16: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 35 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:19]wFMCommunicate OK [21:16:19]SAM_PROTO_GetFieldsCounters done [21:16:19]requested_item shift.num is exist - process it [21:16:19]requested_item shift.opened is exist - process it [21:16:19]req_shift_opened [21:16:19]FM_GetShiftState [21:16:19]SAM_PROTO_GetShiftState [21:16:19]wFMCommunicate request_size=4 [21:16:19]MH_SAM_APDU [21:16:19]CAPDU: 80 13 01 00 [21:16:19]Write to MH i2c: E2 08 00 9D 02 80 13 01 00 00 00 00 00 1C [21:16:19]Write i2c OK [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 [21:16:19]MH_I2C_Read... [21:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:19]Read from MH i2c: E2 0E 00 [21:16:19]MH_I2C_Read... [21:16:19]Read from MH i2c: E2 0E 00 9D 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 BC [21:16:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:19]wFMCommunicate OK [21:16:19]SAM_PROTO_GetShiftState done [21:16:19]FM_GetShiftState done [21:16:19]req_shift_opened done [21:16:19]requested_item shift.open_date is exist - process it [21:16:19]req_shift_open_date [21:16:19]req_shift_open_date done [21:16:19]produce_requested_data done [21:16:19]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64053,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:16:19]process_action_free close_receipt [21:16:19]json_value_free [21:16:19]json_value_free done [21:16:19]process_json_proto returns [21:16:19]Send response to host [21:16:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64053,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:16:19]free response buf [21:16:19]execute_script done [21:16:19]execute_script returns [21:16:19]free content buf [21:16:19]Sock 8.Close socket [21:16:19]Sock 8.Thread stoped [21:16:20]accept exits with 9 [21:16:20]New connection [21:16:20]New thread 3067133284 created [21:16:20]Thread 3067276644 joined [21:16:20]Waiting for new connection... [21:16:20] Sock 9.Parse request [21:16:20]Sock 9.Check first char [21:16:20]Sock 9.First char is OK [21:16:20]request: POST /json_proto HTTP/1.0 [21:16:20]Method: POST [21:16:20]URL: /json_proto [21:16:20]Method is POST - this is cgi request [21:16:20]url: /json_proto [21:16:20]query_string will be loaded in cgi processing [21:16:20]execute_cgi json_proto POST (null) [21:16:20]execute_cgi path=json_proto method=POST [21:16:20]POST find Content-Length [21:16:20]Host: 172.17.60.69:8080 [21:16:20]Content-Length: 672 [21:16:20]Content-Type: application/json [21:16:20] [21:16:20]POST finish read [21:16:20]Found Content-Length = 672 [21:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73593", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:20]execute_script... [21:16: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)73593", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:20]POST & json_proto [21:16:20]process_json_proto [21:16:20]json parsed OK: [21:16:20]protocol is kg_v1.0 [21:16:20]action value=close_receipt [21:16:20]process_action close_receipt [21:16:20]cmd_close_receipt [21:16:20]MH_GetDate [21:16:20]Write to MH i2c: F0 00 00 9E 02 8F [21:16:20]Write i2c OK [21:16:20]MH_I2C_Read... [21:16:20]Read from MH i2c: F0 [21:16:20]MH_I2C_Read... [21:16:20]Read from MH i2c: F0 09 00 [21:16:20]MH_I2C_Read... [21:16:20]Read from MH i2c: F0 09 00 9E 02 00 24 84 5F 66 D2 83 5F 66 1F [21:16:20]GetLastDocTimeStamp 1717535773 [21:16:20]current date 1717535780 [21:16:20]FM_GetShiftState [21:16:20]SAM_PROTO_GetShiftState [21:16:20]wFMCommunicate request_size=4 [21:16:20]MH_SAM_APDU [21:16:20]CAPDU: 80 13 01 00 [21:16:20]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [21:16:20]Write i2c OK [21:16:20]MH_I2C_Read... [21:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:20]Read from MH i2c: E2 [21:16:20]MH_I2C_Read... [21:16:20]Read from MH i2c: E2 0E 00 [21:16:20]MH_I2C_Read... [21:16:20]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 BE [21:16:20]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:20]wFMCommunicate OK [21:16:20]SAM_PROTO_GetShiftState done [21:16:20]FM_GetShiftState done [21:16:20]opened in 1717459574 [21:16:20]opened+sec_in_day 1717545974 [21:16:20]quantity*price = 700 [21:16:20]sum+1 = 701 [21:16:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 139 04.06.2024 21:16 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64054 ФПД: 125049809319159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211620&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64054&fm=125049809319159&tin=02508201610067®Number=0000000000092737&sum=700 0 [21:16:22]StoreToDocumentArchive [21:16:22]shift 374 fd 64054 [21:16:22]save to /storage/0374/doc_00064054 [21:16:22]save last doc name /storage/0374/doc_00064054 to /storage/kkm_last_doc_name [21:16:22]save OK [21:16:22]Clear old archive folders... [21:16:22]ProcessDocumentItem done err = 0, tmpTLVsize=287 [21:16:22]tlvbuf is 010AA360 [21:16:22]SAM_PROTO_ClearQueue [21:16:22]wFMCommunicate request_size=4 [21:16:22]MH_SAM_APDU [21:16:22]CAPDU: 80 09 00 00 [21:16:22]Write to MH i2c: E2 08 00 AC 02 80 09 00 00 00 00 00 00 20 [21:16:22]Write i2c OK [21:16:22]MH_I2C_Read... [21:16:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:22]Read from MH i2c: E2 [21:16:22]MH_I2C_Read... [21:16:22]Read from MH i2c: E2 03 00 [21:16:22]MH_I2C_Read... [21:16:22]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [21:16:22]RAPDU: 90 00 [21:16:22]wFMCommunicate OK [21:16:22]SAM_PROTO_ClearQueue done [21:16:22]KKMCreateOFDPacket [21:16:22]OFDProtocolAddRootSTLVToBuf [21:16:22]FM_MakeSignedData [21:16:22]FM_MakeSignedData [21:16:22]SAM_PROTO_SignData [21:16:22]wFMCommunicate request_size=4 [21:16:22]MH_SAM_APDU [21:16:22]CAPDU: 80 0D 01 02 [21:16:22]Write to MH i2c: E2 08 00 AD 02 80 0D 01 02 00 00 00 00 28 [21:16:22]Write i2c OK [21:16:22]MH_I2C_Read... [21:16:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:22]Read from MH i2c: E2 [21:16:22]MH_I2C_Read... [21:16:22]Read from MH i2c: E2 03 00 [21:16:22]MH_I2C_Read... [21:16:22]Read from MH i2c: E2 03 00 AD 02 00 90 00 23 [21:16:22]RAPDU: 90 00 [21:16:22]wFMCommunicate OK [21:16:22]wFMCommunicate request_size=255 [21:16:22]MH_SAM_APDU [21:16:22]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 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 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 24 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [21:16:23]Write to MH i2c: E2 02 01 AE 02 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 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 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 24 84 5F 66 0E 04 04 00 76 01 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 D3 [21:16:23]Write i2c OK [21:16:23]MH_I2C_Read... [21:16:23]OFD Sender: No OFD packet to send [21:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:23]Read from MH i2c: E2 [21:16:23]MH_I2C_Read... [21:16:23]Read from MH i2c: E2 03 00 [21:16:23]MH_I2C_Read... [21:16:23]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [21:16:23]RAPDU: 90 00 [21:16:23]wFMCommunicate OK [21:16:23]wFMCommunicate request_size=46 [21:16:23]MH_SAM_APDU [21:16:23]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 36 FA 00 00 35 04 06 00 71 BB 6D 76 B4 F7 [21:16:23]Write to MH i2c: E2 31 00 AF 02 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 36 FA 00 00 35 04 06 00 71 BB 6D 76 B4 F7 00 00 A3 [21:16:23]Write i2c OK [21:16:23]MH_I2C_Read... [21:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:23]Read from MH i2c: E2 [21:16:23]MH_I2C_Read... [21:16:23]Read from MH i2c: E2 03 00 [21:16:23]MH_I2C_Read... [21:16:23]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [21:16:23]RAPDU: 90 00 [21:16:23]wFMCommunicate OK [21:16:23]wFMCommunicate request_size=4 [21:16:23]MH_SAM_APDU [21:16:23]CAPDU: 80 0D 03 02 [21:16:23]Write to MH i2c: E2 08 00 B0 02 80 0D 03 02 00 00 00 00 2D [21:16:23]Write i2c OK [21:16:23]MH_I2C_Read... [21:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:23]Read from MH i2c: E2 [21:16:23]MH_I2C_Read... [21:16:23]Read from MH i2c: E2 0B 00 [21:16:23]MH_I2C_Read... [21:16:23]Read from MH i2c: E2 0B 00 B0 02 00 AC 21 04 3E E6 C3 5E C8 90 00 0C [21:16:24]RAPDU: AC 21 04 3E E6 C3 5E C8 90 00 [21:16:24]wFMCommunicate OK [21:16:24]SAM_PROTO_SignData done [21:16:24]FM_MakeSignedData done [21:16:24]CreateOFDProtocolMessage [21:16:24]wFMCommunicate request_size=4 [21:16:24]MH_SAM_APDU [21:16:24]CAPDU: 80 11 00 00 [21:16:24]Write to MH i2c: E2 08 00 B1 02 80 11 00 00 00 00 00 00 2D [21:16:24]Write i2c OK [21:16:24]MH_I2C_Read... [21:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:24]Read from MH i2c: E2 [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: E2 17 00 [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: E2 17 00 B1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7F [21:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:24]wFMCommunicate OK [21:16:24]CreateOFDProtocolMessage done [21:16:24]OFDSenderStorePacket 64054 [21:16:24]StoreOFDPacket docnum=64054 [21:16:24]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 92 5D 2B 01 28 12 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 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 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 24 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 36 FA 00 00 35 04 06 00 71 BB 6D 76 B4 F7 AC 21 04 3E E6 C3 5E C8 [21:16:24]CheckFolder [21:16:24]dirname=/storage/ofd_packets [21:16:24]CheckFolder done [21:16:24]ProducePacketName [21:16:24]name=ofd_packets/00064054 [21:16:24]NVStorageSaveData ofd_packets/00064054 [21:16:24]File name is /storage/ofd_packets/00064054 [21:16:24]Write 337 bytes [21:16:24]NVStorageSaveData done [21:16:24]OFDSenderStorePacket done [21:16:24]KKMCreateOFDPacket done [21:16:24]NVStorageSaveData kkm_last_timestamp [21:16:24]File name is /storage/kkm_last_timestamp [21:16:24]Write 4 bytes [21:16:24]NVStorageSaveData done [21:16:24]ExternCall_PrintAddStr [21:16:24]wPrintStart [21:16:24]Write to MH i2c: 01 00 00 B2 02 B4 [21:16:24]Write i2c OK [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: 01 [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: 01 07 00 [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 FF 0F C9 [21:16:24]RasterBufferAndPrint [21:16:24]line Счет N : (3)73593 [21:16:24]line ИНН: 02508201610067 [21:16:24]line Контрольно-Кассовый Чек [21:16:24]line ПРОДАЖА [21:16:24]line Товар: 2000053020015 [21:16:24]line Бумажные стаканы 250мл 1шт [21:16:24]line 1.000 * 7.00 [21:16:24]line = 7.00 [21:16:24]line НДС 12% НСП 1% [21:16:24]line > о реализуемом товаре [21:16:24]line ИТОГО: 7.00 [21:16:24]line НСП 1% : 0.06 [21:16:24]line НДС 12% : 0.74 [21:16:24]line Наличными: 7.00 [21:16:24]line Безнал.: 0.00 [21:16:24]line Место: АЗС № 117 "Партнер Нефть" [21:16:24]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:16:24]line СНО: Общий режим [21:16:24]line Чек 139 04.06.2024 21:16 [21:16:24]line Смена: 374 ФФД: 1.0 [21:16:24]line ЗНМ: 0300000031 [21:16:24]line РНМ: 0000000000092737 [21:16:24]line Версия ККМ: 001 [21:16:24]line ФМ: 0000000000875074 [21:16:24]line ФД: 64054 [21:16:24]line ФПД: 125049809319159 [21:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211620&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64054&fm=125049809319159&tin=02508201610067®Number=0000000000092737&sum=700 [21:16:24]line 0 [21:16:24]written 0, free lines is 4095 [21:16:24]OFD Sender: Processing packet 64054 [packets to send 14, broken 13] [21:16:24]ProducePacketName [21:16:24]name=ofd_packets/00064054 [21:16:24]OFD Sender: To server: pG, [21:16:24]CommunicateWithHost lk.salyk.kg:30040 [21:16:24]ConnectInit lk.salyk.kg [21:16:24]Connected sock=10 [21:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 33 01 00 00 92 5D 2B 01 28 12 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 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 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 24 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 36 FA 00 00 35 04 06 00 71 BB 6D 76 B4 F7 AC 21 Write to MH i2c: 04 01 3E 00 E6 00 C3 DB 5E 02 C8 DD [21:16:24] [21:16:24]Write i2c OK [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: 01 [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: 01 07 00 [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: 01 07 00 DB 02 00 00 00 00 00 EB 0C DB [21:16:24]RasterBufferAndPrint [21:16:24]line [21:16:24]line [21:16:24]line [21:16:24]line [21:16:24]line [21:16:24]written 0, free lines is 3363 [21:16:24]MH_Cut [21:16:24]Write to MH i2c: D1 01 00 E2 02 01 B6 [21:16:24]Write i2c OK [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: D1 [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: D1 01 00 [21:16:24]MH_I2C_Read... [21:16:24]Read from MH i2c: D1 01 00 E2 02 00 B5 [21:16:24]Write to MH i2c: 01 00 00 E3 02 E5 [21:16:24]Write i2c OK [21:16:24]MH_I2C_Read... [21:16: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 6E 8F 47 00 D5 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 36 FA 00 00 F4 03 04 00 34 30 5F 66 B6 04 01 00 00 35 70 F1 52 E9 02 A9 FB [21:16:25]CommunicateWithHost err = 0 [21:16:25]CheckOFDResponse [21:16:25]1017 (14) - 77093643461234 [21:16:25]1041 (16) - 0000000000875074 [21:16:25]1040 (4) - 64054 [21:16:25]1012 (4) - 04.06.2024 15:18 [21:16:25]1206 (1) - 0 [21:16:25]OFD Sender: Remove packet 64054 [21:16:25]ProducePacketName [21:16:25]name=ofd_packets/00064054 [21:16:25]NVStorageDeleteData [21:16:25]*** Cut start [21:16:25]*** Partial cut [21:16:25]*** CUTSNS_PIN = 1 [21:16:25]*** CUTSNS_PIN = 0 [21:16:25]OFD Sender: No OFD packet to send [21:16:25]*** Brake cut motor [21:16:26]Read from MH i2c: 01 [21:16:26]MH_I2C_Read... [21:16:26]*** Stop cut motor [21:16:26]*** Cut end [21:16:26]Read from MH i2c: 01 07 00 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 FF 0F FA [21:16:26]process_action close_receipt done [21:16:26]requested_data is exist [21:16:26]produce_requested_data [21:16:26]requested_item fm.sn is exist - process it [21:16:26]wFMCommunicate request_size=4 [21:16:26]MH_SAM_APDU [21:16:26]CAPDU: 80 11 00 00 [21:16:26]Write to MH i2c: E2 08 00 E4 02 80 11 00 00 00 00 00 00 60 [21:16:26]Write i2c OK [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: E2 [21:16:26]MH_I2C_Read... [21:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:26]Read from MH i2c: E2 17 00 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: E2 17 00 E4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B2 [21:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:26]wFMCommunicate OK [21:16:26]requested_item fd.num is exist - process it [21:16:26]SAM_PROTO_GetFieldsCounters [21:16:26]wFMCommunicate request_size=4 [21:16:26]MH_SAM_APDU [21:16:26]CAPDU: 80 13 00 00 [21:16:26]Write to MH i2c: E2 08 00 E5 02 80 13 00 00 00 00 00 00 63 [21:16:26]Write i2c OK [21:16:26]MH_I2C_Read... [21:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:26]Read from MH i2c: E2 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: E2 62 00 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: E2 62 00 E5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 36 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [21:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 36 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:26]wFMCommunicate OK [21:16:26]SAM_PROTO_GetFieldsCounters done [21:16:26]requested_item shift.num is exist - process it [21:16:26]requested_item shift.opened is exist - process it [21:16:26]req_shift_opened [21:16:26]FM_GetShiftState [21:16:26]SAM_PROTO_GetShiftState [21:16:26]wFMCommunicate request_size=4 [21:16:26]MH_SAM_APDU [21:16:26]CAPDU: 80 13 01 00 [21:16:26]Write to MH i2c: E2 08 00 E6 02 80 13 01 00 00 00 00 00 65 [21:16:26]Write i2c OK [21:16:26]MH_I2C_Read... [21:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:26]Read from MH i2c: E2 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: E2 0E 00 [21:16:26]MH_I2C_Read... [21:16:26]Read from MH i2c: E2 0E 00 E6 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 05 [21:16:26]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:26]wFMCommunicate OK [21:16:26]SAM_PROTO_GetShiftState done [21:16:26]FM_GetShiftState done [21:16:26]req_shift_opened done [21:16:26]requested_item shift.open_date is exist - process it [21:16:26]req_shift_open_date [21:16:26]req_shift_open_date done [21:16:26]produce_requested_data done [21:16:26]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64054,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:16:26]process_action_free close_receipt [21:16:26]json_value_free [21:16:26]json_value_free done [21:16:26]process_json_proto returns [21:16:26]Send response to host [21:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64054,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:16:26]free response buf [21:16:26]execute_script done [21:16:26]execute_script returns [21:16:26]free content buf [21:16:26]Sock 9.Close socket [21:16:26]Sock 9.Thread stoped [21:16:28]accept exits with 7 [21:16:28]New connection [21:16:28]New thread 3067276644 created [21:16:28]Thread 3067133284 joined [21:16:28]Waiting for new connection... [21:16:28] Sock 7.Parse request [21:16:28]Sock 7.Check first char [21:16:28]Sock 7.First char is OK [21:16:28]request: POST /json_proto HTTP/1.0 [21:16:28]Method: POST [21:16:28]URL: /json_proto [21:16:28]Method is POST - this is cgi request [21:16:28]url: /json_proto [21:16:28]query_string will be loaded in cgi processing [21:16:28]execute_cgi json_proto POST (null) [21:16:28]execute_cgi path=json_proto method=POST [21:16:28]POST find Content-Length [21:16:28]Host: 172.17.60.69:8080 [21:16:28]Content-Length: 625 [21:16:28]Content-Type: application/json [21:16:28] [21:16:28]POST finish read [21:16:28]Found Content-Length = 625 [21:16:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73594", "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" ] } } [21:16:28]execute_script... [21:16:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73594", "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" ] } } [21:16:28]POST & json_proto [21:16:28]process_json_proto [21:16:28]json parsed OK: [21:16:28]protocol is kg_v1.0 [21:16:28]action value=close_receipt [21:16:28]process_action close_receipt [21:16:28]cmd_close_receipt [21:16:28]MH_GetDate [21:16:28]Write to MH i2c: F0 00 00 E7 02 D8 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: F0 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: F0 09 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: F0 09 00 E7 02 00 2C 84 5F 66 D2 83 5F 66 70 [21:16:28]GetLastDocTimeStamp 1717535780 [21:16:28]current date 1717535788 [21:16:28]FM_GetShiftState [21:16:28]SAM_PROTO_GetShiftState [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 13 01 00 [21:16:28]Write to MH i2c: E2 08 00 E8 02 80 13 01 00 00 00 00 00 67 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 0E 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 0E 00 E8 02 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 07 [21:16:28]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:28]wFMCommunicate OK [21:16:28]SAM_PROTO_GetShiftState done [21:16:28]FM_GetShiftState done [21:16:28]opened in 1717459574 [21:16:28]opened+sec_in_day 1717545974 [21:16:28]quantity*price = 11500 [21:16:28]sum+1 = 11501 [21:16:28]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 СНО: Общий режим Чек 140 04.06.2024 21:16 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64055 ФПД: 272076380521205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211628&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64055&fm=272076380521205&tin=02508201610067®Number=0000000000092737&sum=11500 0 [21:16:30]StoreToDocumentArchive [21:16:30]shift 374 fd 64055 [21:16:30]save to /storage/0374/doc_00064055 [21:16:30]save last doc name /storage/0374/doc_00064055 to /storage/kkm_last_doc_name [21:16:30]save OK [21:16:30]Clear old archive folders... [21:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=274 [21:16:30]tlvbuf is 010B5220 [21:16:30]SAM_PROTO_ClearQueue [21:16:30]wFMCommunicate request_size=4 [21:16:30]MH_SAM_APDU [21:16:30]CAPDU: 80 09 00 00 [21:16:30]Write to MH i2c: E2 08 00 F5 02 80 09 00 00 00 00 00 00 69 [21:16:30]Write i2c OK [21:16:30]MH_I2C_Read... [21:16:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 03 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [21:16:31]RAPDU: 90 00 [21:16:31]wFMCommunicate OK [21:16:31]SAM_PROTO_ClearQueue done [21:16:31]KKMCreateOFDPacket [21:16:31]OFDProtocolAddRootSTLVToBuf [21:16:31]FM_MakeSignedData [21:16:31]FM_MakeSignedData [21:16:31]SAM_PROTO_SignData [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 0D 01 02 [21:16:31]Write to MH i2c: E2 08 00 F6 02 80 0D 01 02 00 00 00 00 71 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 03 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [21:16:31]RAPDU: 90 00 [21:16:31]wFMCommunicate OK [21:16:31]wFMCommunicate request_size=255 [21:16:31]MH_SAM_APDU [21:16:31]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 8C 00 00 00 F4 03 04 00 2C 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [21:16:31]Write to MH i2c: E2 02 01 F7 02 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 8C 00 00 00 F4 03 04 00 2C 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 88 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 03 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [21:16:31]RAPDU: 90 00 [21:16:31]wFMCommunicate OK [21:16:31]wFMCommunicate request_size=33 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 FA 00 00 35 04 06 00 F7 73 B8 03 42 F5 [21:16:31]Write to MH i2c: E2 24 00 F8 02 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 FA 00 00 35 04 06 00 F7 73 B8 03 42 F5 00 00 8F [21:16:32]Write i2c OK [21:16:32]MH_I2C_Read... [21:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:32]Read from MH i2c: E2 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 03 00 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [21:16:32]RAPDU: 90 00 [21:16:32]wFMCommunicate OK [21:16:32]wFMCommunicate request_size=4 [21:16:32]MH_SAM_APDU [21:16:32]CAPDU: 80 0D 03 02 [21:16:32]Write to MH i2c: E2 08 00 F9 02 80 0D 03 02 00 00 00 00 76 [21:16:32]Write i2c OK [21:16:32]MH_I2C_Read... [21:16:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:32]Read from MH i2c: E2 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 0B 00 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 0B 00 F9 02 00 17 D5 B6 32 49 3D 06 66 90 00 3D [21:16:32]RAPDU: 17 D5 B6 32 49 3D 06 66 90 00 [21:16:32]wFMCommunicate OK [21:16:32]SAM_PROTO_SignData done [21:16:32]FM_MakeSignedData done [21:16:32]CreateOFDProtocolMessage [21:16:32]wFMCommunicate request_size=4 [21:16:32]MH_SAM_APDU [21:16:32]CAPDU: 80 11 00 00 [21:16:32]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [21:16:32]Write i2c OK [21:16:32]MH_I2C_Read... [21:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:32]Read from MH i2c: E2 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 17 00 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C8 [21:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:32]wFMCommunicate OK [21:16:32]CreateOFDProtocolMessage done [21:16:32]OFDSenderStorePacket 64055 [21:16:32]StoreOFDPacket docnum=64055 [21:16: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 26 01 00 00 64 0C 1E 01 34 01 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 8C 00 00 00 F4 03 04 00 2C 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 FA 00 00 35 04 06 00 F7 73 B8 03 42 F5 17 D5 B6 32 49 3D 06 66 [21:16:32]CheckFolder [21:16:32]dirname=/storage/ofd_packets [21:16:32]CheckFolder done [21:16:32]ProducePacketName [21:16:32]name=ofd_packets/00064055 [21:16:32]NVStorageSaveData ofd_packets/00064055 [21:16:32]File name is /storage/ofd_packets/00064055 [21:16:32]Write 324 bytes [21:16:32]NVStorageSaveData done [21:16:32]OFDSenderStorePacket done [21:16:32]KKMCreateOFDPacket done [21:16:32]NVStorageSaveData kkm_last_timestamp [21:16:32]File name is /storage/kkm_last_timestamp [21:16:32]Write 4 bytes [21:16:32]NVStorageSaveData done [21:16:32]ExternCall_PrintAddStr [21:16:32]wPrintStart [21:16:32]Write to MH i2c: 01 00 00 FB 02 FD [21:16:32]Write i2c OK [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: 01 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: 01 07 00 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [21:16:32]RasterBufferAndPrint [21:16:32]line Счет N : (3)73594 [21:16:32]line ИНН: 02508201610067 [21:16:32]line Контрольно-Кассовый Чек [21:16:32]line ПРОДАЖА [21:16:32]line Товар: 2000036240010 [21:16:32]line Кофе Латте (GABB TRADE) [21:16:32]line 1.000 * 115.00 [21:16:32]line = 115.00 [21:16:32]line НДС 12% НСП 1% [21:16:32]line > о реализуемом товаре [21:16:32]line ИТОГО: 115.00 [21:16:32]line НСП 1% : 1.02 [21:16:32]line НДС 12% : 12.21 [21:16:32]line Наличными: 115.00 [21:16:32]line Безнал.: 0.00 [21:16:32]line Место: АЗС № 117 "Партнер Нефть" [21:16:32]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:16:32]line СНО: Общий режим [21:16:32]line Чек 140 04.06.2024 21:16 [21:16:32]line Смена: 374 ФФД: 1.0 [21:16:32]line ЗНМ: 0300000031 [21:16:32]line РНМ: 0000000000092737 [21:16:32]line Версия ККМ: 001 [21:16:32]line ФМ: 0000000000875074 [21:16:32]line ФД: 64055 [21:16:32]line ФПД: 272076380521205 [21:16:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211628&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64055&fm=272076380521205&tin=02508201610067®Number=0000000000092737&sum=11500 [21:16:32]OFD Sender: Processing packet 64055 [packets to send 14, broken 13] [21:16:32]ProducePacketName [21:16:32]name=ofd_packets/00064055 [21:16:32]OFD Sender: To server: pG, [21:16:32]CommunicateWithHost lk.salyk.kg:30040 [21:16:32]ConnectInit lk.salyk.kg [21:16:32]line 0 [21:16:32]written 0, free lines is 4095 [21:16:32]Connected sock=10 [21:16:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 64 0C 1E 01 34 01 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 8C 00 00 00 F4 03 04 00 2C 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 FA 00 00 35 04 06 00 F7 73 B8 03 42 F5 17 D5 B6 Write to MH i2c: 32 01 49 00 3D 00 06 23 66 03 [21:16:32]26 [21:16:32]Write i2c OK [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: 01 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: 01 07 00 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: 01 07 00 23 03 00 00 00 00 00 31 0D 6B [21:16:33]RasterBufferAndPrint [21:16:33]line [21:16:33]line [21:16:33]line [21:16:33]line [21:16:33]line [21:16:33]written 0, free lines is 3433 [21:16:33]MH_Cut [21:16:33]Write to MH i2c: D1 01 00 2A 03 01 FF [21:16:33]Write i2c OK [21:16:33]MH_I2C_Read... [21:16:33]Read from MH i2c: D1 [21:16:33]MH_I2C_Read... [21:16:33]Read from MH i2c: D1 01 00 [21:16:33]MH_I2C_Read... [21:16:33]Read from MH i2c: D1 01 00 2A 03 00 FE [21:16:33]Write to MH i2c: 01 00 00 2B 03 2E [21:16:33]Write i2c OK [21:16:33]MH_I2C_Read... [21:16: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 70 EA 47 00 F6 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 37 FA 00 00 F4 03 04 00 3C 30 5F 66 B6 04 01 00 00 2D 84 E6 CB EF 72 98 63 [21:16:33]CommunicateWithHost err = 0 [21:16:33]CheckOFDResponse [21:16:33]1017 (14) - 77093643461234 [21:16:33]1041 (16) - 0000000000875074 [21:16:33]1040 (4) - 64055 [21:16:33]1012 (4) - 04.06.2024 15:18 [21:16:33]1206 (1) - 0 [21:16:33]OFD Sender: Remove packet 64055 [21:16:33]ProducePacketName [21:16:33]name=ofd_packets/00064055 [21:16:33]NVStorageDeleteData [21:16:33]*** Cut start [21:16:33]*** Partial cut [21:16:33]*** CUTSNS_PIN = 1 [21:16:33]*** CUTSNS_PIN = 0 [21:16:33]OFD Sender: No OFD packet to send [21:16:34]*** Brake cut motor [21:16:34]Read from MH i2c: 01 [21:16:34]MH_I2C_Read... [21:16:34]*** Stop cut motor [21:16:34]*** Cut end [21:16:34]Read from MH i2c: 01 07 00 [21:16:34]MH_I2C_Read... [21:16:34]Read from MH i2c: 01 07 00 2B 03 00 00 00 00 00 FF 0F 43 [21:16:34]process_action close_receipt done [21:16:34]requested_data is exist [21:16:34]produce_requested_data [21:16:34]requested_item fm.sn is exist - process it [21:16:34]wFMCommunicate request_size=4 [21:16:34]MH_SAM_APDU [21:16:34]CAPDU: 80 11 00 00 [21:16:34]Write to MH i2c: E2 08 00 2C 03 80 11 00 00 00 00 00 00 A9 [21:16:34]Write i2c OK [21:16:34]MH_I2C_Read... [21:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:34]Read from MH i2c: E2 [21:16:34]MH_I2C_Read... [21:16:34]Read from MH i2c: E2 17 00 [21:16:34]MH_I2C_Read... [21:16:34]Read from MH i2c: E2 17 00 2C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FB [21:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:34]wFMCommunicate OK [21:16:34]requested_item fd.num is exist - process it [21:16:34]SAM_PROTO_GetFieldsCounters [21:16:34]wFMCommunicate request_size=4 [21:16:34]MH_SAM_APDU [21:16:34]CAPDU: 80 13 00 00 [21:16:34]Write to MH i2c: E2 08 00 2D 03 80 13 00 00 00 00 00 00 AC [21:16:34]Write i2c OK [21:16:34]MH_I2C_Read... [21:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:34]Read from MH i2c: E2 [21:16:34]MH_I2C_Read... [21:16:34]Read from MH i2c: E2 62 00 [21:16:34]MH_I2C_Read... [21:16:34]Read from MH i2c: E2 62 00 2D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 37 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [21:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 37 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:34]wFMCommunicate OK [21:16:34]SAM_PROTO_GetFieldsCounters done [21:16:34]requested_item shift.num is exist - process it [21:16:34]requested_item shift.opened is exist - process it [21:16:34]req_shift_opened [21:16:34]FM_GetShiftState [21:16:34]SAM_PROTO_GetShiftState [21:16:34]wFMCommunicate request_size=4 [21:16:34]MH_SAM_APDU [21:16:34]CAPDU: 80 13 01 00 [21:16:34]Write to MH i2c: E2 08 00 2E 03 80 13 01 00 00 00 00 00 AE [21:16:34]Write i2c OK [21:16:34]MH_I2C_Read... [21:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:35]Read from MH i2c: E2 [21:16:35]MH_I2C_Read... [21:16:35]Read from MH i2c: E2 0E 00 [21:16:35]MH_I2C_Read... [21:16:35]Read from MH i2c: E2 0E 00 2E 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 4E [21:16:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:35]wFMCommunicate OK [21:16:35]SAM_PROTO_GetShiftState done [21:16:35]FM_GetShiftState done [21:16:35]req_shift_opened done [21:16:35]requested_item shift.open_date is exist - process it [21:16:35]req_shift_open_date [21:16:35]req_shift_open_date done [21:16:35]produce_requested_data done [21:16:35]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64055,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:16:35]process_action_free close_receipt [21:16:35]json_value_free [21:16:35]json_value_free done [21:16:35]process_json_proto returns [21:16:35]Send response to host [21:16:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64055,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:16:35]free response buf [21:16:35]execute_script done [21:16:35]execute_script returns [21:16:35]free content buf [21:16:35]Sock 7.Close socket [21:16:35]Sock 7.Thread stoped [21:16:36]accept exits with 9 [21:16:36]New connection [21:16:36]New thread 3067133284 created [21:16:36]Thread 3067276644 joined [21:16:36]Waiting for new connection... [21:16:36] Sock 9.Parse request [21:16:36]Sock 9.Check first char [21:16:36]Sock 9.First char is OK [21:16:36]request: POST /json_proto HTTP/1.0 [21:16:36]Method: POST [21:16:36]URL: /json_proto [21:16:36]Method is POST - this is cgi request [21:16:36]url: /json_proto [21:16:36]query_string will be loaded in cgi processing [21:16:36]execute_cgi json_proto POST (null) [21:16:36]execute_cgi path=json_proto method=POST [21:16:36]POST find Content-Length [21:16:36]Host: 172.17.60.69:8080 [21:16:36]Content-Length: 614 [21:16:36]Content-Type: application/json [21:16:36] [21:16:36]POST finish read [21:16:36]Found Content-Length = 614 [21:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73596", "tax_sys" : 0, "items" : [ { "code": "46230478", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Kiss Jolly", "price" : 118.00, "quantity" : 17.000, "sum" : 2006.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2006.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:36]execute_script... [21:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73596", "tax_sys" : 0, "items" : [ { "code": "46230478", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Kiss Jolly", "price" : 118.00, "quantity" : 17.000, "sum" : 2006.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2006.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:36]POST & json_proto [21:16:36]process_json_proto [21:16:36]json parsed OK: [21:16:36]protocol is kg_v1.0 [21:16:36]action value=close_receipt [21:16:36]process_action close_receipt [21:16:36]cmd_close_receipt [21:16:36]MH_GetDate [21:16:36]Write to MH i2c: F0 00 00 2F 03 21 [21:16:36]Write i2c OK [21:16:36]MH_I2C_Read... [21:16:36]Read from MH i2c: F0 [21:16:36]MH_I2C_Read... [21:16:36]Read from MH i2c: F0 09 00 [21:16:36]MH_I2C_Read... [21:16:36]Read from MH i2c: F0 09 00 2F 03 00 34 84 5F 66 D2 83 5F 66 C1 [21:16:36]GetLastDocTimeStamp 1717535788 [21:16:36]current date 1717535796 [21:16:36]FM_GetShiftState [21:16:36]SAM_PROTO_GetShiftState [21:16:36]wFMCommunicate request_size=4 [21:16:36]MH_SAM_APDU [21:16:36]CAPDU: 80 13 01 00 [21:16:36]Write to MH i2c: E2 08 00 30 03 80 13 01 00 00 00 00 00 B0 [21:16:36]Write i2c OK [21:16:36]MH_I2C_Read... [21:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:36]Read from MH i2c: E2 [21:16:36]MH_I2C_Read... [21:16:36]Read from MH i2c: E2 0E 00 [21:16:36]MH_I2C_Read... [21:16:36]Read from MH i2c: E2 0E 00 30 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 50 [21:16:36]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:36]wFMCommunicate OK [21:16:36]SAM_PROTO_GetShiftState done [21:16:36]FM_GetShiftState done [21:16:36]opened in 1717459574 [21:16:36]opened+sec_in_day 1717545974 [21:16:36]quantity*price = 200600 [21:16:36]sum+1 = 200601 [21:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2006.00 НСП 1% : 17.75 НДС 12% : 213.03 Наличными: 2006.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 141 04.06.2024 21:16 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64056 ФПД: 88087362436190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211636&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64056&fm=88087362436190&tin=02508201610067®Number=0000000000092737&sum=200600 0 [21:16:38]StoreToDocumentArchive [21:16:38]shift 374 fd 64056 [21:16:38]save to /storage/0374/doc_00064056 [21:16:38]save last doc name /storage/0374/doc_00064056 to /storage/kkm_last_doc_name [21:16:38]save OK [21:16:38]Clear old archive folders... [21:16:38]ProcessDocumentItem done err = 0, tmpTLVsize=264 [21:16:38]tlvbuf is 010CCC20 [21:16:38]SAM_PROTO_ClearQueue [21:16:38]wFMCommunicate request_size=4 [21:16:38]MH_SAM_APDU [21:16:38]CAPDU: 80 09 00 00 [21:16:38]Write to MH i2c: E2 08 00 3D 03 80 09 00 00 00 00 00 00 B2 [21:16:38]Write i2c OK [21:16:38]MH_I2C_Read... [21:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:38]Read from MH i2c: E2 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: E2 03 00 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: E2 03 00 3D 03 00 90 00 B4 [21:16:38]RAPDU: 90 00 [21:16:38]wFMCommunicate OK [21:16:38]SAM_PROTO_ClearQueue done [21:16:38]KKMCreateOFDPacket [21:16:38]OFDProtocolAddRootSTLVToBuf [21:16:38]FM_MakeSignedData [21:16:38]FM_MakeSignedData [21:16:38]SAM_PROTO_SignData [21:16:38]wFMCommunicate request_size=4 [21:16:38]MH_SAM_APDU [21:16:38]CAPDU: 80 0D 01 02 [21:16:38]Write to MH i2c: E2 08 00 3E 03 80 0D 01 02 00 00 00 00 BA [21:16:38]Write i2c OK [21:16:38]MH_I2C_Read... [21:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:38]Read from MH i2c: E2 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: E2 03 00 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: E2 03 00 3E 03 00 90 00 B5 [21:16:38]RAPDU: 90 00 [21:16:38]wFMCommunicate OK [21:16:38]wFMCommunicate request_size=255 [21:16:38]MH_SAM_APDU [21:16:38]CAPDU: 80 0D 02 02 FA 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 32 33 30 34 37 38 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 4A 6F 6C 6C 79 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 98 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 53 00 00 00 00 07 04 06 00 98 0F 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 34 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 OFD Sender: No OFD packet to send [21:16:39]00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 [21:16:39]Write to MH i2c: E2 02 01 3F 03 80 0D 02 02 FA 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 32 33 30 34 37 38 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 4A 6F 6C 6C 79 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 98 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 53 00 00 00 00 07 04 06 00 98 0F 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 34 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 00 00 1E [21:16:39]Write i2c OK [21:16:39]MH_I2C_Read... [21:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:39]Read from MH i2c: E2 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [21:16:39]RAPDU: 90 00 [21:16:39]wFMCommunicate OK [21:16:39]wFMCommunicate request_size=23 [21:16:39]MH_SAM_APDU [21:16:39]CAPDU: 80 0D 02 02 12 10 04 04 00 38 FA 00 00 35 04 06 00 50 1D 6F F2 7C 5E [21:16:39]Write to MH i2c: E2 1A 00 40 03 80 0D 02 02 12 00 10 04 04 00 38 FA 00 00 35 04 06 00 50 1D 6F F2 7C 5E 00 00 12 [21:16:39]Write i2c OK [21:16:39]MH_I2C_Read... [21:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:39]Read from MH i2c: E2 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [21:16:39]RAPDU: 90 00 [21:16:39]wFMCommunicate OK [21:16:39]wFMCommunicate request_size=4 [21:16:39]MH_SAM_APDU [21:16:39]CAPDU: 80 0D 03 02 [21:16:39]Write to MH i2c: E2 08 00 41 03 80 0D 03 02 00 00 00 00 BF [21:16:39]Write i2c OK [21:16:39]MH_I2C_Read... [21:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 0B 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 0B 00 41 03 00 BB 62 C5 5E 5C 2D 27 6D 90 00 1D [21:16:40]RAPDU: BB 62 C5 5E 5C 2D 27 6D 90 00 [21:16:40]wFMCommunicate OK [21:16:40]SAM_PROTO_SignData done [21:16:40]FM_MakeSignedData done [21:16:40]CreateOFDProtocolMessage [21:16:40]wFMCommunicate request_size=4 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 11 00 00 [21:16:40]Write to MH i2c: E2 08 00 42 03 80 11 00 00 00 00 00 00 BF [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 17 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 17 00 42 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 11 [21:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:40]wFMCommunicate OK [21:16:40]CreateOFDProtocolMessage done [21:16:40]OFDSenderStorePacket 64056 [21:16:40]StoreOFDPacket docnum=64056 [21:16: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 1C 01 00 00 92 D2 14 01 A7 8F 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 32 33 30 34 37 38 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 4A 6F 6C 6C 79 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 98 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 53 00 00 00 00 07 04 06 00 98 0F 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 34 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 38 FA 00 00 35 04 06 00 50 1D 6F F2 7C 5E BB 62 C5 5E 5C 2D 27 6D [21:16:40]CheckFolder [21:16:40]dirname=/storage/ofd_packets [21:16:40]CheckFolder done [21:16:40]ProducePacketName [21:16:40]name=ofd_packets/00064056 [21:16:40]NVStorageSaveData ofd_packets/00064056 [21:16:40]File name is /storage/ofd_packets/00064056 [21:16:40]Write 314 bytes [21:16:40]NVStorageSaveData done [21:16:40]OFDSenderStorePacket done [21:16:40]KKMCreateOFDPacket done [21:16:40]NVStorageSaveData kkm_last_timestamp [21:16:40]File name is /storage/kkm_last_timestamp [21:16:40]Write 4 bytes [21:16:40]NVStorageSaveData done [21:16:40]ExternCall_PrintAddStr [21:16:40]wPrintStart [21:16:40]Write to MH i2c: 01 00 00 43 03 46 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 FF 0F 5B [21:16:40]RasterBufferAndPrint [21:16:40]line Счет N : (3)73596 [21:16:40]line ИНН: 02508201610067 [21:16:40]line Контрольно-Кассовый Чек [21:16:40]line ПРОДАЖА [21:16:40]line Товар: 46230478 [21:16:40]line Сигареты Kiss Jolly [21:16:40]line 17.000 * 118.00 [21:16:40]line = 2006.00 [21:16:40]line НДС 12% НСП 1% [21:16:40]line > о реализуемом товаре [21:16:40]line ИТОГО: 2006.00 [21:16:40]line НСП 1% : 17.75 [21:16:40]line НДС 12% : 213.03 [21:16:40]line Наличными: 2006.00 [21:16:40]line Безнал.: 0.00 [21:16:40]line Место: АЗС № 117 "Партнер Нефть" [21:16:40]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:16:40]line СНО: Общий режим [21:16:40]line Чек 141 04.06.2024 21:16 [21:16:40]line Смена: 374 ФФД: 1.0 [21:16:40]line ЗНМ: 0300000031 [21:16:40]line РНМ: 0000000000092737 [21:16:40]line Версия ККМ: 001 [21:16:40]line ФМ: 0000000000875074 [21:16:40]line ФД: 64056 [21:16:40]line ФПД: 88087362436190 [21:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211636&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64056&fm=88087362436190&tin=02508201610067®Number=0000000000092737&sum=200600 [21:16:40]line 0 [21:16:40]written 0, free lines is 4095 [21:16:40]OFD Sender: Processing packet 64056 [packets to send 14, broken 13] [21:16:40]ProducePacketName [21:16:40]name=ofd_packets/00064056 [21:16:40]OFD Sender: To server: pG, [21:16:40]CommunicateWithHost lk.salyk.kg:30040 [21:16:40]ConnectInit lk.salyk.kg [21:16:40]Connected sock=10 [21:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 1C 01 00 00 92 D2 14 01 A7 8F 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 08 00 34 36 32 33 30 34 37 38 06 04 1B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4B 69 73 73 20 4A 6F 6C 6C 79 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 18 2E 00 00 00 00 13 04 06 00 98 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 53 00 00 00 00 07 04 06 00 98 0F 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 34 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 38 FA 00 00 35 04 06 00 50 1D 6F F2 7C 5E BB 62 C5 5E 5C 2D 27 6D [21:16:40]Write to MH i2c: 01 00 00 6B 03 6E [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 1E 0E A1 [21:16:40]RasterBufferAndPrint [21:16:40]line [21:16:40]line [21:16:40]line [21:16:40]line [21:16:40]line [21:16:40]written 0, free lines is 3673 [21:16:41]MH_Cut [21:16:41]Write to MH i2c: D1 01 00 72 03 01 47 [21:16:41]Write i2c OK [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: D1 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: D1 01 00 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: D1 01 00 72 03 00 46 [21:16:41]Write to MH i2c: 01 00 00 73 03 76 [21:16:41]Write i2c OK [21:16:41]MH_I2C_Read... [21:16: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 79 D6 47 00 BA 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 38 FA 00 00 F4 03 04 00 44 30 5F 66 B6 04 01 00 00 71 90 28 E6 B7 2A 42 3A [21:16:41]CommunicateWithHost err = 0 [21:16:41]CheckOFDResponse [21:16:41]1017 (14) - 77093643461234 [21:16:41]1041 (16) - 0000000000875074 [21:16:41]1040 (4) - 64056 [21:16:41]1012 (4) - 04.06.2024 15:18 [21:16:41]1206 (1) - 0 [21:16:41]OFD Sender: Remove packet 64056 [21:16:41]ProducePacketName [21:16:41]name=ofd_packets/00064056 [21:16:41]NVStorageDeleteData [21:16:41]*** Cut start [21:16:41]*** Partial cut [21:16:41]*** CUTSNS_PIN = 1 [21:16:41]*** CUTSNS_PIN = 0 [21:16:41]*** Brake cut motor [21:16:41]OFD Sender: No OFD packet to send [21:16:42]Read from MH i2c: 01 [21:16:42]MH_I2C_Read... [21:16:42]*** Stop cut motor [21:16:42]*** Cut end [21:16:42]Read from MH i2c: 01 07 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 FF 0F 8B [21:16:42]process_action close_receipt done [21:16:42]requested_data is exist [21:16:42]produce_requested_data [21:16:42]requested_item fm.sn is exist - process it [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 11 00 00 [21:16:42]Write to MH i2c: E2 08 00 74 03 80 11 00 00 00 00 00 00 F1 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 17 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 17 00 74 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 43 [21:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:42]wFMCommunicate OK [21:16:42]requested_item fd.num is exist - process it [21:16:42]SAM_PROTO_GetFieldsCounters [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 13 00 00 [21:16:42]Write to MH i2c: E2 08 00 75 03 80 13 00 00 00 00 00 00 F4 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 62 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 62 00 75 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 38 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [21:16: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 38 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:42]wFMCommunicate OK [21:16:42]SAM_PROTO_GetFieldsCounters done [21:16:42]requested_item shift.num is exist - process it [21:16:42]requested_item shift.opened is exist - process it [21:16:42]req_shift_opened [21:16:42]FM_GetShiftState [21:16:42]SAM_PROTO_GetShiftState [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 13 01 00 [21:16:42]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 0E 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 0E 00 76 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 96 [21:16:42]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:42]wFMCommunicate OK [21:16:42]SAM_PROTO_GetShiftState done [21:16:42]FM_GetShiftState done [21:16:42]req_shift_opened done [21:16:42]requested_item shift.open_date is exist - process it [21:16:42]req_shift_open_date [21:16:42]req_shift_open_date done [21:16:42]produce_requested_data done [21:16:42]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64056,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:16:42]process_action_free close_receipt [21:16:42]json_value_free [21:16:42]json_value_free done [21:16:42]process_json_proto returns [21:16:42]Send response to host [21:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64056,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:16:42]free response buf [21:16:42]execute_script done [21:16:42]execute_script returns [21:16:42]free content buf [21:16:42]Sock 9.Close socket [21:16:42]Sock 9.Thread stoped [21:16:44]accept exits with 7 [21:16:44]New connection [21:16:44]New thread 3067276644 created [21:16:44]Thread 3067133284 joined [21:16:44]Waiting for new connection... [21:16:44] Sock 7.Parse request [21:16:44]Sock 7.Check first char [21:16:44]Sock 7.First char is OK [21:16:44]request: POST /json_proto HTTP/1.0 [21:16:44]Method: POST [21:16:44]URL: /json_proto [21:16:44]Method is POST - this is cgi request [21:16:44]url: /json_proto [21:16:44]query_string will be loaded in cgi processing [21:16:44]execute_cgi json_proto POST (null) [21:16:44]execute_cgi path=json_proto method=POST [21:16:44]POST find Content-Length [21:16:44]Host: 172.17.60.69:8080 [21:16:44]Content-Length: 620 [21:16:44]Content-Type: application/json [21:16:44] [21:16:44]POST finish read [21:16:44]Found Content-Length = 620 [21:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73597", "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" ] } } [21:16:44]execute_script... [21:16:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73597", "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" ] } } [21:16:44]POST & json_proto [21:16:44]process_json_proto [21:16:44]json parsed OK: [21:16:44]protocol is kg_v1.0 [21:16:44]action value=close_receipt [21:16:44]process_action close_receipt [21:16:44]cmd_close_receipt [21:16:44]MH_GetDate [21:16:44]Write to MH i2c: F0 00 00 77 03 69 [21:16:44]Write i2c OK [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: F0 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: F0 09 00 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: F0 09 00 77 03 00 3C 84 5F 66 D2 83 5F 66 11 [21:16:44]GetLastDocTimeStamp 1717535796 [21:16:44]current date 1717535804 [21:16:44]FM_GetShiftState [21:16:44]SAM_PROTO_GetShiftState [21:16:44]wFMCommunicate request_size=4 [21:16:44]MH_SAM_APDU [21:16:44]CAPDU: 80 13 01 00 [21:16:44]Write to MH i2c: E2 08 00 78 03 80 13 01 00 00 00 00 00 F8 [21:16:44]Write i2c OK [21:16:44]MH_I2C_Read... [21:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:44]Read from MH i2c: E2 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: E2 0E 00 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: E2 0E 00 78 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 98 [21:16:44]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:44]wFMCommunicate OK [21:16:44]SAM_PROTO_GetShiftState done [21:16:44]FM_GetShiftState done [21:16:44]opened in 1717459574 [21:16:44]opened+sec_in_day 1717545974 [21:16:44]quantity*price = 14000 [21:16:44]sum+1 = 14001 [21:16:44]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 СНО: Общий режим Чек 142 04.06.2024 21:16 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64057 ФПД: 142986244094341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211644&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64057&fm=142986244094341&tin=02508201610067®Number=0000000000092737&sum=14000 0 [21:16:46]StoreToDocumentArchive [21:16:46]shift 374 fd 64057 [21:16:46]save to /storage/0374/doc_00064057 [21:16:46]save last doc name /storage/0374/doc_00064057 to /storage/kkm_last_doc_name [21:16:46]save OK [21:16:46]Clear old archive folders... [21:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:16:46]tlvbuf is 010EC220 [21:16:46]SAM_PROTO_ClearQueue [21:16:46]wFMCommunicate request_size=4 [21:16:46]MH_SAM_APDU [21:16:46]CAPDU: 80 09 00 00 [21:16:46]Write to MH i2c: E2 08 00 85 03 80 09 00 00 00 00 00 00 FA [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:46]Read from MH i2c: E2 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 85 03 00 90 00 FC [21:16:46]RAPDU: 90 00 [21:16:46]wFMCommunicate OK [21:16:46]SAM_PROTO_ClearQueue done [21:16:46]KKMCreateOFDPacket [21:16:46]OFDProtocolAddRootSTLVToBuf [21:16:46]FM_MakeSignedData [21:16:46]FM_MakeSignedData [21:16:46]SAM_PROTO_SignData [21:16:46]wFMCommunicate request_size=4 [21:16:46]MH_SAM_APDU [21:16:46]CAPDU: 80 0D 01 02 [21:16:46]Write to MH i2c: E2 08 00 86 03 80 0D 01 02 00 00 00 00 02 [21:16:46]Write i2c OK [21:16:46]MH_I2C_Read... [21:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:46]Read from MH i2c: E2 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 [21:16:46]MH_I2C_Read... [21:16:46]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [21:16:46]RAPDU: 90 00 [21:16:46]wFMCommunicate OK [21:16:46]wFMCommunicate request_size=255 [21:16:46]MH_SAM_APDU [21:16:46]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 OFD Sender: No OFD packet to send [21:16:47]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 8E 00 00 00 F4 03 04 00 3C 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 [21:16:47]Write to MH i2c: E2 02 01 87 03 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 8E 00 00 00 F4 03 04 00 3C 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 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 84 [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:47]Read from MH i2c: E2 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [21:16:47]RAPDU: 90 00 [21:16:47]wFMCommunicate OK [21:16:47]wFMCommunicate request_size=32 [21:16:47]MH_SAM_APDU [21:16:47]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 37 34 10 04 04 00 39 FA 00 00 35 04 06 00 82 0B 94 49 79 85 [21:16:47]Write to MH i2c: E2 23 00 88 03 80 0D 02 02 1B 00 30 30 30 38 37 35 30 37 34 10 04 04 00 39 FA 00 00 35 04 06 00 82 0B 94 49 79 85 00 00 FC [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:47]Read from MH i2c: E2 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [21:16:48]RAPDU: 90 00 [21:16:48]wFMCommunicate OK [21:16:48]wFMCommunicate request_size=4 [21:16:48]MH_SAM_APDU [21:16:48]CAPDU: 80 0D 03 02 [21:16:48]Write to MH i2c: E2 08 00 89 03 80 0D 03 02 00 00 00 00 07 [21:16:48]Write i2c OK [21:16:48]MH_I2C_Read... [21:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:48]Read from MH i2c: E2 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: E2 0B 00 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: E2 0B 00 89 03 00 7F 37 56 44 0B E7 1B 9D 90 00 02 [21:16:48]RAPDU: 7F 37 56 44 0B E7 1B 9D 90 00 [21:16:48]wFMCommunicate OK [21:16:48]SAM_PROTO_SignData done [21:16:48]FM_MakeSignedData done [21:16:48]CreateOFDProtocolMessage [21:16:48]wFMCommunicate request_size=4 [21:16:48]MH_SAM_APDU [21:16:48]CAPDU: 80 11 00 00 [21:16:48]Write to MH i2c: E2 08 00 8A 03 80 11 00 00 00 00 00 00 07 [21:16:48]Write i2c OK [21:16:48]MH_I2C_Read... [21:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:48]Read from MH i2c: E2 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: E2 17 00 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: E2 17 00 8A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 59 [21:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:48]wFMCommunicate OK [21:16:48]CreateOFDProtocolMessage done [21:16:48]OFDSenderStorePacket 64057 [21:16:48]StoreOFDPacket docnum=64057 [21:16:48]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 32 B7 1D 01 AA F2 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 8E 00 00 00 F4 03 04 00 3C 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 39 FA 00 00 35 04 06 00 82 0B 94 49 79 85 7F 37 56 44 0B E7 1B 9D [21:16:48]CheckFolder [21:16:48]dirname=/storage/ofd_packets [21:16:48]CheckFolder done [21:16:48]ProducePacketName [21:16:48]name=ofd_packets/00064057 [21:16:48]NVStorageSaveData ofd_packets/00064057 [21:16:48]File name is /storage/ofd_packets/00064057 [21:16:48]Write 323 bytes [21:16:48]NVStorageSaveData done [21:16:48]OFDSenderStorePacket done [21:16:48]KKMCreateOFDPacket done [21:16:48]NVStorageSaveData kkm_last_timestamp [21:16:48]File name is /storage/kkm_last_timestamp [21:16:48]Write 4 bytes [21:16:48]NVStorageSaveData done [21:16:48]ExternCall_PrintAddStr [21:16:48]wPrintStart [21:16:48]Write to MH i2c: 01 00 00 8B 03 8E [21:16:48]Write i2c OK [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: 01 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: 01 07 00 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 FF 0F A3 [21:16:48]RasterBufferAndPrint [21:16:48]line Счет N : (3)73597 [21:16:48]line ИНН: 02508201610067 [21:16:48]line Контрольно-Кассовый Чек [21:16:48]line ПРОДАЖА [21:16:48]line Товар: 48743570 [21:16:48]line Сигареты Winston XStyle Blue [21:16:48]line 1.000 * 140.00 [21:16:48]line = 140.00 [21:16:48]line НДС 12% НСП 1% [21:16:48]line > о реализуемом товаре [21:16:48]line ИТОГО: 140.00 [21:16:48]line НСП 1% : 1.24 [21:16:48]line НДС 12% : 14.87 [21:16:48]line Наличными: 140.00 [21:16:48]line Безнал.: 0.00 [21:16:48]line Место: АЗС № 117 "Партнер Нефть" [21:16:48]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:16:48]line СНО: Общий режим [21:16:48]line Чек 142 04.06.2024 21:16 [21:16:48]line Смена: 374 ФФД: 1.0 [21:16:48]line ЗНМ: 0300000031 [21:16:48]line РНМ: 0000000000092737 [21:16:48]line Версия ККМ: 001 [21:16:48]line ФМ: 0000000000875074 [21:16:48]line ФД: 64057 [21:16:48]line ФПД: 142986244094341 [21:16:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211644&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64057&fm=142986244094341&tin=02508201610067®Number=0000000000092737&sum=14000 [21:16:48]line 0 [21:16:48]OFD Sender: Processing packet 64057 [packets to send 14, broken 13] [21:16:48]ProducePacketName [21:16:48]name=ofd_packets/00064057 [21:16:48]OFD Sender: To server: pG, [21:16:48]CommunicateWithHost lk.salyk.kg:30040 [21:16:48]ConnectInit lk.salyk.kg [21:16:48]written 0, free lines is 4095 [21:16:48]Connected sock=10 [21:16:48]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 32 B7 1D 01 AA F2 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 8E 00 00 00 F4 03 04 00 3C 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 Write to MH i2c: 35 01 30 00 37 00 34 B3 10 03 04 B6 04 [21:16:49]00 39 FA 00 00 35 04 06 00 82 Write i2c OK [21:16:49]0B MH_I2C_Read... [21:16:49]94 Read from MH i2c: 49 01 79 [21:16:49]85 MH_I2C_Read... [21:16:49]7F 37 56 44 0B E7 1B 9D [21:16:49]Read from MH i2c: 01 07 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 27 0E F2 [21:16:49]RasterBufferAndPrint [21:16:49]line [21:16:49]line [21:16:49]line [21:16:49]line [21:16:49]line [21:16:49]written 0, free lines is 3728 [21:16:49]MH_Cut [21:16:49]Write to MH i2c: D1 01 00 BA 03 01 8F [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: D1 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: D1 01 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: D1 01 00 BA 03 00 8E [21:16:49]Write to MH i2c: 01 00 00 BB 03 BE [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 4F 00 00 00 1C FE 47 00 92 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 39 FA 00 00 F4 03 04 00 4C 30 5F 66 B6 04 01 00 00 8D A0 84 D2 33 A2 77 30 [21:16:49]CommunicateWithHost err = 0 [21:16:49]CheckOFDResponse [21:16:49]1017 (14) - 77093643461234 [21:16:49]1041 (16) - 0000000000875074 [21:16:49]1040 (4) - 64057 [21:16:49]*** Cut start [21:16:49]1012 (4) - 04.06.2024 15:18 [21:16:49]1206 (1) - 0 [21:16:49]*** Partial cut [21:16:49]OFD Sender: Remove packet 64057 [21:16:49]ProducePacketName [21:16:49]*** CUTSNS_PIN = 1 [21:16:49]name=ofd_packets/00064057 [21:16:49]NVStorageDeleteData [21:16:49]*** CUTSNS_PIN = 0 [21:16:49]*** Brake cut motor [21:16:50]OFD Sender: No OFD packet to send [21:16:50]Read from MH i2c: 01 [21:16:50]MH_I2C_Read... [21:16:50]*** Stop cut motor [21:16:50]*** Cut end [21:16:50]Read from MH i2c: 01 07 00 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: 01 07 00 BB 03 00 00 00 00 00 FF 0F D3 [21:16:50]process_action close_receipt done [21:16:50]requested_data is exist [21:16:50]produce_requested_data [21:16:50]requested_item fm.sn is exist - process it [21:16:50]wFMCommunicate request_size=4 [21:16:50]MH_SAM_APDU [21:16:50]CAPDU: 80 11 00 00 [21:16:50]Write to MH i2c: E2 08 00 BC 03 80 11 00 00 00 00 00 00 39 [21:16:50]Write i2c OK [21:16:50]MH_I2C_Read... [21:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:50]Read from MH i2c: E2 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: E2 17 00 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: E2 17 00 BC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 8B [21:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:50]wFMCommunicate OK [21:16:50]requested_item fd.num is exist - process it [21:16:50]SAM_PROTO_GetFieldsCounters [21:16:50]wFMCommunicate request_size=4 [21:16:50]MH_SAM_APDU [21:16:50]CAPDU: 80 13 00 00 [21:16:50]Write to MH i2c: E2 08 00 BD 03 80 13 00 00 00 00 00 00 3C [21:16:50]Write i2c OK [21:16:50]MH_I2C_Read... [21:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:50]Read from MH i2c: E2 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: E2 62 00 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: E2 62 00 BD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 39 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [21:16:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 39 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:50]wFMCommunicate OK [21:16:50]SAM_PROTO_GetFieldsCounters done [21:16:50]requested_item shift.num is exist - process it [21:16:50]requested_item shift.opened is exist - process it [21:16:50]req_shift_opened [21:16:50]FM_GetShiftState [21:16:50]SAM_PROTO_GetShiftState [21:16:50]wFMCommunicate request_size=4 [21:16:50]MH_SAM_APDU [21:16:50]CAPDU: 80 13 01 00 [21:16:50]Write to MH i2c: E2 08 00 BE 03 80 13 01 00 00 00 00 00 3E [21:16:50]Write i2c OK [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: E2 [21:16:50]MH_I2C_Read... [21:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:50]Read from MH i2c: E2 0E 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 0E 00 BE 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 DE [21:16:51]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:51]wFMCommunicate OK [21:16:51]SAM_PROTO_GetShiftState done [21:16:51]FM_GetShiftState done [21:16:51]req_shift_opened done [21:16:51]requested_item shift.open_date is exist - process it [21:16:51]req_shift_open_date [21:16:51]req_shift_open_date done [21:16:51]produce_requested_data done [21:16:51]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64057,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:16:51]process_action_free close_receipt [21:16:51]json_value_free [21:16:51]json_value_free done [21:16:51]process_json_proto returns [21:16:51]Send response to host [21:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64057,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:16:51]free response buf [21:16:51]execute_script done [21:16:51]execute_script returns [21:16:51]free content buf [21:16:51]Sock 7.Close socket [21:16:51]Sock 7.Thread stoped [21:16:52]accept exits with 9 [21:16:52]New connection [21:16:52]New thread 3067133284 created [21:16:52]Thread 3067276644 joined [21:16:52]Waiting for new connection... [21:16:52] Sock 9.Parse request [21:16:52]Sock 9.Check first char [21:16:52]Sock 9.First char is OK [21:16:52]request: POST /json_proto HTTP/1.0 [21:16:52]Method: POST [21:16:52]URL: /json_proto [21:16:52]Method is POST - this is cgi request [21:16:52]url: /json_proto [21:16:52]query_string will be loaded in cgi processing [21:16:52]execute_cgi json_proto POST (null) [21:16:52]execute_cgi path=json_proto method=POST [21:16:52]POST find Content-Length [21:16:52]Host: 172.17.60.69:8080 [21:16:52]Content-Length: 791 [21:16:52]Content-Type: application/json [21:16:52] [21:16:52]POST finish read [21:16:52]Found Content-Length = 791 [21:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73598", "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 }]} ], "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" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:52]execute_script... [21:16: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)73598", "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 }]} ], "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" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:52]POST & json_proto [21:16:52]process_json_proto [21:16:52]json parsed OK: [21:16:52]protocol is kg_v1.0 [21:16:52]action value=close_receipt [21:16:52]process_action close_receipt [21:16:52]cmd_close_receipt [21:16:52]MH_GetDate [21:16:52]Write to MH i2c: F0 00 00 BF 03 B1 [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: F0 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: F0 09 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: F0 09 00 BF 03 00 44 84 5F 66 D2 83 5F 66 61 [21:16:52]GetLastDocTimeStamp 1717535804 [21:16:52]current date 1717535812 [21:16:52]FM_GetShiftState [21:16:52]SAM_PROTO_GetShiftState [21:16:52]wFMCommunicate request_size=4 [21:16:52]MH_SAM_APDU [21:16:52]CAPDU: 80 13 01 00 [21:16:52]Write to MH i2c: E2 08 00 C0 03 80 13 01 00 00 00 00 00 40 [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:52]Read from MH i2c: E2 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 0E 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 0E 00 C0 03 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 E0 [21:16:52]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:52]wFMCommunicate OK [21:16:52]SAM_PROTO_GetShiftState done [21:16:52]FM_GetShiftState done [21:16:52]opened in 1717459574 [21:16:52]opened+sec_in_day 1717545974 [21:16:52]quantity*price = 4500 [21:16:52]sum+1 = 4501 [21:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 143 04.06.2024 21:16 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64058 ФПД: 214417255893402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211652&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64058&fm=214417255893402&tin=02508201610067®Number=0000000000092737&sum=4500 0 [21:16:54]StoreToDocumentArchive [21:16:54]shift 374 fd 64058 [21:16:54]save to /storage/0374/doc_00064058 [21:16:54]save last doc name /storage/0374/doc_00064058 to /storage/kkm_last_doc_name [21:16:54]save OK [21:16:54]Clear old archive folders... [21:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=270 [21:16:54]tlvbuf is 00FC9050 [21:16:54]SAM_PROTO_ClearQueue [21:16:54]wFMCommunicate request_size=4 [21:16:54]MH_SAM_APDU [21:16:54]CAPDU: 80 09 00 00 [21:16:54]Write to MH i2c: E2 08 00 CD 03 80 09 00 00 00 00 00 00 42 [21:16:54]Write i2c OK [21:16:54]MH_I2C_Read... [21:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:54]Read from MH i2c: E2 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 03 00 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 03 00 CD 03 00 90 00 44 [21:16:54]RAPDU: 90 00 [21:16:54]wFMCommunicate OK [21:16:54]SAM_PROTO_ClearQueue done [21:16:54]KKMCreateOFDPacket [21:16:54]OFDProtocolAddRootSTLVToBuf [21:16:54]FM_MakeSignedData [21:16:54]FM_MakeSignedData [21:16:54]SAM_PROTO_SignData [21:16:54]wFMCommunicate request_size=4 [21:16:54]MH_SAM_APDU [21:16:54]CAPDU: 80 0D 01 02 [21:16:54]Write to MH i2c: E2 08 00 CE 03 80 0D 01 02 00 00 00 00 4A [21:16:54]Write i2c OK [21:16:54]MH_I2C_Read... [21:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:54]Read from MH i2c: E2 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 03 00 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 03 00 CE 03 00 90 00 45 [21:16:54]RAPDU: 90 00 [21:16:54]wFMCommunicate OK [21:16:54]wFMCommunicate request_size=255 [21:16:54]MH_SAM_APDU [21:16:54]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 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 44 84 5F 66 0E 04 04 00 76 01 00 00 OFD Sender: No OFD packet to send [21:16:55]B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [21:16:55]Write to MH i2c: E2 02 01 CF 03 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 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 44 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 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 CF [21:16:55]Write i2c OK [21:16:55]MH_I2C_Read... [21:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:55]Read from MH i2c: E2 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 [21:16:55]MH_I2C_Read... [21:16:55]Read from MH i2c: E2 03 00 CF 03 00 90 00 46 [21:16:55]RAPDU: 90 00 [21:16:56]wFMCommunicate OK [21:16:56]wFMCommunicate request_size=29 [21:16:56]MH_SAM_APDU [21:16:56]CAPDU: 80 0D 02 02 18 38 37 35 30 37 34 10 04 04 00 3A FA 00 00 35 04 06 00 C3 02 E8 5F 09 9A [21:16:56]Write to MH i2c: E2 20 00 D0 03 80 0D 02 02 18 00 38 37 35 30 37 34 10 04 04 00 3A FA 00 00 35 04 06 00 C3 02 E8 5F 09 9A 00 00 F6 [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:56]Read from MH i2c: E2 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 03 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [21:16:56]RAPDU: 90 00 [21:16:56]wFMCommunicate OK [21:16:56]wFMCommunicate request_size=4 [21:16:56]MH_SAM_APDU [21:16:56]CAPDU: 80 0D 03 02 [21:16:56]Write to MH i2c: E2 08 00 D1 03 80 0D 03 02 00 00 00 00 4F [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:56]Read from MH i2c: E2 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 0B 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 0B 00 D1 03 00 9E 70 2F 9A 91 34 39 D2 90 00 F7 [21:16:56]RAPDU: 9E 70 2F 9A 91 34 39 D2 90 00 [21:16:56]wFMCommunicate OK [21:16:56]SAM_PROTO_SignData done [21:16:56]FM_MakeSignedData done [21:16:56]CreateOFDProtocolMessage [21:16:56]wFMCommunicate request_size=4 [21:16:56]MH_SAM_APDU [21:16:56]CAPDU: 80 11 00 00 [21:16:56]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:56]Read from MH i2c: E2 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 17 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 A1 [21: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 [21:16:56]wFMCommunicate OK [21:16:56]CreateOFDProtocolMessage done [21:16:56]OFDSenderStorePacket 64058 [21:16:56]StoreOFDPacket docnum=64058 [21:16: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 22 01 00 00 9E 9B 1A 01 47 C2 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 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 44 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3A FA 00 00 35 04 06 00 C3 02 E8 5F 09 9A 9E 70 2F 9A 91 34 39 D2 [21:16:56]CheckFolder [21:16:56]dirname=/storage/ofd_packets [21:16:56]CheckFolder done [21:16:56]ProducePacketName [21:16:56]name=ofd_packets/00064058 [21:16:56]NVStorageSaveData ofd_packets/00064058 [21:16:56]File name is /storage/ofd_packets/00064058 [21:16:56]Write 320 bytes [21:16:56]NVStorageSaveData done [21:16:56]OFDSenderStorePacket done [21:16:56]KKMCreateOFDPacket done [21:16:56]NVStorageSaveData kkm_last_timestamp [21:16:56]File name is /storage/kkm_last_timestamp [21:16:56]Write 4 bytes [21:16:56]NVStorageSaveData done [21:16:56]ExternCall_PrintAddStr [21:16:56]wPrintStart [21:16:56]Write to MH i2c: 01 00 00 D3 03 D6 [21:16:56]OFD Sender: Processing packet 64058 [packets to send 14, broken 13] [21:16:56]ProducePacketName [21:16:56]name=ofd_packets/00064058 [21:16:56]OFD Sender: To server: pG, [21:16:56]CommunicateWithHost lk.salyk.kg:30040 [21:16:56]ConnectInit lk.salyk.kg [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: 01 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: 01 07 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 FF 0F EB [21:16:56]RasterBufferAndPrint [21:16:56]line Счет N : (3)73598 [21:16:56]line ИНН: 02508201610067 [21:16:56]line Контрольно-Кассовый Чек [21:16:56]line ПРОДАЖА [21:16:56]line Товар: 42124016 [21:16:56]line Eclipse Ледяная вишня [21:16:56]line 1.000 * 45.00 [21:16:56]line = 45.00 [21:16:56]line НДС 12% НСП 1% [21:16:56]line > о реализуемом товаре [21:16:56]line ИТОГО: 45.00 [21:16:56]line НСП 1% : 0.40 [21:16:56]line НДС 12% : 4.78 [21:16:56]line Наличными: 0.00 [21:16:56]line Безнал.: 45.00 [21:16:56]line Место: АЗС № 117 "Партнер Нефть" [21:16:56]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:16:56]line СНО: Общий режим [21:16:56]line Чек 143 04.06.2024 21:16 [21:16:56]line Смена: 374 ФФД: 1.0 [21:16:56]line ЗНМ: 0300000031 [21:16:56]line РНМ: 0000000000092737 [21:16:56]line Версия ККМ: 001 [21:16:56]line Платежная система: O! деньги [21:16:56]line ФМ: 0000000000875074 [21:16:56]line ФД: 64058 [21:16:56]line ФПД: 214417255893402 [21:16:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211652&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64058&fm=214417255893402&tin=02508201610067®Number=0000000000092737&sum=4500 [21:16:56]line 0 [21:16:56]written 0, free lines is 4095 [21:16:56]Connected sock=10 [21:16: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 22 01 00 00 9E 9B 1A 01 47 C2 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 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 44 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3A FA 00 00 35 04 06 00 Write to MH i2c: C3 01 02 00 E8 00 5F 09 9A 9E 70 2F 9A 91 34 FD 39 03 D2 00 [21:16:57] [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: 01 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: 01 07 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: 01 07 00 FD 03 00 00 00 00 00 B4 0D C8 [21:16:57]RasterBufferAndPrint [21:16:57]line [21:16:57]line [21:16:57]line [21:16:57]line [21:16:57]line [21:16:57]written 0, free lines is 3569 [21:16:57]MH_Cut [21:16:57]Write to MH i2c: D1 01 00 04 04 01 DA [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: D1 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: D1 01 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: D1 01 00 04 04 00 D9 [21:16:57]Write to MH i2c: 01 00 00 05 04 09 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]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 8A 46 47 00 1C 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3A FA 00 00 F4 03 04 00 54 30 5F 66 B6 04 01 00 00 84 A6 E4 35 FC 09 F6 31 [21:16:57]CommunicateWithHost err = 0 [21:16:57]CheckOFDResponse [21:16:57]1017 (14) - 77093643461234 [21:16:57]1041 (16) - 0000000000875074 [21:16:57]1040 (4) - 64058 [21:16:57]1012 (4) - 04.06.2024 15:18 [21:16:57]1206 (1) - 0 [21:16:57]OFD Sender: Remove packet 64058 [21:16:57]ProducePacketName [21:16:57]name=ofd_packets/00064058 [21:16:57]NVStorageDeleteData [21:16:57]*** Cut start [21:16:57]*** Partial cut [21:16:57]*** CUTSNS_PIN = 1 [21:16:57]*** CUTSNS_PIN = 0 [21:16:58]OFD Sender: No OFD packet to send [21:16:58]*** Brake cut motor [21:16:58]Read from MH i2c: 01 [21:16:58]MH_I2C_Read... [21:16:58]*** Stop cut motor [21:16:58]*** Cut end [21:16:58]Read from MH i2c: 01 07 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: 01 07 00 05 04 00 00 00 00 00 FF 0F 1E [21:16:58]process_action close_receipt done [21:16:58]requested_data is exist [21:16:58]produce_requested_data [21:16:58]requested_item fm.sn is exist - process it [21:16:58]wFMCommunicate request_size=4 [21:16:58]MH_SAM_APDU [21:16:58]CAPDU: 80 11 00 00 [21:16:58]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:58]Read from MH i2c: E2 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 17 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D6 [21:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:16:58]wFMCommunicate OK [21:16:58]requested_item fd.num is exist - process it [21:16:58]SAM_PROTO_GetFieldsCounters [21:16:58]wFMCommunicate request_size=4 [21:16:58]MH_SAM_APDU [21:16:58]CAPDU: 80 13 00 00 [21:16:58]Write to MH i2c: E2 08 00 07 04 80 13 00 00 00 00 00 00 87 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:58]Read from MH i2c: E2 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 62 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: E2 62 00 07 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3A FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [21:16: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 3A FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:59]wFMCommunicate OK [21:16:59]SAM_PROTO_GetFieldsCounters done [21:16:59]requested_item shift.num is exist - process it [21:16:59]requested_item shift.opened is exist - process it [21:16:59]req_shift_opened [21:16:59]FM_GetShiftState [21:16:59]SAM_PROTO_GetShiftState [21:16:59]wFMCommunicate request_size=4 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 13 01 00 [21:16:59]Write to MH i2c: E2 08 00 08 04 80 13 01 00 00 00 00 00 89 [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 0E 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 0E 00 08 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 29 [21:16:59]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:16:59]wFMCommunicate OK [21:16:59]SAM_PROTO_GetShiftState done [21:16:59]FM_GetShiftState done [21:16:59]req_shift_opened done [21:16:59]requested_item shift.open_date is exist - process it [21:16:59]req_shift_open_date [21:16:59]req_shift_open_date done [21:16:59]produce_requested_data done [21:16:59]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64058,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:16:59]process_action_free close_receipt [21:16:59]json_value_free [21:16:59]json_value_free done [21:16:59]process_json_proto returns [21:16:59]Send response to host [21:16:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64058,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:16:59]free response buf [21:16:59]execute_script done [21:16:59]execute_script returns [21:16:59]free content buf [21:16:59]Sock 9.Close socket [21:16:59]Sock 9.Thread stoped [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:25]accept exits with 8 [21:17:25]New connection [21:17:25]New thread 3067276644 created [21:17:25]Thread 3067133284 joined [21:17:25]Waiting for new connection... [21:17:25] Sock 8.Parse request [21:17:25]Sock 8.Check first char [21:17:25]Sock 8.First char is OK [21:17:25]request: POST /json_proto HTTP/1.0 [21:17:25]Method: POST [21:17:25]URL: /json_proto [21:17:25]Method is POST - this is cgi request [21:17:25]url: /json_proto [21:17:25]query_string will be loaded in cgi processing [21:17:25]execute_cgi json_proto POST (null) [21:17:25]execute_cgi path=json_proto method=POST [21:17:25]POST find Content-Length [21:17:25]Host: 172.17.60.69:8080 [21:17:25]Content-Length: 980 [21:17:25]Content-Type: application/json [21:17:25] [21:17:25]POST finish read [21:17:25]Found Content-Length = 980 [21:17:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64046, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73585", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "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": "64046" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:25]execute_script... [21:17:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 64046, "base_FM": "0000000000875074", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73585", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "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": "64046" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:25]POST & json_proto [21:17:25]process_json_proto [21:17:25]json parsed OK: [21:17:25]protocol is kg_v1.0 [21:17:25]action value=close_receipt [21:17:25]process_action close_receipt [21:17:25]cmd_close_receipt [21:17:25]MH_GetDate [21:17:25]Write to MH i2c: F0 00 00 09 04 FC [21:17:25]Write i2c OK [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: F0 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: F0 09 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: F0 09 00 09 04 00 65 84 5F 66 D2 83 5F 66 CD [21:17:25]GetLastDocTimeStamp 1717535812 [21:17:25]current date 1717535845 [21:17:25]FM_GetShiftState [21:17:25]SAM_PROTO_GetShiftState [21:17:25]wFMCommunicate request_size=4 [21:17:25]MH_SAM_APDU [21:17:25]CAPDU: 80 13 01 00 [21:17:25]Write to MH i2c: E2 08 00 0A 04 80 13 01 00 00 00 00 00 8B [21:17:25]Write i2c OK [21:17:25]MH_I2C_Read... [21:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:25]Read from MH i2c: E2 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 0E 00 [21:17:25]MH_I2C_Read... [21:17:25]Read from MH i2c: E2 0E 00 0A 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 2B [21:17:25]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:17:25]wFMCommunicate OK [21:17:25]SAM_PROTO_GetShiftState done [21:17:25]FM_GetShiftState done [21:17:25]opened in 1717459574 [21:17:25]opened+sec_in_day 1717545974 [21:17:25]quantity*price = 9500 [21:17:25]sum+1 = 9501 [21:17:25]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 СНО: Общий режим Чек 144 04.06.2024 21:17 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФД осн.: 64046 ФМ осн.: 0000000000875074 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64059 ФПД: 226004174439728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211725&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64059&fm=226004174439728&tin=02508201610067®Number=0000000000092737&sum=9500 64046 [21:17:27]StoreToDocumentArchive [21:17:27]shift 374 fd 64059 [21:17:27]save to /storage/0374/doc_00064059 [21:17:27]save last doc name /storage/0374/doc_00064059 to /storage/kkm_last_doc_name [21:17:27]save OK [21:17:27]Clear old archive folders... [21:17:27]ProcessDocumentItem done err = 0, tmpTLVsize=335 [21:17:27]tlvbuf is 00FA0190 [21:17:27]SAM_PROTO_ClearQueue [21:17:27]wFMCommunicate request_size=4 [21:17:27]MH_SAM_APDU [21:17:27]CAPDU: 80 09 00 00 [21:17:27]Write to MH i2c: E2 08 00 19 04 80 09 00 00 00 00 00 00 8F [21:17:27]Write i2c OK [21:17:27]MH_I2C_Read... [21:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:27]Read from MH i2c: E2 [21:17:27]MH_I2C_Read... [21:17:27]Read from MH i2c: E2 03 00 [21:17:27]MH_I2C_Read... [21:17:27]Read from MH i2c: E2 03 00 19 04 00 90 00 91 [21:17:27]RAPDU: 90 00 [21:17:27]wFMCommunicate OK [21:17:27]SAM_PROTO_ClearQueue done [21:17:27]KKMCreateOFDPacket [21:17:27]OFDProtocolAddRootSTLVToBuf [21:17:27]FM_MakeSignedData [21:17:27]FM_MakeSignedData [21:17:27]SAM_PROTO_SignData [21:17:27]wFMCommunicate request_size=4 [21:17:27]MH_SAM_APDU [21:17:27]CAPDU: 80 0D 01 02 [21:17:27]Write to MH i2c: E2 08 00 1A 04 80 0D 01 02 00 00 00 00 97 [21:17:28]Write i2c OK [21:17:28]MH_I2C_Read... [21:17:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:28]Read from MH i2c: E2 [21:17:28]MH_I2C_Read... [21:17:28]Read from MH i2c: E2 03 00 [21:17:28]MH_I2C_Read... [21:17:28]Read from MH i2c: E2 03 00 1A 04 00 90 00 92 [21:17:28]RAPDU: 90 00 [21:17:28]wFMCommunicate OK [21:17:28]wFMCommunicate request_size=255 [21:17:28]MH_SAM_APDU [21:17:28]CAPDU: 80 0D 02 02 FA 03 00 4F 01 1E 04 01 00 02 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 OFD Sender: No OFD packet to send [21:17:28]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 90 00 00 00 F4 03 04 00 65 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 [21:17:28]Write to MH i2c: E2 02 01 1B 04 80 0D 02 02 FA 00 03 00 4F 01 1E 04 01 00 02 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 90 00 00 00 F4 03 04 00 65 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 00 00 80 [21:17:28]Write i2c OK [21:17:28]MH_I2C_Read... [21:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:28]Read from MH i2c: E2 [21:17:28]MH_I2C_Read... [21:17:28]Read from MH i2c: E2 03 00 [21:17:28]MH_I2C_Read... [21:17:28]Read from MH i2c: E2 03 00 1B 04 00 90 00 93 [21:17:28]RAPDU: 90 00 [21:17:28]wFMCommunicate OK [21:17:28]wFMCommunicate request_size=94 [21:17:28]MH_SAM_APDU [21:17:28]CAPDU: 80 0D 02 02 59 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 2E 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 3B FA 00 00 35 04 06 00 CD 8C B2 89 05 30 [21:17:29]Write to MH i2c: E2 61 00 1C 04 80 0D 02 02 59 00 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 2E 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 3B FA 00 00 35 04 06 00 CD 8C B2 89 05 30 00 00 D6 [21:17:29]Write i2c OK [21:17:29]MH_I2C_Read... [21:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:29]Read from MH i2c: E2 [21:17:29]MH_I2C_Read... [21:17:29]Read from MH i2c: E2 03 00 [21:17:29]MH_I2C_Read... [21:17:29]Read from MH i2c: E2 03 00 1C 04 00 90 00 94 [21:17:29]RAPDU: 90 00 [21:17:29]wFMCommunicate OK [21:17:29]wFMCommunicate request_size=4 [21:17:29]MH_SAM_APDU [21:17:29]CAPDU: 80 0D 03 02 [21:17:29]Write to MH i2c: E2 08 00 1D 04 80 0D 03 02 00 00 00 00 9C [21:17:29]Write i2c OK [21:17:29]MH_I2C_Read... [21:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:29]Read from MH i2c: E2 [21:17:29]MH_I2C_Read... [21:17:29]Read from MH i2c: E2 0B 00 [21:17:29]MH_I2C_Read... [21:17:29]Read from MH i2c: E2 0B 00 1D 04 00 97 23 AE B2 23 B5 00 75 90 00 04 [21:17:29]RAPDU: 97 23 AE B2 23 B5 00 75 90 00 [21:17:29]wFMCommunicate OK [21:17:29]SAM_PROTO_SignData done [21:17:29]FM_MakeSignedData done [21:17:29]CreateOFDProtocolMessage [21:17:29]wFMCommunicate request_size=4 [21:17:29]MH_SAM_APDU [21:17:29]CAPDU: 80 11 00 00 [21:17:29]Write to MH i2c: E2 08 00 1E 04 80 11 00 00 00 00 00 00 9C [21:17:29]Write i2c OK [21:17:29]MH_I2C_Read... [21:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:29]Read from MH i2c: E2 [21:17:29]MH_I2C_Read... [21:17:29]Read from MH i2c: E2 17 00 [21:17:29]MH_I2C_Read... [21:17:29]Read from MH i2c: E2 17 00 1E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 EE [21:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:17:29]wFMCommunicate OK [21:17:29]CreateOFDProtocolMessage done [21:17:29]OFDSenderStorePacket 64059 [21:17:29]StoreOFDPacket docnum=64059 [21:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 63 01 00 00 DC 7C 5B 01 08 B2 5A 03 01 00 03 00 4F 01 1E 04 01 00 02 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 90 00 00 00 F4 03 04 00 65 84 5F 66 0E 04 04 00 76 01 00 00 B9 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 2E 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 3B FA 00 00 35 04 06 00 CD 8C B2 89 05 30 97 23 AE B2 23 B5 00 75 [21:17:29]CheckFolder [21:17:29]dirname=/storage/ofd_packets [21:17:29]CheckFolder done [21:17:29]ProducePacketName [21:17:29]name=ofd_packets/00064059 [21:17:29]NVStorageSaveData ofd_packets/00064059 [21:17:29]File name is /storage/ofd_packets/00064059 [21:17:29]Write 385 bytes [21:17:29]NVStorageSaveData done [21:17:29]OFDSenderStorePacket done [21:17:29]KKMCreateOFDPacket done [21:17:29]NVStorageSaveData kkm_last_timestamp [21:17:29]File name is /storage/kkm_last_timestamp [21:17:29]Write 4 bytes [21:17:29]NVStorageSaveData done [21:17:29]ExternCall_PrintAddStr [21:17:29]wPrintStart [21:17:29]Write to MH i2c: 01 00 00 1F 04 23 [21:17:29]Write i2c OK [21:17:29]MH_I2C_Read... [21:17:29]Read from MH i2c: 01 [21:17:29]MH_I2C_Read... [21:17:29]Read from MH i2c: 01 07 00 [21:17:29]MH_I2C_Read... [21:17:29]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 FF 0F 38 [21:17:29]RasterBufferAndPrint [21:17:29]line Счет N : (3)73585 [21:17:29]line ИНН: 02508201610067 [21:17:29]line Контрольно-Кассовый Чек [21:17:29]line ВОЗВРАТ ПРОДАЖИ [21:17:29]line Товар: 4700000481989 [21:17:29]line Напиток энерг Nitro киви-мангостин 0,45 [21:17:29]line 1.000 * 95.00 [21:17:29]line = 95.00 [21:17:29]line НДС 12% НСП 1% [21:17:29]line > о реализуемом товаре [21:17:29]line ИТОГО: 95.00 [21:17:29]line НСП 1% : 0.84 [21:17:29]line НДС 12% : 10.09 [21:17:29]line Наличными: 0.00 [21:17:29]line Безнал.: 95.00 [21:17:29]line Место: АЗС № 117 "Партнер Нефть" [21:17:29]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:17:29]line СНО: Общий режим [21:17:29]line Чек 144 04.06.2024 21:17 [21:17:29]line Смена: 374 ФФД: 1.0 [21:17:29]line ЗНМ: 0300000031 [21:17:29]line РНМ: 0000000000092737 [21:17:29]line Версия ККМ: 001 [21:17:29]line ФД осн.: 64046 [21:17:29]line ФМ осн.: 0000000000875074 [21:17:29]line Платежная система: АКБ Кыргызстан [21:17:29]line ФМ: 0000000000875074 [21:17:29]line ФД: 64059 [21:17:29]line ФПД: 226004174439728 [21:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211725&type=2&operation_type=1&fn_number=0000000000875074&fd_number=64059&fm=226004174439728&tin=02508201610067®Number=0000000000092737&sum=9500 [21:17:29]OFD Sender: Processing packet 64059 [packets to send 14, broken 13] [21:17:29]ProducePacketName [21:17:29]name=ofd_packets/00064059 [21:17:29]OFD Sender: To server: pG, [21:17:29]CommunicateWithHost lk.salyk.kg:30040 [21:17:29]ConnectInit lk.salyk.kg [21:17:29]line 64046 [21:17:29]written 0, free lines is 4095 [21:17:29]Connected sock=10 [21:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 63 01 00 00 DC 7C 5B 01 08 B2 5A 03 01 00 03 00 4F 01 1E 04 01 00 02 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 90 00 00 00 F4 03 04 00 65 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 Write to MH i2c: 39 01 32 00 37 00 33 37 27 04 04 00 2E FA 00 00 4C 28 04 04 50 10 [21:17:30]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 3B FA 00 00 35 04 06 00 CD 8C B2 89 Write i2c OK [21:17:30]05 MH_I2C_Read... [21:17:30]30 97 23 AE B2 23 Read from MH i2c: B5 01 00 [21:17:30]75 MH_I2C_Read... [21:17:30] [21:17:30]Read from MH i2c: 01 07 00 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: 01 07 00 4C 04 00 00 00 00 00 FC 0C 5F [21:17:30]RasterBufferAndPrint [21:17:30]line [21:17:30]line [21:17:30]line [21:17:30]line [21:17:30]line [21:17:30]written 0, free lines is 3542 [21:17:30]MH_Cut [21:17:30]Write to MH i2c: D1 01 00 53 04 01 29 [21:17:30]Write i2c OK [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: D1 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: D1 01 00 [21:17:30]MH_I2C_Read... [21:17:30]Read from MH i2c: D1 01 00 53 04 00 28 [21:17:30]Write to MH i2c: 01 00 00 54 04 58 [21:17:30]Write i2c OK [21:17:30]MH_I2C_Read... [21:17: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 98 94 47 00 1F E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3B FA 00 00 F4 03 04 00 75 30 5F 66 B6 04 01 00 00 19 76 4A 25 2A 40 7C F1 [21:17:30]CommunicateWithHost err = 0 [21:17:30]CheckOFDResponse [21:17:30]1017 (14) - 77093643461234 [21:17:30]1041 (16) - 0000000000875074 [21:17:30]1040 (4) - 64059 [21:17:30]1012 (4) - 04.06.2024 15:19 [21:17:30]1206 (1) - 0 [21:17:30]OFD Sender: Remove packet 64059 [21:17:30]ProducePacketName [21:17:30]name=ofd_packets/00064059 [21:17:30]NVStorageDeleteData [21:17:31]*** Cut start [21:17:31]*** Partial cut [21:17:31]*** CUTSNS_PIN = 1 [21:17:31]*** CUTSNS_PIN = 0 [21:17:31]*** Brake cut motor [21:17:31]OFD Sender: No OFD packet to send [21:17:31]Read from MH i2c: 01 [21:17:31]MH_I2C_Read... [21:17:31]*** Stop cut motor [21:17:31]*** Cut end [21:17:31]Read from MH i2c: 01 07 00 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: 01 07 00 54 04 00 00 00 00 00 FF 0F 6D [21:17:31]process_action close_receipt done [21:17:31]requested_data is exist [21:17:31]produce_requested_data [21:17:31]requested_item fm.sn is exist - process it [21:17:31]wFMCommunicate request_size=4 [21:17:31]MH_SAM_APDU [21:17:31]CAPDU: 80 11 00 00 [21:17:31]Write to MH i2c: E2 08 00 55 04 80 11 00 00 00 00 00 00 D3 [21:17:31]Write i2c OK [21:17:31]MH_I2C_Read... [21:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:31]Read from MH i2c: E2 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 17 00 [21:17:31]MH_I2C_Read... [21:17:31]Read from MH i2c: E2 17 00 55 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 25 [21:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:17:31]wFMCommunicate OK [21:17:31]requested_item fd.num is exist - process it [21:17:31]SAM_PROTO_GetFieldsCounters [21:17:31]wFMCommunicate request_size=4 [21:17:31]MH_SAM_APDU [21:17:31]CAPDU: 80 13 00 00 [21:17:31]Write to MH i2c: E2 08 00 56 04 80 13 00 00 00 00 00 00 D6 [21:17:31]Write i2c OK [21:17:31]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 62 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 62 00 56 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3B FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [21:17: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 3B FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:32]wFMCommunicate OK [21:17:32]SAM_PROTO_GetFieldsCounters done [21:17:32]requested_item shift.num is exist - process it [21:17:32]requested_item shift.opened is exist - process it [21:17:32]req_shift_opened [21:17:32]FM_GetShiftState [21:17:32]SAM_PROTO_GetShiftState [21:17:32]wFMCommunicate request_size=4 [21:17:32]MH_SAM_APDU [21:17:32]CAPDU: 80 13 01 00 [21:17:32]Write to MH i2c: E2 08 00 57 04 80 13 01 00 00 00 00 00 D8 [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 0E 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 0E 00 57 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 78 [21:17:32]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:17:32]wFMCommunicate OK [21:17:32]SAM_PROTO_GetShiftState done [21:17:32]FM_GetShiftState done [21:17:32]req_shift_opened done [21:17:32]requested_item shift.open_date is exist - process it [21:17:32]req_shift_open_date [21:17:32]req_shift_open_date done [21:17:32]produce_requested_data done [21:17:32]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64059,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:17:32]process_action_free close_receipt [21:17:32]json_value_free [21:17:32]json_value_free done [21:17:32]process_json_proto returns [21:17:32]Send response to host [21:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64059,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:17:32]free response buf [21:17:32]execute_script done [21:17:32]execute_script returns [21:17:32]free content buf [21:17:32]Sock 8.Close socket [21:17:32]Sock 8.Thread stoped [21:17:34]accept exits with 9 [21:17:34]New connection [21:17:34]New thread 3067133284 created [21:17:34]Thread 3067276644 joined [21:17:34]Waiting for new connection... [21:17:34] Sock 9.Parse request [21:17:34]Sock 9.Check first char [21:17:34]Sock 9.First char is OK [21:17:34]request: POST /json_proto HTTP/1.0 [21:17:34]Method: POST [21:17:34]URL: /json_proto [21:17:34]Method is POST - this is cgi request [21:17:34]url: /json_proto [21:17:34]query_string will be loaded in cgi processing [21:17:34]execute_cgi json_proto POST (null) [21:17:34]execute_cgi path=json_proto method=POST [21:17:34]POST find Content-Length [21:17:34]Host: 172.17.60.69:8080 [21:17:34]Content-Length: 880 [21:17:34]Content-Type: application/json [21:17:34] [21:17:34]POST finish read [21:17:34]Found Content-Length = 880 [21:17:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73599", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "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" ] } } [21:17:34]execute_script... [21:17: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)73599", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "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" ] } } [21:17:34]POST & json_proto [21:17:34]process_json_proto [21:17:34]json parsed OK: [21:17:34]protocol is kg_v1.0 [21:17:34]action value=close_receipt [21:17:34]process_action close_receipt [21:17:34]cmd_close_receipt [21:17:34]MH_GetDate [21:17:34]Write to MH i2c: F0 00 00 58 04 4B [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: F0 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: F0 09 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: F0 09 00 58 04 00 6E 84 5F 66 D2 83 5F 66 25 [21:17:34]GetLastDocTimeStamp 1717535845 [21:17:34]current date 1717535854 [21:17:34]FM_GetShiftState [21:17:34]SAM_PROTO_GetShiftState [21:17:34]wFMCommunicate request_size=4 [21:17:34]MH_SAM_APDU [21:17:34]CAPDU: 80 13 01 00 [21:17:34]Write to MH i2c: E2 08 00 59 04 80 13 01 00 00 00 00 00 DA [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:34]Read from MH i2c: E2 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 0E 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: E2 0E 00 59 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 7A [21:17:34]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:17:34]wFMCommunicate OK [21:17:34]SAM_PROTO_GetShiftState done [21:17:34]FM_GetShiftState done [21:17:34]opened in 1717459574 [21:17:34]opened+sec_in_day 1717545974 [21:17:34]quantity*price = 9500 [21:17:34]sum+1 = 9501 [21:17:34]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 СНО: Общий режим Чек 145 04.06.2024 21:17 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64060 ФПД: 23332751215908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211734&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64060&fm=23332751215908&tin=02508201610067®Number=0000000000092737&sum=9500 0 [21:17:36]StoreToDocumentArchive [21:17:36]shift 374 fd 64060 [21:17:36]save to /storage/0374/doc_00064060 [21:17:36]save last doc name /storage/0374/doc_00064060 to /storage/kkm_last_doc_name [21:17:36]save OK [21:17:36]Clear old archive folders... [21:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=307 [21:17:36]tlvbuf is 0106D350 [21:17:36]SAM_PROTO_ClearQueue [21:17:36]wFMCommunicate request_size=4 [21:17:36]MH_SAM_APDU [21:17:36]CAPDU: 80 09 00 00 [21:17:36]Write to MH i2c: E2 08 00 66 04 80 09 00 00 00 00 00 00 DC [21:17:36]Write i2c OK [21:17:36]MH_I2C_Read... [21:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:36]Read from MH i2c: E2 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 03 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [21:17:36]RAPDU: 90 00 [21:17:36]wFMCommunicate OK [21:17:36]SAM_PROTO_ClearQueue done [21:17:36]KKMCreateOFDPacket [21:17:36]OFDProtocolAddRootSTLVToBuf [21:17:36]FM_MakeSignedData [21:17:36]FM_MakeSignedData [21:17:36]SAM_PROTO_SignData [21:17:36]wFMCommunicate request_size=4 [21:17:36]MH_SAM_APDU [21:17:36]CAPDU: 80 0D 01 02 [21:17:36]Write to MH i2c: E2 08 00 67 04 80 0D 01 02 00 00 00 00 E4 [21:17:36]Write i2c OK [21:17:36]MH_I2C_Read... [21:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:36]Read from MH i2c: E2 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 03 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [21:17:36]RAPDU: 90 00 [21:17:36]wFMCommunicate OK [21:17:36]wFMCommunicate request_size=255 [21:17:36]MH_SAM_APDU [21:17:36]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 91 00 00 00 F4 03 04 00 6E 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 [21:17:37]Write to MH i2c: E2 02 01 68 04 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 91 00 00 00 F4 03 04 00 6E 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 00 00 BA [21:17:37]Write i2c OK [21:17:37]MH_I2C_Read... [21:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:37]Read from MH i2c: E2 [21:17:37]MH_I2C_Read... [21:17:37]Read from MH i2c: E2 03 00 [21:17:37]MH_I2C_Read... [21:17:37]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [21:17:37]RAPDU: 90 00 [21:17:37]wFMCommunicate OK [21:17:37]wFMCommunicate request_size=66 [21:17:37]MH_SAM_APDU [21:17:37]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 3C FA 00 00 35 04 06 00 15 38 94 59 0D 24 [21:17:37]Write to MH i2c: E2 45 00 69 04 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3C FA 00 00 35 04 06 00 15 38 94 59 0D 24 00 00 DC [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:38]Read from MH i2c: E2 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 03 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [21:17:38]RAPDU: 90 00 [21:17:38]wFMCommunicate OK [21:17:38]wFMCommunicate request_size=4 [21:17:38]MH_SAM_APDU [21:17:38]CAPDU: 80 0D 03 02 [21:17:38]Write to MH i2c: E2 08 00 6A 04 80 0D 03 02 00 00 00 00 E9 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:38]Read from MH i2c: E2 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 0B 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 0B 00 6A 04 00 A7 3D 46 86 D9 C0 B3 95 90 00 7B [21:17:38]RAPDU: A7 3D 46 86 D9 C0 B3 95 90 00 [21:17:38]wFMCommunicate OK [21:17:38]SAM_PROTO_SignData done [21:17:38]FM_MakeSignedData done [21:17:38]CreateOFDProtocolMessage [21:17:38]wFMCommunicate request_size=4 [21:17:38]MH_SAM_APDU [21:17:38]CAPDU: 80 11 00 00 [21:17:38]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:38]Read from MH i2c: E2 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 17 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 3B [21:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:17:38]wFMCommunicate OK [21:17:38]CreateOFDProtocolMessage done [21:17:38]OFDSenderStorePacket 64060 [21:17:38]StoreOFDPacket docnum=64060 [21:17: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 47 01 00 00 45 B6 3F 01 1E E6 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 91 00 00 00 F4 03 04 00 6E 84 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3C FA 00 00 35 04 06 00 15 38 94 59 0D 24 A7 3D 46 86 D9 C0 B3 95 [21:17:38]CheckFolder [21:17:38]dirname=/storage/ofd_packets [21:17:38]CheckFolder done [21:17:38]ProducePacketName [21:17:38]name=ofd_packets/00064060 [21:17:38]NVStorageSaveData ofd_packets/00064060 [21:17:38]File name is /storage/ofd_packets/00064060 [21:17:38]Write 357 bytes [21:17:38]NVStorageSaveData done [21:17:38]OFDSenderStorePacket done [21:17:38]KKMCreateOFDPacket done [21:17:38]NVStorageSaveData kkm_last_timestamp [21:17:38]File name is /storage/kkm_last_timestamp [21:17:38]Write 4 bytes [21:17:38]NVStorageSaveData done [21:17:38]ExternCall_PrintAddStr [21:17:38]wPrintStart [21:17:38]Write to MH i2c: 01 00 00 6C 04 70 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [21:17:38]RasterBufferAndPrint [21:17:38]line Счет N : (3)73599 [21:17:38]line ИНН: 02508201610067 [21:17:38]line Контрольно-Кассовый Чек [21:17:38]line ПРОДАЖА [21:17:38]line Товар: 4700000481989 [21:17:38]line Напиток энерг Nitro киви-мангостин 0,45 [21:17:38]line 1.000 * 95.00 [21:17:38]line = 95.00 [21:17:38]line НДС 12% НСП 1% [21:17:38]line > о реализуемом товаре [21:17:38]line ИТОГО: 95.00 [21:17:38]line НСП 1% : 0.84 [21:17:38]line НДС 12% : 10.09 [21:17:38]line Наличными: 0.00 [21:17:38]line Безнал.: 95.00 [21:17:38]line Место: АЗС № 117 "Партнер Нефть" [21:17:38]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:17:38]line СНО: Общий режим [21:17:38]line Чек 145 04.06.2024 21:17 [21:17:38]line Смена: 374 ФФД: 1.0 [21:17:38]line ЗНМ: 0300000031 [21:17:38]line РНМ: 0000000000092737 [21:17:38]line Версия ККМ: 001 [21:17:38]line Платежная система: O! деньги [21:17:38]line ФМ: 0000000000875074 [21:17:38]line ФД: 64060 [21:17:38]line ФПД: 23332751215908 [21:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T211734&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64060&fm=23332751215908&tin=02508201610067®Number=0000000000092737&sum=9500 [21:17:38]line 0 [21:17:38]OFD Sender: Processing packet 64060 [packets to send 14, broken 13] [21:17:38]ProducePacketName [21:17:38]name=ofd_packets/00064060 [21:17:38]OFD Sender: To server: pG, [21:17:38]CommunicateWithHost lk.salyk.kg:30040 [21:17:38]ConnectInit lk.salyk.kg [21:17:38]written 0, free lines is 4095 [21:17:38]Connected sock=10 [21:17: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 47 01 00 00 45 B6 3F 01 1E E6 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 91 00 00 00 F4 03 04 00 6E 84 5F 66 0E 04 04 00 76 Write to MH i2c: 01 01 00 00 00 00 B9 04 01 00 01 0D 04 10 00 97 30 04 30 9B 30 [21:17:39]30 30 30 30 30 30 30 30 39 32 Write i2c OK [21:17:39]37 MH_I2C_Read... [21:17:39]33 Read from MH i2c: 37 01 11 [21:17:39]04 MH_I2C_Read... [21:17:39]10 00 30 30 30 30 30 30 30 30 30 30 38 Read from MH i2c: 37 01 35 07 30 00 37 [21:17:39]34 MH_I2C_Read... [21:17:39]10 Read from MH i2c: 04 01 04 07 00 00 3C 97 FA 04 00 00 00 00 35 00 04 00 06 00 00 15 38 94 59 0D 24 A7 3D 9A 46 0D 86 49 D9 [21:17:39]C0 B3 95 [21:17:39]RasterBufferAndPrint [21:17:39]line [21:17:39]line [21:17:39]line [21:17:39]line [21:17:39]line [21:17:39]written 0, free lines is 3684 [21:17:39]MH_Cut [21:17:39]Write to MH i2c: D1 01 00 9E 04 01 74 [21:17:39]Write i2c OK [21:17:39]MH_I2C_Read... [21:17:39]Read from MH i2c: D1 [21:17:39]MH_I2C_Read... [21:17:39]Read from MH i2c: D1 01 00 [21:17:39]MH_I2C_Read... [21:17:39]Read from MH i2c: D1 01 00 9E 04 00 73 [21:17:39]Write to MH i2c: 01 00 00 9F 04 A3 [21:17:39]Write i2c OK [21:17:39]MH_I2C_Read... [21:17: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 EB BB 47 00 56 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3C FA 00 00 F4 03 04 00 7E 30 5F 66 B6 04 01 00 00 EE 4A 01 0C 16 60 D0 0B [21:17:39]CommunicateWithHost err = 0 [21:17:39]CheckOFDResponse [21:17:39]1017 (14) - 77093643461234 [21:17:39]1041 (16) - 0000000000875074 [21:17:39]1040 (4) - 64060 [21:17:39]*** Cut start [21:17:39]1012 (4) - 04.06.2024 15:19 [21:17:39]*** Partial cut [21:17:39]1206 (1) - 0 [21:17:39]*** CUTSNS_PIN = 1 [21:17:39]OFD Sender: Remove packet 64060 [21:17:39]ProducePacketName [21:17:39]name=ofd_packets/00064060 [21:17:39]NVStorageDeleteData [21:17:39]*** CUTSNS_PIN = 0 [21:17:40]*** Brake cut motor [21:17:40]OFD Sender: No OFD packet to send [21:17:40]Read from MH i2c: 01 [21:17:40]MH_I2C_Read... [21:17:40]*** Stop cut motor [21:17:40]*** Cut end [21:17:40]Read from MH i2c: 01 07 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 FF 0F B8 [21:17:40]process_action close_receipt done [21:17:40]requested_data is exist [21:17:40]produce_requested_data [21:17:40]requested_item fm.sn is exist - process it [21:17:40]wFMCommunicate request_size=4 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 11 00 00 [21:17:40]Write to MH i2c: E2 08 00 A0 04 80 11 00 00 00 00 00 00 1E [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 17 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 17 00 A0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 70 [21:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:17:40]wFMCommunicate OK [21:17:40]requested_item fd.num is exist - process it [21:17:40]SAM_PROTO_GetFieldsCounters [21:17:40]wFMCommunicate request_size=4 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 13 00 00 [21:17:40]Write to MH i2c: E2 08 00 A1 04 80 13 00 00 00 00 00 00 21 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 62 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 62 00 A1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3C FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [21:17: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 3C FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:41]wFMCommunicate OK [21:17:41]SAM_PROTO_GetFieldsCounters done [21:17:41]requested_item shift.num is exist - process it [21:17:41]requested_item shift.opened is exist - process it [21:17:41]req_shift_opened [21:17:41]FM_GetShiftState [21:17:41]SAM_PROTO_GetShiftState [21:17:41]wFMCommunicate request_size=4 [21:17:41]MH_SAM_APDU [21:17:41]CAPDU: 80 13 01 00 [21:17:41]Write to MH i2c: E2 08 00 A2 04 80 13 01 00 00 00 00 00 23 [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:41]Read from MH i2c: E2 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 0E 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 0E 00 A2 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C3 [21:17:41]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:17:41]wFMCommunicate OK [21:17:41]SAM_PROTO_GetShiftState done [21:17:41]FM_GetShiftState done [21:17:41]req_shift_opened done [21:17:41]requested_item shift.open_date is exist - process it [21:17:41]req_shift_open_date [21:17:41]req_shift_open_date done [21:17:41]produce_requested_data done [21:17:41]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64060,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:17:41]process_action_free close_receipt [21:17:41]json_value_free [21:17:41]json_value_free done [21:17:41]process_json_proto returns [21:17:41]Send response to host [21:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64060,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:17:41]free response buf [21:17:41]execute_script done [21:17:41]execute_script returns [21:17:41]free content buf [21:17:41]Sock 9.Close socket [21:17:41]Sock 9.Thread stoped [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:02]accept exits with 8 [21:39:02]New connection [21:39:02]New thread 3067276644 created [21:39:02]Thread 3067133284 joined [21:39:02]Waiting for new connection... [21:39:02] Sock 8.Parse request [21:39:02]Sock 8.Check first char [21:39:02]Sock 8.First char is OK [21:39:02]request: POST /json_proto HTTP/1.0 [21:39:02]Method: POST [21:39:02]URL: /json_proto [21:39:02]Method is POST - this is cgi request [21:39:02]url: /json_proto [21:39:02]query_string will be loaded in cgi processing [21:39:02]execute_cgi json_proto POST (null) [21:39:02]execute_cgi path=json_proto method=POST [21:39:02]POST find Content-Length [21:39:02]Host: 172.17.60.69:8080 [21:39:02]Content-Length: 906 [21:39:02]Content-Type: application/json [21:39:02] [21:39:02]POST finish read [21:39:02]Found Content-Length = 906 [21:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73604", "tax_sys" : 0, "items" : [ { "code": "4700003241412", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u0411\u0443\u0440\u0430\u0442\u0438\u043D\u043E 1\u043B \u0410\u0440\u0442\u0435\u0437\u0438\u0430\u043D", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:02]execute_script... [21:39: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)73604", "tax_sys" : 0, "items" : [ { "code": "4700003241412", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u0411\u0443\u0440\u0430\u0442\u0438\u043D\u043E 1\u043B \u0410\u0440\u0442\u0435\u0437\u0438\u0430\u043D", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:02]POST & json_proto [21:39:02]process_json_proto [21:39:02]json parsed OK: [21:39:02]protocol is kg_v1.0 [21:39:02]action value=close_receipt [21:39:02]process_action close_receipt [21:39:02]cmd_close_receipt [21:39:02]MH_GetDate [21:39:02]Write to MH i2c: F0 00 00 A3 04 96 [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: F0 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: F0 09 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: F0 09 00 A3 04 00 76 89 5F 66 D2 83 5F 66 7D [21:39:02]GetLastDocTimeStamp 1717535854 [21:39:02]current date 1717537142 [21:39:02]FM_GetShiftState [21:39:02]SAM_PROTO_GetShiftState [21:39:02]wFMCommunicate request_size=4 [21:39:02]MH_SAM_APDU [21:39:02]CAPDU: 80 13 01 00 [21:39:02]Write to MH i2c: E2 08 00 A4 04 80 13 01 00 00 00 00 00 25 [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 0E 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 0E 00 A4 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 C5 [21:39:02]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:39:02]wFMCommunicate OK [21:39:02]SAM_PROTO_GetShiftState done [21:39:02]FM_GetShiftState done [21:39:02]opened in 1717459574 [21:39:02]opened+sec_in_day 1717545974 [21:39:02]quantity*price = 5000 [21:39:02]sum+1 = 5001 [21:39:02]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 СНО: Общий режим Чек 146 04.06.2024 21:39 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875074 ФД: 64061 ФПД: 267135996275316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T213902&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64061&fm=267135996275316&tin=02508201610067®Number=0000000000092737&sum=5000 0 [21:39:03]StoreToDocumentArchive [21:39:03]shift 374 fd 64061 [21:39:03]save to /storage/0374/doc_00064061 [21:39:03]save last doc name /storage/0374/doc_00064061 to /storage/kkm_last_doc_name [21:39:03]save OK [21:39:03]Clear old archive folders... [21:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=309 [21:39:03]tlvbuf is 0107B460 [21:39:03]SAM_PROTO_ClearQueue [21:39:03]wFMCommunicate request_size=4 [21:39:03]MH_SAM_APDU [21:39:03]CAPDU: 80 09 00 00 [21:39:03]Write to MH i2c: E2 08 00 B1 04 80 09 00 00 00 00 00 00 27 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 [21:39:03]MH_I2C_Read... [21:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:03]Read from MH i2c: E2 03 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [21:39:03]RAPDU: 90 00 [21:39:03]wFMCommunicate OK [21:39:03]SAM_PROTO_ClearQueue done [21:39:03]KKMCreateOFDPacket [21:39:03]OFDProtocolAddRootSTLVToBuf [21:39:03]FM_MakeSignedData [21:39:03]FM_MakeSignedData [21:39:03]SAM_PROTO_SignData [21:39:03]wFMCommunicate request_size=4 [21:39:03]MH_SAM_APDU [21:39:03]CAPDU: 80 0D 01 02 [21:39:03]Write to MH i2c: E2 08 00 B2 04 80 0D 01 02 00 00 00 00 2F [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:03]Read from MH i2c: E2 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [21:39:03]RAPDU: 90 00 [21:39:03]wFMCommunicate OK [21:39:03]wFMCommunicate request_size=255 [21:39:03]MH_SAM_APDU [21:39:03]CAPDU: 80 0D 02 02 FA 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 34 31 32 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 91 D1 83 D1 80 D0 B0 D1 82 D0 B8 D0 BD D0 BE 20 31 D0 BB 20 D0 90 D1 80 D1 82 D0 B5 D0 B7 D0 B8 D0 B0 D0 BD 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 92 00 00 00 F4 03 04 00 76 89 5F 66 0E 04 04 00 76 01 00 00 [21:39:03]Write to MH i2c: E2 02 01 B3 04 80 0D 02 02 FA 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 34 31 32 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 91 D1 83 D1 80 D0 B0 D1 82 D0 B8 D0 BD D0 BE 20 31 D0 BB 20 D0 90 D1 80 D1 82 D0 B5 D0 B7 D0 B8 D0 B0 D0 BD 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 92 00 00 00 F4 03 04 00 76 89 5F 66 0E 04 04 00 76 01 00 00 00 00 40 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [21:39:04]RAPDU: 90 00 [21:39:04]wFMCommunicate OK [21:39:04]wFMCommunicate request_size=68 [21:39:04]MH_SAM_APDU [21:39:04]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 3D FA 00 00 35 04 06 00 F2 F5 72 2A 2A 74 [21:39:04]Write to MH i2c: E2 47 00 B4 04 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 3D FA 00 00 35 04 06 00 F2 F5 72 2A 2A 74 00 00 9F [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [21:39:04]RAPDU: 90 00 [21:39:04]wFMCommunicate OK [21:39:04]wFMCommunicate request_size=4 [21:39:04]MH_SAM_APDU [21:39:04]CAPDU: 80 0D 03 02 [21:39:04]Write to MH i2c: E2 08 00 B5 04 80 0D 03 02 00 00 00 00 34 [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 0B 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 0B 00 B5 04 00 B7 78 7A 7D 56 24 31 27 90 00 2D [21:39:04]RAPDU: B7 78 7A 7D 56 24 31 27 90 00 [21:39:04]wFMCommunicate OK [21:39:04]SAM_PROTO_SignData done [21:39:04]FM_MakeSignedData done [21:39:04]CreateOFDProtocolMessage [21:39:04]wFMCommunicate request_size=4 [21:39:04]MH_SAM_APDU [21:39:04]CAPDU: 80 11 00 00 [21:39:04]Write to MH i2c: E2 08 00 B6 04 80 11 00 00 00 00 00 00 34 [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:04]Read from MH i2c: E2 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 17 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: E2 17 00 B6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 86 [21:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:39:04]wFMCommunicate OK [21:39:04]CreateOFDProtocolMessage done [21:39:04]OFDSenderStorePacket 64061 [21:39:04]StoreOFDPacket docnum=64061 [21:39: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 49 01 00 00 82 EC 41 01 6A D5 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 34 31 32 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 91 D1 83 D1 80 D0 B0 D1 82 D0 B8 D0 BD D0 BE 20 31 D0 BB 20 D0 90 D1 80 D1 82 D0 B5 D0 B7 D0 B8 D0 B0 D0 BD 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 92 00 00 00 F4 03 04 00 76 89 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3D FA 00 00 35 04 06 00 F2 F5 72 2A 2A 74 B7 78 7A 7D 56 24 31 27 [21:39:04]CheckFolder [21:39:04]dirname=/storage/ofd_packets [21:39:04]CheckFolder done [21:39:04]ProducePacketName [21:39:04]name=ofd_packets/00064061 [21:39:04]NVStorageSaveData ofd_packets/00064061 [21:39:04]File name is /storage/ofd_packets/00064061 [21:39:04]Write 359 bytes [21:39:04]NVStorageSaveData done [21:39:04]OFDSenderStorePacket done [21:39:04]KKMCreateOFDPacket done [21:39:04]NVStorageSaveData kkm_last_timestamp [21:39:04]File name is /storage/kkm_last_timestamp [21:39:04]Write 4 bytes [21:39:04]NVStorageSaveData done [21:39:04]ExternCall_PrintAddStr [21:39:04]wPrintStart [21:39:04]Write to MH i2c: 01 00 00 B7 04 BB [21:39:04]Write i2c OK [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: 01 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: 01 07 00 [21:39:04]MH_I2C_Read... [21:39:04]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 FF 0F D0 [21:39:04]RasterBufferAndPrint [21:39:04]line Счет N : (3)73604 [21:39:04]line ИНН: 02508201610067 [21:39:04]line Контрольно-Кассовый Чек [21:39:04]line ПРОДАЖА [21:39:04]line Товар: 4700003241412 [21:39:04]line Напиток Лимонад Буратино 1л Артезиан [21:39:04]line 1.000 * 50.00 [21:39:04]line = 50.00 [21:39:04]line НДС 12% НСП 1% [21:39:04]line > о реализуемом товаре [21:39:04]line ИТОГО: 50.00 [21:39:04]line НСП 1% : 0.44 [21:39:04]line НДС 12% : 5.31 [21:39:04]line Наличными: 0.00 [21:39:04]line Безнал.: 50.00 [21:39:04]line Место: АЗС № 117 "Партнер Нефть" [21:39:04]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:39:04]line СНО: Общий режим [21:39:04]line Чек 146 04.06.2024 21:39 [21:39:04]line Смена: 374 ФФД: 1.0 [21:39:04]line ЗНМ: 0300000031 [21:39:04]line РНМ: 0000000000092737 [21:39:04]line Версия ККМ: 001 [21:39:04]line Платежная система: O! деньги [21:39:04]line ФМ: 0000000000875074 [21:39:04]line ФД: 64061 [21:39:04]line ФПД: 267135996275316 [21:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T213902&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64061&fm=267135996275316&tin=02508201610067®Number=0000000000092737&sum=5000 [21:39:04]line 0 [21:39:04]OFD Sender: Processing packet 64061 [packets to send 14, broken 13] [21:39:04]ProducePacketName [21:39:04]name=ofd_packets/00064061 [21:39:04]OFD Sender: To server: pG, [21:39:04]CommunicateWithHost lk.salyk.kg:30040 [21:39:04]ConnectInit lk.salyk.kg [21:39:04]written 0, free lines is 4095 [21:39:04]Connected sock=10 [21:39: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 49 01 00 00 82 EC 41 01 6A D5 5A 03 01 00 03 00 35 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 34 31 32 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 91 D1 83 D1 80 D0 B0 D1 82 D0 B8 D0 BD D0 BE 20 31 D0 BB 20 D0 90 D1 80 D1 82 D0 B5 D0 B7 D0 B8 D0 B0 D0 BD 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 92 00 00 00 F4 03 04 00 76 89 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3D FA 00 00 35 04 06 00 F2 F5 72 2A 2A 74 B7 78 7A 7D 56 24 31 27 [21:39: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 7F D0 47 00 5C 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3D FA 00 00 F4 03 04 00 84 35 5F 66 B6 04 01 00 00 19 43 5C 19 C1 41 4A ED [21:39:04]CommunicateWithHost err = 0 [21:39:04]CheckOFDResponse [21:39:04]1017 (14) - 77093643461234 [21:39:04]1041 (16) - 0000000000875074 [21:39:04]1040 (4) - 64061 [21:39:04]1012 (4) - 04.06.2024 15:40 [21:39:04]1206 (1) - 0 [21:39:04]OFD Sender: Remove packet 64061 [21:39:04]ProducePacketName [21:39:04]name=ofd_packets/00064061 [21:39:04]NVStorageDeleteData [21:39:05]Write to MH i2c: 01 00 00 E2 04 E6 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: 01 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: 01 07 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: 01 07 00 E2 04 00 00 00 00 00 BE 0C B7 [21:39:05]RasterBufferAndPrint [21:39:05]line [21:39:05]line [21:39:05]line [21:39:05]line [21:39:05]line [21:39:05]written 0, free lines is 3267 [21:39:05]MH_Cut [21:39:05]Write to MH i2c: D1 01 00 E9 04 01 BF [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: D1 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: D1 01 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: D1 01 00 E9 04 00 BE [21:39:05]Write to MH i2c: 01 00 00 EA 04 EE [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]OFD Sender: No OFD packet to send [21:39:05]*** Cut start [21:39:05]*** Partial cut [21:39:05]*** CUTSNS_PIN = 1 [21:39:06]*** CUTSNS_PIN = 0 [21:39:06]*** Brake cut motor [21:39:06]Read from MH i2c: 01 [21:39:06]MH_I2C_Read... [21:39:06]*** Stop cut motor [21:39:06]*** Cut end [21:39:06]Read from MH i2c: 01 07 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 FF 0F 03 [21:39:06]process_action close_receipt done [21:39:06]requested_data is exist [21:39:06]produce_requested_data [21:39:06]requested_item fm.sn is exist - process it [21:39:06]wFMCommunicate request_size=4 [21:39:06]MH_SAM_APDU [21:39:06]CAPDU: 80 11 00 00 [21:39:06]Write to MH i2c: E2 08 00 EB 04 80 11 00 00 00 00 00 00 69 [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:06]Read from MH i2c: E2 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 17 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 17 00 EB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 BB [21:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:39:06]wFMCommunicate OK [21:39:06]requested_item fd.num is exist - process it [21:39:06]SAM_PROTO_GetFieldsCounters [21:39:06]wFMCommunicate request_size=4 [21:39:06]MH_SAM_APDU [21:39:06]CAPDU: 80 13 00 00 [21:39:06]Write to MH i2c: E2 08 00 EC 04 80 13 00 00 00 00 00 00 6C [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:06]Read from MH i2c: E2 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 62 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 62 00 EC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3D FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [21:39: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 3D FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:06]wFMCommunicate OK [21:39:06]SAM_PROTO_GetFieldsCounters done [21:39:06]requested_item shift.num is exist - process it [21:39:06]requested_item shift.opened is exist - process it [21:39:06]req_shift_opened [21:39:06]FM_GetShiftState [21:39:06]SAM_PROTO_GetShiftState [21:39:06]wFMCommunicate request_size=4 [21:39:06]MH_SAM_APDU [21:39:06]CAPDU: 80 13 01 00 [21:39:06]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:06]Read from MH i2c: E2 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 0E 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 0E [21:39:06]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:39:06]wFMCommunicate OK [21:39:06]SAM_PROTO_GetShiftState done [21:39:06]FM_GetShiftState done [21:39:06]req_shift_opened done [21:39:06]requested_item shift.open_date is exist - process it [21:39:06]req_shift_open_date [21:39:06]req_shift_open_date done [21:39:06]produce_requested_data done [21:39:06]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64061,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:39:06]process_action_free close_receipt [21:39:06]json_value_free [21:39:06]json_value_free done [21:39:06]process_json_proto returns [21:39:06]Send response to host [21:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64061,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:39:06]free response buf [21:39:06]execute_script done [21:39:06]execute_script returns [21:39:06]free content buf [21:39:06]Sock 8.Close socket [21:39:06]Sock 8.Thread stoped [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:49]accept exits with 9 [21:44:49]New connection [21:44:49]New thread 3067133284 created [21:44:49]Thread 3067276644 joined [21:44:49]Waiting for new connection... [21:44:49] Sock 9.Parse request [21:44:49]Sock 9.Check first char [21:44:49]Sock 9.First char is OK [21:44:49]request: POST /json_proto HTTP/1.0 [21:44:49]Method: POST [21:44:49]URL: /json_proto [21:44:49]Method is POST - this is cgi request [21:44:49]url: /json_proto [21:44:49]query_string will be loaded in cgi processing [21:44:49]execute_cgi json_proto POST (null) [21:44:49]execute_cgi path=json_proto method=POST [21:44:49]POST find Content-Length [21:44:49]Host: 172.17.60.69:8080 [21:44:49]Content-Length: 613 [21:44:49]Content-Type: application/json [21:44:49] [21:44:49]POST finish read [21:44:49]Found Content-Length = 613 [21:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73605", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:49]execute_script... [21:44:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73605", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:49]POST & json_proto [21:44:49]process_json_proto [21:44:49]json parsed OK: [21:44:49]protocol is kg_v1.0 [21:44:49]action value=close_receipt [21:44:49]process_action close_receipt [21:44:49]cmd_close_receipt [21:44:49]MH_GetDate [21:44:49]Write to MH i2c: F0 00 00 EE 04 E1 [21:44:49]Write i2c OK [21:44:49]MH_I2C_Read... [21:44:49]Read from MH i2c: F0 [21:44:49]MH_I2C_Read... [21:44:49]Read from MH i2c: F0 09 00 [21:44:49]MH_I2C_Read... [21:44:49]Read from MH i2c: F0 09 00 EE 04 00 D1 8A 5F 66 D2 83 5F 66 24 [21:44:49]GetLastDocTimeStamp 1717537142 [21:44:49]current date 1717537489 [21:44:49]FM_GetShiftState [21:44:49]SAM_PROTO_GetShiftState [21:44:49]wFMCommunicate request_size=4 [21:44:49]MH_SAM_APDU [21:44:49]CAPDU: 80 13 01 00 [21:44:49]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [21:44:49]Write i2c OK [21:44:49]MH_I2C_Read... [21:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:49]Read from MH i2c: E2 [21:44:49]MH_I2C_Read... [21:44:49]Read from MH i2c: E2 0E 00 [21:44:49]MH_I2C_Read... [21:44:49]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 10 [21:44:49]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:44:49]wFMCommunicate OK [21:44:49]SAM_PROTO_GetShiftState done [21:44:49]FM_GetShiftState done [21:44:49]opened in 1717459574 [21:44:49]opened+sec_in_day 1717545974 [21:44:49]quantity*price = 11000 [21:44:49]sum+1 = 11001 [21:44:49]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 СНО: Общий режим Чек 147 04.06.2024 21:44 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64062 ФПД: 182268047805395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214449&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64062&fm=182268047805395&tin=02508201610067®Number=0000000000092737&sum=11000 0 [21:44:50]StoreToDocumentArchive [21:44:50]shift 374 fd 64062 [21:44:50]save to /storage/0374/doc_00064062 [21:44:50]save last doc name /storage/0374/doc_00064062 to /storage/kkm_last_doc_name [21:44:50]save OK [21:44:50]Clear old archive folders... [21:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=266 [21:44:50]tlvbuf is 00F96A60 [21:44:50]SAM_PROTO_ClearQueue [21:44:50]wFMCommunicate request_size=4 [21:44:50]MH_SAM_APDU [21:44:50]CAPDU: 80 09 00 00 [21:44:50]Write to MH i2c: E2 08 00 FC 04 80 09 00 00 00 00 00 00 72 [21:44:50]Write i2c OK [21:44:50]MH_I2C_Read... [21:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:50]Read from MH i2c: E2 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [21:44:50]RAPDU: 90 00 [21:44:50]wFMCommunicate OK [21:44:50]SAM_PROTO_ClearQueue done [21:44:50]KKMCreateOFDPacket [21:44:50]OFDProtocolAddRootSTLVToBuf [21:44:50]FM_MakeSignedData [21:44:50]FM_MakeSignedData [21:44:50]SAM_PROTO_SignData [21:44:50]wFMCommunicate request_size=4 [21:44:50]MH_SAM_APDU [21:44:50]CAPDU: 80 0D 01 02 [21:44:50]Write to MH i2c: E2 08 00 FD 04 80 0D 01 02 00 00 00 00 7A [21:44:50]Write i2c OK [21:44:50]MH_I2C_Read... [21:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:50]Read from MH i2c: E2 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 [21:44:50]MH_I2C_Read... [21:44:50]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [21:44:50]RAPDU: 90 00 [21:44:50]wFMCommunicate OK [21:44:50]wFMCommunicate request_size=255 [21:44:50]MH_SAM_APDU [21:44:50]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D1 8A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [21:44:50]Write to MH i2c: E2 02 01 FE 04 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D1 8A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 1A [21:44:50]Write i2c OK [21:44:50]MH_I2C_Read... [21:44:50]OFD Sender: No OFD packet to send [21:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:51]Read from MH i2c: E2 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 03 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [21:44:51]RAPDU: 90 00 [21:44:51]wFMCommunicate OK [21:44:51]wFMCommunicate request_size=25 [21:44:51]MH_SAM_APDU [21:44:51]CAPDU: 80 0D 02 02 14 37 34 10 04 04 00 3E FA 00 00 35 04 06 00 A5 C5 96 3E 4B D3 [21:44:51]Write to MH i2c: E2 1C 00 FF 04 80 0D 02 02 14 00 37 34 10 04 04 00 3E FA 00 00 35 04 06 00 A5 C5 96 3E 4B D3 00 00 FB [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:51]Read from MH i2c: E2 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 03 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [21:44:51]RAPDU: 90 00 [21:44:51]wFMCommunicate OK [21:44:51]wFMCommunicate request_size=4 [21:44:51]MH_SAM_APDU [21:44:51]CAPDU: 80 0D 03 02 [21:44:51]Write to MH i2c: E2 08 00 00 05 80 0D 03 02 00 00 00 00 80 [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:51]Read from MH i2c: E2 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 0B 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 0B 00 00 05 00 A6 90 B8 74 63 54 AA 07 90 00 4B [21:44:51]RAPDU: A6 90 B8 74 63 54 AA 07 90 00 [21:44:51]wFMCommunicate OK [21:44:51]SAM_PROTO_SignData done [21:44:51]FM_MakeSignedData done [21:44:51]CreateOFDProtocolMessage [21:44:51]wFMCommunicate request_size=4 [21:44:51]MH_SAM_APDU [21:44:51]CAPDU: 80 11 00 00 [21:44:51]Write to MH i2c: E2 08 00 01 05 80 11 00 00 00 00 00 00 80 [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:51]Read from MH i2c: E2 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 17 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: E2 17 00 01 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 D2 [21:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:44:51]wFMCommunicate OK [21:44:51]CreateOFDProtocolMessage done [21:44:51]OFDSenderStorePacket 64062 [21:44:51]StoreOFDPacket docnum=64062 [21:44: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 1E 01 00 00 98 40 16 01 5E 3D 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D1 8A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3E FA 00 00 35 04 06 00 A5 C5 96 3E 4B D3 A6 90 B8 74 63 54 AA 07 [21:44:51]CheckFolder [21:44:51]dirname=/storage/ofd_packets [21:44:51]CheckFolder done [21:44:51]ProducePacketName [21:44:51]name=ofd_packets/00064062 [21:44:51]NVStorageSaveData ofd_packets/00064062 [21:44:51]File name is /storage/ofd_packets/00064062 [21:44:51]Write 316 bytes [21:44:51]NVStorageSaveData done [21:44:51]OFDSenderStorePacket done [21:44:51]KKMCreateOFDPacket done [21:44:51]NVStorageSaveData kkm_last_timestamp [21:44:51]File name is /storage/kkm_last_timestamp [21:44:51]Write 4 bytes [21:44:51]NVStorageSaveData done [21:44:51]ExternCall_PrintAddStr [21:44:51]wPrintStart [21:44:51]Write to MH i2c: 01 00 00 02 05 07 [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: 01 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: 01 07 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 FF 0F 1C [21:44:51]RasterBufferAndPrint [21:44:51]line Счет N : (3)73605 [21:44:51]line ИНН: 02508201610067 [21:44:51]line Контрольно-Кассовый Чек [21:44:51]line ПРОДАЖА [21:44:51]line Товар: 4870001570071 [21:44:51]line Напиток Pepsi 1л [21:44:51]line 1.000 * 110.00 [21:44:51]line = 110.00 [21:44:51]line НДС 12% НСП 1% [21:44:51]line > о реализуемом товаре [21:44:51]line ИТОГО: 110.00 [21:44:51]line НСП 1% : 0.97 [21:44:51]line НДС 12% : 11.68 [21:44:51]line Наличными: 110.00 [21:44:51]line Безнал.: 0.00 [21:44:51]line Место: АЗС № 117 "Партнер Нефть" [21:44:51]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:44:51]line СНО: Общий режим [21:44:51]line Чек 147 04.06.2024 21:44 [21:44:51]line Смена: 374 ФФД: 1.0 [21:44:51]line ЗНМ: 0300000031 [21:44:51]line РНМ: 0000000000092737 [21:44:51]line Версия ККМ: 001 [21:44:51]line ФМ: 0000000000875074 [21:44:51]line ФД: 64062 [21:44:51]line ФПД: 182268047805395 [21:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214449&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64062&fm=182268047805395&tin=02508201610067®Number=0000000000092737&sum=11000 [21:44:51]OFD Sender: Processing packet 64062 [packets to send 14, broken 13] [21:44:51]ProducePacketName [21:44:51]name=ofd_packets/00064062 [21:44:51]OFD Sender: To server: pG, [21:44:51]CommunicateWithHost lk.salyk.kg:30040 [21:44:51]ConnectInit lk.salyk.kg [21:44:51]line 0 [21:44:51]written 0, free lines is 4095 [21:44:51]Connected sock=10 [21:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 1E 01 00 00 98 40 16 01 5E 3D 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D1 8A 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3E FA 00 00 35 04 06 00 A5 C5 96 3E 4B D3 A6 90 B8 74 63 54 AA 07 [21:44: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 50 8E 47 00 8E 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 3E FA 00 00 F4 03 04 00 DF 36 5F 66 B6 04 01 00 00 B2 40 74 A6 58 12 E7 2C [21:44:51]CommunicateWithHost err = 0 [21:44:51]CheckOFDResponse [21:44:51]1017 (14) - 77093643461234 [21:44:51]1041 (16) - 0000000000875074 [21:44:51]1040 (4) - 64062 [21:44:51]1012 (4) - 04.06.2024 15:46 [21:44:51]1206 (1) - 0 [21:44:51]OFD Sender: Remove packet 64062 [21:44:51]ProducePacketName [21:44:51]name=ofd_packets/00064062 [21:44:51]NVStorageDeleteData [21:44:51]Write to MH i2c: 01 00 00 2A 05 2F [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: 01 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: 01 07 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 03 0D 46 [21:44:51]RasterBufferAndPrint [21:44:51]line [21:44:51]line [21:44:51]line [21:44:51]line [21:44:51]line [21:44:51]written 0, free lines is 3340 [21:44:51]MH_Cut [21:44:51]Write to MH i2c: D1 01 00 31 05 01 08 [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: D1 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: D1 01 00 [21:44:51]MH_I2C_Read... [21:44:51]Read from MH i2c: D1 01 00 31 05 00 07 [21:44:51]Write to MH i2c: 01 00 00 32 05 37 [21:44:51]Write i2c OK [21:44:51]MH_I2C_Read... [21:44:52]OFD Sender: No OFD packet to send [21:44:52]*** Cut start [21:44:52]*** Partial cut [21:44:52]*** CUTSNS_PIN = 1 [21:44:52]*** CUTSNS_PIN = 0 [21:44:53]*** Brake cut motor [21:44:53]Read from MH i2c: 01 [21:44:53]MH_I2C_Read... [21:44:53]*** Stop cut motor [21:44:53]*** Cut end [21:44:53]Read from MH i2c: 01 07 00 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 FF 0F 4C [21:44:53]process_action close_receipt done [21:44:53]requested_data is exist [21:44:53]produce_requested_data [21:44:53]requested_item fm.sn is exist - process it [21:44:53]wFMCommunicate request_size=4 [21:44:53]MH_SAM_APDU [21:44:53]CAPDU: 80 11 00 00 [21:44:53]Write to MH i2c: E2 08 00 33 05 80 11 00 00 00 00 00 00 B2 [21:44:53]Write i2c OK [21:44:53]MH_I2C_Read... [21:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:53]Read from MH i2c: E2 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 17 00 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 17 00 33 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 04 [21:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:44:53]wFMCommunicate OK [21:44:53]requested_item fd.num is exist - process it [21:44:53]SAM_PROTO_GetFieldsCounters [21:44:53]wFMCommunicate request_size=4 [21:44:53]MH_SAM_APDU [21:44:53]CAPDU: 80 13 00 00 [21:44:53]Write to MH i2c: E2 08 00 34 05 80 13 00 00 00 00 00 00 B5 [21:44:53]Write i2c OK [21:44:53]MH_I2C_Read... [21:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:53]Read from MH i2c: E2 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 62 00 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 62 00 34 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [21:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:53]wFMCommunicate OK [21:44:53]SAM_PROTO_GetFieldsCounters done [21:44:53]requested_item shift.num is exist - process it [21:44:53]requested_item shift.opened is exist - process it [21:44:53]req_shift_opened [21:44:53]FM_GetShiftState [21:44:53]SAM_PROTO_GetShiftState [21:44:53]wFMCommunicate request_size=4 [21:44:53]MH_SAM_APDU [21:44:53]CAPDU: 80 13 01 00 [21:44:53]Write to MH i2c: E2 08 00 35 05 80 13 01 00 00 00 00 00 B7 [21:44:53]Write i2c OK [21:44:53]MH_I2C_Read... [21:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:53]Read from MH i2c: E2 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 0E 00 [21:44:53]MH_I2C_Read... [21:44:53]Read from MH i2c: E2 0E 00 35 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 57 [21:44:53]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:44:53]wFMCommunicate OK [21:44:53]SAM_PROTO_GetShiftState done [21:44:53]FM_GetShiftState done [21:44:53]req_shift_opened done [21:44:53]requested_item shift.open_date is exist - process it [21:44:53]req_shift_open_date [21:44:53]req_shift_open_date done [21:44:53]produce_requested_data done [21:44:53]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64062,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:44:53]process_action_free close_receipt [21:44:53]json_value_free [21:44:53]json_value_free done [21:44:53]process_json_proto returns [21:44:53]Send response to host [21:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64062,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:44:53]free response buf [21:44:53]execute_script done [21:44:53]execute_script returns [21:44:53]free content buf [21:44:53]Sock 9.Close socket [21:44:53]Sock 9.Thread stoped [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:47]accept exits with 8 [21:47:47]New connection [21:47:47]New thread 3067276644 created [21:47:47]Thread 3067133284 joined [21:47:47]Waiting for new connection... [21:47:47] Sock 8.Parse request [21:47:47]Sock 8.Check first char [21:47:47]Sock 8.First char is OK [21:47:47]request: POST /json_proto HTTP/1.0 [21:47:47]Method: POST [21:47:47]URL: /json_proto [21:47:47]Method is POST - this is cgi request [21:47:47]url: /json_proto [21:47:47]query_string will be loaded in cgi processing [21:47:47]execute_cgi json_proto POST (null) [21:47:47]execute_cgi path=json_proto method=POST [21:47:47]POST find Content-Length [21:47:47]Host: 172.17.60.69:8080 [21:47:47]Content-Length: 914 [21:47:47]Content-Type: application/json [21:47:47] [21:47:47]POST finish read [21:47:47]Found Content-Length = 914 [21:47:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73606", "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" : 2.000, "sum" : 106.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 106.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:47]execute_script... [21:47:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73606", "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" : 2.000, "sum" : 106.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 106.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:47]POST & json_proto [21:47:47]process_json_proto [21:47:47]json parsed OK: [21:47:47]protocol is kg_v1.0 [21:47:47]action value=close_receipt [21:47:47]process_action close_receipt [21:47:47]cmd_close_receipt [21:47:47]MH_GetDate [21:47:47]Write to MH i2c: F0 00 00 36 05 2A [21:47:47]Write i2c OK [21:47:47]MH_I2C_Read... [21:47:47]Read from MH i2c: F0 [21:47:47]MH_I2C_Read... [21:47:47]Read from MH i2c: F0 09 00 [21:47:47]MH_I2C_Read... [21:47:47]Read from MH i2c: F0 09 00 36 05 00 83 8B 5F 66 D2 83 5F 66 20 [21:47:47]GetLastDocTimeStamp 1717537489 [21:47:47]current date 1717537667 [21:47:47]FM_GetShiftState [21:47:47]SAM_PROTO_GetShiftState [21:47:47]wFMCommunicate request_size=4 [21:47:47]MH_SAM_APDU [21:47:47]CAPDU: 80 13 01 00 [21:47:47]Write to MH i2c: E2 08 00 37 05 80 13 01 00 00 00 00 00 B9 [21:47:47]Write i2c OK [21:47:47]MH_I2C_Read... [21:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:47]Read from MH i2c: E2 [21:47:47]MH_I2C_Read... [21:47:47]Read from MH i2c: E2 0E 00 [21:47:47]MH_I2C_Read... [21:47:47]Read from MH i2c: E2 0E 00 37 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 59 [21:47:47]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:47:47]wFMCommunicate OK [21:47:47]SAM_PROTO_GetShiftState done [21:47:47]FM_GetShiftState done [21:47:47]opened in 1717459574 [21:47:47]opened+sec_in_day 1717545974 [21:47:47]quantity*price = 10600 [21:47:47]sum+1 = 10601 [21:47:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 106.00 НСП 1% : 0.94 НДС 12% : 11.26 Наличными: 0.00 Безнал.: 106.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 148 04.06.2024 21:47 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 64063 ФПД: 259348933454267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214747&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64063&fm=259348933454267&tin=02508201610067®Number=0000000000092737&sum=10600 0 [21:47:48]StoreToDocumentArchive [21:47:48]shift 374 fd 64063 [21:47:48]save to /storage/0374/doc_00064063 [21:47:48]save last doc name /storage/0374/doc_00064063 to /storage/kkm_last_doc_name [21:47:48]save OK [21:47:48]Clear old archive folders... [21:47:48]ProcessDocumentItem done err = 0, tmpTLVsize=307 [21:47:48]tlvbuf is 0107D6F0 [21:47:48]SAM_PROTO_ClearQueue [21:47:48]wFMCommunicate request_size=4 [21:47:48]MH_SAM_APDU [21:47:48]CAPDU: 80 09 00 00 [21:47:48]Write to MH i2c: E2 08 00 44 05 80 09 00 00 00 00 00 00 BB [21:47:48]Write i2c OK [21:47:48]MH_I2C_Read... [21:47:48]Read from MH i2c: E2 [21:47:48]MH_I2C_Read... [21:47:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:48]Read from MH i2c: E2 03 00 [21:47:48]MH_I2C_Read... [21:47:48]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [21:47:48]RAPDU: 90 00 [21:47:48]wFMCommunicate OK [21:47:48]SAM_PROTO_ClearQueue done [21:47:48]KKMCreateOFDPacket [21:47:48]OFDProtocolAddRootSTLVToBuf [21:47:48]FM_MakeSignedData [21:47:48]FM_MakeSignedData [21:47:48]SAM_PROTO_SignData [21:47:48]wFMCommunicate request_size=4 [21:47:48]MH_SAM_APDU [21:47:48]CAPDU: 80 0D 01 02 [21:47:48]Write to MH i2c: E2 08 00 45 05 80 0D 01 02 00 00 00 00 C3 [21:47:48]Write i2c OK [21:47:48]MH_I2C_Read... [21:47:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:48]Read from MH i2c: E2 [21:47:48]MH_I2C_Read... [21:47:48]Read from MH i2c: E2 03 00 [21:47:48]MH_I2C_Read... [21:47:48]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [21:47:48]RAPDU: 90 00 [21:47:48]wFMCommunicate OK [21:47:48]wFMCommunicate request_size=255 [21:47:48]MH_SAM_APDU [21:47:48]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 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 FC 03 06 00 68 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 83 8B 5F 66 0E 04 04 00 76 01 00 00 B9 04 [21:47:48]Write to MH i2c: E2 02 01 46 05 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 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 FC 03 06 00 68 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 83 8B 5F 66 0E 04 04 00 76 01 00 00 B9 04 00 00 F1 [21:47:48]Write i2c OK [21:47:48]MH_I2C_Read... [21:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:49]Read from MH i2c: E2 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: E2 03 00 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [21:47:49]RAPDU: 90 00 [21:47:49]wFMCommunicate OK [21:47:49]wFMCommunicate request_size=66 [21:47:49]MH_SAM_APDU [21:47:49]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 3F FA 00 00 35 04 06 00 EB E0 61 0D 29 BB [21:47:49]Write to MH i2c: E2 45 00 47 05 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 3F FA 00 00 35 04 06 00 EB E0 61 0D 29 BB 00 00 70 [21:47:49]Write i2c OK [21:47:49]MH_I2C_Read... [21:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:49]Read from MH i2c: E2 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: E2 03 00 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [21:47:49]RAPDU: 90 00 [21:47:49]wFMCommunicate OK [21:47:49]wFMCommunicate request_size=4 [21:47:49]MH_SAM_APDU [21:47:49]CAPDU: 80 0D 03 02 [21:47:49]Write to MH i2c: E2 08 00 48 05 80 0D 03 02 00 00 00 00 C8 [21:47:49]Write i2c OK [21:47:49]MH_I2C_Read... [21:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:49]Read from MH i2c: E2 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: E2 0B 00 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: E2 0B 00 48 05 00 79 AE 67 B7 AA 09 8E E4 90 00 33 [21:47:49]RAPDU: 79 AE 67 B7 AA 09 8E E4 90 00 [21:47:49]wFMCommunicate OK [21:47:49]SAM_PROTO_SignData done [21:47:49]FM_MakeSignedData done [21:47:49]CreateOFDProtocolMessage [21:47:49]wFMCommunicate request_size=4 [21:47:49]MH_SAM_APDU [21:47:49]CAPDU: 80 11 00 00 [21:47:49]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [21:47:49]Write i2c OK [21:47:49]MH_I2C_Read... [21:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:49]Read from MH i2c: E2 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: E2 17 00 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 1A [21:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:47:49]wFMCommunicate OK [21:47:49]CreateOFDProtocolMessage done [21:47:49]OFDSenderStorePacket 64063 [21:47:49]StoreOFDPacket docnum=64063 [21:47: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 47 01 00 00 4A 67 3F 01 C8 40 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 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 FC 03 06 00 68 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 83 8B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3F FA 00 00 35 04 06 00 EB E0 61 0D 29 BB 79 AE 67 B7 AA 09 8E E4 [21:47:49]CheckFolder [21:47:49]dirname=/storage/ofd_packets [21:47:49]CheckFolder done [21:47:49]ProducePacketName [21:47:49]name=ofd_packets/00064063 [21:47:49]NVStorageSaveData ofd_packets/00064063 [21:47:49]File name is /storage/ofd_packets/00064063 [21:47:49]Write 357 bytes [21:47:49]NVStorageSaveData done [21:47:49]OFDSenderStorePacket done [21:47:49]KKMCreateOFDPacket done [21:47:49]NVStorageSaveData kkm_last_timestamp [21:47:49]File name is /storage/kkm_last_timestamp [21:47:49]Write 4 bytes [21:47:49]NVStorageSaveData done [21:47:49]ExternCall_PrintAddStr [21:47:49]wPrintStart [21:47:49]Write to MH i2c: 01 00 00 4A 05 4F [21:47:49]Write i2c OK [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: 01 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: 01 07 00 [21:47:49]MH_I2C_Read... [21:47:49]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [21:47:49]RasterBufferAndPrint [21:47:49]line Счет N : (3)73606 [21:47:49]line ИНН: 02508201610067 [21:47:49]line Контрольно-Кассовый Чек [21:47:49]line ПРОДАЖА [21:47:49]line Товар: 2000151200112 [21:47:49]line АКЦИЯ Слойка треугольная курица 110г [21:47:49]line 2.000 * 53.00 [21:47:49]line = 106.00 [21:47:49]line НДС 12% НСП 1% [21:47:49]line > о реализуемом товаре [21:47:49]line ИТОГО: 106.00 [21:47:49]line НСП 1% : 0.94 [21:47:49]line НДС 12% : 11.26 [21:47:49]line Наличными: 0.00 [21:47:49]line Безнал.: 106.00 [21:47:49]line Место: АЗС № 117 "Партнер Нефть" [21:47:49]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:47:49]line СНО: Общий режим [21:47:49]line Чек 148 04.06.2024 21:47 [21:47:49]line Смена: 374 ФФД: 1.0 [21:47:49]line ЗНМ: 0300000031 [21:47:49]line РНМ: 0000000000092737 [21:47:49]line Версия ККМ: 001 [21:47:49]line Платежная система: Бакай Банк [21:47:49]line ФМ: 0000000000875074 [21:47:49]line ФД: 64063 [21:47:49]line ФПД: 259348933454267 [21:47:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214747&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64063&fm=259348933454267&tin=02508201610067®Number=0000000000092737&sum=10600 [21:47:49]line 0 [21:47:49]OFD Sender: Processing packet 64063 [packets to send 14, broken 13] [21:47:49]ProducePacketName [21:47:49]name=ofd_packets/00064063 [21:47:49]OFD Sender: To server: pG, [21:47:49]CommunicateWithHost lk.salyk.kg:30040 [21:47:49]ConnectInit lk.salyk.kg [21:47:49]written 0, free lines is 4095 [21:47:49]Connected sock=10 [21:47:49]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 4A 67 3F 01 C8 40 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 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 FC 03 06 00 68 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 83 8B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3F FA 00 00 35 04 06 00 EB E0 61 0D 29 BB 79 AE 67 B7 AA 09 8E E4 [21:47: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 52 EF 47 00 E1 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 3F FA 00 00 F4 03 04 00 91 37 5F 66 B6 04 01 00 00 DB 91 62 2A 0C 10 50 7E [21:47:50]CommunicateWithHost err = 0 [21:47:50]CheckOFDResponse [21:47:50]1017 (14) - 77093643461234 [21:47:50]1041 (16) - 0000000000875074 [21:47:50]1040 (4) - 64063 [21:47:50]1012 (4) - 04.06.2024 15:49 [21:47:50]1206 (1) - 0 [21:47:50]OFD Sender: Remove packet 64063 [21:47:50]ProducePacketName [21:47:50]name=ofd_packets/00064063 [21:47:50]NVStorageDeleteData [21:47:50]Write to MH i2c: 01 00 00 75 05 7A [21:47:50]Write i2c OK [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: 01 [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: 01 07 00 [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 C9 0C 56 [21:47:50]RasterBufferAndPrint [21:47:50]line [21:47:50]line [21:47:50]line [21:47:50]line [21:47:50]line [21:47:50]written 0, free lines is 3280 [21:47:50]MH_Cut [21:47:50]Write to MH i2c: D1 01 00 7C 05 01 53 [21:47:50]Write i2c OK [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: D1 [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: D1 01 00 [21:47:50]MH_I2C_Read... [21:47:50]Read from MH i2c: D1 01 00 7C 05 00 52 [21:47:50]Write to MH i2c: 01 00 00 7D 05 82 [21:47:50]Write i2c OK [21:47:50]MH_I2C_Read... [21:47:50]OFD Sender: No OFD packet to send [21:47:51]*** Cut start [21:47:51]*** Partial cut [21:47:51]*** CUTSNS_PIN = 1 [21:47:51]*** CUTSNS_PIN = 0 [21:47:51]*** Brake cut motor [21:47:51]Read from MH i2c: 01 [21:47:51]MH_I2C_Read... [21:47:51]*** Stop cut motor [21:47:51]*** Cut end [21:47:51]Read from MH i2c: 01 07 00 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 FF 0F 97 [21:47:51]process_action close_receipt done [21:47:51]requested_data is exist [21:47:51]produce_requested_data [21:47:51]requested_item fm.sn is exist - process it [21:47:51]wFMCommunicate request_size=4 [21:47:51]MH_SAM_APDU [21:47:51]CAPDU: 80 11 00 00 [21:47:51]Write to MH i2c: E2 08 00 7E 05 80 11 00 00 00 00 00 00 FD [21:47:51]Write i2c OK [21:47:51]MH_I2C_Read... [21:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:51]Read from MH i2c: E2 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: E2 17 00 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: E2 17 00 7E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4F [21:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:47:51]wFMCommunicate OK [21:47:51]requested_item fd.num is exist - process it [21:47:51]SAM_PROTO_GetFieldsCounters [21:47:51]wFMCommunicate request_size=4 [21:47:51]MH_SAM_APDU [21:47:51]CAPDU: 80 13 00 00 [21:47:51]Write to MH i2c: E2 08 00 7F 05 80 13 00 00 00 00 00 00 00 [21:47:51]Write i2c OK [21:47:51]MH_I2C_Read... [21:47:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:51]Read from MH i2c: E2 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: E2 62 00 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: E2 62 00 7F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 3F FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [21:47: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 3F FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:51]wFMCommunicate OK [21:47:51]SAM_PROTO_GetFieldsCounters done [21:47:51]requested_item shift.num is exist - process it [21:47:51]requested_item shift.opened is exist - process it [21:47:51]req_shift_opened [21:47:51]FM_GetShiftState [21:47:51]SAM_PROTO_GetShiftState [21:47:51]wFMCommunicate request_size=4 [21:47:51]MH_SAM_APDU [21:47:51]CAPDU: 80 13 01 00 [21:47:51]Write to MH i2c: E2 08 00 80 05 80 13 01 00 00 00 00 00 02 [21:47:51]Write i2c OK [21:47:51]MH_I2C_Read... [21:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:51]Read from MH i2c: E2 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: E2 0E 00 [21:47:51]MH_I2C_Read... [21:47:51]Read from MH i2c: E2 0E 00 80 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A2 [21:47:51]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:47:51]wFMCommunicate OK [21:47:51]SAM_PROTO_GetShiftState done [21:47:51]FM_GetShiftState done [21:47:51]req_shift_opened done [21:47:51]requested_item shift.open_date is exist - process it [21:47:51]req_shift_open_date [21:47:51]req_shift_open_date done [21:47:51]produce_requested_data done [21:47:51]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64063,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:47:51]process_action_free close_receipt [21:47:51]json_value_free [21:47:51]json_value_free done [21:47:51]process_json_proto returns [21:47:51]Send response to host [21:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64063,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:47:51]free response buf [21:47:51]execute_script done [21:47:51]execute_script returns [21:47:51]free content buf [21:47:51]Sock 8.Close socket [21:47:51]Sock 8.Thread stoped [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]accept exits with 9 [21:49:10]New connection [21:49:10]New thread 3067133284 created [21:49:10]Thread 3067276644 joined [21:49:10]Waiting for new connection... [21:49:10] Sock 9.Parse request [21:49:10]Sock 9.Check first char [21:49:10]Sock 9.First char is OK [21:49:10]request: POST /json_proto HTTP/1.0 [21:49:10]Method: POST [21:49:10]URL: /json_proto [21:49:10]Method is POST - this is cgi request [21:49:10]url: /json_proto [21:49:10]query_string will be loaded in cgi processing [21:49:10]execute_cgi json_proto POST (null) [21:49:10]execute_cgi path=json_proto method=POST [21:49:10]POST find Content-Length [21:49:10]Host: 172.17.60.69:8080 [21:49:10]Content-Length: 682 [21:49:10]Content-Type: application/json [21:49:10] [21:49:10]POST finish read [21:49:10]Found Content-Length = 682 [21:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:10]execute_script... [21:49:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)545182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:10]POST & json_proto [21:49:10]process_json_proto [21:49:10]json parsed OK: [21:49:10]protocol is kg_v1.0 [21:49:10]action value=close_receipt [21:49:10]process_action close_receipt [21:49:10]cmd_close_receipt [21:49:10]MH_GetDate [21:49:10]Write to MH i2c: F0 00 00 81 05 75 [21:49:10]Write i2c OK [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: F0 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: F0 09 00 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: F0 09 00 81 05 00 D6 8B 5F 66 D2 83 5F 66 BE [21:49:10]GetLastDocTimeStamp 1717537667 [21:49:10]current date 1717537750 [21:49:10]FM_GetShiftState [21:49:10]SAM_PROTO_GetShiftState [21:49:10]wFMCommunicate request_size=4 [21:49:10]MH_SAM_APDU [21:49:10]CAPDU: 80 13 01 00 [21:49:10]Write to MH i2c: E2 08 00 82 05 80 13 01 00 00 00 00 00 04 [21:49:10]Write i2c OK [21:49:10]MH_I2C_Read... [21:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:10]Read from MH i2c: E2 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: E2 0E 00 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: E2 0E 00 82 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 A4 [21:49:10]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:49:10]wFMCommunicate OK [21:49:10]SAM_PROTO_GetShiftState done [21:49:10]FM_GetShiftState done [21:49:10]opened in 1717459574 [21:49:10]opened+sec_in_day 1717545974 [21:49:10]quantity*price = 100060 [21:49:10]sum+1 = 100062 [21:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 149 04.06.2024 21:49 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64064 ФПД: 10631482823830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214910&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64064&fm=10631482823830&tin=02508201610067®Number=0000000000092737&sum=100000 [21:49:11]StoreToDocumentArchive [21:49:11]shift 374 fd 64064 [21:49:11]save to /storage/0374/doc_00064064 [21:49:11]save last doc name /storage/0374/doc_00064064 to /storage/kkm_last_doc_name [21:49:11]save OK [21:49:11]Clear old archive folders... [21:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:11]tlvbuf is 010915C0 [21:49:11]SAM_PROTO_ClearQueue [21:49:11]wFMCommunicate request_size=4 [21:49:11]MH_SAM_APDU [21:49:11]CAPDU: 80 09 00 00 [21:49:11]Write to MH i2c: E2 08 00 8F 05 80 09 00 00 00 00 00 00 06 [21:49:11]Write i2c OK [21:49:11]MH_I2C_Read... [21:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:11]Read from MH i2c: E2 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 03 00 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [21:49:11]RAPDU: 90 00 [21:49:11]wFMCommunicate OK [21:49:11]SAM_PROTO_ClearQueue done [21:49:11]KKMCreateOFDPacket [21:49:11]OFDProtocolAddRootSTLVToBuf [21:49:11]FM_MakeSignedData [21:49:11]FM_MakeSignedData [21:49:11]SAM_PROTO_SignData [21:49:11]wFMCommunicate request_size=4 [21:49:11]MH_SAM_APDU [21:49:11]CAPDU: 80 0D 01 02 [21:49:11]Write to MH i2c: E2 08 00 90 05 80 0D 01 02 00 00 00 00 0E [21:49:11]Write i2c OK [21:49:11]MH_I2C_Read... [21:49:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:11]Read from MH i2c: E2 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 03 00 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [21:49:11]RAPDU: 90 00 [21:49:11]wFMCommunicate OK [21:49:11]wFMCommunicate request_size=255 [21:49:11]MH_SAM_APDU [21:49:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 D6 8B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 40 FA 00 00 35 04 06 00 09 [21:49:11]Write to MH i2c: E2 02 01 91 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 D6 8B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 40 FA 00 00 35 04 06 00 09 00 00 7A [21:49:11]Write i2c OK [21:49:11]MH_I2C_Read... [21:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:11]Read from MH i2c: E2 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 03 00 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [21:49:11]RAPDU: 90 00 [21:49:11]wFMCommunicate OK [21:49:11]wFMCommunicate request_size=10 [21:49:11]MH_SAM_APDU [21:49:11]CAPDU: 80 0D 02 02 05 AB 55 C1 D4 96 [21:49:11]Write to MH i2c: E2 0D 00 92 05 80 0D 02 02 05 00 AB 55 C1 D4 96 00 00 46 [21:49:11]Write i2c OK [21:49:11]MH_I2C_Read... [21:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:11]Read from MH i2c: E2 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 03 00 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [21:49:11]RAPDU: 90 00 [21:49:11]wFMCommunicate OK [21:49:11]wFMCommunicate request_size=4 [21:49:11]MH_SAM_APDU [21:49:11]CAPDU: 80 0D 03 02 [21:49:11]Write to MH i2c: E2 08 00 93 05 80 0D 03 02 00 00 00 00 13 [21:49:11]Write i2c OK [21:49:11]MH_I2C_Read... [21:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:11]Read from MH i2c: E2 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 0B 00 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 0B 00 93 05 00 1F A1 03 90 FF 49 4D A1 90 00 9D [21:49:11]RAPDU: 1F A1 03 90 FF 49 4D A1 90 00 [21:49:11]wFMCommunicate OK [21:49:11]SAM_PROTO_SignData done [21:49:11]FM_MakeSignedData done [21:49:11]CreateOFDProtocolMessage [21:49:11]wFMCommunicate request_size=4 [21:49:11]MH_SAM_APDU [21:49:11]CAPDU: 80 11 00 00 [21:49:11]Write to MH i2c: E2 08 00 94 05 80 11 00 00 00 00 00 00 13 [21:49:11]Write i2c OK [21:49:11]MH_I2C_Read... [21:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:11]Read from MH i2c: E2 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 17 00 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: E2 17 00 94 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 65 [21:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:49:11]wFMCommunicate OK [21:49:11]CreateOFDProtocolMessage done [21:49:11]OFDSenderStorePacket 64064 [21:49:11]StoreOFDPacket docnum=64064 [21:49: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 0F 01 00 00 9B 61 07 01 25 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 D6 8B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 40 FA 00 00 35 04 06 00 09 AB 55 C1 D4 96 1F A1 03 90 FF 49 4D A1 [21:49:11]CheckFolder [21:49:11]dirname=/storage/ofd_packets [21:49:11]CheckFolder done [21:49:11]ProducePacketName [21:49:11]name=ofd_packets/00064064 [21:49:11]NVStorageSaveData ofd_packets/00064064 [21:49:11]File name is /storage/ofd_packets/00064064 [21:49:11]Write 301 bytes [21:49:11]NVStorageSaveData done [21:49:11]OFDSenderStorePacket done [21:49:11]KKMCreateOFDPacket done [21:49:11]NVStorageSaveData kkm_last_timestamp [21:49:11]File name is /storage/kkm_last_timestamp [21:49:11]Write 4 bytes [21:49:11]NVStorageSaveData done [21:49:11]ExternCall_PrintAddStr [21:49:11]wPrintStart [21:49:11]Write to MH i2c: 01 00 00 95 05 9A [21:49:11]Write i2c OK [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: 01 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: 01 07 00 [21:49:11]MH_I2C_Read... [21:49:11]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [21:49:11]RasterBufferAndPrint [21:49:11]line Счет N : (1)545182 [21:49:11]line ИНН: 02508201610067 [21:49:11]line Контрольно-Кассовый Чек [21:49:11]line ПРОДАЖА [21:49:11]line ТРК (МРК, ГНК) : 43 [21:49:11]line Товар: 2710124500 [21:49:11]line Аи-95-К-5 [21:49:11]line 13.540 * 73.90 [21:49:11]line = 1000.61 [21:49:11]line НДС 12% НСП 1% [21:49:11]line > о реализуемом товаре [21:49:11]line ОКРУГЛЕНИЕ: -0.61 [21:49:11]line ИТОГО: 1000.00 [21:49:11]line Внесено: 1000.00 [21:49:11]line СДАЧА: 0.00 [21:49:11]line НСП 1% : 8.85 [21:49:11]line НДС 12% : 106.26 [21:49:11]line Наличными: 1000.00 [21:49:11]line Безнал.: 0.00 [21:49:11]line Место: АЗС № 117 "Партнер Нефть" [21:49:11]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:49:11]line СНО: Общий режим [21:49:11]line Чек 149 04.06.2024 21:49 [21:49:11]line Смена: 374 ФФД: 1.0 [21:49:11]line ЗНМ: 0300000031 [21:49:11]line РНМ: 0000000000092737 [21:49:11]line Версия ККМ: 001 [21:49:11]line ФМ: 0000000000875074 [21:49:11]line ФД: 64064 [21:49:11]line ФПД: 10631482823830 [21:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T214910&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64064&fm=10631482823830&tin=02508201610067®Number=0000000000092737&sum=100000 [21:49:12]OFD Sender: Processing packet 64064 [packets to send 14, broken 13] [21:49:12]ProducePacketName [21:49:12]name=ofd_packets/00064064 [21:49:12]OFD Sender: To server: pG, [21:49:12]CommunicateWithHost lk.salyk.kg:30040 [21:49:12]ConnectInit lk.salyk.kg [21:49:12]written 0, free lines is 4095 [21:49:12]Connected sock=10 [21:49: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 0F 01 00 00 9B 61 07 01 25 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 D6 8B 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 40 FA 00 00 35 04 06 00 09 AB 55 C1 D4 96 1F A1 03 90 FF 49 4D A1 [21:49: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 AD 0D 47 00 8D 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 40 FA 00 00 F4 03 04 00 E3 37 5F 66 B6 04 01 00 00 BB D7 F9 33 04 6E 17 05 [21:49:12]CommunicateWithHost err = 0 [21:49:12]CheckOFDResponse [21:49:12]1017 (14) - 77093643461234 [21:49:12]1041 (16) - 0000000000875074 [21:49:12]1040 (4) - 64064 [21:49:12]1012 (4) - 04.06.2024 15:50 [21:49:12]1206 (1) - 0 [21:49:12]OFD Sender: Remove packet 64064 [21:49:12]ProducePacketName [21:49:12]name=ofd_packets/00064064 [21:49:12]NVStorageDeleteData [21:49:12]Write to MH i2c: 01 00 00 C0 05 C5 [21:49:12]Write i2c OK [21:49:12]MH_I2C_Read... [21:49:12]Read from MH i2c: 01 [21:49:12]MH_I2C_Read... [21:49:12]Read from MH i2c: 01 07 00 [21:49:12]MH_I2C_Read... [21:49:12]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 DF 0C B7 [21:49:12]RasterBufferAndPrint [21:49:12]line [21:49:12]line [21:49:12]line [21:49:12]line [21:49:12]line [21:49:12]written 0, free lines is 3303 [21:49:12]MH_Cut [21:49:12]Write to MH i2c: D1 01 00 C7 05 01 9E [21:49:12]Write i2c OK [21:49:12]MH_I2C_Read... [21:49:12]Read from MH i2c: D1 [21:49:12]MH_I2C_Read... [21:49:12]Read from MH i2c: D1 01 00 [21:49:12]MH_I2C_Read... [21:49:12]Read from MH i2c: D1 01 00 C7 05 00 9D [21:49:12]Write to MH i2c: 01 00 00 C8 05 CD [21:49:12]Write i2c OK [21:49:12]MH_I2C_Read... [21:49:12]OFD Sender: No OFD packet to send [21:49:13]*** Cut start [21:49:13]*** Partial cut [21:49:13]*** CUTSNS_PIN = 1 [21:49:13]*** CUTSNS_PIN = 0 [21:49:13]*** Brake cut motor [21:49:14]Read from MH i2c: 01 [21:49:14]MH_I2C_Read... [21:49:14]*** Stop cut motor [21:49:14]*** Cut end [21:49:14]Read from MH i2c: 01 07 00 [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 FF 0F E2 [21:49:14]process_action close_receipt done [21:49:14]requested_data is exist [21:49:14]produce_requested_data [21:49:14]requested_item fm.sn is exist - process it [21:49:14]wFMCommunicate request_size=4 [21:49:14]MH_SAM_APDU [21:49:14]CAPDU: 80 11 00 00 [21:49:14]Write to MH i2c: E2 08 00 C9 05 80 11 00 00 00 00 00 00 48 [21:49:14]Write i2c OK [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: E2 [21:49:14]MH_I2C_Read... [21:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:14]Read from MH i2c: E2 17 00 [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: E2 17 00 C9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 9A [21:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:49:14]wFMCommunicate OK [21:49:14]requested_item fd.num is exist - process it [21:49:14]SAM_PROTO_GetFieldsCounters [21:49:14]wFMCommunicate request_size=4 [21:49:14]MH_SAM_APDU [21:49:14]CAPDU: 80 13 00 00 [21:49:14]Write to MH i2c: E2 08 00 CA 05 80 13 00 00 00 00 00 00 4B [21:49:14]Write i2c OK [21:49:14]MH_I2C_Read... [21:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:14]Read from MH i2c: E2 [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: E2 62 00 [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: E2 62 00 CA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 40 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [21:49: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 40 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:14]wFMCommunicate OK [21:49:14]SAM_PROTO_GetFieldsCounters done [21:49:14]requested_item shift.num is exist - process it [21:49:14]requested_item shift.opened is exist - process it [21:49:14]req_shift_opened [21:49:14]FM_GetShiftState [21:49:14]SAM_PROTO_GetShiftState [21:49:14]wFMCommunicate request_size=4 [21:49:14]MH_SAM_APDU [21:49:14]CAPDU: 80 13 01 00 [21:49:14]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [21:49:14]Write i2c OK [21:49:14]MH_I2C_Read... [21:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:14]Read from MH i2c: E2 [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: E2 0E 00 [21:49:14]MH_I2C_Read... [21:49:14]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 ED [21:49:14]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:49:14]wFMCommunicate OK [21:49:14]SAM_PROTO_GetShiftState done [21:49:14]FM_GetShiftState done [21:49:14]req_shift_opened done [21:49:14]requested_item shift.open_date is exist - process it [21:49:14]req_shift_open_date [21:49:14]req_shift_open_date done [21:49:14]produce_requested_data done [21:49:14]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64064,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:49:14]process_action_free close_receipt [21:49:14]json_value_free [21:49:14]json_value_free done [21:49:14]process_json_proto returns [21:49:14]Send response to host [21:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64064,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:49:14]free response buf [21:49:14]execute_script done [21:49:14]execute_script returns [21:49:14]free content buf [21:49:14]Sock 9.Close socket [21:49:14]Sock 9.Thread stoped [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:55]accept exits with 8 [21:50:55]New connection [21:50:55]New thread 3067276644 created [21:50:55]Thread 3067133284 joined [21:50:55]Waiting for new connection... [21:50:55] Sock 8.Parse request [21:50:55]Sock 8.Check first char [21:50:55]Sock 8.First char is OK [21:50:55]request: POST /json_proto HTTP/1.0 [21:50:55]Method: POST [21:50:55]URL: /json_proto [21:50:55]Method is POST - this is cgi request [21:50:55]url: /json_proto [21:50:55]query_string will be loaded in cgi processing [21:50:55]execute_cgi json_proto POST (null) [21:50:55]execute_cgi path=json_proto method=POST [21:50:55]POST find Content-Length [21:50:55]Host: 172.17.60.69:8080 [21:50:55]Content-Length: 694 [21:50:55]Content-Type: application/json [21:50:55] [21:50:55]POST finish read [21:50:55]Found Content-Length = 694 [21:50:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73607", "tax_sys" : 0, "items" : [ { "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "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" ] } } [21:50:55]execute_script... [21:50:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73607", "tax_sys" : 0, "items" : [ { "code": "2000039210050", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u0433\u043E\u0432\u044F\u0436\u044C\u044F 180\u0433", "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" ] } } [21:50:55]POST & json_proto [21:50:55]process_json_proto [21:50:55]json parsed OK: [21:50:55]protocol is kg_v1.0 [21:50:55]action value=close_receipt [21:50:55]process_action close_receipt [21:50:55]cmd_close_receipt [21:50:55]MH_GetDate [21:50:55]Write to MH i2c: F0 00 00 CC 05 C0 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: F0 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: F0 09 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: F0 09 00 CC 05 00 3F 8C 5F 66 D2 83 5F 66 73 [21:50:55]GetLastDocTimeStamp 1717537750 [21:50:55]current date 1717537855 [21:50:55]FM_GetShiftState [21:50:55]SAM_PROTO_GetShiftState [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 13 01 00 [21:50:55]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 0E 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 EF [21:50:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:50:55]wFMCommunicate OK [21:50:55]SAM_PROTO_GetShiftState done [21:50:55]FM_GetShiftState done [21:50:55]opened in 1717459574 [21:50:55]opened+sec_in_day 1717545974 [21:50:55]quantity*price = 14000 [21:50:55]sum+1 = 14001 [21:50:55]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 СНО: Общий режим Чек 150 04.06.2024 21:50 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64065 ФПД: 228623638531295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215055&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64065&fm=228623638531295&tin=02508201610067®Number=0000000000092737&sum=14000 0 [21:50:56]StoreToDocumentArchive [21:50:56]shift 374 fd 64065 [21:50:56]save to /storage/0374/doc_00064065 [21:50:56]save last doc name /storage/0374/doc_00064065 to /storage/kkm_last_doc_name [21:50:56]save OK [21:50:56]Clear old archive folders... [21:50:56]ProcessDocumentItem done err = 0, tmpTLVsize=295 [21:50:56]tlvbuf is 0107D6F0 [21:50:56]SAM_PROTO_ClearQueue [21:50:56]wFMCommunicate request_size=4 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 09 00 00 [21:50:56]Write to MH i2c: E2 08 00 DA 05 80 09 00 00 00 00 00 00 51 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [21:50:56]RAPDU: 90 00 [21:50:56]wFMCommunicate OK [21:50:56]SAM_PROTO_ClearQueue done [21:50:56]KKMCreateOFDPacket [21:50:56]OFDProtocolAddRootSTLVToBuf [21:50:56]FM_MakeSignedData [21:50:56]FM_MakeSignedData [21:50:56]SAM_PROTO_SignData [21:50:56]wFMCommunicate request_size=4 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 0D 01 02 [21:50:56]Write to MH i2c: E2 08 00 DB 05 80 0D 01 02 00 00 00 00 59 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:56]Read from MH i2c: E2 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [21:50:56]RAPDU: 90 00 [21:50:56]wFMCommunicate OK [21:50:56]wFMCommunicate request_size=255 [21:50:56]MH_SAM_APDU [21:50:56]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 96 00 00 00 F4 03 04 00 3F 8C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [21:50:56]Write to MH i2c: E2 02 01 DC 05 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 96 00 00 00 F4 03 04 00 3F 8C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 B3 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [21:50:57]RAPDU: 90 00 [21:50:57]wFMCommunicate OK [21:50:57]wFMCommunicate request_size=54 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 41 FA 00 00 35 04 06 00 CF EE 96 C3 0C DF [21:50:57]Write to MH i2c: E2 39 00 DD 05 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 41 FA 00 00 35 04 06 00 CF EE 96 C3 0C DF 00 00 C1 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [21:50:57]RAPDU: 90 00 [21:50:57]wFMCommunicate OK [21:50:57]wFMCommunicate request_size=4 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 0D 03 02 [21:50:57]Write to MH i2c: E2 08 00 DE 05 80 0D 03 02 00 00 00 00 5E [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 0B 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 0B 00 DE 05 00 E2 A7 03 E1 16 42 1C 40 90 00 80 [21:50:57]RAPDU: E2 A7 03 E1 16 42 1C 40 90 00 [21:50:57]wFMCommunicate OK [21:50:57]SAM_PROTO_SignData done [21:50:57]FM_MakeSignedData done [21:50:57]CreateOFDProtocolMessage [21:50:57]wFMCommunicate request_size=4 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 11 00 00 [21:50:57]Write to MH i2c: E2 08 00 DF 05 80 11 00 00 00 00 00 00 5E [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 17 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 17 00 DF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B0 [21:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:50:57]wFMCommunicate OK [21:50:57]CreateOFDProtocolMessage done [21:50:57]OFDSenderStorePacket 64065 [21:50:57]StoreOFDPacket docnum=64065 [21:50: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 3B 01 00 00 12 73 33 01 6E 55 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 96 00 00 00 F4 03 04 00 3F 8C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 41 FA 00 00 35 04 06 00 CF EE 96 C3 0C DF E2 A7 03 E1 16 42 1C 40 [21:50:57]CheckFolder [21:50:57]dirname=/storage/ofd_packets [21:50:57]CheckFolder done [21:50:57]ProducePacketName [21:50:57]name=ofd_packets/00064065 [21:50:57]NVStorageSaveData ofd_packets/00064065 [21:50:57]File name is /storage/ofd_packets/00064065 [21:50:57]Write 345 bytes [21:50:57]NVStorageSaveData done [21:50:57]OFDSenderStorePacket done [21:50:57]KKMCreateOFDPacket done [21:50:57]NVStorageSaveData kkm_last_timestamp [21:50:57]File name is /storage/kkm_last_timestamp [21:50:57]Write 4 bytes [21:50:57]NVStorageSaveData done [21:50:57]ExternCall_PrintAddStr [21:50:57]wPrintStart [21:50:57]Write to MH i2c: 01 00 00 E0 05 E5 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 E0 05 00 00 00 00 00 FF 0F FA [21:50:57]RasterBufferAndPrint [21:50:57]line Счет N : (3)73607 [21:50:57]line ИНН: 02508201610067 [21:50:57]line Контрольно-Кассовый Чек [21:50:57]line ПРОДАЖА [21:50:57]line Товар: 2000039210050 [21:50:57]line АКЦИЯ Френч-дог Sib говяжья 180г [21:50:57]line 1.000 * 140.00 [21:50:57]line = 140.00 [21:50:57]line НДС 12% НСП 1% [21:50:57]line > о реализуемом товаре [21:50:57]line ИТОГО: 140.00 [21:50:57]line НСП 1% : 1.24 [21:50:57]line НДС 12% : 14.87 [21:50:57]line Наличными: 140.00 [21:50:57]line Безнал.: 0.00 [21:50:57]line Место: АЗС № 117 "Партнер Нефть" [21:50:57]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:50:57]line СНО: Общий режим [21:50:57]line Чек 150 04.06.2024 21:50 [21:50:57]line Смена: 374 ФФД: 1.0 [21:50:57]line ЗНМ: 0300000031 [21:50:57]line РНМ: 0000000000092737 [21:50:57]line Версия ККМ: 001 [21:50:57]line ФМ: 0000000000875074 [21:50:57]line ФД: 64065 [21:50:57]line ФПД: 228623638531295 [21:50:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215055&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64065&fm=228623638531295&tin=02508201610067®Number=0000000000092737&sum=14000 [21:50:57]line 0 [21:50:57]written 0, free lines is 4095 [21:50:57]OFD Sender: Processing packet 64065 [packets to send 14, broken 13] [21:50:57]ProducePacketName [21:50:57]name=ofd_packets/00064065 [21:50:57]OFD Sender: To server: pG, [21:50:57]CommunicateWithHost lk.salyk.kg:30040 [21:50:57]ConnectInit lk.salyk.kg [21:50:57]Connected sock=10 [21:50:57]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 3B 01 00 00 12 73 33 01 6E 55 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 30 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 B3 D0 BE D0 B2 D1 8F D0 B6 D1 8C D1 8F 20 31 38 30 D0 B3 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 96 00 00 00 F4 03 04 00 3F 8C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 41 FA 00 00 35 04 06 00 CF EE 96 C3 0C DF E2 A7 03 E1 16 42 1C 40 [21:50:57]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 DF 47 00 C6 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 41 FA 00 00 F4 03 04 00 4D 38 5F 66 B6 04 01 00 00 EA 79 DD CA A3 E8 F3 31 [21:50:57]CommunicateWithHost err = 0 [21:50:57]CheckOFDResponse [21:50:57]1017 (14) - 77093643461234 [21:50:57]1041 (16) - 0000000000875074 [21:50:57]1040 (4) - 64065 [21:50:57]1012 (4) - 04.06.2024 15:52 [21:50:57]1206 (1) - 0 [21:50:57]OFD Sender: Remove packet 64065 [21:50:57]ProducePacketName [21:50:57]name=ofd_packets/00064065 [21:50:57]NVStorageDeleteData [21:50:57]Write to MH i2c: 01 00 00 09 06 0F [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 09 06 00 00 00 00 00 E4 0C 06 [21:50:57]RasterBufferAndPrint [21:50:57]line [21:50:57]line [21:50:57]line [21:50:57]line [21:50:57]line [21:50:57]written 0, free lines is 3308 [21:50:57]MH_Cut [21:50:57]Write to MH i2c: D1 01 00 10 06 01 E8 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: D1 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: D1 01 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: D1 01 00 10 06 00 E7 [21:50:57]Write to MH i2c: 01 00 00 11 06 17 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:58]OFD Sender: No OFD packet to send [21:50:58]*** Cut start [21:50:58]*** Partial cut [21:50:58]*** CUTSNS_PIN = 1 [21:50:58]*** CUTSNS_PIN = 0 [21:50:58]*** Brake cut motor [21:50:59]Read from MH i2c: 01 [21:50:59]MH_I2C_Read... [21:50:59]*** Stop cut motor [21:50:59]*** Cut end [21:50:59]Read from MH i2c: 01 07 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: 01 07 00 11 06 00 00 00 00 00 FF 0F 2C [21:50:59]process_action close_receipt done [21:50:59]requested_data is exist [21:50:59]produce_requested_data [21:50:59]requested_item fm.sn is exist - process it [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 11 00 00 [21:50:59]Write to MH i2c: E2 08 00 12 06 80 11 00 00 00 00 00 00 92 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 17 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 17 00 12 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E4 [21:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:50:59]wFMCommunicate OK [21:50:59]requested_item fd.num is exist - process it [21:50:59]SAM_PROTO_GetFieldsCounters [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 13 00 00 [21:50:59]Write to MH i2c: E2 08 00 13 06 80 13 00 00 00 00 00 00 95 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 62 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 62 00 13 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 41 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [21:50: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 41 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:59]wFMCommunicate OK [21:50:59]SAM_PROTO_GetFieldsCounters done [21:50:59]requested_item shift.num is exist - process it [21:50:59]requested_item shift.opened is exist - process it [21:50:59]req_shift_opened [21:50:59]FM_GetShiftState [21:50:59]SAM_PROTO_GetShiftState [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 13 01 00 [21:50:59]Write to MH i2c: E2 08 00 14 06 80 13 01 00 00 00 00 00 97 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 0E 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 0E 00 14 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 37 [21:50:59]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:50:59]wFMCommunicate OK [21:50:59]SAM_PROTO_GetShiftState done [21:50:59]FM_GetShiftState done [21:50:59]req_shift_opened done [21:50:59]requested_item shift.open_date is exist - process it [21:50:59]req_shift_open_date [21:50:59]req_shift_open_date done [21:50:59]produce_requested_data done [21:50:59]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64065,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:50:59]process_action_free close_receipt [21:50:59]json_value_free [21:50:59]json_value_free done [21:50:59]process_json_proto returns [21:50:59]Send response to host [21:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64065,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:50:59]free response buf [21:50:59]execute_script done [21:50:59]execute_script returns [21:50:59]free content buf [21:50:59]Sock 8.Close socket [21:50:59]Sock 8.Thread stoped [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:19]accept exits with 9 [21:53:19]New connection [21:53:19]New thread 3067133284 created [21:53:19]Thread 3067276644 joined [21:53:19]Waiting for new connection... [21:53:19] Sock 9.Parse request [21:53:19]Sock 9.Check first char [21:53:19]Sock 9.First char is OK [21:53:19]request: POST /json_proto HTTP/1.0 [21:53:19]Method: POST [21:53:19]URL: /json_proto [21:53:19]Method is POST - this is cgi request [21:53:19]url: /json_proto [21:53:19]query_string will be loaded in cgi processing [21:53:19]execute_cgi json_proto POST (null) [21:53:19]execute_cgi path=json_proto method=POST [21:53:19]POST find Content-Length [21:53:19]Host: 172.17.60.69:8080 [21:53:19]Content-Length: 891 [21:53:19]Content-Type: application/json [21:53:19] [21:53:19]POST finish read [21:53:19]Found Content-Length = 891 [21:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73608", "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 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 241.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:19]execute_script... [21:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73608", "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 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 241.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:19]POST & json_proto [21:53:19]process_json_proto [21:53:19]json parsed OK: [21:53:19]protocol is kg_v1.0 [21:53:19]action value=close_receipt [21:53:19]process_action close_receipt [21:53:19]cmd_close_receipt [21:53:19]MH_GetDate [21:53:19]Write to MH i2c: F0 00 00 15 06 0A [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: F0 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: F0 09 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: F0 09 00 15 06 00 CF 8C 5F 66 D2 83 5F 66 4D [21:53:19]GetLastDocTimeStamp 1717537855 [21:53:19]current date 1717537999 [21:53:19]FM_GetShiftState [21:53:19]SAM_PROTO_GetShiftState [21:53:19]wFMCommunicate request_size=4 [21:53:19]MH_SAM_APDU [21:53:19]CAPDU: 80 13 01 00 [21:53:19]Write to MH i2c: E2 08 00 16 06 80 13 01 00 00 00 00 00 99 [21:53:19]Write i2c OK [21:53:19]MH_I2C_Read... [21:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:19]Read from MH i2c: E2 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 0E 00 [21:53:19]MH_I2C_Read... [21:53:19]Read from MH i2c: E2 0E 00 16 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 39 [21:53:19]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:53:19]wFMCommunicate OK [21:53:19]SAM_PROTO_GetShiftState done [21:53:19]FM_GetShiftState done [21:53:19]opened in 1717459574 [21:53:19]opened+sec_in_day 1717545974 [21:53:19]quantity*price = 15100 [21:53:19]sum+1 = 15101 [21:53:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54492509 Напиток Кока-Кола 0,25л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 241.00 НСП 1% : 2.14 НДС 12% : 25.59 Наличными: 241.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 151 04.06.2024 21:53 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64066 ФПД: 188170179972949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215319&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64066&fm=188170179972949&tin=02508201610067®Number=0000000000092737&sum=24100 0 [21:53:20]StoreToDocumentArchive [21:53:20]shift 374 fd 64066 [21:53:20]save to /storage/0374/doc_00064066 [21:53:20]save last doc name /storage/0374/doc_00064066 to /storage/kkm_last_doc_name [21:53:20]save OK [21:53:20]Clear old archive folders... [21:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=380 [21:53:20]tlvbuf is 00F9FD70 [21:53:20]SAM_PROTO_ClearQueue [21:53:20]wFMCommunicate request_size=4 [21:53:20]MH_SAM_APDU [21:53:20]CAPDU: 80 09 00 00 [21:53:20]Write to MH i2c: E2 08 00 23 06 80 09 00 00 00 00 00 00 9B [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 [21:53:20]MH_I2C_Read... [21:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:20]Read from MH i2c: E2 03 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 03 00 23 06 00 90 00 9D [21:53:20]RAPDU: 90 00 [21:53:20]wFMCommunicate OK [21:53:20]SAM_PROTO_ClearQueue done [21:53:20]KKMCreateOFDPacket [21:53:20]OFDProtocolAddRootSTLVToBuf [21:53:20]FM_MakeSignedData [21:53:20]FM_MakeSignedData [21:53:20]SAM_PROTO_SignData [21:53:20]wFMCommunicate request_size=4 [21:53:20]MH_SAM_APDU [21:53:20]CAPDU: 80 0D 01 02 [21:53:20]Write to MH i2c: E2 08 00 24 06 80 0D 01 02 00 00 00 00 A3 [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:20]Read from MH i2c: E2 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 03 00 [21:53:20]MH_I2C_Read... [21:53:20]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [21:53:20]RAPDU: 90 00 [21:53:20]wFMCommunicate OK [21:53:20]wFMCommunicate request_size=255 [21:53:20]MH_SAM_APDU [21:53:20]CAPDU: 80 0D 02 02 FA 03 00 7C 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 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 [21:53:20]Write to MH i2c: E2 02 01 25 06 80 0D 02 02 FA 00 03 00 7C 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 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 E6 [21:53:20]Write i2c OK [21:53:20]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [21:53:21]RAPDU: 90 00 [21:53:21]wFMCommunicate OK [21:53:21]wFMCommunicate request_size=139 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 09 00 00 00 00 07 04 06 00 24 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CF 8C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 FA 00 00 35 04 06 00 AB 23 C8 BC 0F 55 [21:53:21]Write to MH i2c: E2 8E 00 26 06 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 09 00 00 00 00 07 04 06 00 24 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CF 8C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 FA 00 00 35 04 06 00 AB 23 C8 BC 0F 55 00 00 8B [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [21:53:21]RAPDU: 90 00 [21:53:21]wFMCommunicate OK [21:53:21]wFMCommunicate request_size=4 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 0D 03 02 [21:53:21]Write to MH i2c: E2 08 00 27 06 80 0D 03 02 00 00 00 00 A8 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 0B 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 0B 00 27 06 00 DD 9D AA 2B 5A 13 93 D0 90 00 C8 [21:53:21]RAPDU: DD 9D AA 2B 5A 13 93 D0 90 00 [21:53:21]wFMCommunicate OK [21:53:21]SAM_PROTO_SignData done [21:53:21]FM_MakeSignedData done [21:53:21]CreateOFDProtocolMessage [21:53:21]wFMCommunicate request_size=4 [21:53:21]MH_SAM_APDU [21:53:21]CAPDU: 80 11 00 00 [21:53:21]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:21]Read from MH i2c: E2 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 17 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FA [21:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:53:21]wFMCommunicate OK [21:53:21]CreateOFDProtocolMessage done [21:53:21]OFDSenderStorePacket 64066 [21:53:21]StoreOFDPacket docnum=64066 [21:53: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 90 01 00 00 6F 2D 88 01 50 0A 5A 03 01 00 03 00 7C 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 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 09 00 00 00 00 07 04 06 00 24 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CF 8C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 FA 00 00 35 04 06 00 AB 23 C8 BC 0F 55 DD 9D AA 2B 5A 13 93 D0 [21:53:21]CheckFolder [21:53:21]dirname=/storage/ofd_packets [21:53:21]CheckFolder done [21:53:21]ProducePacketName [21:53:21]name=ofd_packets/00064066 [21:53:21]NVStorageSaveData ofd_packets/00064066 [21:53:21]File name is /storage/ofd_packets/00064066 [21:53:21]Write 430 bytes [21:53:21]NVStorageSaveData done [21:53:21]OFDSenderStorePacket done [21:53:21]KKMCreateOFDPacket done [21:53:21]NVStorageSaveData kkm_last_timestamp [21:53:21]File name is /storage/kkm_last_timestamp [21:53:21]Write 4 bytes [21:53:21]NVStorageSaveData done [21:53:21]ExternCall_PrintAddStr [21:53:21]wPrintStart [21:53:21]Write to MH i2c: 01 00 00 29 06 2F [21:53:21]Write i2c OK [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: 01 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: 01 07 00 [21:53:21]MH_I2C_Read... [21:53:21]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 FF 0F 44 [21:53:21]RasterBufferAndPrint [21:53:21]line Счет N : (3)73608 [21:53:21]line ИНН: 02508201610067 [21:53:21]line Контрольно-Кассовый Чек [21:53:21]line ПРОДАЖА [21:53:21]line Товар: 48741958 [21:53:21]line Сигареты Parliament Aqua Blue [21:53:21]line 1.000 * 151.00 [21:53:21]line = 151.00 [21:53:21]line НДС 12% НСП 1% [21:53:21]line > о реализуемом товаре [21:53:21]line Товар: 54492509 [21:53:21]line Напиток Кока-Кола 0,25л [21:53:21]line 1.000 * 90.00 [21:53:21]line = 90.00 [21:53:21]line НДС 12% НСП 1% [21:53:21]line > о реализуемом товаре [21:53:21]line ИТОГО: 241.00 [21:53:21]line НСП 1% : 2.14 [21:53:21]line НДС 12% : 25.59 [21:53:21]line Наличными: 241.00 [21:53:21]line Безнал.: 0.00 [21:53:21]line Место: АЗС № 117 "Партнер Нефть" [21:53:21]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [21:53:21]line СНО: Общий режим [21:53:21]line Чек 151 04.06.2024 21:53 [21:53:21]line Смена: 374 ФФД: 1.0 [21:53:21]line ЗНМ: 0300000031 [21:53:21]line РНМ: 0000000000092737 [21:53:21]line Версия ККМ: 001 [21:53:21]line ФМ: 0000000000875074 [21:53:21]line ФД: 64066 [21:53:21]line ФПД: 188170179972949 [21:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T215319&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64066&fm=188170179972949&tin=02508201610067®Number=0000000000092737&sum=24100 [21:53:21]line 0 [21:53:21]OFD Sender: Processing packet 64066 [packets to send 14, broken 13] [21:53:21]ProducePacketName [21:53:21]name=ofd_packets/00064066 [21:53:21]OFD Sender: To server: pG, [21:53:21]CommunicateWithHost lk.salyk.kg:30040 [21:53:21]ConnectInit lk.salyk.kg [21:53:21]written 0, free lines is 4095 [21:53:22]Connected sock=11 [21:53: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 90 01 00 00 6F 2D 88 01 50 0A 5A 03 01 00 03 00 7C 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 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 09 00 00 00 00 07 04 06 00 24 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CF 8C 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 FA 00 00 35 04 06 00 AB 23 C8 BC 0F 55 DD 9D AA 2B 5A 13 93 D0 [21:53: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 F0 9F 47 00 1C A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 42 FA 00 00 F4 03 04 00 DD 38 5F 66 B6 04 01 00 00 12 AC 15 13 D9 92 AF 82 [21:53:22]CommunicateWithHost err = 0 [21:53:22]CheckOFDResponse [21:53:22]1017 (14) - 77093643461234 [21:53:22]1041 (16) - 0000000000875074 [21:53:22]1040 (4) - 64066 [21:53:22]1012 (4) - 04.06.2024 15:55 [21:53:22]1206 (1) - 0 [21:53:22]OFD Sender: Remove packet 64066 [21:53:22]ProducePacketName [21:53:22]name=ofd_packets/00064066 [21:53:22]NVStorageDeleteData [21:53:22]Write to MH i2c: 01 00 00 58 06 5E [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: 01 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: 01 07 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: 01 07 00 58 06 00 00 00 00 00 83 0C F4 [21:53:22]RasterBufferAndPrint [21:53:22]line [21:53:22]line [21:53:22]line [21:53:22]line [21:53:22]line [21:53:22]written 0, free lines is 3209 [21:53:22]MH_Cut [21:53:22]Write to MH i2c: D1 01 00 5F 06 01 37 [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: D1 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: D1 01 00 [21:53:22]MH_I2C_Read... [21:53:22]Read from MH i2c: D1 01 00 5F 06 00 36 [21:53:22]Write to MH i2c: 01 00 00 60 06 66 [21:53:22]Write i2c OK [21:53:22]MH_I2C_Read... [21:53:22]OFD Sender: No OFD packet to send [21:53:23]*** Cut start [21:53:23]*** Partial cut [21:53:23]*** CUTSNS_PIN = 1 [21:53:23]*** CUTSNS_PIN = 0 [21:53:23]*** Brake cut motor [21:53:23]Read from MH i2c: 01 [21:53:23]MH_I2C_Read... [21:53:23]*** Stop cut motor [21:53:23]*** Cut end [21:53:23]Read from MH i2c: 01 07 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: 01 07 00 60 06 00 00 00 00 00 FF 0F 7B [21:53:23]process_action close_receipt done [21:53:23]requested_data is exist [21:53:23]produce_requested_data [21:53:23]requested_item fm.sn is exist - process it [21:53:23]wFMCommunicate request_size=4 [21:53:23]MH_SAM_APDU [21:53:23]CAPDU: 80 11 00 00 [21:53:23]Write to MH i2c: E2 08 00 61 06 80 11 00 00 00 00 00 00 E1 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:23]Read from MH i2c: E2 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 17 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 17 00 61 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 33 [21:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [21:53:23]wFMCommunicate OK [21:53:23]requested_item fd.num is exist - process it [21:53:23]SAM_PROTO_GetFieldsCounters [21:53:23]wFMCommunicate request_size=4 [21:53:23]MH_SAM_APDU [21:53:23]CAPDU: 80 13 00 00 [21:53:23]Write to MH i2c: E2 08 00 62 06 80 13 00 00 00 00 00 00 E4 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 62 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 62 00 62 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 42 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [21:53: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 42 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_GetFieldsCounters done [21:53:24]requested_item shift.num is exist - process it [21:53:24]requested_item shift.opened is exist - process it [21:53:24]req_shift_opened [21:53:24]FM_GetShiftState [21:53:24]SAM_PROTO_GetShiftState [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 13 01 00 [21:53:24]Write to MH i2c: E2 08 00 63 06 80 13 01 00 00 00 00 00 E6 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 63 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 86 [21:53:24]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_GetShiftState done [21:53:24]FM_GetShiftState done [21:53:24]req_shift_opened done [21:53:24]requested_item shift.open_date is exist - process it [21:53:24]req_shift_open_date [21:53:24]req_shift_open_date done [21:53:24]produce_requested_data done [21:53:24]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64066,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [21:53:24]process_action_free close_receipt [21:53:24]json_value_free [21:53:24]json_value_free done [21:53:24]process_json_proto returns [21:53:24]Send response to host [21:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64066,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [21:53:24]free response buf [21:53:24]execute_script done [21:53:24]execute_script returns [21:53:24]free content buf [21:53:24]Sock 9.Close socket [21:53:24]Sock 9.Thread stoped [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]int [21:53:47]Write to MH i2c: 01 00 00 64 06 6A [21:53:47]*** FLAG_PRN_PAP1 set [21:53:47]Write i2c OK [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: 01 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: 01 07 00 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: 01 07 00 64 06 00 01 00 00 00 FF 0F 80 [21:53:47]state=0 [21:53:47]No paper [21:53:47]int [21:53:47]Write to MH i2c: 01 00 00 65 06 6B [21:53:47]*** FLAG_PRN_PAP2 set [21:53:47]Write i2c OK [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: 01 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: 01 07 00 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: 01 07 00 65 06 00 03 00 00 00 FF 0F 83 [21:53:47]state=0 [21:53:47]No paper [21:53:47]Cover opened [21:53:47]OFD Sender: No OFD packet to send [21:53:52]Write to MH i2c: 01 00 00 66 06 6C [21:53:52]Write i2c OK [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: 01 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: 01 07 00 [21:53:52]MH_I2C_Read... [21:53:52]Read from MH i2c: 01 07 00 66 06 00 03 00 00 00 FF 0F 84 [21:53:52]state=3 [21:53:52]No paper [21:53:52]Cover opened [21:53:52]OFD Sender: No OFD packet to send [21:53:54]int [21:53:54]Write to MH i2c: 01 00 00 67 06 6D [21:53:54]Write i2c OK [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: 01 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: 01 07 00 [21:53:54]MH_I2C_Read... [21:53:54]*** FLAG_PRN_PAP2 reset [21:53:54]*** FLAG_PRN_PAP1 reset [21:53:54]Read from MH i2c: 01 07 00 67 06 00 00 00 00 00 FF 0F 82 [21:53:54]state=3 [21:53:54]Cover closed [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:31]accept exits with 8 [22:09:31]New connection [22:09:31]New thread 3067276644 created [22:09:31]Thread 3067133284 joined [22:09:31]Waiting for new connection... [22:09:31] Sock 8.Parse request [22:09:31]Sock 8.Check first char [22:09:31]Sock 8.First char is OK [22:09:31]request: POST /json_proto HTTP/1.0 [22:09:31]Method: POST [22:09:31]URL: /json_proto [22:09:31]Method is POST - this is cgi request [22:09:31]url: /json_proto [22:09:31]query_string will be loaded in cgi processing [22:09:31]execute_cgi json_proto POST (null) [22:09:31]execute_cgi path=json_proto method=POST [22:09:31]POST find Content-Length [22:09:31]Host: 172.17.60.69:8080 [22:09:31]Content-Length: 584 [22:09:31]Content-Type: application/json [22:09:31] [22:09:31]POST finish read [22:09:31]Found Content-Length = 584 [22:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73609", "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" ] } } [22:09:31]execute_script... [22:09:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73609", "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" ] } } [22:09:31]POST & json_proto [22:09:31]process_json_proto [22:09:31]json parsed OK: [22:09:31]protocol is kg_v1.0 [22:09:31]action value=close_receipt [22:09:31]process_action close_receipt [22:09:31]cmd_close_receipt [22:09:31]MH_GetDate [22:09:31]Write to MH i2c: F0 00 00 68 06 5D [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 09 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: F0 09 00 68 06 00 9B 90 5F 66 D2 83 5F 66 70 [22:09:31]GetLastDocTimeStamp 1717537999 [22:09:31]current date 1717538971 [22:09:31]FM_GetShiftState [22:09:31]SAM_PROTO_GetShiftState [22:09:31]wFMCommunicate request_size=4 [22:09:31]MH_SAM_APDU [22:09:31]CAPDU: 80 13 01 00 [22:09:31]Write to MH i2c: E2 08 00 69 06 80 13 01 00 00 00 00 00 EC [22:09:31]Write i2c OK [22:09:31]MH_I2C_Read... [22:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:31]Read from MH i2c: E2 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: E2 0E 00 [22:09:31]MH_I2C_Read... [22:09:31]Read from MH i2c: E2 0E 00 69 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 8C [22:09:31]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:09:31]wFMCommunicate OK [22:09:31]SAM_PROTO_GetShiftState done [22:09:31]FM_GetShiftState done [22:09:31]opened in 1717459574 [22:09:31]opened+sec_in_day 1717545974 [22:09:31]quantity*price = 4500 [22:09:31]sum+1 = 4501 [22:09:31]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 СНО: Общий режим Чек 152 04.06.2024 22:09 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64067 ФПД: 4923026442701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T220931&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64067&fm=4923026442701&tin=02508201610067®Number=0000000000092737&sum=4500 0 [22:09:32]StoreToDocumentArchive [22:09:32]shift 374 fd 64067 [22:09:32]save to /storage/0374/doc_00064067 [22:09:32]save last doc name /storage/0374/doc_00064067 to /storage/kkm_last_doc_name [22:09:32]save OK [22:09:32]Clear old archive folders... [22:09:32]ProcessDocumentItem done err = 0, tmpTLVsize=260 [22:09:32]tlvbuf is 0110DBD0 [22:09:32]SAM_PROTO_ClearQueue [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 09 00 00 [22:09:32]Write to MH i2c: E2 08 00 76 06 80 09 00 00 00 00 00 00 EE [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [22:09:32]RAPDU: 90 00 [22:09:32]wFMCommunicate OK [22:09:32]SAM_PROTO_ClearQueue done [22:09:32]KKMCreateOFDPacket [22:09:32]OFDProtocolAddRootSTLVToBuf [22:09:32]FM_MakeSignedData [22:09:32]FM_MakeSignedData [22:09:32]SAM_PROTO_SignData [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 0D 01 02 [22:09:32]Write to MH i2c: E2 08 00 77 06 80 0D 01 02 00 00 00 00 F6 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 77 06 00 90 00 F1 [22:09:32]RAPDU: 90 00 [22:09:32]wFMCommunicate OK [22:09:32]wFMCommunicate request_size=255 [22:09:32]MH_SAM_APDU [22:09:32]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 98 00 00 00 F4 03 04 00 9B 90 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 [22:09:32]Write to MH i2c: E2 02 01 78 06 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 98 00 00 00 F4 03 04 00 9B 90 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 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 03 [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 03 00 78 06 00 90 00 F2 [22:09:32]RAPDU: 90 00 [22:09:32]wFMCommunicate OK [22:09:32]wFMCommunicate request_size=19 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 0D 02 02 0E 43 FA 00 00 35 04 06 00 04 7A 3B 3E 09 CD [22:09:32]Write to MH i2c: E2 16 00 79 06 80 0D 02 02 0E 00 43 FA 00 00 35 04 06 00 04 7A 3B 3E 09 CD 00 00 5E [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 03 00 79 06 00 90 00 F3 [22:09:33]RAPDU: 90 00 [22:09:33]wFMCommunicate OK [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 0D 03 02 [22:09:33]Write to MH i2c: E2 08 00 7A 06 80 0D 03 02 00 00 00 00 FB [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 0B 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 0B 00 7A 06 00 41 D6 C9 59 FC 71 AA DD 90 00 29 [22:09:33]RAPDU: 41 D6 C9 59 FC 71 AA DD 90 00 [22:09:33]wFMCommunicate OK [22:09:33]SAM_PROTO_SignData done [22:09:33]FM_MakeSignedData done [22:09:33]CreateOFDProtocolMessage [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 11 00 00 [22:09:33]Write to MH i2c: E2 08 00 7B 06 80 11 00 00 00 00 00 00 FB [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 17 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 17 00 7B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4D [22:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:09:33]wFMCommunicate OK [22:09:33]CreateOFDProtocolMessage done [22:09:33]OFDSenderStorePacket 64067 [22:09:33]StoreOFDPacket docnum=64067 [22:09: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 18 01 00 00 E3 2C 10 01 D8 77 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 98 00 00 00 F4 03 04 00 9B 90 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 43 FA 00 00 35 04 06 00 04 7A 3B 3E 09 CD 41 D6 C9 59 FC 71 AA DD [22:09:33]CheckFolder [22:09:33]dirname=/storage/ofd_packets [22:09:33]CheckFolder done [22:09:33]ProducePacketName [22:09:33]name=ofd_packets/00064067 [22:09:33]NVStorageSaveData ofd_packets/00064067 [22:09:33]File name is /storage/ofd_packets/00064067 [22:09:33]Write 310 bytes [22:09:33]NVStorageSaveData done [22:09:33]OFDSenderStorePacket done [22:09:33]KKMCreateOFDPacket done [22:09:33]NVStorageSaveData kkm_last_timestamp [22:09:33]File name is /storage/kkm_last_timestamp [22:09:33]Write 4 bytes [22:09:33]NVStorageSaveData done [22:09:33]ExternCall_PrintAddStr [22:09:33]wPrintStart [22:09:33]Write to MH i2c: 01 00 00 7C 06 82 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 7C 06 00 00 00 00 00 FF 0F 97 [22:09:33]RasterBufferAndPrint [22:09:33]line Счет N : (3)73609 [22:09:33]line ИНН: 02508201610067 [22:09:33]line Контрольно-Кассовый Чек [22:09:33]line ПРОДАЖА [22:09:33]line Товар: 50173808 [22:09:33]line Жев Orbit Sweet Mint [22:09:33]line 1.000 * 45.00 [22:09:33]line = 45.00 [22:09:33]line НДС 12% НСП 1% [22:09:33]line > о реализуемом товаре [22:09:33]line ИТОГО: 45.00 [22:09:33]line НСП 1% : 0.40 [22:09:33]line НДС 12% : 4.78 [22:09:33]line Наличными: 45.00 [22:09:33]line Безнал.: 0.00 [22:09:33]line Место: АЗС № 117 "Партнер Нефть" [22:09:33]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:09:33]line СНО: Общий режим [22:09:33]line Чек 152 04.06.2024 22:09 [22:09:33]line Смена: 374 ФФД: 1.0 [22:09:33]line ЗНМ: 0300000031 [22:09:33]line РНМ: 0000000000092737 [22:09:33]line Версия ККМ: 001 [22:09:33]line ФМ: 0000000000875074 [22:09:33]line ФД: 64067 [22:09:33]line ФПД: 4923026442701 [22:09:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T220931&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64067&fm=4923026442701&tin=02508201610067®Number=0000000000092737&sum=4500 [22:09:33]line 0 [22:09:33]written 0, free lines is 4095 [22:09:33]OFD Sender: Processing packet 64067 [packets to send 14, broken 13] [22:09:33]ProducePacketName [22:09:33]name=ofd_packets/00064067 [22:09:33]OFD Sender: To server: pG, [22:09:33]CommunicateWithHost lk.salyk.kg:30040 [22:09:33]ConnectInit lk.salyk.kg [22:09:33]Connected sock=10 [22:09:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 18 01 00 00 E3 2C 10 01 D8 77 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 98 00 00 00 F4 03 04 00 9B 90 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 43 FA 00 00 35 04 06 00 04 7A 3B 3E 09 CD 41 D6 C9 59 FC 71 AA DD [22:09: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 07 DA 47 00 BD 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 43 FA 00 00 F4 03 04 00 A8 3C 5F 66 B6 04 01 00 00 B0 CA 37 FF D7 2F 19 22 [22:09:33]CommunicateWithHost err = 0 [22:09:33]CheckOFDResponse [22:09:33]1017 (14) - 77093643461234 [22:09:33]1041 (16) - 0000000000875074 [22:09:33]1040 (4) - 64067 [22:09:33]1012 (4) - 04.06.2024 16:11 [22:09:33]1206 (1) - 0 [22:09:33]OFD Sender: Remove packet 64067 [22:09:33]ProducePacketName [22:09:33]name=ofd_packets/00064067 [22:09:33]NVStorageDeleteData [22:09:33]Write to MH i2c: 01 00 00 A4 06 AA [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 01 0D BF [22:09:33]RasterBufferAndPrint [22:09:33]line [22:09:33]line [22:09:33]line [22:09:33]line [22:09:33]line [22:09:33]written 0, free lines is 3336 [22:09:33]MH_Cut [22:09:33]Write to MH i2c: D1 01 00 AB 06 01 83 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: D1 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: D1 01 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: D1 01 00 AB 06 00 82 [22:09:33]Write to MH i2c: 01 00 00 AC 06 B2 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]OFD Sender: No OFD packet to send [22:09:34]*** Cut start [22:09:34]*** Partial cut [22:09:34]*** CUTSNS_PIN = 1 [22:09:34]*** CUTSNS_PIN = 0 [22:09:34]*** Brake cut motor [22:09:34]Read from MH i2c: 01 [22:09:35]MH_I2C_Read... [22:09:35]*** Stop cut motor [22:09:35]*** Cut end [22:09:35]Read from MH i2c: 01 07 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [22:09:35]process_action close_receipt done [22:09:35]requested_data is exist [22:09:35]produce_requested_data [22:09:35]requested_item fm.sn is exist - process it [22:09:35]wFMCommunicate request_size=4 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 11 00 00 [22:09:35]Write to MH i2c: E2 08 00 AD 06 80 11 00 00 00 00 00 00 2D [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 17 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 17 00 AD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7F [22:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:09:35]wFMCommunicate OK [22:09:35]requested_item fd.num is exist - process it [22:09:35]SAM_PROTO_GetFieldsCounters [22:09:35]wFMCommunicate request_size=4 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 13 00 00 [22:09:35]Write to MH i2c: E2 08 00 AE 06 80 13 00 00 00 00 00 00 30 [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 62 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 62 00 AE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 43 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [22:09: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 43 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:35]wFMCommunicate OK [22:09:35]SAM_PROTO_GetFieldsCounters done [22:09:35]requested_item shift.num is exist - process it [22:09:35]requested_item shift.opened is exist - process it [22:09:35]req_shift_opened [22:09:35]FM_GetShiftState [22:09:35]SAM_PROTO_GetShiftState [22:09:35]wFMCommunicate request_size=4 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 13 01 00 [22:09:35]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 0E 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D2 [22:09:35]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:09:35]wFMCommunicate OK [22:09:35]SAM_PROTO_GetShiftState done [22:09:35]FM_GetShiftState done [22:09:35]req_shift_opened done [22:09:35]requested_item shift.open_date is exist - process it [22:09:35]req_shift_open_date [22:09:35]req_shift_open_date done [22:09:35]produce_requested_data done [22:09:35]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64067,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [22:09:35]process_action_free close_receipt [22:09:35]json_value_free [22:09:35]json_value_free done [22:09:35]process_json_proto returns [22:09:35]Send response to host [22:09:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64067,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [22:09:35]free response buf [22:09:35]execute_script done [22:09:35]execute_script returns [22:09:35]free content buf [22:09:35]Sock 8.Close socket [22:09:35]Sock 8.Thread stoped [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:40]accept exits with 9 [22:24:40]New connection [22:24:40]New thread 3067133284 created [22:24:40]Thread 3067276644 joined [22:24:40]Waiting for new connection... [22:24:40] Sock 9.Parse request [22:24:40]Sock 9.Check first char [22:24:40]Sock 9.First char is OK [22:24:40]request: POST /json_proto HTTP/1.0 [22:24:40]Method: POST [22:24:40]URL: /json_proto [22:24:40]Method is POST - this is cgi request [22:24:40]url: /json_proto [22:24:40]query_string will be loaded in cgi processing [22:24:40]execute_cgi json_proto POST (null) [22:24:40]execute_cgi path=json_proto method=POST [22:24:40]POST find Content-Length [22:24:40]Host: 172.17.60.69:8080 [22:24:40]Content-Length: 766 [22:24:40]Content-Type: application/json [22:24:40] [22:24:40]POST finish read [22:24:40]Found Content-Length = 766 [22:24:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73610", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:40]execute_script... [22:24: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)73610", "tax_sys" : 0, "items" : [ { "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:40]POST & json_proto [22:24:40]process_json_proto [22:24:40]json parsed OK: [22:24:40]protocol is kg_v1.0 [22:24:40]action value=close_receipt [22:24:40]process_action close_receipt [22:24:40]cmd_close_receipt [22:24:40]MH_GetDate [22:24:40]Write to MH i2c: F0 00 00 B0 06 A5 [22:24:40]Write i2c OK [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: F0 [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: F0 09 00 [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: F0 09 00 B0 06 00 28 94 5F 66 D2 83 5F 66 49 [22:24:40]GetLastDocTimeStamp 1717538971 [22:24:40]current date 1717539880 [22:24:40]FM_GetShiftState [22:24:40]SAM_PROTO_GetShiftState [22:24:40]wFMCommunicate request_size=4 [22:24:40]MH_SAM_APDU [22:24:40]CAPDU: 80 13 01 00 [22:24:40]Write to MH i2c: E2 08 00 B1 06 80 13 01 00 00 00 00 00 34 [22:24:40]Write i2c OK [22:24:40]MH_I2C_Read... [22:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:40]Read from MH i2c: E2 [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: E2 0E 00 [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: E2 0E 00 B1 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 D4 [22:24:40]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:24:40]wFMCommunicate OK [22:24:40]SAM_PROTO_GetShiftState done [22:24:40]FM_GetShiftState done [22:24:40]opened in 1717459574 [22:24:40]opened+sec_in_day 1717545974 [22:24:40]quantity*price = 4500 [22:24:40]sum+1 = 4501 [22:24:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 0.00 Безнал.: 45.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 153 04.06.2024 22:24 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 64068 ФПД: 16666611563987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222440&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64068&fm=16666611563987&tin=02508201610067®Number=0000000000092737&sum=4500 0 [22:24:41]StoreToDocumentArchive [22:24:41]shift 374 fd 64068 [22:24:41]save to /storage/0374/doc_00064068 [22:24:41]save last doc name /storage/0374/doc_00064068 to /storage/kkm_last_doc_name [22:24:41]save OK [22:24:41]Clear old archive folders... [22:24:41]ProcessDocumentItem done err = 0, tmpTLVsize=265 [22:24:41]tlvbuf is 0108F1F0 [22:24:41]SAM_PROTO_ClearQueue [22:24:41]wFMCommunicate request_size=4 [22:24:41]MH_SAM_APDU [22:24:41]CAPDU: 80 09 00 00 [22:24:41]Write to MH i2c: E2 08 00 BE 06 80 09 00 00 00 00 00 00 36 [22:24:41]Write i2c OK [22:24:41]MH_I2C_Read... [22:24:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:41]Read from MH i2c: E2 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 03 00 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [22:24:41]RAPDU: 90 00 [22:24:41]wFMCommunicate OK [22:24:41]SAM_PROTO_ClearQueue done [22:24:41]KKMCreateOFDPacket [22:24:41]OFDProtocolAddRootSTLVToBuf [22:24:41]FM_MakeSignedData [22:24:41]FM_MakeSignedData [22:24:41]SAM_PROTO_SignData [22:24:41]wFMCommunicate request_size=4 [22:24:41]MH_SAM_APDU [22:24:41]CAPDU: 80 0D 01 02 [22:24:41]Write to MH i2c: E2 08 00 BF 06 80 0D 01 02 00 00 00 00 3E [22:24:41]Write i2c OK [22:24:41]MH_I2C_Read... [22:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:41]Read from MH i2c: E2 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 03 00 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [22:24:41]RAPDU: 90 00 [22:24:41]wFMCommunicate OK [22:24:41]wFMCommunicate request_size=255 [22:24:41]MH_SAM_APDU [22:24:41]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 28 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 [22:24:41]Write to MH i2c: E2 02 01 C0 06 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 28 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 00 00 AA [22:24:41]Write i2c OK [22:24:41]MH_I2C_Read... [22:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:41]Read from MH i2c: E2 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 03 00 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 03 00 C0 06 00 90 00 3A [22:24:41]RAPDU: 90 00 [22:24:41]wFMCommunicate OK [22:24:41]wFMCommunicate request_size=24 [22:24:41]MH_SAM_APDU [22:24:41]CAPDU: 80 0D 02 02 13 34 10 04 04 00 44 FA 00 00 35 04 06 00 0F 28 7F 76 3D D3 [22:24:41]Write to MH i2c: E2 1B 00 C1 06 80 0D 02 02 13 00 34 10 04 04 00 44 FA 00 00 35 04 06 00 0F 28 7F 76 3D D3 00 00 6C [22:24:41]Write i2c OK [22:24:41]MH_I2C_Read... [22:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:42]Read from MH i2c: E2 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: E2 03 00 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: E2 03 00 C1 06 00 90 00 3B [22:24:42]RAPDU: 90 00 [22:24:42]wFMCommunicate OK [22:24:42]wFMCommunicate request_size=4 [22:24:42]MH_SAM_APDU [22:24:42]CAPDU: 80 0D 03 02 [22:24:42]Write to MH i2c: E2 08 00 C2 06 80 0D 03 02 00 00 00 00 43 [22:24:42]Write i2c OK [22:24:42]MH_I2C_Read... [22:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:42]Read from MH i2c: E2 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: E2 0B 00 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: E2 0B 00 C2 06 00 28 46 F8 20 75 FB B7 80 90 00 71 [22:24:42]RAPDU: 28 46 F8 20 75 FB B7 80 90 00 [22:24:42]wFMCommunicate OK [22:24:42]SAM_PROTO_SignData done [22:24:42]FM_MakeSignedData done [22:24:42]CreateOFDProtocolMessage [22:24:42]wFMCommunicate request_size=4 [22:24:42]MH_SAM_APDU [22:24:42]CAPDU: 80 11 00 00 [22:24:42]Write to MH i2c: E2 08 00 C3 06 80 11 00 00 00 00 00 00 43 [22:24:42]Write i2c OK [22:24:42]MH_I2C_Read... [22:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:42]Read from MH i2c: E2 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: E2 17 00 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: E2 17 00 C3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 95 [22:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:24:42]wFMCommunicate OK [22:24:42]CreateOFDProtocolMessage done [22:24:42]OFDSenderStorePacket 64068 [22:24:42]StoreOFDPacket docnum=64068 [22:24: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 1D 01 00 00 3C 21 15 01 60 B8 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 28 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 44 FA 00 00 35 04 06 00 0F 28 7F 76 3D D3 28 46 F8 20 75 FB B7 80 [22:24:42]CheckFolder [22:24:42]dirname=/storage/ofd_packets [22:24:42]CheckFolder done [22:24:42]ProducePacketName [22:24:42]name=ofd_packets/00064068 [22:24:42]NVStorageSaveData ofd_packets/00064068 [22:24:42]File name is /storage/ofd_packets/00064068 [22:24:42]Write 315 bytes [22:24:42]NVStorageSaveData done [22:24:42]OFDSenderStorePacket done [22:24:42]KKMCreateOFDPacket done [22:24:42]NVStorageSaveData kkm_last_timestamp [22:24:42]File name is /storage/kkm_last_timestamp [22:24:42]Write 4 bytes [22:24:42]NVStorageSaveData done [22:24:42]ExternCall_PrintAddStr [22:24:42]wPrintStart [22:24:42]Write to MH i2c: 01 00 00 C4 06 CA [22:24:42]Write i2c OK [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: 01 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: 01 07 00 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: 01 07 00 C4 06 00 00 00 00 00 FF 0F DF [22:24:42]RasterBufferAndPrint [22:24:42]line Счет N : (3)73610 [22:24:42]line ИНН: 02508201610067 [22:24:42]line Контрольно-Кассовый Чек [22:24:42]line ПРОДАЖА [22:24:42]line Товар: 42113164 [22:24:42]line Жев Orbit White Spearmint [22:24:42]line 1.000 * 45.00 [22:24:42]line = 45.00 [22:24:42]line НДС 12% НСП 1% [22:24:42]line > о реализуемом товаре [22:24:42]line ИТОГО: 45.00 [22:24:42]line НСП 1% : 0.40 [22:24:42]line НДС 12% : 4.78 [22:24:42]line Наличными: 0.00 [22:24:42]line Безнал.: 45.00 [22:24:42]line Место: АЗС № 117 "Партнер Нефть" [22:24:42]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:24:42]line СНО: Общий режим [22:24:42]line Чек 153 04.06.2024 22:24 [22:24:42]line Смена: 374 ФФД: 1.0 [22:24:42]line ЗНМ: 0300000031 [22:24:42]line РНМ: 0000000000092737 [22:24:42]line Версия ККМ: 001 [22:24:42]line Платежная система: Бакай Банк [22:24:42]line ФМ: 0000000000875074 [22:24:42]line ФД: 64068 [22:24:42]line ФПД: 16666611563987 [22:24:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222440&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64068&fm=16666611563987&tin=02508201610067®Number=0000000000092737&sum=4500 [22:24:42]line 0 [22:24:42]OFD Sender: Processing packet 64068 [packets to send 14, broken 13] [22:24:42]ProducePacketName [22:24:42]name=ofd_packets/00064068 [22:24:42]OFD Sender: To server: pG, [22:24:42]CommunicateWithHost lk.salyk.kg:30040 [22:24:42]ConnectInit lk.salyk.kg [22:24:42]written 0, free lines is 4095 [22:24:42]Connected sock=10 [22:24: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 1D 01 00 00 3C 21 15 01 60 B8 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 00 00 00 00 00 00 39 04 06 00 94 11 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 28 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 44 FA 00 00 35 04 06 00 0F 28 7F 76 3D D3 28 46 F8 20 75 FB B7 80 [22:24: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 6E 52 47 00 4F 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 44 FA 00 00 F4 03 04 00 36 40 5F 66 B6 04 01 00 00 6A 4E 5F DD D0 6C CE 66 [22:24:42]CommunicateWithHost err = 0 [22:24:42]CheckOFDResponse [22:24:42]1017 (14) - 77093643461234 [22:24:42]1041 (16) - 0000000000875074 [22:24:42]1040 (4) - 64068 [22:24:42]1012 (4) - 04.06.2024 16:26 [22:24:42]1206 (1) - 0 [22:24:42]OFD Sender: Remove packet 64068 [22:24:42]ProducePacketName [22:24:42]name=ofd_packets/00064068 [22:24:42]NVStorageDeleteData [22:24:42]Write to MH i2c: 01 00 00 EE 06 F4 [22:24:42]Write i2c OK [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: 01 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: 01 07 00 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: 01 07 00 EE 06 00 00 00 00 00 E8 0C EF [22:24:42]RasterBufferAndPrint [22:24:42]line [22:24:42]line [22:24:42]line [22:24:42]line [22:24:42]line [22:24:42]written 0, free lines is 3310 [22:24:42]MH_Cut [22:24:42]Write to MH i2c: D1 01 00 F5 06 01 CD [22:24:42]Write i2c OK [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: D1 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: D1 01 00 [22:24:42]MH_I2C_Read... [22:24:42]Read from MH i2c: D1 01 00 F5 06 00 CC [22:24:42]Write to MH i2c: 01 00 00 F6 06 FC [22:24:42]Write i2c OK [22:24:42]MH_I2C_Read... [22:24:43]OFD Sender: No OFD packet to send [22:24:43]*** Cut start [22:24:43]*** Partial cut [22:24:43]*** CUTSNS_PIN = 1 [22:24:43]*** CUTSNS_PIN = 0 [22:24:44]*** Brake cut motor [22:24:44]Read from MH i2c: 01 [22:24:44]MH_I2C_Read... [22:24:44]*** Stop cut motor [22:24:44]*** Cut end [22:24:44]Read from MH i2c: 01 07 00 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 FF 0F 11 [22:24:44]process_action close_receipt done [22:24:44]requested_data is exist [22:24:44]produce_requested_data [22:24:44]requested_item fm.sn is exist - process it [22:24:44]wFMCommunicate request_size=4 [22:24:44]MH_SAM_APDU [22:24:44]CAPDU: 80 11 00 00 [22:24:44]Write to MH i2c: E2 08 00 F7 06 80 11 00 00 00 00 00 00 77 [22:24:44]Write i2c OK [22:24:44]MH_I2C_Read... [22:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:44]Read from MH i2c: E2 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: E2 17 00 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: E2 17 00 F7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C9 [22:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:24:44]wFMCommunicate OK [22:24:44]requested_item fd.num is exist - process it [22:24:44]SAM_PROTO_GetFieldsCounters [22:24:44]wFMCommunicate request_size=4 [22:24:44]MH_SAM_APDU [22:24:44]CAPDU: 80 13 00 00 [22:24:44]Write to MH i2c: E2 08 00 F8 06 80 13 00 00 00 00 00 00 7A [22:24:44]Write i2c OK [22:24:44]MH_I2C_Read... [22:24:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:44]Read from MH i2c: E2 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: E2 62 00 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: E2 62 00 F8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 44 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [22:24: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 44 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:44]wFMCommunicate OK [22:24:44]SAM_PROTO_GetFieldsCounters done [22:24:44]requested_item shift.num is exist - process it [22:24:44]requested_item shift.opened is exist - process it [22:24:44]req_shift_opened [22:24:44]FM_GetShiftState [22:24:44]SAM_PROTO_GetShiftState [22:24:44]wFMCommunicate request_size=4 [22:24:44]MH_SAM_APDU [22:24:44]CAPDU: 80 13 01 00 [22:24:44]Write to MH i2c: E2 08 00 F9 06 80 13 01 00 00 00 00 00 7C [22:24:44]Write i2c OK [22:24:44]MH_I2C_Read... [22:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:44]Read from MH i2c: E2 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: E2 0E 00 [22:24:44]MH_I2C_Read... [22:24:44]Read from MH i2c: E2 0E 00 F9 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1C [22:24:44]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:24:44]wFMCommunicate OK [22:24:44]SAM_PROTO_GetShiftState done [22:24:44]FM_GetShiftState done [22:24:44]req_shift_opened done [22:24:44]requested_item shift.open_date is exist - process it [22:24:44]req_shift_open_date [22:24:44]req_shift_open_date done [22:24:44]produce_requested_data done [22:24:44]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64068,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [22:24:44]process_action_free close_receipt [22:24:44]json_value_free [22:24:44]json_value_free done [22:24:44]process_json_proto returns [22:24:44]Send response to host [22:24:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64068,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [22:24:44]free response buf [22:24:44]execute_script done [22:24:44]execute_script returns [22:24:44]free content buf [22:24:44]Sock 9.Close socket [22:24:44]Sock 9.Thread stoped [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:00]accept exits with 8 [22:26:00]New connection [22:26:00]New thread 3067276644 created [22:26:00]Thread 3067133284 joined [22:26:00]Waiting for new connection... [22:26:00] Sock 8.Parse request [22:26:00]Sock 8.Check first char [22:26:00]Sock 8.First char is OK [22:26:00]request: POST /json_proto HTTP/1.0 [22:26:00]Method: POST [22:26:00]URL: /json_proto [22:26:00]Method is POST - this is cgi request [22:26:00]url: /json_proto [22:26:00]query_string will be loaded in cgi processing [22:26:00]execute_cgi json_proto POST (null) [22:26:00]execute_cgi path=json_proto method=POST [22:26:00]POST find Content-Length [22:26:00]Host: 172.17.60.69:8080 [22:26:00]Content-Length: 643 [22:26:00]Content-Type: application/json [22:26:00] [22:26:00]POST finish read [22:26:00]Found Content-Length = 643 [22:26:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73611", "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" ] } } [22:26:00]execute_script... [22:26:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73611", "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" ] } } [22:26:00]POST & json_proto [22:26:00]process_json_proto [22:26:00]json parsed OK: [22:26:00]protocol is kg_v1.0 [22:26:00]action value=close_receipt [22:26:00]process_action close_receipt [22:26:00]cmd_close_receipt [22:26:00]MH_GetDate [22:26:00]Write to MH i2c: F0 00 00 FA 06 EF [22:26:00]Write i2c OK [22:26:00]MH_I2C_Read... [22:26:00]Read from MH i2c: F0 [22:26:00]MH_I2C_Read... [22:26:00]Read from MH i2c: F0 09 00 [22:26:00]MH_I2C_Read... [22:26:00]Read from MH i2c: F0 09 00 FA 06 00 78 94 5F 66 D2 83 5F 66 E3 [22:26:00]GetLastDocTimeStamp 1717539880 [22:26:00]current date 1717539960 [22:26:00]FM_GetShiftState [22:26:00]SAM_PROTO_GetShiftState [22:26:00]wFMCommunicate request_size=4 [22:26:00]MH_SAM_APDU [22:26:00]CAPDU: 80 13 01 00 [22:26:00]Write to MH i2c: E2 08 00 FB 06 80 13 01 00 00 00 00 00 7E [22:26:00]Write i2c OK [22:26:00]MH_I2C_Read... [22:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:00]Read from MH i2c: E2 [22:26:00]MH_I2C_Read... [22:26:00]Read from MH i2c: E2 0E 00 [22:26:00]MH_I2C_Read... [22:26:00]Read from MH i2c: E2 0E 00 FB 06 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1E [22:26:00]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:26:00]wFMCommunicate OK [22:26:00]SAM_PROTO_GetShiftState done [22:26:00]FM_GetShiftState done [22:26:00]opened in 1717459574 [22:26:00]opened+sec_in_day 1717545974 [22:26:00]quantity*price = 11500 [22:26:00]sum+1 = 11501 [22:26:00]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 СНО: Общий режим Чек 154 04.06.2024 22:26 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64069 ФПД: 121366373467162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222600&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64069&fm=121366373467162&tin=02508201610067®Number=0000000000092737&sum=11500 0 [22:26:01]StoreToDocumentArchive [22:26:01]shift 374 fd 64069 [22:26:01]save to /storage/0374/doc_00064069 [22:26:01]save last doc name /storage/0374/doc_00064069 to /storage/kkm_last_doc_name [22:26:01]save OK [22:26:01]Clear old archive folders... [22:26:01]ProcessDocumentItem done err = 0, tmpTLVsize=280 [22:26:01]tlvbuf is 00FFD8B0 [22:26:01]SAM_PROTO_ClearQueue [22:26:01]wFMCommunicate request_size=4 [22:26:01]MH_SAM_APDU [22:26:01]CAPDU: 80 09 00 00 [22:26:01]Write to MH i2c: E2 08 00 08 07 80 09 00 00 00 00 00 00 81 [22:26:01]Write i2c OK [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 [22:26:01]MH_I2C_Read... [22:26:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:01]Read from MH i2c: E2 03 00 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [22:26:01]RAPDU: 90 00 [22:26:01]wFMCommunicate OK [22:26:01]SAM_PROTO_ClearQueue done [22:26:01]KKMCreateOFDPacket [22:26:01]OFDProtocolAddRootSTLVToBuf [22:26:01]FM_MakeSignedData [22:26:01]FM_MakeSignedData [22:26:01]SAM_PROTO_SignData [22:26:01]wFMCommunicate request_size=4 [22:26:01]MH_SAM_APDU [22:26:01]CAPDU: 80 0D 01 02 [22:26:01]Write to MH i2c: E2 08 00 09 07 80 0D 01 02 00 00 00 00 89 [22:26:01]Write i2c OK [22:26:01]MH_I2C_Read... [22:26:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:01]Read from MH i2c: E2 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 03 00 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [22:26:01]RAPDU: 90 00 [22:26:01]wFMCommunicate OK [22:26:01]wFMCommunicate request_size=255 [22:26:01]MH_SAM_APDU [22:26:01]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 9A 00 00 00 F4 03 04 00 78 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 [22:26:01]Write to MH i2c: E2 02 01 0A 07 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 9A 00 00 00 F4 03 04 00 78 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 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 AE [22:26:01]Write i2c OK [22:26:01]MH_I2C_Read... [22:26:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:01]Read from MH i2c: E2 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 03 00 [22:26:01]MH_I2C_Read... [22:26:01]Read from MH i2c: E2 03 00 0A 07 00 90 00 85 [22:26:01]RAPDU: 90 00 [22:26:01]wFMCommunicate OK [22:26:01]wFMCommunicate request_size=39 [22:26:01]MH_SAM_APDU [22:26:01]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 45 FA 00 00 35 04 06 00 6E 61 CF 94 04 1A [22:26:01]Write to MH i2c: E2 2A 00 0B 07 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 45 FA 00 00 35 04 06 00 6E 61 CF 94 04 1A 00 00 D5 [22:26:01]Write i2c OK [22:26:01]MH_I2C_Read... [22:26:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:02]Read from MH i2c: E2 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: E2 03 00 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: E2 03 00 0B 07 00 90 00 86 [22:26:02]RAPDU: 90 00 [22:26:02]wFMCommunicate OK [22:26:02]wFMCommunicate request_size=4 [22:26:02]MH_SAM_APDU [22:26:02]CAPDU: 80 0D 03 02 [22:26:02]Write to MH i2c: E2 08 00 0C 07 80 0D 03 02 00 00 00 00 8E [22:26:02]Write i2c OK [22:26:02]MH_I2C_Read... [22:26:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:02]Read from MH i2c: E2 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: E2 0B 00 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: E2 0B 00 0C 07 00 AC 1B 84 72 27 07 58 18 90 00 EA [22:26:02]RAPDU: AC 1B 84 72 27 07 58 18 90 00 [22:26:02]wFMCommunicate OK [22:26:02]SAM_PROTO_SignData done [22:26:02]FM_MakeSignedData done [22:26:02]CreateOFDProtocolMessage [22:26:02]wFMCommunicate request_size=4 [22:26:02]MH_SAM_APDU [22:26:02]CAPDU: 80 11 00 00 [22:26:02]Write to MH i2c: E2 08 00 0D 07 80 11 00 00 00 00 00 00 8E [22:26:02]Write i2c OK [22:26:02]MH_I2C_Read... [22:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:02]Read from MH i2c: E2 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: E2 17 00 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: E2 17 00 0D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E0 [22:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:26:02]wFMCommunicate OK [22:26:02]CreateOFDProtocolMessage done [22:26:02]OFDSenderStorePacket 64069 [22:26:02]StoreOFDPacket docnum=64069 [22:26: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 2C 01 00 00 F9 1C 24 01 96 EA 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 9A 00 00 00 F4 03 04 00 78 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 45 FA 00 00 35 04 06 00 6E 61 CF 94 04 1A AC 1B 84 72 27 07 58 18 [22:26:02]CheckFolder [22:26:02]dirname=/storage/ofd_packets [22:26:02]CheckFolder done [22:26:02]ProducePacketName [22:26:02]name=ofd_packets/00064069 [22:26:02]NVStorageSaveData ofd_packets/00064069 [22:26:02]File name is /storage/ofd_packets/00064069 [22:26:02]Write 330 bytes [22:26:02]NVStorageSaveData done [22:26:02]OFDSenderStorePacket done [22:26:02]KKMCreateOFDPacket done [22:26:02]NVStorageSaveData kkm_last_timestamp [22:26:02]File name is /storage/kkm_last_timestamp [22:26:02]Write 4 bytes [22:26:02]NVStorageSaveData done [22:26:02]ExternCall_PrintAddStr [22:26:02]wPrintStart [22:26:02]Write to MH i2c: 01 00 00 0E 07 15 [22:26:02]Write i2c OK [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: 01 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: 01 07 00 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: 01 07 00 0E 07 00 00 00 00 00 FF 0F 2A [22:26:02]RasterBufferAndPrint [22:26:02]line Счет N : (3)73611 [22:26:02]line ИНН: 02508201610067 [22:26:02]line Контрольно-Кассовый Чек [22:26:02]line ПРОДАЖА [22:26:02]line Товар: 2000036210013 [22:26:02]line Кофе Капучино (GABB TRADE) [22:26:02]line 1.000 * 115.00 [22:26:02]line = 115.00 [22:26:02]line НДС 12% НСП 1% [22:26:02]line > о реализуемом товаре [22:26:02]line ИТОГО: 115.00 [22:26:02]line НСП 1% : 1.02 [22:26:02]line НДС 12% : 12.21 [22:26:02]line Наличными: 115.00 [22:26:02]line Безнал.: 0.00 [22:26:02]line Место: АЗС № 117 "Партнер Нефть" [22:26:02]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:26:02]line СНО: Общий режим [22:26:02]line Чек 154 04.06.2024 22:26 [22:26:02]line Смена: 374 ФФД: 1.0 [22:26:02]line ЗНМ: 0300000031 [22:26:02]line РНМ: 0000000000092737 [22:26:02]line Версия ККМ: 001 [22:26:02]line ФМ: 0000000000875074 [22:26:02]line ФД: 64069 [22:26:02]line ФПД: 121366373467162 [22:26:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222600&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64069&fm=121366373467162&tin=02508201610067®Number=0000000000092737&sum=11500 [22:26:02]line 0 [22:26:02]OFD Sender: Processing packet 64069 [packets to send 14, broken 13] [22:26:02]ProducePacketName [22:26:02]name=ofd_packets/00064069 [22:26:02]OFD Sender: To server: pG, [22:26:02]CommunicateWithHost lk.salyk.kg:30040 [22:26:02]ConnectInit lk.salyk.kg [22:26:02]written 0, free lines is 4095 [22:26:02]Connected sock=10 [22:26:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 2C 01 00 00 F9 1C 24 01 96 EA 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 9A 00 00 00 F4 03 04 00 78 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 45 FA 00 00 35 04 06 00 6E 61 CF 94 04 1A AC 1B 84 72 27 07 58 18 [22:26: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 DB E1 47 00 4F 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 45 FA 00 00 F4 03 04 00 86 40 5F 66 B6 04 01 00 00 3E BB 25 85 A8 18 11 E1 [22:26:02]CommunicateWithHost err = 0 [22:26:02]CheckOFDResponse [22:26:02]1017 (14) - 77093643461234 [22:26:02]1041 (16) - 0000000000875074 [22:26:02]1040 (4) - 64069 [22:26:02]1012 (4) - 04.06.2024 16:27 [22:26:02]1206 (1) - 0 [22:26:02]OFD Sender: Remove packet 64069 [22:26:02]ProducePacketName [22:26:02]name=ofd_packets/00064069 [22:26:02]NVStorageDeleteData [22:26:02]Write to MH i2c: 01 00 00 36 07 3D [22:26:02]Write i2c OK [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: 01 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: 01 07 00 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: 01 07 00 36 07 00 00 00 00 00 FD 0C 4D [22:26:02]RasterBufferAndPrint [22:26:02]line [22:26:02]line [22:26:02]line [22:26:02]line [22:26:02]line [22:26:02]written 0, free lines is 3331 [22:26:02]MH_Cut [22:26:02]Write to MH i2c: D1 01 00 3D 07 01 16 [22:26:02]Write i2c OK [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: D1 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: D1 01 00 [22:26:02]MH_I2C_Read... [22:26:02]Read from MH i2c: D1 01 00 3D 07 00 15 [22:26:02]Write to MH i2c: 01 00 00 3E 07 45 [22:26:02]Write i2c OK [22:26:02]MH_I2C_Read... [22:26:03]OFD Sender: No OFD packet to send [22:26:03]*** Cut start [22:26:03]*** Partial cut [22:26:03]*** CUTSNS_PIN = 1 [22:26:03]*** CUTSNS_PIN = 0 [22:26:04]*** Brake cut motor [22:26:04]Read from MH i2c: 01 [22:26:04]MH_I2C_Read... [22:26:04]*** Stop cut motor [22:26:04]*** Cut end [22:26:04]Read from MH i2c: 01 07 00 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: 01 07 00 3E 07 00 00 00 00 00 FF 0F 5A [22:26:04]process_action close_receipt done [22:26:04]requested_data is exist [22:26:04]produce_requested_data [22:26:04]requested_item fm.sn is exist - process it [22:26:04]wFMCommunicate request_size=4 [22:26:04]MH_SAM_APDU [22:26:04]CAPDU: 80 11 00 00 [22:26:04]Write to MH i2c: E2 08 00 3F 07 80 11 00 00 00 00 00 00 C0 [22:26:04]Write i2c OK [22:26:04]MH_I2C_Read... [22:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:04]Read from MH i2c: E2 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: E2 17 00 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: E2 17 00 3F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 12 [22:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:26:04]wFMCommunicate OK [22:26:04]requested_item fd.num is exist - process it [22:26:04]SAM_PROTO_GetFieldsCounters [22:26:04]wFMCommunicate request_size=4 [22:26:04]MH_SAM_APDU [22:26:04]CAPDU: 80 13 00 00 [22:26:04]Write to MH i2c: E2 08 00 40 07 80 13 00 00 00 00 00 00 C3 [22:26:04]Write i2c OK [22:26:04]MH_I2C_Read... [22:26:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:04]Read from MH i2c: E2 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: E2 62 00 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: E2 62 00 40 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 45 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [22:26: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 45 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:04]wFMCommunicate OK [22:26:04]SAM_PROTO_GetFieldsCounters done [22:26:04]requested_item shift.num is exist - process it [22:26:04]requested_item shift.opened is exist - process it [22:26:04]req_shift_opened [22:26:04]FM_GetShiftState [22:26:04]SAM_PROTO_GetShiftState [22:26:04]wFMCommunicate request_size=4 [22:26:04]MH_SAM_APDU [22:26:04]CAPDU: 80 13 01 00 [22:26:04]Write to MH i2c: E2 08 00 41 07 80 13 01 00 00 00 00 00 C5 [22:26:04]Write i2c OK [22:26:04]MH_I2C_Read... [22:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:04]Read from MH i2c: E2 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: E2 0E 00 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: E2 0E 00 41 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 65 [22:26:04]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:26:04]wFMCommunicate OK [22:26:04]SAM_PROTO_GetShiftState done [22:26:04]FM_GetShiftState done [22:26:04]req_shift_opened done [22:26:04]requested_item shift.open_date is exist - process it [22:26:04]req_shift_open_date [22:26:04]req_shift_open_date done [22:26:04]produce_requested_data done [22:26:04]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64069,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [22:26:04]process_action_free close_receipt [22:26:04]json_value_free [22:26:04]json_value_free done [22:26:04]process_json_proto returns [22:26:04]Send response to host [22:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64069,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [22:26:04]free response buf [22:26:04]execute_script done [22:26:04]execute_script returns [22:26:04]free content buf [22:26:04]Sock 8.Close socket [22:26:04]Sock 8.Thread stoped [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:12]accept exits with 9 [22:27:12]New connection [22:27:12]New thread 3067133284 created [22:27:12]Thread 3067276644 joined [22:27:12]Waiting for new connection... [22:27:12] Sock 9.Parse request [22:27:12]Sock 9.Check first char [22:27:12]Sock 9.First char is OK [22:27:12]request: POST /json_proto HTTP/1.0 [22:27:12]Method: POST [22:27:12]URL: /json_proto [22:27:12]Method is POST - this is cgi request [22:27:12]url: /json_proto [22:27:12]query_string will be loaded in cgi processing [22:27:12]execute_cgi json_proto POST (null) [22:27:12]execute_cgi path=json_proto method=POST [22:27:12]POST find Content-Length [22:27:12]Host: 172.17.60.69:8080 [22:27:12]Content-Length: 957 [22:27:12]Content-Type: application/json [22:27:12] [22:27:12]POST finish read [22:27:12]Found Content-Length = 957 [22:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73612", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:12]execute_script... [22:27:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73612", "tax_sys" : 0, "items" : [ { "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:12]POST & json_proto [22:27:12]process_json_proto [22:27:12]json parsed OK: [22:27:12]protocol is kg_v1.0 [22:27:12]action value=close_receipt [22:27:12]process_action close_receipt [22:27:12]cmd_close_receipt [22:27:12]MH_GetDate [22:27:12]Write to MH i2c: F0 00 00 42 07 38 [22:27:12]Write i2c OK [22:27:12]MH_I2C_Read... [22:27:12]Read from MH i2c: F0 [22:27:12]MH_I2C_Read... [22:27:12]Read from MH i2c: F0 09 00 [22:27:12]MH_I2C_Read... [22:27:12]Read from MH i2c: F0 09 00 42 07 00 C0 94 5F 66 D2 83 5F 66 74 [22:27:12]GetLastDocTimeStamp 1717539960 [22:27:12]current date 1717540032 [22:27:12]FM_GetShiftState [22:27:12]SAM_PROTO_GetShiftState [22:27:12]wFMCommunicate request_size=4 [22:27:12]MH_SAM_APDU [22:27:12]CAPDU: 80 13 01 00 [22:27:12]Write to MH i2c: E2 08 00 43 07 80 13 01 00 00 00 00 00 C7 [22:27:12]Write i2c OK [22:27:12]MH_I2C_Read... [22:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:12]Read from MH i2c: E2 [22:27:12]MH_I2C_Read... [22:27:12]Read from MH i2c: E2 0E 00 [22:27:12]MH_I2C_Read... [22:27:12]Read from MH i2c: E2 0E 00 43 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 67 [22:27:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:27:12]wFMCommunicate OK [22:27:12]SAM_PROTO_GetShiftState done [22:27:12]FM_GetShiftState done [22:27:12]opened in 1717459574 [22:27:12]opened+sec_in_day 1717545974 [22:27:12]quantity*price = 4000 [22:27:12]sum+1 = 4001 [22:27:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010032 Чай хол Let`s Go! чер персик ПЭТ 0,5л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.79 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 155 04.06.2024 22:27 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64070 ФПД: 100187696890423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222713&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64070&fm=100187696890423&tin=02508201610067®Number=0000000000092737&sum=9000 0 [22:27:13]StoreToDocumentArchive [22:27:13]shift 374 fd 64070 [22:27:13]save to /storage/0374/doc_00064070 [22:27:13]save last doc name /storage/0374/doc_00064070 to /storage/kkm_last_doc_name [22:27:13]save OK [22:27:13]Clear old archive folders... [22:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=405 [22:27:13]tlvbuf is 01076510 [22:27:13]SAM_PROTO_ClearQueue [22:27:13]wFMCommunicate request_size=4 [22:27:13]MH_SAM_APDU [22:27:13]CAPDU: 80 09 00 00 [22:27:13]Write to MH i2c: E2 08 00 50 07 80 09 00 00 00 00 00 00 C9 [22:27:13]Write i2c OK [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 [22:27:13]MH_I2C_Read... [22:27:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:13]Read from MH i2c: E2 03 00 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 03 00 50 07 00 90 00 CB [22:27:13]RAPDU: 90 00 [22:27:13]wFMCommunicate OK [22:27:13]SAM_PROTO_ClearQueue done [22:27:13]KKMCreateOFDPacket [22:27:13]OFDProtocolAddRootSTLVToBuf [22:27:13]FM_MakeSignedData [22:27:13]FM_MakeSignedData [22:27:13]SAM_PROTO_SignData [22:27:13]wFMCommunicate request_size=4 [22:27:13]MH_SAM_APDU [22:27:13]CAPDU: 80 0D 01 02 [22:27:13]Write to MH i2c: E2 08 00 51 07 80 0D 01 02 00 00 00 00 D1 [22:27:13]Write i2c OK [22:27:13]MH_I2C_Read... [22:27:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:13]Read from MH i2c: E2 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 03 00 [22:27:13]MH_I2C_Read... [22:27:13]Read from MH i2c: E2 03 00 51 07 00 90 00 CC [22:27:13]RAPDU: 90 00 [22:27:13]wFMCommunicate OK [22:27:13]wFMCommunicate request_size=255 [22:27:13]MH_SAM_APDU [22:27:13]CAPDU: 80 0D 02 02 FA 03 00 95 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 28 23 [22:27:13]Write to MH i2c: E2 02 01 52 07 80 0D 02 02 FA 00 03 00 95 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 28 23 00 00 F0 [22:27:13]Write i2c OK [22:27:13]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 52 07 00 90 00 CD [22:27:14]RAPDU: 90 00 [22:27:14]wFMCommunicate OK [22:27:14]wFMCommunicate request_size=164 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 0D 02 02 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C1 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 46 FA 00 00 35 04 06 00 5B 1E C4 15 82 37 [22:27:14]Write to MH i2c: E2 A7 00 53 07 80 0D 02 02 9F 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C1 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 46 FA 00 00 35 04 06 00 5B 1E C4 15 82 37 00 00 21 [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [22:27:14]RAPDU: 90 00 [22:27:14]wFMCommunicate OK [22:27:14]wFMCommunicate request_size=4 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 0D 03 02 [22:27:14]Write to MH i2c: E2 08 00 54 07 80 0D 03 02 00 00 00 00 D6 [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 0B 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 0B 00 54 07 00 95 E2 D6 C5 D0 E9 B3 B8 90 00 0D [22:27:14]RAPDU: 95 E2 D6 C5 D0 E9 B3 B8 90 00 [22:27:14]wFMCommunicate OK [22:27:14]SAM_PROTO_SignData done [22:27:14]FM_MakeSignedData done [22:27:14]CreateOFDProtocolMessage [22:27:14]wFMCommunicate request_size=4 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 11 00 00 [22:27:14]Write to MH i2c: E2 08 00 55 07 80 11 00 00 00 00 00 00 D6 [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 17 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 17 00 55 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 28 [22:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:27:14]wFMCommunicate OK [22:27:14]CreateOFDProtocolMessage done [22:27:14]OFDSenderStorePacket 64070 [22:27:14]StoreOFDPacket docnum=64070 [22:27: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 A9 01 00 00 1C 10 A1 01 3A C0 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C1 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 46 FA 00 00 35 04 06 00 5B 1E C4 15 82 37 95 E2 D6 C5 D0 E9 B3 B8 [22:27:14]CheckFolder [22:27:14]dirname=/storage/ofd_packets [22:27:14]CheckFolder done [22:27:14]ProducePacketName [22:27:14]name=ofd_packets/00064070 [22:27:14]NVStorageSaveData ofd_packets/00064070 [22:27:14]File name is /storage/ofd_packets/00064070 [22:27:14]Write 455 bytes [22:27:14]NVStorageSaveData done [22:27:14]OFDSenderStorePacket done [22:27:14]KKMCreateOFDPacket done [22:27:14]NVStorageSaveData kkm_last_timestamp [22:27:14]File name is /storage/kkm_last_timestamp [22:27:14]Write 4 bytes [22:27:14]NVStorageSaveData done [22:27:14]ExternCall_PrintAddStr [22:27:14]wPrintStart [22:27:14]Write to MH i2c: 01 00 00 56 07 5D [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: 01 [22:27:14]MH_I2C_Read... [22:27:14]OFD Sender: Processing packet 64070 [packets to send 14, broken 13] [22:27:14]ProducePacketName [22:27:14]name=ofd_packets/00064070 [22:27:14]OFD Sender: To server: pG, [22:27:14]CommunicateWithHost lk.salyk.kg:30040 [22:27:14]ConnectInit lk.salyk.kg [22:27:14]Read from MH i2c: 01 07 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: 01 07 00 56 07 00 00 00 00 00 FF 0F 72 [22:27:14]RasterBufferAndPrint [22:27:14]line Счет N : (3)73612 [22:27:14]line ИНН: 02508201610067 [22:27:14]line Контрольно-Кассовый Чек [22:27:14]line ПРОДАЖА [22:27:14]line Товар: 42203100 [22:27:14]line Жев Orbit банан-клубника [22:27:14]line 1.000 * 40.00 [22:27:14]line = 40.00 [22:27:14]line НДС 12% НСП 1% [22:27:14]line > о реализуемом товаре [22:27:14]line Товар: 4700003010032 [22:27:14]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [22:27:14]line 1.000 * 50.00 [22:27:14]line = 50.00 [22:27:14]line НДС 12% НСП 1% [22:27:14]line > о реализуемом товаре [22:27:14]line ИТОГО: 90.00 [22:27:14]line НСП 1% : 0.79 [22:27:14]line НДС 12% : 9.56 [22:27:14]line Наличными: 90.00 [22:27:14]line Безнал.: 0.00 [22:27:14]line Место: АЗС № 117 "Партнер Нефть" [22:27:14]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:27:14]line СНО: Общий режим [22:27:14]line Чек 155 04.06.2024 22:27 [22:27:14]line Смена: 374 ФФД: 1.0 [22:27:14]line ЗНМ: 0300000031 [22:27:14]line РНМ: 0000000000092737 [22:27:14]line Версия ККМ: 001 [22:27:14]line ФМ: 0000000000875074 [22:27:14]line ФД: 64070 [22:27:14]line ФПД: 100187696890423 [22:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222713&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64070&fm=100187696890423&tin=02508201610067®Number=0000000000092737&sum=9000 [22:27:14]line 0 [22:27:14]written 0, free lines is 4095 [22:27:14]Connected sock=10 [22:27:14]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 A9 01 00 00 1C 10 A1 01 3A C0 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 C1 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 46 FA 00 00 35 04 06 00 5B 1E C4 15 82 37 95 E2 D6 C5 D0 E9 B3 B8 [22:27: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 56 B8 47 00 04 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 46 FA 00 00 F4 03 04 00 CE 40 5F 66 B6 04 01 00 00 C7 37 C8 9E 21 2A C2 F5 [22:27:15]CommunicateWithHost err = 0 [22:27:15]CheckOFDResponse [22:27:15]1017 (14) - 77093643461234 [22:27:15]1041 (16) - 0000000000875074 [22:27:15]1040 (4) - 64070 [22:27:15]1012 (4) - 04.06.2024 16:29 [22:27:15]1206 (1) - 0 [22:27:15]OFD Sender: Remove packet 64070 [22:27:15]ProducePacketName [22:27:15]name=ofd_packets/00064070 [22:27:15]NVStorageDeleteData [22:27:15]Write to MH i2c: 01 00 00 85 07 8C [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: 01 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: 01 07 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 8F 0C 2E [22:27:15]RasterBufferAndPrint [22:27:15]line [22:27:15]line [22:27:15]line [22:27:15]line [22:27:15]line [22:27:15]written 0, free lines is 3221 [22:27:15]MH_Cut [22:27:15]Write to MH i2c: D1 01 00 8C 07 01 65 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: D1 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: D1 01 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: D1 01 00 8C 07 00 64 [22:27:15]Write to MH i2c: 01 00 00 8D 07 94 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]OFD Sender: No OFD packet to send [22:27:16]*** Cut start [22:27:16]*** Partial cut [22:27:16]*** CUTSNS_PIN = 1 [22:27:16]*** CUTSNS_PIN = 0 [22:27:16]*** Brake cut motor [22:27:16]Read from MH i2c: 01 [22:27:16]MH_I2C_Read... [22:27:16]*** Stop cut motor [22:27:16]*** Cut end [22:27:16]Read from MH i2c: 01 07 00 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: 01 07 00 8D 07 00 00 00 00 00 FF 0F A9 [22:27:16]process_action close_receipt done [22:27:16]requested_data is exist [22:27:16]produce_requested_data [22:27:16]requested_item fm.sn is exist - process it [22:27:16]wFMCommunicate request_size=4 [22:27:16]MH_SAM_APDU [22:27:16]CAPDU: 80 11 00 00 [22:27:16]Write to MH i2c: E2 08 00 8E 07 80 11 00 00 00 00 00 00 0F [22:27:16]Write i2c OK [22:27:16]MH_I2C_Read... [22:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:16]Read from MH i2c: E2 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 17 00 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 17 00 8E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 61 [22:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:27:16]wFMCommunicate OK [22:27:16]requested_item fd.num is exist - process it [22:27:16]SAM_PROTO_GetFieldsCounters [22:27:16]wFMCommunicate request_size=4 [22:27:16]MH_SAM_APDU [22:27:16]CAPDU: 80 13 00 00 [22:27:16]Write to MH i2c: E2 08 00 8F 07 80 13 00 00 00 00 00 00 12 [22:27:16]Write i2c OK [22:27:16]MH_I2C_Read... [22:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:17]Read from MH i2c: E2 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 62 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 62 00 8F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 46 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [22:27: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 46 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:17]wFMCommunicate OK [22:27:17]SAM_PROTO_GetFieldsCounters done [22:27:17]requested_item shift.num is exist - process it [22:27:17]requested_item shift.opened is exist - process it [22:27:17]req_shift_opened [22:27:17]FM_GetShiftState [22:27:17]SAM_PROTO_GetShiftState [22:27:17]wFMCommunicate request_size=4 [22:27:17]MH_SAM_APDU [22:27:17]CAPDU: 80 13 01 00 [22:27:17]Write to MH i2c: E2 08 00 90 07 80 13 01 00 00 00 00 00 14 [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:17]Read from MH i2c: E2 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 0E 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: E2 0E 00 90 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B4 [22:27:17]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:27:17]wFMCommunicate OK [22:27:17]SAM_PROTO_GetShiftState done [22:27:17]FM_GetShiftState done [22:27:17]req_shift_opened done [22:27:17]requested_item shift.open_date is exist - process it [22:27:17]req_shift_open_date [22:27:17]req_shift_open_date done [22:27:17]produce_requested_data done [22:27:17]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64070,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [22:27:17]process_action_free close_receipt [22:27:17]json_value_free [22:27:17]json_value_free done [22:27:17]process_json_proto returns [22:27:17]Send response to host [22:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64070,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [22:27:17]free response buf [22:27:17]execute_script done [22:27:17]execute_script returns [22:27:17]free content buf [22:27:17]Sock 9.Close socket [22:27:17]Sock 9.Thread stoped [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:07]accept exits with 8 [22:28:07]New connection [22:28:07]New thread 3067276644 created [22:28:07]Thread 3067133284 joined [22:28:07]Waiting for new connection... [22:28:07] Sock 8.Parse request [22:28:07]Sock 8.Check first char [22:28:07]Sock 8.First char is OK [22:28:07]request: POST /json_proto HTTP/1.0 [22:28:07]Method: POST [22:28:07]URL: /json_proto [22:28:07]Method is POST - this is cgi request [22:28:07]url: /json_proto [22:28:07]query_string will be loaded in cgi processing [22:28:07]execute_cgi json_proto POST (null) [22:28:07]execute_cgi path=json_proto method=POST [22:28:07]POST find Content-Length [22:28:07]Host: 172.17.60.69:8080 [22:28:07]Content-Length: 1078 [22:28:07]Content-Type: application/json [22:28:07] [22:28:07]POST finish read [22:28:07]Found Content-Length = 1078 [22:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73613", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:07]execute_script... [22:28: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)73613", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:07]POST & json_proto [22:28:07]process_json_proto [22:28:07]json parsed OK: [22:28:07]protocol is kg_v1.0 [22:28:07]action value=close_receipt [22:28:07]process_action close_receipt [22:28:07]cmd_close_receipt [22:28:07]MH_GetDate [22:28:07]Write to MH i2c: F0 00 00 91 07 87 [22:28:07]Write i2c OK [22:28:07]MH_I2C_Read... [22:28:07]Read from MH i2c: F0 [22:28:07]MH_I2C_Read... [22:28:07]Read from MH i2c: F0 09 00 [22:28:07]MH_I2C_Read... [22:28:07]Read from MH i2c: F0 09 00 91 07 00 F7 94 5F 66 D2 83 5F 66 FA [22:28:07]GetLastDocTimeStamp 1717540033 [22:28:07]current date 1717540087 [22:28:07]FM_GetShiftState [22:28:07]SAM_PROTO_GetShiftState [22:28:07]wFMCommunicate request_size=4 [22:28:07]MH_SAM_APDU [22:28:07]CAPDU: 80 13 01 00 [22:28:07]Write to MH i2c: E2 08 00 92 07 80 13 01 00 00 00 00 00 16 [22:28:07]Write i2c OK [22:28:07]MH_I2C_Read... [22:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:07]Read from MH i2c: E2 [22:28:07]MH_I2C_Read... [22:28:07]Read from MH i2c: E2 0E 00 [22:28:07]MH_I2C_Read... [22:28:07]Read from MH i2c: E2 0E 00 92 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B6 [22:28:07]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:28:07]wFMCommunicate OK [22:28:07]SAM_PROTO_GetShiftState done [22:28:07]FM_GetShiftState done [22:28:07]opened in 1717459574 [22:28:07]opened+sec_in_day 1717545974 [22:28:07]quantity*price = 5000 [22:28:07]sum+1 = 5001 [22:28:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 0.00 Безнал.: 145.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 156 04.06.2024 22:28 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 64071 ФПД: 84078623267018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222807&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64071&fm=84078623267018&tin=02508201610067®Number=0000000000092737&sum=14500 0 [22:28:08]StoreToDocumentArchive [22:28:08]shift 374 fd 64071 [22:28:08]save to /storage/0374/doc_00064071 [22:28:08]save last doc name /storage/0374/doc_00064071 to /storage/kkm_last_doc_name [22:28:08]save OK [22:28:08]Clear old archive folders... [22:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=392 [22:28:08]tlvbuf is 01075BF0 [22:28:08]SAM_PROTO_ClearQueue [22:28:08]wFMCommunicate request_size=4 [22:28:08]MH_SAM_APDU [22:28:08]CAPDU: 80 09 00 00 [22:28:08]Write to MH i2c: E2 08 00 9F 07 80 09 00 00 00 00 00 00 18 [22:28:08]Write i2c OK [22:28:08]MH_I2C_Read... [22:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:08]Read from MH i2c: E2 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 03 00 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [22:28:08]RAPDU: 90 00 [22:28:08]wFMCommunicate OK [22:28:08]SAM_PROTO_ClearQueue done [22:28:08]KKMCreateOFDPacket [22:28:08]OFDProtocolAddRootSTLVToBuf [22:28:08]FM_MakeSignedData [22:28:08]FM_MakeSignedData [22:28:08]SAM_PROTO_SignData [22:28:08]wFMCommunicate request_size=4 [22:28:08]MH_SAM_APDU [22:28:08]CAPDU: 80 0D 01 02 [22:28:08]Write to MH i2c: E2 08 00 A0 07 80 0D 01 02 00 00 00 00 20 [22:28:08]Write i2c OK [22:28:08]MH_I2C_Read... [22:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:08]Read from MH i2c: E2 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 03 00 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [22:28:08]RAPDU: 90 00 [22:28:08]wFMCommunicate OK [22:28:08]wFMCommunicate request_size=255 [22:28:08]MH_SAM_APDU [22:28:08]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [22:28:08]Write to MH i2c: E2 02 01 A1 07 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 F9 [22:28:08]Write i2c OK [22:28:08]MH_I2C_Read... [22:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:09]Read from MH i2c: E2 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 03 00 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [22:28:09]RAPDU: 90 00 [22:28:09]wFMCommunicate OK [22:28:09]wFMCommunicate request_size=151 [22:28:09]MH_SAM_APDU [22:28:09]CAPDU: 80 0D 02 02 92 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 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F7 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 FA 00 00 35 04 06 00 4C 78 14 79 18 CA [22:28:09]Write to MH i2c: E2 9A 00 A2 07 80 0D 02 02 92 00 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 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F7 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 FA 00 00 35 04 06 00 4C 78 14 79 18 CA 00 00 B8 [22:28:09]Write i2c OK [22:28:09]MH_I2C_Read... [22:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:09]Read from MH i2c: E2 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 03 00 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 03 00 A2 07 00 90 00 1D [22:28:09]RAPDU: 90 00 [22:28:09]wFMCommunicate OK [22:28:09]wFMCommunicate request_size=4 [22:28:09]MH_SAM_APDU [22:28:09]CAPDU: 80 0D 03 02 [22:28:09]Write to MH i2c: E2 08 00 A3 07 80 0D 03 02 00 00 00 00 25 [22:28:09]Write i2c OK [22:28:09]MH_I2C_Read... [22:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:09]Read from MH i2c: E2 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 0B 00 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 0B 00 A3 07 00 1E 3A E8 9D 28 9C C7 FF 90 00 8D [22:28:09]RAPDU: 1E 3A E8 9D 28 9C C7 FF 90 00 [22:28:09]wFMCommunicate OK [22:28:09]SAM_PROTO_SignData done [22:28:09]FM_MakeSignedData done [22:28:09]CreateOFDProtocolMessage [22:28:09]wFMCommunicate request_size=4 [22:28:09]MH_SAM_APDU [22:28:09]CAPDU: 80 11 00 00 [22:28:09]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [22:28:09]Write i2c OK [22:28:09]MH_I2C_Read... [22:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:09]Read from MH i2c: E2 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 17 00 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 77 [22:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:28:09]wFMCommunicate OK [22:28:09]CreateOFDProtocolMessage done [22:28:09]OFDSenderStorePacket 64071 [22:28:09]StoreOFDPacket docnum=64071 [22:28: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 9C 01 00 00 5B 43 94 01 73 5C 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F7 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 FA 00 00 35 04 06 00 4C 78 14 79 18 CA 1E 3A E8 9D 28 9C C7 FF [22:28:09]CheckFolder [22:28:09]dirname=/storage/ofd_packets [22:28:09]CheckFolder done [22:28:09]ProducePacketName [22:28:09]name=ofd_packets/00064071 [22:28:09]NVStorageSaveData ofd_packets/00064071 [22:28:09]File name is /storage/ofd_packets/00064071 [22:28:09]Write 442 bytes [22:28:09]NVStorageSaveData done [22:28:09]OFDSenderStorePacket done [22:28:09]KKMCreateOFDPacket done [22:28:09]NVStorageSaveData kkm_last_timestamp [22:28:09]File name is /storage/kkm_last_timestamp [22:28:09]Write 4 bytes [22:28:09]NVStorageSaveData done [22:28:09]ExternCall_PrintAddStr [22:28:09]wPrintStart [22:28:09]Write to MH i2c: 01 00 00 A5 07 AC [22:28:09]OFD Sender: Processing packet 64071 [packets to send 14, broken 13] [22:28:09]ProducePacketName [22:28:09]name=ofd_packets/00064071 [22:28:09]OFD Sender: To server: pG, [22:28:09]CommunicateWithHost lk.salyk.kg:30040 [22:28:09]ConnectInit lk.salyk.kg [22:28:09]Write i2c OK [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: 01 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: 01 07 00 [22:28:09]MH_I2C_Read... [22:28:09]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [22:28:09]RasterBufferAndPrint [22:28:09]line Счет N : (3)73613 [22:28:09]line ИНН: 02508201610067 [22:28:09]line Контрольно-Кассовый Чек [22:28:09]line ПРОДАЖА [22:28:09]line Товар: 4700000160358 [22:28:09]line Вода Легенда 1л [22:28:09]line 1.000 * 50.00 [22:28:09]line = 50.00 [22:28:09]line НДС 12% НСП 1% [22:28:09]line > о реализуемом товаре [22:28:09]line Товар: 4700000480050 [22:28:09]line Напиток Nitro Energy эн green ж/б 0,45л [22:28:09]line 1.000 * 95.00 [22:28:09]line = 95.00 [22:28:09]line НДС 12% НСП 1% [22:28:09]line > о реализуемом товаре [22:28:09]line ИТОГО: 145.00 [22:28:09]line НСП 1% : 1.28 [22:28:09]line НДС 12% : 15.40 [22:28:09]line Наличными: 0.00 [22:28:09]line Безнал.: 145.00 [22:28:09]line Место: АЗС № 117 "Партнер Нефть" [22:28:09]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:28:09]line СНО: Общий режим [22:28:09]line Чек 156 04.06.2024 22:28 [22:28:09]line Смена: 374 ФФД: 1.0 [22:28:09]line ЗНМ: 0300000031 [22:28:09]line РНМ: 0000000000092737 [22:28:09]line Версия ККМ: 001 [22:28:09]line Платежная система: Бакай Банк [22:28:09]line ФМ: 0000000000875074 [22:28:09]line ФД: 64071 [22:28:09]line ФПД: 84078623267018 [22:28:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T222807&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64071&fm=84078623267018&tin=02508201610067®Number=0000000000092737&sum=14500 [22:28:09]line 0 [22:28:09]written 0, free lines is 4095 [22:28:09]Connected sock=10 [22:28: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 9C 01 00 00 5B 43 94 01 73 5C 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 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 00 00 00 00 00 00 39 04 06 00 A4 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F7 94 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 FA 00 00 35 04 06 00 4C 78 14 79 18 CA 1E 3A E8 9D 28 9C C7 FF [22:28:10]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 99 47 00 3B 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 47 FA 00 00 F4 03 04 00 05 41 5F 66 B6 04 01 00 00 E5 67 48 8E E8 E4 F0 1F [22:28:10]CommunicateWithHost err = 0 [22:28:10]CheckOFDResponse [22:28:10]1017 (14) - 77093643461234 [22:28:10]1041 (16) - 0000000000875074 [22:28:10]1040 (4) - 64071 [22:28:10]1012 (4) - 04.06.2024 16:29 [22:28:10]1206 (1) - 0 [22:28:10]OFD Sender: Remove packet 64071 [22:28:10]ProducePacketName [22:28:10]name=ofd_packets/00064071 [22:28:10]NVStorageDeleteData [22:28:10]Write to MH i2c: 01 00 00 D6 07 DD [22:28:10]Write i2c OK [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: 01 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: 01 07 00 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: 01 07 00 D6 07 00 00 00 00 00 70 0C 60 [22:28:10]RasterBufferAndPrint [22:28:10]line [22:28:10]line [22:28:10]line [22:28:10]line [22:28:10]line [22:28:10]written 0, free lines is 3189 [22:28:10]MH_Cut [22:28:10]Write to MH i2c: D1 01 00 DD 07 01 B6 [22:28:10]Write i2c OK [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: D1 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: D1 01 00 [22:28:10]MH_I2C_Read... [22:28:10]Read from MH i2c: D1 01 00 DD 07 00 B5 [22:28:10]Write to MH i2c: 01 00 00 DE 07 E5 [22:28:10]Write i2c OK [22:28:10]MH_I2C_Read... [22:28:10]OFD Sender: No OFD packet to send [22:28:11]*** Cut start [22:28:11]*** Partial cut [22:28:11]*** CUTSNS_PIN = 1 [22:28:11]*** CUTSNS_PIN = 0 [22:28:11]*** Brake cut motor [22:28:11]Read from MH i2c: 01 [22:28:11]MH_I2C_Read... [22:28:11]*** Stop cut motor [22:28:11]*** Cut end [22:28:11]Read from MH i2c: 01 07 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: 01 07 00 DE 07 00 00 00 00 00 FF 0F FA [22:28:11]process_action close_receipt done [22:28:11]requested_data is exist [22:28:11]produce_requested_data [22:28:11]requested_item fm.sn is exist - process it [22:28:11]wFMCommunicate request_size=4 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 11 00 00 [22:28:11]Write to MH i2c: E2 08 00 DF 07 80 11 00 00 00 00 00 00 60 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:11]Read from MH i2c: E2 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 17 00 [22:28:11]MH_I2C_Read... [22:28:11]Read from MH i2c: E2 17 00 DF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 B2 [22:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:28:11]wFMCommunicate OK [22:28:11]requested_item fd.num is exist - process it [22:28:11]SAM_PROTO_GetFieldsCounters [22:28:11]wFMCommunicate request_size=4 [22:28:11]MH_SAM_APDU [22:28:11]CAPDU: 80 13 00 00 [22:28:11]Write to MH i2c: E2 08 00 E0 07 80 13 00 00 00 00 00 00 63 [22:28:11]Write i2c OK [22:28:11]MH_I2C_Read... [22:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:12]Read from MH i2c: E2 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 62 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 62 00 E0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 47 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [22:28:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 47 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:12]wFMCommunicate OK [22:28:12]SAM_PROTO_GetFieldsCounters done [22:28:12]requested_item shift.num is exist - process it [22:28:12]requested_item shift.opened is exist - process it [22:28:12]req_shift_opened [22:28:12]FM_GetShiftState [22:28:12]SAM_PROTO_GetShiftState [22:28:12]wFMCommunicate request_size=4 [22:28:12]MH_SAM_APDU [22:28:12]CAPDU: 80 13 01 00 [22:28:12]Write to MH i2c: E2 08 00 E1 07 80 13 01 00 00 00 00 00 65 [22:28:12]Write i2c OK [22:28:12]MH_I2C_Read... [22:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:12]Read from MH i2c: E2 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 0E 00 [22:28:12]MH_I2C_Read... [22:28:12]Read from MH i2c: E2 0E 00 E1 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 05 [22:28:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:28:12]wFMCommunicate OK [22:28:12]SAM_PROTO_GetShiftState done [22:28:12]FM_GetShiftState done [22:28:12]req_shift_opened done [22:28:12]requested_item shift.open_date is exist - process it [22:28:12]req_shift_open_date [22:28:12]req_shift_open_date done [22:28:12]produce_requested_data done [22:28:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64071,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [22:28:12]process_action_free close_receipt [22:28:12]json_value_free [22:28:12]json_value_free done [22:28:12]process_json_proto returns [22:28:12]Send response to host [22:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64071,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [22:28:12]free response buf [22:28:12]execute_script done [22:28:12]execute_script returns [22:28:12]free content buf [22:28:12]Sock 8.Close socket [22:28:12]Sock 8.Thread stoped [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:08]accept exits with 9 [22:30:08]New connection [22:30:08]New thread 3067133284 created [22:30:08]Thread 3067276644 joined [22:30:08]Waiting for new connection... [22:30:08] Sock 9.Parse request [22:30:08]Sock 9.Check first char [22:30:08]Sock 9.First char is OK [22:30:08]request: POST /json_proto HTTP/1.0 [22:30:08]Method: POST [22:30:08]URL: /json_proto [22:30:08]Method is POST - this is cgi request [22:30:08]url: /json_proto [22:30:08]query_string will be loaded in cgi processing [22:30:08]execute_cgi json_proto POST (null) [22:30:08]execute_cgi path=json_proto method=POST [22:30:08]POST find Content-Length [22:30:08]Host: 172.17.60.69:8080 [22:30:08]Content-Length: 890 [22:30:08]Content-Type: application/json [22:30:08] [22:30:08]POST finish read [22:30:08]Found Content-Length = 890 [22:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73614", "tax_sys" : 0, "items" : [ { "code": "4700041420169", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST \u0411\u0415\u0417 \u0417\u0410\u041F\u0410\u0425\u0410 72 \u0448\u0442", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:08]execute_script... [22:30:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73614", "tax_sys" : 0, "items" : [ { "code": "4700041420169", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST \u0411\u0415\u0417 \u0417\u0410\u041F\u0410\u0425\u0410 72 \u0448\u0442", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:08]POST & json_proto [22:30:08]process_json_proto [22:30:08]json parsed OK: [22:30:08]protocol is kg_v1.0 [22:30:08]action value=close_receipt [22:30:08]process_action close_receipt [22:30:08]cmd_close_receipt [22:30:08]MH_GetDate [22:30:08]Write to MH i2c: F0 00 00 E2 07 D8 [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: F0 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: F0 09 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: F0 09 00 E2 07 00 70 95 5F 66 D2 83 5F 66 C5 [22:30:08]GetLastDocTimeStamp 1717540087 [22:30:08]current date 1717540208 [22:30:08]FM_GetShiftState [22:30:08]SAM_PROTO_GetShiftState [22:30:08]wFMCommunicate request_size=4 [22:30:08]MH_SAM_APDU [22:30:08]CAPDU: 80 13 01 00 [22:30:08]Write to MH i2c: E2 08 00 E3 07 80 13 01 00 00 00 00 00 67 [22:30:08]Write i2c OK [22:30:08]MH_I2C_Read... [22:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:08]Read from MH i2c: E2 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 0E 00 [22:30:08]MH_I2C_Read... [22:30:08]Read from MH i2c: E2 0E 00 E3 07 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 07 [22:30:08]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:30:08]wFMCommunicate OK [22:30:08]SAM_PROTO_GetShiftState done [22:30:08]FM_GetShiftState done [22:30:08]opened in 1717459574 [22:30:08]opened+sec_in_day 1717545974 [22:30:08]quantity*price = 14000 [22:30:08]sum+1 = 14001 [22:30:08]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 СНО: Общий режим Чек 157 04.06.2024 22:30 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875074 ФД: 64072 ФПД: 49904593586900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223008&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64072&fm=49904593586900&tin=02508201610067®Number=0000000000092737&sum=14000 0 [22:30:09]StoreToDocumentArchive [22:30:09]shift 374 fd 64072 [22:30:09]save to /storage/0374/doc_00064072 [22:30:09]save last doc name /storage/0374/doc_00064072 to /storage/kkm_last_doc_name [22:30:09]save OK [22:30:09]Clear old archive folders... [22:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=302 [22:30:09]tlvbuf is 01077690 [22:30:09]SAM_PROTO_ClearQueue [22:30:09]wFMCommunicate request_size=4 [22:30:09]MH_SAM_APDU [22:30:09]CAPDU: 80 09 00 00 [22:30:09]Write to MH i2c: E2 08 00 F0 07 80 09 00 00 00 00 00 00 69 [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:09]Read from MH i2c: E2 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [22:30:09]RAPDU: 90 00 [22:30:09]wFMCommunicate OK [22:30:09]SAM_PROTO_ClearQueue done [22:30:09]KKMCreateOFDPacket [22:30:09]OFDProtocolAddRootSTLVToBuf [22:30:09]FM_MakeSignedData [22:30:09]FM_MakeSignedData [22:30:09]SAM_PROTO_SignData [22:30:09]wFMCommunicate request_size=4 [22:30:09]MH_SAM_APDU [22:30:09]CAPDU: 80 0D 01 02 [22:30:09]Write to MH i2c: E2 08 00 F1 07 80 0D 01 02 00 00 00 00 71 [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:09]Read from MH i2c: E2 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 F1 07 00 90 00 6C [22:30:09]RAPDU: 90 00 [22:30:09]wFMCommunicate OK [22:30:09]wFMCommunicate request_size=255 [22:30:09]MH_SAM_APDU [22:30:09]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 36 39 06 04 3C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 D0 91 D0 95 D0 97 20 D0 97 D0 90 D0 9F D0 90 D0 A5 D0 90 20 37 32 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9D 00 00 00 F4 03 04 00 70 95 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 [22:30:09]Write to MH i2c: E2 02 01 F2 07 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 36 39 06 04 3C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 D0 91 D0 95 D0 97 20 D0 97 D0 90 D0 9F D0 90 D0 A5 D0 90 20 37 32 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9D 00 00 00 F4 03 04 00 70 95 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 00 00 1F [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:09]Read from MH i2c: E2 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 [22:30:09]MH_I2C_Read... [22:30:09]Read from MH i2c: E2 03 00 F2 07 00 90 00 6D [22:30:09]RAPDU: 90 00 [22:30:09]wFMCommunicate OK [22:30:09]wFMCommunicate request_size=61 [22:30:09]MH_SAM_APDU [22:30:09]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 48 FA 00 00 35 04 06 00 2D 63 51 92 CA D4 [22:30:09]Write to MH i2c: E2 40 00 F3 07 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 48 FA 00 00 35 04 06 00 2D 63 51 92 CA D4 00 00 FE [22:30:09]Write i2c OK [22:30:09]MH_I2C_Read... [22:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [22:30:10]RAPDU: 90 00 [22:30:10]wFMCommunicate OK [22:30:10]wFMCommunicate request_size=4 [22:30:10]MH_SAM_APDU [22:30:10]CAPDU: 80 0D 03 02 [22:30:10]Write to MH i2c: E2 08 00 F4 07 80 0D 03 02 00 00 00 00 76 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 0B 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 0B 00 F4 07 00 49 35 EA 01 A3 AF 71 85 90 00 28 [22:30:10]RAPDU: 49 35 EA 01 A3 AF 71 85 90 00 [22:30:10]wFMCommunicate OK [22:30:10]SAM_PROTO_SignData done [22:30:10]FM_MakeSignedData done [22:30:10]CreateOFDProtocolMessage [22:30:10]wFMCommunicate request_size=4 [22:30:10]MH_SAM_APDU [22:30:10]CAPDU: 80 11 00 00 [22:30:10]Write to MH i2c: E2 08 00 F5 07 80 11 00 00 00 00 00 00 76 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:10]Read from MH i2c: E2 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 17 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: E2 17 00 F5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C8 [22:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:30:10]wFMCommunicate OK [22:30:10]CreateOFDProtocolMessage done [22:30:10]OFDSenderStorePacket 64072 [22:30:10]StoreOFDPacket docnum=64072 [22:30: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 42 01 00 00 67 46 3A 01 F9 06 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 36 39 06 04 3C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 D0 91 D0 95 D0 97 20 D0 97 D0 90 D0 9F D0 90 D0 A5 D0 90 20 37 32 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9D 00 00 00 F4 03 04 00 70 95 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 48 FA 00 00 35 04 06 00 2D 63 51 92 CA D4 49 35 EA 01 A3 AF 71 85 [22:30:10]CheckFolder [22:30:10]dirname=/storage/ofd_packets [22:30:10]CheckFolder done [22:30:10]ProducePacketName [22:30:10]name=ofd_packets/00064072 [22:30:10]NVStorageSaveData ofd_packets/00064072 [22:30:10]File name is /storage/ofd_packets/00064072 [22:30:10]Write 352 bytes [22:30:10]NVStorageSaveData done [22:30:10]OFDSenderStorePacket done [22:30:10]KKMCreateOFDPacket done [22:30:10]NVStorageSaveData kkm_last_timestamp [22:30:10]File name is /storage/kkm_last_timestamp [22:30:10]Write 4 bytes [22:30:10]NVStorageSaveData done [22:30:10]ExternCall_PrintAddStr [22:30:10]wPrintStart [22:30:10]Write to MH i2c: 01 00 00 F6 07 FD [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: 01 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: 01 07 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 FF 0F 12 [22:30:10]RasterBufferAndPrint [22:30:10]line Счет N : (3)73614 [22:30:10]line ИНН: 02508201610067 [22:30:10]line Контрольно-Кассовый Чек [22:30:10]line ПРОДАЖА [22:30:10]line Товар: 4700041420169 [22:30:10]line Салфетки влажн BEST БЕЗ ЗАПАХА 72 шт [22:30:10]line 1.000 * 140.00 [22:30:10]line = 140.00 [22:30:10]line НДС 12% НСП 1% [22:30:10]line > о реализуемом товаре [22:30:10]line ИТОГО: 140.00 [22:30:10]line НСП 1% : 1.24 [22:30:10]line НДС 12% : 14.87 [22:30:10]line Наличными: 0.00 [22:30:10]line Безнал.: 140.00 [22:30:10]line Место: АЗС № 117 "Партнер Нефть" [22:30:10]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:30:10]line СНО: Общий режим [22:30:10]line Чек 157 04.06.2024 22:30 [22:30:10]line Смена: 374 ФФД: 1.0 [22:30:10]line ЗНМ: 0300000031 [22:30:10]line РНМ: 0000000000092737 [22:30:10]line Версия ККМ: 001 [22:30:10]line Платежная система: Бакай Банк [22:30:10]line ФМ: 0000000000875074 [22:30:10]line ФД: 64072 [22:30:10]line ФПД: 49904593586900 [22:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223008&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64072&fm=49904593586900&tin=02508201610067®Number=0000000000092737&sum=14000 [22:30:10]line 0 [22:30:10]OFD Sender: Processing packet 64072 [packets to send 14, broken 13] [22:30:10]ProducePacketName [22:30:10]name=ofd_packets/00064072 [22:30:10]OFD Sender: To server: pG, [22:30:10]CommunicateWithHost lk.salyk.kg:30040 [22:30:10]ConnectInit lk.salyk.kg [22:30:10]written 0, free lines is 4095 [22:30:10]Connected sock=10 [22:30:10]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 42 01 00 00 67 46 3A 01 F9 06 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 31 36 39 06 04 3C 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 D0 91 D0 95 D0 97 20 D0 97 D0 90 D0 9F D0 90 D0 A5 D0 90 20 37 32 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 9D 00 00 00 F4 03 04 00 70 95 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 48 FA 00 00 35 04 06 00 2D 63 51 92 CA D4 49 35 EA 01 A3 AF 71 85 [22:30:10]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 E4 47 00 27 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 48 FA 00 00 F4 03 04 00 7E 41 5F 66 B6 04 01 00 00 0B DE 44 8B FF 3E 6C 67 [22:30:10]CommunicateWithHost err = 0 [22:30:10]CheckOFDResponse [22:30:10]1017 (14) - 77093643461234 [22:30:10]1041 (16) - 0000000000875074 [22:30:10]1040 (4) - 64072 [22:30:10]1012 (4) - 04.06.2024 16:31 [22:30:10]1206 (1) - 0 [22:30:10]OFD Sender: Remove packet 64072 [22:30:10]ProducePacketName [22:30:10]name=ofd_packets/00064072 [22:30:10]NVStorageDeleteData [22:30:10]Write to MH i2c: 01 00 00 21 08 29 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: 01 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: 01 07 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: 01 07 00 21 08 00 00 00 00 00 BA 0C F6 [22:30:10]RasterBufferAndPrint [22:30:10]line [22:30:10]line [22:30:10]line [22:30:10]line [22:30:10]line [22:30:10]written 0, free lines is 3265 [22:30:10]MH_Cut [22:30:10]Write to MH i2c: D1 01 00 28 08 01 02 [22:30:10]Write i2c OK [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: D1 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: D1 01 00 [22:30:10]MH_I2C_Read... [22:30:10]Read from MH i2c: D1 01 00 28 08 00 01 [22:30:10]Write to MH i2c: 01 00 00 29 08 31 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]OFD Sender: No OFD packet to send [22:30:11]*** Cut start [22:30:11]*** Partial cut [22:30:11]*** CUTSNS_PIN = 1 [22:30:11]*** CUTSNS_PIN = 0 [22:30:12]*** Brake cut motor [22:30:12]Read from MH i2c: 01 [22:30:12]MH_I2C_Read... [22:30:12]*** Stop cut motor [22:30:12]*** Cut end [22:30:12]Read from MH i2c: 01 07 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 FF 0F 46 [22:30:12]process_action close_receipt done [22:30:12]requested_data is exist [22:30:12]produce_requested_data [22:30:12]requested_item fm.sn is exist - process it [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 11 00 00 [22:30:12]Write to MH i2c: E2 08 00 2A 08 80 11 00 00 00 00 00 00 AC [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 17 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 17 00 2A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 FE [22:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:30:12]wFMCommunicate OK [22:30:12]requested_item fd.num is exist - process it [22:30:12]SAM_PROTO_GetFieldsCounters [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 13 00 00 [22:30:12]Write to MH i2c: E2 08 00 2B 08 80 13 00 00 00 00 00 00 AF [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 62 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 62 00 2B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 48 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [22:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 48 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:12]wFMCommunicate OK [22:30:12]SAM_PROTO_GetFieldsCounters done [22:30:12]requested_item shift.num is exist - process it [22:30:12]requested_item shift.opened is exist - process it [22:30:12]req_shift_opened [22:30:12]FM_GetShiftState [22:30:12]SAM_PROTO_GetShiftState [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 13 01 00 [22:30:12]Write to MH i2c: E2 08 00 2C 08 80 13 01 00 00 00 00 00 B1 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 0E 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 0E 00 2C 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 51 [22:30:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:30:12]wFMCommunicate OK [22:30:12]SAM_PROTO_GetShiftState done [22:30:12]FM_GetShiftState done [22:30:12]req_shift_opened done [22:30:12]requested_item shift.open_date is exist - process it [22:30:12]req_shift_open_date [22:30:12]req_shift_open_date done [22:30:12]produce_requested_data done [22:30:12]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64072,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [22:30:12]process_action_free close_receipt [22:30:12]json_value_free [22:30:12]json_value_free done [22:30:12]process_json_proto returns [22:30:12]Send response to host [22:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64072,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [22:30:12]free response buf [22:30:12]execute_script done [22:30:12]execute_script returns [22:30:12]free content buf [22:30:12]Sock 9.Close socket [22:30:12]Sock 9.Thread stoped [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:42]accept exits with 8 [22:37:42]New connection [22:37:42]New thread 3067276644 created [22:37:42]Thread 3067133284 joined [22:37:42]Waiting for new connection... [22:37:42] Sock 8.Parse request [22:37:42]Sock 8.Check first char [22:37:42]Sock 8.First char is OK [22:37:42]request: POST /json_proto HTTP/1.0 [22:37:42]Method: POST [22:37:42]URL: /json_proto [22:37:42]Method is POST - this is cgi request [22:37:42]url: /json_proto [22:37:42]query_string will be loaded in cgi processing [22:37:42]execute_cgi json_proto POST (null) [22:37:42]execute_cgi path=json_proto method=POST [22:37:42]POST find Content-Length [22:37:42]Host: 172.17.60.69:8080 [22:37:42]Content-Length: 621 [22:37:42]Content-Type: application/json [22:37:42] [22:37:42]POST finish read [22:37:42]Found Content-Length = 621 [22:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73615", "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 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:42]execute_script... [22:37:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73615", "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 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:42]POST & json_proto [22:37:42]process_json_proto [22:37:42]json parsed OK: [22:37:42]protocol is kg_v1.0 [22:37:42]action value=close_receipt [22:37:42]process_action close_receipt [22:37:42]cmd_close_receipt [22:37:42]MH_GetDate [22:37:42]Write to MH i2c: F0 00 00 2D 08 24 [22:37:42]Write i2c OK [22:37:42]MH_I2C_Read... [22:37:42]Read from MH i2c: F0 [22:37:42]MH_I2C_Read... [22:37:42]Read from MH i2c: F0 09 00 [22:37:42]MH_I2C_Read... [22:37:42]Read from MH i2c: F0 09 00 2D 08 00 36 97 5F 66 D2 83 5F 66 D9 [22:37:42]GetLastDocTimeStamp 1717540208 [22:37:42]current date 1717540662 [22:37:42]FM_GetShiftState [22:37:42]SAM_PROTO_GetShiftState [22:37:42]wFMCommunicate request_size=4 [22:37:42]MH_SAM_APDU [22:37:42]CAPDU: 80 13 01 00 [22:37:42]Write to MH i2c: E2 08 00 2E 08 80 13 01 00 00 00 00 00 B3 [22:37:42]Write i2c OK [22:37:42]MH_I2C_Read... [22:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:42]Read from MH i2c: E2 [22:37:42]MH_I2C_Read... [22:37:42]Read from MH i2c: E2 0E 00 [22:37:42]MH_I2C_Read... [22:37:42]Read from MH i2c: E2 0E 00 2E 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 53 [22:37:42]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:37:42]wFMCommunicate OK [22:37:42]SAM_PROTO_GetShiftState done [22:37:42]FM_GetShiftState done [22:37:42]opened in 1717459574 [22:37:42]opened+sec_in_day 1717545974 [22:37:42]quantity*price = 13800 [22:37:42]sum+1 = 13801 [22:37:42]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 СНО: Общий режим Чек 158 04.06.2024 22:37 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64073 ФПД: 92600409002372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223742&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64073&fm=92600409002372&tin=02508201610067®Number=0000000000092737&sum=13800 0 [22:37:43]StoreToDocumentArchive [22:37:43]shift 374 fd 64073 [22:37:43]save to /storage/0374/doc_00064073 [22:37:43]save last doc name /storage/0374/doc_00064073 to /storage/kkm_last_doc_name [22:37:43]save OK [22:37:43]Clear old archive folders... [22:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:37:43]tlvbuf is 00F92BA0 [22:37:43]SAM_PROTO_ClearQueue [22:37:43]wFMCommunicate request_size=4 [22:37:43]MH_SAM_APDU [22:37:43]CAPDU: 80 09 00 00 [22:37:43]Write to MH i2c: E2 08 00 3B 08 80 09 00 00 00 00 00 00 B5 [22:37:43]Write i2c OK [22:37:43]MH_I2C_Read... [22:37:43]Read from MH i2c: E2 [22:37:43]MH_I2C_Read... [22:37:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:43]Read from MH i2c: E2 03 00 [22:37:43]MH_I2C_Read... [22:37:43]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [22:37:43]RAPDU: 90 00 [22:37:43]wFMCommunicate OK [22:37:43]SAM_PROTO_ClearQueue done [22:37:43]KKMCreateOFDPacket [22:37:43]OFDProtocolAddRootSTLVToBuf [22:37:43]FM_MakeSignedData [22:37:43]FM_MakeSignedData [22:37:43]SAM_PROTO_SignData [22:37:43]wFMCommunicate request_size=4 [22:37:43]MH_SAM_APDU [22:37:43]CAPDU: 80 0D 01 02 [22:37:43]Write to MH i2c: E2 08 00 3C 08 80 0D 01 02 00 00 00 00 BD [22:37:43]Write i2c OK [22:37:43]MH_I2C_Read... [22:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:43]Read from MH i2c: E2 [22:37:43]MH_I2C_Read... [22:37:43]Read from MH i2c: E2 03 00 [22:37:43]MH_I2C_Read... [22:37:43]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [22:37:43]RAPDU: 90 00 [22:37:43]wFMCommunicate OK [22:37:43]wFMCommunicate request_size=255 [22:37:43]MH_SAM_APDU [22:37:43]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 9E 00 00 00 F4 03 04 00 36 97 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [22:37:43]Write to MH i2c: E2 02 01 3D 08 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 9E 00 00 00 F4 03 04 00 36 97 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 A4 [22:37:43]Write i2c OK [22:37:43]MH_I2C_Read... [22:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:44]Read from MH i2c: E2 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 03 00 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [22:37:44]RAPDU: 90 00 [22:37:44]wFMCommunicate OK [22:37:44]wFMCommunicate request_size=33 [22:37:44]MH_SAM_APDU [22:37:44]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 49 FA 00 00 35 04 06 00 54 38 36 7C 11 84 [22:37:44]Write to MH i2c: E2 24 00 3E 08 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 49 FA 00 00 35 04 06 00 54 38 36 7C 11 84 00 00 64 [22:37:44]Write i2c OK [22:37:44]MH_I2C_Read... [22:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:44]Read from MH i2c: E2 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 03 00 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [22:37:44]RAPDU: 90 00 [22:37:44]wFMCommunicate OK [22:37:44]wFMCommunicate request_size=4 [22:37:44]MH_SAM_APDU [22:37:44]CAPDU: 80 0D 03 02 [22:37:44]Write to MH i2c: E2 08 00 3F 08 80 0D 03 02 00 00 00 00 C2 [22:37:44]Write i2c OK [22:37:44]MH_I2C_Read... [22:37:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:44]Read from MH i2c: E2 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 0B 00 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 0B 00 3F 08 00 21 74 D1 23 CA 44 EC B6 90 00 FC [22:37:44]RAPDU: 21 74 D1 23 CA 44 EC B6 90 00 [22:37:44]wFMCommunicate OK [22:37:44]SAM_PROTO_SignData done [22:37:44]FM_MakeSignedData done [22:37:44]CreateOFDProtocolMessage [22:37:44]wFMCommunicate request_size=4 [22:37:44]MH_SAM_APDU [22:37:44]CAPDU: 80 11 00 00 [22:37:44]Write to MH i2c: E2 08 00 40 08 80 11 00 00 00 00 00 00 C2 [22:37:44]Write i2c OK [22:37:44]MH_I2C_Read... [22:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:44]Read from MH i2c: E2 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 17 00 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 17 00 40 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 14 [22:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:37:44]wFMCommunicate OK [22:37:44]CreateOFDProtocolMessage done [22:37:44]OFDSenderStorePacket 64073 [22:37:44]StoreOFDPacket docnum=64073 [22:37:44]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 FC 80 1E 01 F2 FC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 9E 00 00 00 F4 03 04 00 36 97 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 49 FA 00 00 35 04 06 00 54 38 36 7C 11 84 21 74 D1 23 CA 44 EC B6 [22:37:44]CheckFolder [22:37:44]dirname=/storage/ofd_packets [22:37:44]CheckFolder done [22:37:44]ProducePacketName [22:37:44]name=ofd_packets/00064073 [22:37:44]NVStorageSaveData ofd_packets/00064073 [22:37:44]File name is /storage/ofd_packets/00064073 [22:37:44]Write 324 bytes [22:37:44]NVStorageSaveData done [22:37:44]OFDSenderStorePacket done [22:37:44]KKMCreateOFDPacket done [22:37:44]NVStorageSaveData kkm_last_timestamp [22:37:44]File name is /storage/kkm_last_timestamp [22:37:44]Write 4 bytes [22:37:44]NVStorageSaveData done [22:37:44]ExternCall_PrintAddStr [22:37:44]wPrintStart [22:37:44]Write to MH i2c: 01 00 00 41 08 49 [22:37:44]Write i2c OK [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: 01 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: 01 07 00 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 FF 0F 5E [22:37:44]RasterBufferAndPrint [22:37:44]line Счет N : (3)73615 [22:37:44]line ИНН: 02508201610067 [22:37:44]line Контрольно-Кассовый Чек [22:37:44]line ПРОДАЖА [22:37:44]line Товар: 4640030091645 [22:37:44]line Сигареты ESSE Exchange M [22:37:44]line 1.000 * 138.00 [22:37:44]line = 138.00 [22:37:44]line НДС 12% НСП 1% [22:37:44]line > о реализуемом товаре [22:37:44]line ИТОГО: 138.00 [22:37:44]line НСП 1% : 1.22 [22:37:44]line НДС 12% : 14.65 [22:37:44]line Наличными: 138.00 [22:37:44]line Безнал.: 0.00 [22:37:44]line Место: АЗС № 117 "Партнер Нефть" [22:37:44]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:37:44]line СНО: Общий режим [22:37:44]line Чек 158 04.06.2024 22:37 [22:37:44]line Смена: 374 ФФД: 1.0 [22:37:44]line ЗНМ: 0300000031 [22:37:44]line РНМ: 0000000000092737 [22:37:44]line Версия ККМ: 001 [22:37:44]line ФМ: 0000000000875074 [22:37:44]line ФД: 64073 [22:37:44]line ФПД: 92600409002372 [22:37:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223742&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64073&fm=92600409002372&tin=02508201610067®Number=0000000000092737&sum=13800 [22:37:44]OFD Sender: Processing packet 64073 [packets to send 14, broken 13] [22:37:44]ProducePacketName [22:37:44]name=ofd_packets/00064073 [22:37:44]OFD Sender: To server: pG, [22:37:44]CommunicateWithHost lk.salyk.kg:30040 [22:37:44]ConnectInit lk.salyk.kg [22:37:44]line 0 [22:37:44]written 0, free lines is 4095 [22:37:44]Connected sock=10 [22:37:44]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 FC 80 1E 01 F2 FC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 9E 00 00 00 F4 03 04 00 36 97 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 49 FA 00 00 35 04 06 00 54 38 36 7C 11 84 21 74 D1 23 CA 44 EC B6 [22:37:44]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 9D 58 47 00 1E C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 49 FA 00 00 F4 03 04 00 44 43 5F 66 B6 04 01 00 00 C4 79 BB 83 B1 1B B7 BE [22:37:44]CommunicateWithHost err = 0 [22:37:44]CheckOFDResponse [22:37:44]1017 (14) - 77093643461234 [22:37:44]1041 (16) - 0000000000875074 [22:37:44]1040 (4) - 64073 [22:37:44]1012 (4) - 04.06.2024 16:39 [22:37:44]1206 (1) - 0 [22:37:44]OFD Sender: Remove packet 64073 [22:37:44]ProducePacketName [22:37:44]name=ofd_packets/00064073 [22:37:44]NVStorageDeleteData [22:37:45]Write to MH i2c: 01 00 00 69 08 71 [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: 01 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: 01 07 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: 01 07 00 69 08 00 00 00 00 00 00 0D 85 [22:37:45]RasterBufferAndPrint [22:37:45]line [22:37:45]line [22:37:45]line [22:37:45]line [22:37:45]line [22:37:45]written 0, free lines is 3334 [22:37:45]MH_Cut [22:37:45]Write to MH i2c: D1 01 00 70 08 01 4A [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: D1 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: D1 01 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: D1 01 00 70 08 00 49 [22:37:45]Write to MH i2c: 01 00 00 71 08 79 [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]OFD Sender: No OFD packet to send [22:37:45]*** Cut start [22:37:45]*** Partial cut [22:37:45]*** CUTSNS_PIN = 1 [22:37:45]*** CUTSNS_PIN = 0 [22:37:46]*** Brake cut motor [22:37:46]Read from MH i2c: 01 [22:37:46]MH_I2C_Read... [22:37:46]*** Stop cut motor [22:37:46]*** Cut end [22:37:46]Read from MH i2c: 01 07 00 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: 01 07 00 71 08 00 00 00 00 00 FF 0F 8E [22:37:46]process_action close_receipt done [22:37:46]requested_data is exist [22:37:46]produce_requested_data [22:37:46]requested_item fm.sn is exist - process it [22:37:46]wFMCommunicate request_size=4 [22:37:46]MH_SAM_APDU [22:37:46]CAPDU: 80 11 00 00 [22:37:46]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [22:37:46]Write i2c OK [22:37:46]MH_I2C_Read... [22:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:46]Read from MH i2c: E2 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: E2 17 00 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 46 [22:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:37:46]wFMCommunicate OK [22:37:46]requested_item fd.num is exist - process it [22:37:46]SAM_PROTO_GetFieldsCounters [22:37:46]wFMCommunicate request_size=4 [22:37:46]MH_SAM_APDU [22:37:46]CAPDU: 80 13 00 00 [22:37:46]Write to MH i2c: E2 08 00 73 08 80 13 00 00 00 00 00 00 F7 [22:37:46]Write i2c OK [22:37:46]MH_I2C_Read... [22:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:46]Read from MH i2c: E2 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: E2 62 00 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: E2 62 00 73 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 49 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [22:37:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 49 FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:46]wFMCommunicate OK [22:37:46]SAM_PROTO_GetFieldsCounters done [22:37:46]requested_item shift.num is exist - process it [22:37:46]requested_item shift.opened is exist - process it [22:37:46]req_shift_opened [22:37:46]FM_GetShiftState [22:37:46]SAM_PROTO_GetShiftState [22:37:46]wFMCommunicate request_size=4 [22:37:46]MH_SAM_APDU [22:37:46]CAPDU: 80 13 01 00 [22:37:46]Write to MH i2c: E2 08 00 74 08 80 13 01 00 00 00 00 00 F9 [22:37:46]Write i2c OK [22:37:46]MH_I2C_Read... [22:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:46]Read from MH i2c: E2 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: E2 0E 00 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: E2 0E 00 74 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 99 [22:37:46]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:37:46]wFMCommunicate OK [22:37:46]SAM_PROTO_GetShiftState done [22:37:46]FM_GetShiftState done [22:37:46]req_shift_opened done [22:37:46]requested_item shift.open_date is exist - process it [22:37:46]req_shift_open_date [22:37:46]req_shift_open_date done [22:37:46]produce_requested_data done [22:37:46]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64073,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [22:37:46]process_action_free close_receipt [22:37:46]json_value_free [22:37:46]json_value_free done [22:37:46]process_json_proto returns [22:37:46]Send response to host [22:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64073,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [22:37:46]free response buf [22:37:46]execute_script done [22:37:46]execute_script returns [22:37:46]free content buf [22:37:46]Sock 8.Close socket [22:37:46]Sock 8.Thread stoped [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:42]accept exits with 9 [22:38:42]New connection [22:38:42]New thread 3067133284 created [22:38:42]Thread 3067276644 joined [22:38:42]Waiting for new connection... [22:38:42] Sock 9.Parse request [22:38:42]Sock 9.Check first char [22:38:42]Sock 9.First char is OK [22:38:42]request: POST /json_proto HTTP/1.0 [22:38:42]Method: POST [22:38:42]URL: /json_proto [22:38:42]Method is POST - this is cgi request [22:38:42]url: /json_proto [22:38:42]query_string will be loaded in cgi processing [22:38:42]execute_cgi json_proto POST (null) [22:38:42]execute_cgi path=json_proto method=POST [22:38:42]POST find Content-Length [22:38:42]Host: 172.17.60.69:8080 [22:38:42]Content-Length: 860 [22:38:42]Content-Type: application/json [22:38:42] [22:38:42]POST finish read [22:38:42]Found Content-Length = 860 [22:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73616", "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 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver 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" : 291.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:42]execute_script... [22:38:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73616", "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 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver 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" : 291.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:42]POST & json_proto [22:38:42]process_json_proto [22:38:42]json parsed OK: [22:38:42]protocol is kg_v1.0 [22:38:42]action value=close_receipt [22:38:42]process_action close_receipt [22:38:42]cmd_close_receipt [22:38:42]MH_GetDate [22:38:42]Write to MH i2c: F0 00 00 75 08 6C [22:38:42]Write i2c OK [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: F0 [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: F0 09 00 [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: F0 09 00 75 08 00 73 97 5F 66 D2 83 5F 66 5E [22:38:42]GetLastDocTimeStamp 1717540662 [22:38:42]current date 1717540723 [22:38:42]FM_GetShiftState [22:38:42]SAM_PROTO_GetShiftState [22:38:42]wFMCommunicate request_size=4 [22:38:42]MH_SAM_APDU [22:38:42]CAPDU: 80 13 01 00 [22:38:42]Write to MH i2c: E2 08 00 76 08 80 13 01 00 00 00 00 00 FB [22:38:42]Write i2c OK [22:38:42]MH_I2C_Read... [22:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:42]Read from MH i2c: E2 [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: E2 0E 00 [22:38:42]MH_I2C_Read... [22:38:42]Read from MH i2c: E2 0E 00 76 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 9B [22:38:42]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:38:42]wFMCommunicate OK [22:38:42]SAM_PROTO_GetShiftState done [22:38:42]FM_GetShiftState done [22:38:42]opened in 1717459574 [22:38:42]opened+sec_in_day 1717545974 [22:38:42]quantity*price = 14000 [22:38:42]sum+1 = 14001 [22:38:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 291.00 НСП 1% : 2.58 НДС 12% : 30.90 Наличными: 291.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 159 04.06.2024 22:38 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64074 ФПД: 209698482389669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223843&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64074&fm=209698482389669&tin=02508201610067®Number=0000000000092737&sum=29100 0 [22:38:43]StoreToDocumentArchive [22:38:43]shift 374 fd 64074 [22:38:43]save to /storage/0374/doc_00064074 [22:38:43]save last doc name /storage/0374/doc_00064074 to /storage/kkm_last_doc_name [22:38:43]save OK [22:38:43]Clear old archive folders... [22:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=379 [22:38:43]tlvbuf is 00F92020 [22:38:43]SAM_PROTO_ClearQueue [22:38:43]wFMCommunicate request_size=4 [22:38:43]MH_SAM_APDU [22:38:43]CAPDU: 80 09 00 00 [22:38:43]Write to MH i2c: E2 08 00 83 08 80 09 00 00 00 00 00 00 FD [22:38:43]Write i2c OK [22:38:43]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 [22:38:44]MH_I2C_Read... [22:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:44]Read from MH i2c: E2 03 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [22:38:44]RAPDU: 90 00 [22:38:44]wFMCommunicate OK [22:38:44]SAM_PROTO_ClearQueue done [22:38:44]KKMCreateOFDPacket [22:38:44]OFDProtocolAddRootSTLVToBuf [22:38:44]FM_MakeSignedData [22:38:44]FM_MakeSignedData [22:38:44]SAM_PROTO_SignData [22:38:44]wFMCommunicate request_size=4 [22:38:44]MH_SAM_APDU [22:38:44]CAPDU: 80 0D 01 02 [22:38:44]Write to MH i2c: E2 08 00 84 08 80 0D 01 02 00 00 00 00 05 [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:44]Read from MH i2c: E2 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 03 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [22:38:44]RAPDU: 90 00 [22:38:44]wFMCommunicate OK [22:38:44]wFMCommunicate request_size=255 [22:38:44]MH_SAM_APDU [22:38:44]CAPDU: 80 0D 02 02 FA 03 00 7B 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 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 [22:38:44]Write to MH i2c: E2 02 01 85 08 80 0D 02 02 FA 00 03 00 7B 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 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 00 A7 [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:44]Read from MH i2c: E2 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 03 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [22:38:44]RAPDU: 90 00 [22:38:44]wFMCommunicate OK [22:38:44]wFMCommunicate request_size=138 [22:38:44]MH_SAM_APDU [22:38:44]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 73 97 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4A FA 00 00 35 04 06 00 BE B8 3B 8D 82 A5 [22:38:44]Write to MH i2c: E2 8D 00 86 08 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 73 97 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4A FA 00 00 35 04 06 00 BE B8 3B 8D 82 A5 00 00 0A [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:44]Read from MH i2c: E2 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 03 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [22:38:44]RAPDU: 90 00 [22:38:44]wFMCommunicate OK [22:38:44]wFMCommunicate request_size=4 [22:38:44]MH_SAM_APDU [22:38:44]CAPDU: 80 0D 03 02 [22:38:44]Write to MH i2c: E2 08 00 87 08 80 0D 03 02 00 00 00 00 0A [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:44]Read from MH i2c: E2 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 0B 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 0B 00 87 08 00 62 CC 4E D0 41 D7 6F F9 90 00 D7 [22:38:44]RAPDU: 62 CC 4E D0 41 D7 6F F9 90 00 [22:38:44]wFMCommunicate OK [22:38:44]SAM_PROTO_SignData done [22:38:44]FM_MakeSignedData done [22:38:44]CreateOFDProtocolMessage [22:38:44]wFMCommunicate request_size=4 [22:38:44]MH_SAM_APDU [22:38:44]CAPDU: 80 11 00 00 [22:38:44]Write to MH i2c: E2 08 00 88 08 80 11 00 00 00 00 00 00 0A [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:44]Read from MH i2c: E2 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 17 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: E2 17 00 88 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 5C [22:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:38:44]wFMCommunicate OK [22:38:44]CreateOFDProtocolMessage done [22:38:44]OFDSenderStorePacket 64074 [22:38:44]StoreOFDPacket docnum=64074 [22:38:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 8F 01 00 00 4A ED 87 01 E3 EB 5A 03 01 00 03 00 7B 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 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 73 97 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4A FA 00 00 35 04 06 00 BE B8 3B 8D 82 A5 62 CC 4E D0 41 D7 6F F9 [22:38:44]CheckFolder [22:38:44]dirname=/storage/ofd_packets [22:38:44]CheckFolder done [22:38:44]ProducePacketName [22:38:44]name=ofd_packets/00064074 [22:38:44]NVStorageSaveData ofd_packets/00064074 [22:38:44]File name is /storage/ofd_packets/00064074 [22:38:44]Write 429 bytes [22:38:44]NVStorageSaveData done [22:38:44]OFDSenderStorePacket done [22:38:44]KKMCreateOFDPacket done [22:38:44]NVStorageSaveData kkm_last_timestamp [22:38:44]File name is /storage/kkm_last_timestamp [22:38:44]Write 4 bytes [22:38:44]NVStorageSaveData done [22:38:44]ExternCall_PrintAddStr [22:38:44]wPrintStart [22:38:44]Write to MH i2c: 01 00 00 89 08 91 [22:38:44]Write i2c OK [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: 01 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: 01 07 00 [22:38:44]MH_I2C_Read... [22:38:44]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 FF 0F A6 [22:38:44]RasterBufferAndPrint [22:38:44]line Счет N : (3)73616 [22:38:44]line ИНН: 02508201610067 [22:38:44]line Контрольно-Кассовый Чек [22:38:44]line ПРОДАЖА [22:38:44]line Товар: 48747059 [22:38:44]line Сигареты Winston Legend Blue [22:38:44]line 1.000 * 140.00 [22:38:44]line = 140.00 [22:38:44]line НДС 12% НСП 1% [22:38:44]line > о реализуемом товаре [22:38:44]line Товар: 48742245 [22:38:44]line Сигареты Parliament Silver Blue [22:38:44]line 1.000 * 151.00 [22:38:44]line = 151.00 [22:38:44]line НДС 12% НСП 1% [22:38:44]line > о реализуемом товаре [22:38:44]line ИТОГО: 291.00 [22:38:44]line НСП 1% : 2.58 [22:38:44]line НДС 12% : 30.90 [22:38:44]line Наличными: 291.00 [22:38:44]line Безнал.: 0.00 [22:38:44]line Место: АЗС № 117 "Партнер Нефть" [22:38:44]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:38:44]line СНО: Общий режим [22:38:44]line Чек 159 04.06.2024 22:38 [22:38:44]line Смена: 374 ФФД: 1.0 [22:38:44]line ЗНМ: 0300000031 [22:38:44]line РНМ: 0000000000092737 [22:38:44]line Версия ККМ: 001 [22:38:44]line ФМ: 0000000000875074 [22:38:44]line ФД: 64074 [22:38:44]line ФПД: 209698482389669 [22:38:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T223843&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64074&fm=209698482389669&tin=02508201610067®Number=0000000000092737&sum=29100 [22:38:44]line 0 [22:38:44]OFD Sender: Processing packet 64074 [packets to send 14, broken 13] [22:38:44]ProducePacketName [22:38:44]name=ofd_packets/00064074 [22:38:44]OFD Sender: To server: pG, [22:38:44]CommunicateWithHost lk.salyk.kg:30040 [22:38:44]ConnectInit lk.salyk.kg [22:38:44]written 0, free lines is 4095 [22:38:45]Connected sock=10 [22:38: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 8F 01 00 00 4A ED 87 01 E3 EB 5A 03 01 00 03 00 7B 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 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 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 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 73 97 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4A FA 00 00 35 04 06 00 BE B8 3B 8D 82 A5 62 CC 4E D0 41 D7 6F F9 [22:38: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 2B E7 47 00 82 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 4A FA 00 00 F4 03 04 00 80 43 5F 66 B6 04 01 00 00 64 6B 5A 2B 1A 0C 92 F7 [22:38:45]CommunicateWithHost err = 0 [22:38:45]CheckOFDResponse [22:38:45]1017 (14) - 77093643461234 [22:38:45]1041 (16) - 0000000000875074 [22:38:45]1040 (4) - 64074 [22:38:45]1012 (4) - 04.06.2024 16:40 [22:38:45]1206 (1) - 0 [22:38:45]OFD Sender: Remove packet 64074 [22:38:45]ProducePacketName [22:38:45]name=ofd_packets/00064074 [22:38:45]NVStorageDeleteData [22:38:45]Write to MH i2c: 01 00 00 B9 08 C1 [22:38:45]Write i2c OK [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: 01 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: 01 07 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: 01 07 00 B9 08 00 00 00 00 00 61 0C 35 [22:38:45]RasterBufferAndPrint [22:38:45]line [22:38:45]line [22:38:45]line [22:38:45]line [22:38:45]line [22:38:45]written 0, free lines is 3176 [22:38:45]MH_Cut [22:38:45]Write to MH i2c: D1 01 00 C0 08 01 9A [22:38:45]Write i2c OK [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: D1 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: D1 01 00 [22:38:45]MH_I2C_Read... [22:38:45]Read from MH i2c: D1 01 00 C0 08 00 99 [22:38:45]Write to MH i2c: 01 00 00 C1 08 C9 [22:38:45]Write i2c OK [22:38:45]MH_I2C_Read... [22:38:45]OFD Sender: No OFD packet to send [22:38:46]*** Cut start [22:38:46]*** Partial cut [22:38:46]*** CUTSNS_PIN = 1 [22:38:46]*** CUTSNS_PIN = 0 [22:38:46]*** Brake cut motor [22:38:46]Read from MH i2c: 01 [22:38:46]MH_I2C_Read... [22:38:46]*** Stop cut motor [22:38:46]*** Cut end [22:38:46]Read from MH i2c: 01 07 00 [22:38:46]MH_I2C_Read... [22:38:46]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 FF 0F DE [22:38:46]process_action close_receipt done [22:38:46]requested_data is exist [22:38:46]produce_requested_data [22:38:46]requested_item fm.sn is exist - process it [22:38:46]wFMCommunicate request_size=4 [22:38:46]MH_SAM_APDU [22:38:46]CAPDU: 80 11 00 00 [22:38:46]Write to MH i2c: E2 08 00 C2 08 80 11 00 00 00 00 00 00 44 [22:38:46]Write i2c OK [22:38:46]MH_I2C_Read... [22:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:47]Read from MH i2c: E2 [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: E2 17 00 [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: E2 17 00 C2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 96 [22:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:38:47]wFMCommunicate OK [22:38:47]requested_item fd.num is exist - process it [22:38:47]SAM_PROTO_GetFieldsCounters [22:38:47]wFMCommunicate request_size=4 [22:38:47]MH_SAM_APDU [22:38:47]CAPDU: 80 13 00 00 [22:38:47]Write to MH i2c: E2 08 00 C3 08 80 13 00 00 00 00 00 00 47 [22:38:47]Write i2c OK [22:38:47]MH_I2C_Read... [22:38:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:47]Read from MH i2c: E2 [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: E2 62 00 [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: E2 62 00 C3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4A FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [22:38: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 4A FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:47]wFMCommunicate OK [22:38:47]SAM_PROTO_GetFieldsCounters done [22:38:47]requested_item shift.num is exist - process it [22:38:47]requested_item shift.opened is exist - process it [22:38:47]req_shift_opened [22:38:47]FM_GetShiftState [22:38:47]SAM_PROTO_GetShiftState [22:38:47]wFMCommunicate request_size=4 [22:38:47]MH_SAM_APDU [22:38:47]CAPDU: 80 13 01 00 [22:38:47]Write to MH i2c: E2 08 00 C4 08 80 13 01 00 00 00 00 00 49 [22:38:47]Write i2c OK [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: E2 [22:38:47]MH_I2C_Read... [22:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:47]Read from MH i2c: E2 0E 00 [22:38:47]MH_I2C_Read... [22:38:47]Read from MH i2c: E2 0E 00 C4 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 E9 [22:38:47]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:38:47]wFMCommunicate OK [22:38:47]SAM_PROTO_GetShiftState done [22:38:47]FM_GetShiftState done [22:38:47]req_shift_opened done [22:38:47]requested_item shift.open_date is exist - process it [22:38:47]req_shift_open_date [22:38:47]req_shift_open_date done [22:38:47]produce_requested_data done [22:38:47]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64074,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [22:38:47]process_action_free close_receipt [22:38:47]json_value_free [22:38:47]json_value_free done [22:38:47]process_json_proto returns [22:38:47]Send response to host [22:38:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64074,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [22:38:47]free response buf [22:38:47]execute_script done [22:38:47]execute_script returns [22:38:47]free content buf [22:38:47]Sock 9.Close socket [22:38:47]Sock 9.Thread stoped [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:32]accept exits with 8 [22:49:32]New connection [22:49:32]New thread 3067276644 created [22:49:32]Thread 3067133284 joined [22:49:32]Waiting for new connection... [22:49:32] Sock 8.Parse request [22:49:32]Sock 8.Check first char [22:49:32]Sock 8.First char is OK [22:49:32]request: POST /json_proto HTTP/1.0 [22:49:32]Method: POST [22:49:32]URL: /json_proto [22:49:32]Method is POST - this is cgi request [22:49:32]url: /json_proto [22:49:32]query_string will be loaded in cgi processing [22:49:32]execute_cgi json_proto POST (null) [22:49:32]execute_cgi path=json_proto method=POST [22:49:32]POST find Content-Length [22:49:32]Host: 172.17.60.69:8080 [22:49:32]Content-Length: 621 [22:49:32]Content-Type: application/json [22:49:32] [22:49:32]POST finish read [22:49:32]Found Content-Length = 621 [22:49:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73617", "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 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:32]execute_script... [22:49:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73617", "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 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:32]POST & json_proto [22:49:32]process_json_proto [22:49:32]json parsed OK: [22:49:32]protocol is kg_v1.0 [22:49:32]action value=close_receipt [22:49:32]process_action close_receipt [22:49:32]cmd_close_receipt [22:49:32]MH_GetDate [22:49:32]Write to MH i2c: F0 00 00 C5 08 BC [22:49:32]Write i2c OK [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: F0 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: F0 09 00 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: F0 09 00 C5 08 00 FC 99 5F 66 D2 83 5F 66 39 [22:49:32]GetLastDocTimeStamp 1717540723 [22:49:32]current date 1717541372 [22:49:32]FM_GetShiftState [22:49:32]SAM_PROTO_GetShiftState [22:49:32]wFMCommunicate request_size=4 [22:49:32]MH_SAM_APDU [22:49:32]CAPDU: 80 13 01 00 [22:49:32]Write to MH i2c: E2 08 00 C6 08 80 13 01 00 00 00 00 00 4B [22:49:32]Write i2c OK [22:49:32]MH_I2C_Read... [22:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:32]Read from MH i2c: E2 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: E2 0E 00 [22:49:32]MH_I2C_Read... [22:49:32]Read from MH i2c: E2 0E 00 C6 08 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 EB [22:49:32]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:49:32]wFMCommunicate OK [22:49:32]SAM_PROTO_GetShiftState done [22:49:32]FM_GetShiftState done [22:49:32]opened in 1717459574 [22:49:32]opened+sec_in_day 1717545974 [22:49:32]quantity*price = 13800 [22:49:32]sum+1 = 13801 [22:49:32]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 СНО: Общий режим Чек 160 04.06.2024 22:49 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64075 ФПД: 88333044380898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64075&fm=88333044380898&tin=02508201610067®Number=0000000000092737&sum=13800 0 [22:49:33]StoreToDocumentArchive [22:49:33]shift 374 fd 64075 [22:49:33]save to /storage/0374/doc_00064075 [22:49:33]save last doc name /storage/0374/doc_00064075 to /storage/kkm_last_doc_name [22:49:33]save OK [22:49:33]Clear old archive folders... [22:49:33]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:49:33]tlvbuf is 01088610 [22:49:33]SAM_PROTO_ClearQueue [22:49:33]wFMCommunicate request_size=4 [22:49:33]MH_SAM_APDU [22:49:33]CAPDU: 80 09 00 00 [22:49:33]Write to MH i2c: E2 08 00 D3 08 80 09 00 00 00 00 00 00 4D [22:49:33]Write i2c OK [22:49:33]MH_I2C_Read... [22:49:33]Read from MH i2c: E2 [22:49:33]MH_I2C_Read... [22:49:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:33]Read from MH i2c: E2 03 00 [22:49:33]MH_I2C_Read... [22:49:33]Read from MH i2c: E2 03 00 D3 08 00 90 00 4F [22:49:33]RAPDU: 90 00 [22:49:33]wFMCommunicate OK [22:49:33]SAM_PROTO_ClearQueue done [22:49:33]KKMCreateOFDPacket [22:49:33]OFDProtocolAddRootSTLVToBuf [22:49:33]FM_MakeSignedData [22:49:33]FM_MakeSignedData [22:49:33]SAM_PROTO_SignData [22:49:33]wFMCommunicate request_size=4 [22:49:33]MH_SAM_APDU [22:49:33]CAPDU: 80 0D 01 02 [22:49:33]Write to MH i2c: E2 08 00 D4 08 80 0D 01 02 00 00 00 00 55 [22:49:33]Write i2c OK [22:49:33]MH_I2C_Read... [22:49:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:33]Read from MH i2c: E2 [22:49:33]MH_I2C_Read... [22:49:33]Read from MH i2c: E2 03 00 [22:49:33]MH_I2C_Read... [22:49:33]Read from MH i2c: E2 03 00 D4 08 00 90 00 50 [22:49:33]RAPDU: 90 00 [22:49:33]wFMCommunicate OK [22:49:33]wFMCommunicate request_size=255 [22:49:33]MH_SAM_APDU [22:49:33]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 00 00 00 F4 03 04 00 FD 99 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 [22:49:33]Write to MH i2c: E2 02 01 D5 08 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 00 00 00 F4 03 04 00 FD 99 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 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 07 [22:49:33]Write i2c OK [22:49:33]MH_I2C_Read... [22:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:33]Read from MH i2c: E2 [22:49:33]MH_I2C_Read... [22:49:33]Read from MH i2c: E2 03 00 [22:49:33]MH_I2C_Read... [22:49:33]Read from MH i2c: E2 03 00 D5 08 00 90 00 51 [22:49:33]RAPDU: 90 00 [22:49:33]wFMCommunicate OK [22:49:33]wFMCommunicate request_size=33 [22:49:33]MH_SAM_APDU [22:49:33]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4B FA 00 00 35 04 06 00 50 56 A3 BB 74 E2 [22:49:33]Write to MH i2c: E2 24 00 D6 08 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4B FA 00 00 35 04 06 00 50 56 A3 BB 74 E2 00 00 85 [22:49:33]Write i2c OK [22:49:33]MH_I2C_Read... [22:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:33]Read from MH i2c: E2 [22:49:33]MH_I2C_Read... [22:49:33]Read from MH i2c: E2 03 00 [22:49:33]MH_I2C_Read... [22:49:33]Read from MH i2c: E2 03 00 D6 08 00 90 00 52 [22:49:33]RAPDU: 90 00 [22:49:33]wFMCommunicate OK [22:49:33]wFMCommunicate request_size=4 [22:49:33]MH_SAM_APDU [22:49:33]CAPDU: 80 0D 03 02 [22:49:33]Write to MH i2c: E2 08 00 D7 08 80 0D 03 02 00 00 00 00 5A [22:49:33]Write i2c OK [22:49:33]MH_I2C_Read... [22:49:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:34]Read from MH i2c: E2 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: E2 0B 00 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: E2 0B 00 D7 08 00 64 A7 0E 3B BB 3E E7 5D 90 00 EC [22:49:34]RAPDU: 64 A7 0E 3B BB 3E E7 5D 90 00 [22:49:34]wFMCommunicate OK [22:49:34]SAM_PROTO_SignData done [22:49:34]FM_MakeSignedData done [22:49:34]CreateOFDProtocolMessage [22:49:34]wFMCommunicate request_size=4 [22:49:34]MH_SAM_APDU [22:49:34]CAPDU: 80 11 00 00 [22:49:34]Write to MH i2c: E2 08 00 D8 08 80 11 00 00 00 00 00 00 5A [22:49:34]Write i2c OK [22:49:34]MH_I2C_Read... [22:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:34]Read from MH i2c: E2 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: E2 17 00 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: E2 17 00 D8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 AC [22: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 [22:49:34]wFMCommunicate OK [22:49:34]CreateOFDProtocolMessage done [22:49:34]OFDSenderStorePacket 64075 [22:49:34]StoreOFDPacket docnum=64075 [22:49: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 26 01 00 00 28 8F 1E 01 7D CB 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 00 00 00 F4 03 04 00 FD 99 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4B FA 00 00 35 04 06 00 50 56 A3 BB 74 E2 64 A7 0E 3B BB 3E E7 5D [22:49:34]CheckFolder [22:49:34]dirname=/storage/ofd_packets [22:49:34]CheckFolder done [22:49:34]ProducePacketName [22:49:34]name=ofd_packets/00064075 [22:49:34]NVStorageSaveData ofd_packets/00064075 [22:49:34]File name is /storage/ofd_packets/00064075 [22:49:34]Write 324 bytes [22:49:34]NVStorageSaveData done [22:49:34]OFDSenderStorePacket done [22:49:34]KKMCreateOFDPacket done [22:49:34]NVStorageSaveData kkm_last_timestamp [22:49:34]File name is /storage/kkm_last_timestamp [22:49:34]Write 4 bytes [22:49:34]NVStorageSaveData done [22:49:34]ExternCall_PrintAddStr [22:49:34]wPrintStart [22:49:34]Write to MH i2c: 01 00 00 D9 08 E1 [22:49:34]Write i2c OK [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: 01 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: 01 07 00 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 FF 0F F6 [22:49:34]RasterBufferAndPrint [22:49:34]line Счет N : (3)73617 [22:49:34]line ИНН: 02508201610067 [22:49:34]line Контрольно-Кассовый Чек [22:49:34]line ПРОДАЖА [22:49:34]line Товар: 4640030091645 [22:49:34]line Сигареты ESSE Exchange M [22:49:34]line 1.000 * 138.00 [22:49:34]line = 138.00 [22:49:34]line НДС 12% НСП 1% [22:49:34]line > о реализуемом товаре [22:49:34]line ИТОГО: 138.00 [22:49:34]line НСП 1% : 1.22 [22:49:34]line НДС 12% : 14.65 [22:49:34]line Наличными: 138.00 [22:49:34]line Безнал.: 0.00 [22:49:34]line Место: АЗС № 117 "Партнер Нефть" [22:49:34]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [22:49:34]line СНО: Общий режим [22:49:34]line Чек 160 04.06.2024 22:49 [22:49:34]line Смена: 374 ФФД: 1.0 [22:49:34]line ЗНМ: 0300000031 [22:49:34]line РНМ: 0000000000092737 [22:49:34]line Версия ККМ: 001 [22:49:34]line ФМ: 0000000000875074 [22:49:34]line ФД: 64075 [22:49:34]line ФПД: 88333044380898 [22:49:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T224933&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64075&fm=88333044380898&tin=02508201610067®Number=0000000000092737&sum=13800 [22:49:34]line 0 [22:49:34]OFD Sender: Processing packet 64075 [packets to send 14, broken 13] [22:49:34]ProducePacketName [22:49:34]name=ofd_packets/00064075 [22:49:34]OFD Sender: To server: pG, [22:49:34]CommunicateWithHost lk.salyk.kg:30040 [22:49:34]ConnectInit lk.salyk.kg [22:49:34]written 0, free lines is 4095 [22:49:34]Connected sock=10 [22:49:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 26 01 00 00 28 8F 1E 01 7D CB 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 00 00 00 F4 03 04 00 FD 99 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4B FA 00 00 35 04 06 00 50 56 A3 BB 74 E2 64 A7 0E 3B BB 3E E7 5D [22:49:34]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 BE 47 00 23 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4B FA 00 00 F4 03 04 00 0A 46 5F 66 B6 04 01 00 00 7F 65 A3 88 49 82 E3 6E [22:49:34]CommunicateWithHost err = 0 [22:49:34]CheckOFDResponse [22:49:34]1017 (14) - 77093643461234 [22:49:34]1041 (16) - 0000000000875074 [22:49:34]1040 (4) - 64075 [22:49:34]1012 (4) - 04.06.2024 16:51 [22:49:34]1206 (1) - 0 [22:49:34]OFD Sender: Remove packet 64075 [22:49:34]ProducePacketName [22:49:34]name=ofd_packets/00064075 [22:49:34]NVStorageDeleteData [22:49:34]Write to MH i2c: 01 00 00 01 09 0A [22:49:34]Write i2c OK [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: 01 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: 01 07 00 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: 01 07 00 01 09 00 00 00 00 00 02 0D 20 [22:49:34]RasterBufferAndPrint [22:49:34]line [22:49:34]line [22:49:34]line [22:49:34]line [22:49:34]line [22:49:34]written 0, free lines is 3337 [22:49:34]MH_Cut [22:49:34]Write to MH i2c: D1 01 00 08 09 01 E3 [22:49:34]Write i2c OK [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: D1 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: D1 01 00 [22:49:34]MH_I2C_Read... [22:49:34]Read from MH i2c: D1 01 00 08 09 00 E2 [22:49:34]Write to MH i2c: 01 00 00 09 09 12 [22:49:34]Write i2c OK [22:49:34]MH_I2C_Read... [22:49:35]OFD Sender: No OFD packet to send [22:49:35]*** Cut start [22:49:35]*** Partial cut [22:49:35]*** CUTSNS_PIN = 1 [22:49:35]*** CUTSNS_PIN = 0 [22:49:35]*** Brake cut motor [22:49:36]Read from MH i2c: 01 [22:49:36]MH_I2C_Read... [22:49:36]*** Stop cut motor [22:49:36]*** Cut end [22:49:36]Read from MH i2c: 01 07 00 [22:49:36]MH_I2C_Read... [22:49:36]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 FF 0F 27 [22:49:36]process_action close_receipt done [22:49:36]requested_data is exist [22:49:36]produce_requested_data [22:49:36]requested_item fm.sn is exist - process it [22:49:36]wFMCommunicate request_size=4 [22:49:36]MH_SAM_APDU [22:49:36]CAPDU: 80 11 00 00 [22:49:36]Write to MH i2c: E2 08 00 0A 09 80 11 00 00 00 00 00 00 8D [22:49:36]Write i2c OK [22:49:36]MH_I2C_Read... [22:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:36]Read from MH i2c: E2 [22:49:36]MH_I2C_Read... [22:49:36]Read from MH i2c: E2 17 00 [22:49:36]MH_I2C_Read... [22:49:36]Read from MH i2c: E2 17 00 0A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DF [22:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [22:49:36]wFMCommunicate OK [22:49:36]requested_item fd.num is exist - process it [22:49:36]SAM_PROTO_GetFieldsCounters [22:49:36]wFMCommunicate request_size=4 [22:49:36]MH_SAM_APDU [22:49:36]CAPDU: 80 13 00 00 [22:49:36]Write to MH i2c: E2 08 00 0B 09 80 13 00 00 00 00 00 00 90 [22:49:36]Write i2c OK [22:49:36]MH_I2C_Read... [22:49:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:36]Read from MH i2c: E2 [22:49:36]MH_I2C_Read... [22:49:36]Read from MH i2c: E2 62 00 [22:49:36]MH_I2C_Read... [22:49:36]Read from MH i2c: E2 62 00 0B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4B FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [22:49:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4B FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:36]wFMCommunicate OK [22:49:36]SAM_PROTO_GetFieldsCounters done [22:49:36]requested_item shift.num is exist - process it [22:49:36]requested_item shift.opened is exist - process it [22:49:36]req_shift_opened [22:49:36]FM_GetShiftState [22:49:36]SAM_PROTO_GetShiftState [22:49:36]wFMCommunicate request_size=4 [22:49:36]MH_SAM_APDU [22:49:36]CAPDU: 80 13 01 00 [22:49:36]Write to MH i2c: E2 08 00 0C 09 80 13 01 00 00 00 00 00 92 [22:49:36]Write i2c OK [22:49:36]MH_I2C_Read... [22:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:36]Read from MH i2c: E2 [22:49:36]MH_I2C_Read... [22:49:36]Read from MH i2c: E2 0E 00 [22:49:36]MH_I2C_Read... [22:49:36]Read from MH i2c: E2 0E 00 0C 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 32 [22:49:36]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [22:49:36]wFMCommunicate OK [22:49:36]SAM_PROTO_GetShiftState done [22:49:36]FM_GetShiftState done [22:49:36]req_shift_opened done [22:49:36]requested_item shift.open_date is exist - process it [22:49:36]req_shift_open_date [22:49:36]req_shift_open_date done [22:49:36]produce_requested_data done [22:49:36]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64075,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [22:49:36]process_action_free close_receipt [22:49:36]json_value_free [22:49:36]json_value_free done [22:49:36]process_json_proto returns [22:49:36]Send response to host [22:49:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64075,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [22:49:36]free response buf [22:49:36]execute_script done [22:49:36]execute_script returns [22:49:36]free content buf [22:49:36]Sock 8.Close socket [22:49:36]Sock 8.Thread stoped [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:06]accept exits with 9 [23:11:06]New connection [23:11:06]New thread 3067133284 created [23:11:06]Thread 3067276644 joined [23:11:06]Waiting for new connection... [23:11:06] Sock 9.Parse request [23:11:06]Sock 9.Check first char [23:11:06]Sock 9.First char is OK [23:11:06]request: POST /json_proto HTTP/1.0 [23:11:06]Method: POST [23:11:06]URL: /json_proto [23:11:06]Method is POST - this is cgi request [23:11:06]url: /json_proto [23:11:06]query_string will be loaded in cgi processing [23:11:06]execute_cgi json_proto POST (null) [23:11:06]execute_cgi path=json_proto method=POST [23:11:06]POST find Content-Length [23:11:06]Host: 172.17.60.69:8080 [23:11:06]Content-Length: 1242 [23:11:06]Content-Type: application/json [23:11:06] [23:11:06]POST finish read [23:11:06]Found Content-Length = 1242 [23:11:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73618", "tax_sys" : 0, "items" : [ { "code": "4700003241399", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0410\u0440\u0442\u0435\u0437\u0438\u0430\u043D", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "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" ] } } [23:11:06]execute_script... [23: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)73618", "tax_sys" : 0, "items" : [ { "code": "4700003241399", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0410\u0440\u0442\u0435\u0437\u0438\u0430\u043D", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "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" ] } } [23:11:06]POST & json_proto [23:11:06]process_json_proto [23:11:06]json parsed OK: [23:11:06]protocol is kg_v1.0 [23:11:06]action value=close_receipt [23:11:06]process_action close_receipt [23:11:06]cmd_close_receipt [23:11:06]MH_GetDate [23:11:06]Write to MH i2c: F0 00 00 0D 09 05 [23:11:06]Write i2c OK [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: F0 [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: F0 09 00 [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: F0 09 00 0D 09 00 0B 9F 5F 66 D2 83 5F 66 97 [23:11:06]GetLastDocTimeStamp 1717541373 [23:11:06]current date 1717542667 [23:11:06]FM_GetShiftState [23:11:06]SAM_PROTO_GetShiftState [23:11:06]wFMCommunicate request_size=4 [23:11:06]MH_SAM_APDU [23:11:06]CAPDU: 80 13 01 00 [23:11:06]Write to MH i2c: E2 08 00 0E 09 80 13 01 00 00 00 00 00 94 [23:11:06]Write i2c OK [23:11:06]MH_I2C_Read... [23:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:06]Read from MH i2c: E2 [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: E2 0E 00 [23:11:06]MH_I2C_Read... [23:11:06]Read from MH i2c: E2 0E 00 0E 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 34 [23:11:06]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:11:06]wFMCommunicate OK [23:11:06]SAM_PROTO_GetShiftState done [23:11:06]FM_GetShiftState done [23:11:06]opened in 1717459574 [23:11:06]opened+sec_in_day 1717545974 [23:11:06]quantity*price = 5000 [23:11:06]sum+1 = 5001 [23:11:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480364 Напиток энерг Nitro экзотик 0.45 ж/б 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 161 04.06.2024 23:11 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000875074 ФД: 64076 ФПД: 266499254894323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T231107&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64076&fm=266499254894323&tin=02508201610067®Number=0000000000092737&sum=13500 0 [23:11:07]StoreToDocumentArchive [23:11:07]shift 374 fd 64076 [23:11:07]save to /storage/0374/doc_00064076 [23:11:07]save last doc name /storage/0374/doc_00064076 to /storage/kkm_last_doc_name [23:11:07]save OK [23:11:07]Clear old archive folders... [23:11:07]ProcessDocumentItem done err = 0, tmpTLVsize=432 [23:11:07]tlvbuf is B6DF7070 [23:11:07]SAM_PROTO_ClearQueue [23:11:07]wFMCommunicate request_size=4 [23:11:07]MH_SAM_APDU [23:11:07]CAPDU: 80 09 00 00 [23:11:07]Write to MH i2c: E2 08 00 1B 09 80 09 00 00 00 00 00 00 96 [23:11:07]Write i2c OK [23:11:07]MH_I2C_Read... [23:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:08]Read from MH i2c: E2 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 03 00 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [23:11:08]RAPDU: 90 00 [23:11:08]wFMCommunicate OK [23:11:08]SAM_PROTO_ClearQueue done [23:11:08]KKMCreateOFDPacket [23:11:08]OFDProtocolAddRootSTLVToBuf [23:11:08]FM_MakeSignedData [23:11:08]FM_MakeSignedData [23:11:08]SAM_PROTO_SignData [23:11:08]wFMCommunicate request_size=4 [23:11:08]MH_SAM_APDU [23:11:08]CAPDU: 80 0D 01 02 [23:11:08]Write to MH i2c: E2 08 00 1C 09 80 0D 01 02 00 00 00 00 9E [23:11:08]Write i2c OK [23:11:08]MH_I2C_Read... [23:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:08]Read from MH i2c: E2 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 03 00 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [23:11:08]RAPDU: 90 00 [23:11:08]wFMCommunicate OK [23:11:08]wFMCommunicate request_size=255 [23:11:08]MH_SAM_APDU [23:11:08]CAPDU: 80 0D 02 02 FA 03 00 B0 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 33 39 39 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D0 90 D1 80 D1 82 D0 B5 D0 B7 D0 B8 D0 B0 D0 BD 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 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 [23:11:08]Write to MH i2c: E2 02 01 1D 09 80 0D 02 02 FA 00 03 00 B0 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 33 39 39 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D0 90 D1 80 D1 82 D0 B5 D0 B7 D0 B8 D0 B0 D0 BD 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 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 00 00 31 [23:11:08]Write i2c OK [23:11:08]MH_I2C_Read... [23:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:08]Read from MH i2c: E2 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 03 00 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [23:11:08]RAPDU: 90 00 [23:11:08]wFMCommunicate OK [23:11:08]wFMCommunicate request_size=191 [23:11:08]MH_SAM_APDU [23:11:08]CAPDU: 80 0D 02 02 BA 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 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 A1 00 00 00 F4 03 04 00 0B 9F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C FA 00 00 35 04 06 00 F2 61 31 6B BE F3 [23:11:08]Write to MH i2c: E2 C2 00 1E 09 80 0D 02 02 BA 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 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 A1 00 00 00 F4 03 04 00 0B 9F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C FA 00 00 35 04 06 00 F2 61 31 6B BE F3 00 00 C5 [23:11:08]Write i2c OK [23:11:08]MH_I2C_Read... [23:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:08]Read from MH i2c: E2 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 03 00 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 03 00 1E 09 00 90 00 9B [23:11:08]RAPDU: 90 00 [23:11:08]wFMCommunicate OK [23:11:08]wFMCommunicate request_size=4 [23:11:08]MH_SAM_APDU [23:11:08]CAPDU: 80 0D 03 02 [23:11:08]Write to MH i2c: E2 08 00 1F 09 80 0D 03 02 00 00 00 00 A3 [23:11:08]Write i2c OK [23:11:08]MH_I2C_Read... [23:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:08]Read from MH i2c: E2 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 0B 00 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 0B 00 1F 09 00 C1 AF F6 0C DB 71 37 AB 90 00 44 [23:11:08]RAPDU: C1 AF F6 0C DB 71 37 AB 90 00 [23:11:08]wFMCommunicate OK [23:11:08]SAM_PROTO_SignData done [23:11:08]FM_MakeSignedData done [23:11:08]CreateOFDProtocolMessage [23:11:08]wFMCommunicate request_size=4 [23:11:08]MH_SAM_APDU [23:11:08]CAPDU: 80 11 00 00 [23:11:08]Write to MH i2c: E2 08 00 20 09 80 11 00 00 00 00 00 00 A3 [23:11:08]Write i2c OK [23:11:08]MH_I2C_Read... [23:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:08]Read from MH i2c: E2 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 17 00 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: E2 17 00 20 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F5 [23: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 [23:11:08]wFMCommunicate OK [23:11:08]CreateOFDProtocolMessage done [23:11:08]OFDSenderStorePacket 64076 [23:11:08]StoreOFDPacket docnum=64076 [23: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 C4 01 00 00 00 04 BC 01 B4 83 5A 03 01 00 03 00 B0 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 33 39 39 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D0 90 D1 80 D1 82 D0 B5 D0 B7 D0 B8 D0 B0 D0 BD 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 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 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 A1 00 00 00 F4 03 04 00 0B 9F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C FA 00 00 35 04 06 00 F2 61 31 6B BE F3 C1 AF F6 0C DB 71 37 AB [23:11:08]CheckFolder [23:11:08]dirname=/storage/ofd_packets [23:11:08]CheckFolder done [23:11:08]ProducePacketName [23:11:08]name=ofd_packets/00064076 [23:11:08]NVStorageSaveData ofd_packets/00064076 [23:11:08]File name is /storage/ofd_packets/00064076 [23:11:08]Write 482 bytes [23:11:08]NVStorageSaveData done [23:11:08]OFDSenderStorePacket done [23:11:08]KKMCreateOFDPacket done [23:11:08]NVStorageSaveData kkm_last_timestamp [23:11:08]File name is /storage/kkm_last_timestamp [23:11:08]Write 4 bytes [23:11:08]NVStorageSaveData done [23:11:08]ExternCall_PrintAddStr [23:11:08]wPrintStart [23:11:08]Write to MH i2c: 01 00 00 21 09 2A [23:11:08]Write i2c OK [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: 01 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: 01 07 00 [23:11:08]MH_I2C_Read... [23:11:08]Read from MH i2c: 01 07 00 21 09 00 00 00 00 00 FF 0F 3F [23:11:08]RasterBufferAndPrint [23:11:08]line Счет N : (3)73618 [23:11:08]line ИНН: 02508201610067 [23:11:08]line Контрольно-Кассовый Чек [23:11:08]line ПРОДАЖА [23:11:08]line Товар: 4700003241399 [23:11:08]line Напиток Лимонад Дюшес 1л Артезиан [23:11:08]line 1.000 * 50.00 [23:11:08]line = 50.00 [23:11:08]line НДС 12% НСП 1% [23:11:08]line > о реализуемом товаре [23:11:08]line Товар: 4700000480364 [23:11:08]line Напиток энерг Nitro экзотик 0.45 ж/б [23:11:08]line 1.000 * 85.00 [23:11:08]line = 85.00 [23:11:08]line НДС 12% НСП 1% [23:11:08]line > о реализуемом товаре [23:11:08]line ИТОГО: 135.00 [23:11:08]line НСП 1% : 1.19 [23:11:08]line НДС 12% : 14.34 [23:11:08]line Наличными: 0.00 [23:11:08]line Безнал.: 135.00 [23:11:08]line Место: АЗС № 117 "Партнер Нефть" [23:11:08]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:11:08]line СНО: Общий режим [23:11:08]line Чек 161 04.06.2024 23:11 [23:11:08]line Смена: 374 ФФД: 1.0 [23:11:08]line ЗНМ: 0300000031 [23:11:08]line РНМ: 0000000000092737 [23:11:08]line Версия ККМ: 001 [23:11:08]line Платежная система: АКБ Кыргызстан [23:11:08]line ФМ: 0000000000875074 [23:11:08]line ФД: 64076 [23:11:08]line ФПД: 266499254894323 [23:11:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T231107&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64076&fm=266499254894323&tin=02508201610067®Number=0000000000092737&sum=13500 [23:11:08]line 0 [23:11:08]written 0, free lines is 4095 [23:11:09]OFD Sender: Processing packet 64076 [packets to send 14, broken 13] [23:11:09]ProducePacketName [23:11:09]name=ofd_packets/00064076 [23:11:09]OFD Sender: To server: pG, [23:11:09]CommunicateWithHost lk.salyk.kg:30040 [23:11:09]ConnectInit lk.salyk.kg [23:11:09]Connected sock=10 [23:11: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 C4 01 00 00 00 04 BC 01 B4 83 5A 03 01 00 03 00 B0 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 33 39 39 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D0 90 D1 80 D1 82 D0 B5 D0 B7 D0 B8 D0 B0 D0 BD 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 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 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 A1 00 00 00 F4 03 04 00 0B 9F 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C FA 00 00 35 04 06 00 F2 61 31 6B BE F3 C1 AF F6 0C DB 71 37 AB [23:11: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 B3 68 47 00 CB 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4C FA 00 00 F4 03 04 00 18 4B 5F 66 B6 04 01 00 00 E4 4E 71 1B 36 20 85 F0 [23:11:09]CommunicateWithHost err = 0 [23:11:09]CheckOFDResponse [23:11:09]1017 (14) - 77093643461234 [23:11:09]1041 (16) - 0000000000875074 [23:11:09]1040 (4) - 64076 [23:11:09]1012 (4) - 04.06.2024 17:12 [23:11:09]1206 (1) - 0 [23:11:09]OFD Sender: Remove packet 64076 [23:11:09]ProducePacketName [23:11:09]name=ofd_packets/00064076 [23:11:09]NVStorageDeleteData [23:11:09]Write to MH i2c: 01 00 00 53 09 5C [23:11:09]Write i2c OK [23:11:09]MH_I2C_Read... [23:11:09]Read from MH i2c: 01 [23:11:09]MH_I2C_Read... [23:11:09]Read from MH i2c: 01 07 00 [23:11:09]MH_I2C_Read... [23:11:09]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 50 0C BF [23:11:09]RasterBufferAndPrint [23:11:09]line [23:11:09]line [23:11:09]line [23:11:09]line [23:11:09]line [23:11:09]written 0, free lines is 3160 [23:11:09]MH_Cut [23:11:09]Write to MH i2c: D1 01 00 5A 09 01 35 [23:11:09]Write i2c OK [23:11:09]MH_I2C_Read... [23:11:09]Read from MH i2c: D1 [23:11:09]MH_I2C_Read... [23:11:09]Read from MH i2c: D1 01 00 [23:11:09]MH_I2C_Read... [23:11:09]Read from MH i2c: D1 01 00 5A 09 00 34 [23:11:09]Write to MH i2c: 01 00 00 5B 09 64 [23:11:09]Write i2c OK [23:11:09]MH_I2C_Read... [23:11:09]OFD Sender: No OFD packet to send [23:11:10]*** Cut start [23:11:10]*** Partial cut [23:11:10]*** CUTSNS_PIN = 1 [23:11:10]*** CUTSNS_PIN = 0 [23:11:10]*** Brake cut motor [23:11:11]Read from MH i2c: 01 [23:11:11]MH_I2C_Read... [23:11:11]*** Stop cut motor [23:11:11]*** Cut end [23:11:11]Read from MH i2c: 01 07 00 [23:11:11]MH_I2C_Read... [23:11:11]Read from MH i2c: 01 07 00 5B 09 00 00 00 00 00 FF 0F 79 [23:11:11]process_action close_receipt done [23:11:11]requested_data is exist [23:11:11]produce_requested_data [23:11:11]requested_item fm.sn is exist - process it [23:11:11]wFMCommunicate request_size=4 [23:11:11]MH_SAM_APDU [23:11:11]CAPDU: 80 11 00 00 [23:11:11]Write to MH i2c: E2 08 00 5C 09 80 11 00 00 00 00 00 00 DF [23:11:11]Write i2c OK [23:11:11]MH_I2C_Read... [23:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:11]Read from MH i2c: E2 [23:11:11]MH_I2C_Read... [23:11:11]Read from MH i2c: E2 17 00 [23:11:11]MH_I2C_Read... [23:11:11]Read from MH i2c: E2 17 00 5C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 31 [23:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:11:11]wFMCommunicate OK [23:11:11]requested_item fd.num is exist - process it [23:11:11]SAM_PROTO_GetFieldsCounters [23:11:11]wFMCommunicate request_size=4 [23:11:11]MH_SAM_APDU [23:11:11]CAPDU: 80 13 00 00 [23:11:11]Write to MH i2c: E2 08 00 5D 09 80 13 00 00 00 00 00 00 E2 [23:11:11]Write i2c OK [23:11:11]MH_I2C_Read... [23:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:11]Read from MH i2c: E2 [23:11:11]MH_I2C_Read... [23:11:11]Read from MH i2c: E2 62 00 [23:11:11]MH_I2C_Read... [23:11:11]Read from MH i2c: E2 62 00 5D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4C FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [23: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 4C FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:11:11]wFMCommunicate OK [23:11:11]SAM_PROTO_GetFieldsCounters done [23:11:11]requested_item shift.num is exist - process it [23:11:11]requested_item shift.opened is exist - process it [23:11:11]req_shift_opened [23:11:11]FM_GetShiftState [23:11:11]SAM_PROTO_GetShiftState [23:11:11]wFMCommunicate request_size=4 [23:11:11]MH_SAM_APDU [23:11:11]CAPDU: 80 13 01 00 [23:11:11]Write to MH i2c: E2 08 00 5E 09 80 13 01 00 00 00 00 00 E4 [23:11:11]Write i2c OK [23:11:11]MH_I2C_Read... [23:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:11]Read from MH i2c: E2 [23:11:11]MH_I2C_Read... [23:11:11]Read from MH i2c: E2 0E 00 [23:11:11]MH_I2C_Read... [23:11:11]Read from MH i2c: E2 0E 00 5E 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 84 [23:11:11]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:11:11]wFMCommunicate OK [23:11:11]SAM_PROTO_GetShiftState done [23:11:11]FM_GetShiftState done [23:11:11]req_shift_opened done [23:11:11]requested_item shift.open_date is exist - process it [23:11:11]req_shift_open_date [23:11:11]req_shift_open_date done [23:11:11]produce_requested_data done [23:11:11]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64076,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [23:11:11]process_action_free close_receipt [23:11:11]json_value_free [23:11:11]json_value_free done [23:11:11]process_json_proto returns [23:11:11]Send response to host [23:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64076,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [23:11:11]free response buf [23:11:11]execute_script done [23:11:11]execute_script returns [23:11:11]free content buf [23:11:11]Sock 9.Close socket [23:11:11]Sock 9.Thread stoped [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:51]accept exits with 8 [23:35:51]New connection [23:35:51]New thread 3067276644 created [23:35:51]Thread 3067133284 joined [23:35:51]Waiting for new connection... [23:35:51] Sock 8.Parse request [23:35:51]Sock 8.Check first char [23:35:51]Sock 8.First char is OK [23:35:51]request: POST /json_proto HTTP/1.0 [23:35:51]Method: POST [23:35:51]URL: /json_proto [23:35:51]Method is POST - this is cgi request [23:35:51]url: /json_proto [23:35:51]query_string will be loaded in cgi processing [23:35:51]execute_cgi json_proto POST (null) [23:35:51]execute_cgi path=json_proto method=POST [23:35:51]POST find Content-Length [23:35:51]Host: 172.17.60.69:8080 [23:35:51]Content-Length: 699 [23:35:51]Content-Type: application/json [23:35:51] [23:35:51]POST finish read [23:35:51]Found Content-Length = 699 [23:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73619", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \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" ] } } [23:35:51]execute_script... [23: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)73619", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \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" ] } } [23:35:51]POST & json_proto [23:35:51]process_json_proto [23:35:51]json parsed OK: [23:35:51]protocol is kg_v1.0 [23:35:51]action value=close_receipt [23:35:51]process_action close_receipt [23:35:51]cmd_close_receipt [23:35:51]MH_GetDate [23:35:51]Write to MH i2c: F0 00 00 5F 09 57 [23:35:51]Write i2c OK [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: F0 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: F0 09 00 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: F0 09 00 5F 09 00 D8 A4 5F 66 D2 83 5F 66 BB [23:35:51]GetLastDocTimeStamp 1717542667 [23:35:51]current date 1717544152 [23:35:51]FM_GetShiftState [23:35:51]SAM_PROTO_GetShiftState [23:35:51]wFMCommunicate request_size=4 [23:35:51]MH_SAM_APDU [23:35:51]CAPDU: 80 13 01 00 [23:35:51]Write to MH i2c: E2 08 00 60 09 80 13 01 00 00 00 00 00 E6 [23:35:51]Write i2c OK [23:35:51]MH_I2C_Read... [23:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:51]Read from MH i2c: E2 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: E2 0E 00 [23:35:51]MH_I2C_Read... [23:35:51]Read from MH i2c: E2 0E 00 60 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 86 [23:35:51]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:35:51]wFMCommunicate OK [23:35:51]SAM_PROTO_GetShiftState done [23:35:51]FM_GetShiftState done [23:35:51]opened in 1717459574 [23:35:51]opened+sec_in_day 1717545974 [23:35:51]quantity*price = 9500 [23:35:51]sum+1 = 9501 [23:35:51]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 СНО: Общий режим Чек 162 04.06.2024 23:35 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64077 ФПД: 25922415774650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T233552&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64077&fm=25922415774650&tin=02508201610067®Number=0000000000092737&sum=9500 0 [23:35:52]StoreToDocumentArchive [23:35:52]shift 374 fd 64077 [23:35:52]save to /storage/0374/doc_00064077 [23:35:52]save last doc name /storage/0374/doc_00064077 to /storage/kkm_last_doc_name [23:35:52]save OK [23:35:52]Clear old archive folders... [23:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=303 [23:35:52]tlvbuf is 01077490 [23:35:52]SAM_PROTO_ClearQueue [23:35:52]wFMCommunicate request_size=4 [23:35:52]MH_SAM_APDU [23:35:52]CAPDU: 80 09 00 00 [23:35:52]Write to MH i2c: E2 08 00 6D 09 80 09 00 00 00 00 00 00 E8 [23:35:52]Write i2c OK [23:35:52]MH_I2C_Read... [23:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:52]Read from MH i2c: E2 [23:35:52]MH_I2C_Read... [23:35:52]Read from MH i2c: E2 03 00 [23:35:52]MH_I2C_Read... [23:35:52]Read from MH i2c: E2 03 00 6D 09 00 90 00 EA [23:35:52]RAPDU: 90 00 [23:35:52]wFMCommunicate OK [23:35:52]SAM_PROTO_ClearQueue done [23:35:52]KKMCreateOFDPacket [23:35:52]OFDProtocolAddRootSTLVToBuf [23:35:52]FM_MakeSignedData [23:35:52]FM_MakeSignedData [23:35:52]SAM_PROTO_SignData [23:35:52]wFMCommunicate request_size=4 [23:35:52]MH_SAM_APDU [23:35:52]CAPDU: 80 0D 01 02 [23:35:52]Write to MH i2c: E2 08 00 6E 09 80 0D 01 02 00 00 00 00 F0 [23:35:52]Write i2c OK [23:35:52]MH_I2C_Read... [23:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:52]Read from MH i2c: E2 [23:35:52]MH_I2C_Read... [23:35:52]Read from MH i2c: E2 03 00 [23:35:52]MH_I2C_Read... [23:35:52]Read from MH i2c: E2 03 00 6E 09 00 90 00 EB [23:35:52]RAPDU: 90 00 [23:35:52]wFMCommunicate OK [23:35:52]wFMCommunicate request_size=255 [23:35:52]MH_SAM_APDU [23:35:52]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 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 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 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 A2 00 00 00 F4 03 04 00 D8 A4 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D [23:35:52]Write to MH i2c: E2 02 01 6F 09 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 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 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 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 A2 00 00 00 F4 03 04 00 D8 A4 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 00 00 C2 [23:35:52]Write i2c OK [23:35:52]MH_I2C_Read... [23:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:53]Read from MH i2c: E2 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 03 00 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [23:35:53]RAPDU: 90 00 [23:35:53]wFMCommunicate OK [23:35:53]wFMCommunicate request_size=62 [23:35:53]MH_SAM_APDU [23:35:53]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 4D FA 00 00 35 04 06 00 17 93 88 62 4B BA [23:35:53]Write to MH i2c: E2 41 00 70 09 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 4D FA 00 00 35 04 06 00 17 93 88 62 4B BA 00 00 10 [23:35:53]Write i2c OK [23:35:53]MH_I2C_Read... [23:35:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:53]Read from MH i2c: E2 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 03 00 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [23:35:53]RAPDU: 90 00 [23:35:53]wFMCommunicate OK [23:35:53]wFMCommunicate request_size=4 [23:35:53]MH_SAM_APDU [23:35:53]CAPDU: 80 0D 03 02 [23:35:53]Write to MH i2c: E2 08 00 71 09 80 0D 03 02 00 00 00 00 F5 [23:35:53]Write i2c OK [23:35:53]MH_I2C_Read... [23:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:53]Read from MH i2c: E2 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 0B 00 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 0B 00 71 09 00 F9 4E 33 7B E6 46 F1 B4 90 00 BC [23:35:53]RAPDU: F9 4E 33 7B E6 46 F1 B4 90 00 [23:35:53]wFMCommunicate OK [23:35:53]SAM_PROTO_SignData done [23:35:53]FM_MakeSignedData done [23:35:53]CreateOFDProtocolMessage [23:35:53]wFMCommunicate request_size=4 [23:35:53]MH_SAM_APDU [23:35:53]CAPDU: 80 11 00 00 [23:35:53]Write to MH i2c: E2 08 00 72 09 80 11 00 00 00 00 00 00 F5 [23:35:53]Write i2c OK [23:35:53]MH_I2C_Read... [23:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:53]Read from MH i2c: E2 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 17 00 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: E2 17 00 72 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 47 [23:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:35:53]wFMCommunicate OK [23:35:53]CreateOFDProtocolMessage done [23:35:53]OFDSenderStorePacket 64077 [23:35:53]StoreOFDPacket docnum=64077 [23:35: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 43 01 00 00 D9 60 3B 01 C8 C9 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 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 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 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 A2 00 00 00 F4 03 04 00 D8 A4 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4D FA 00 00 35 04 06 00 17 93 88 62 4B BA F9 4E 33 7B E6 46 F1 B4 [23:35:53]CheckFolder [23:35:53]dirname=/storage/ofd_packets [23:35:53]CheckFolder done [23:35:53]ProducePacketName [23:35:53]name=ofd_packets/00064077 [23:35:53]NVStorageSaveData ofd_packets/00064077 [23:35:53]File name is /storage/ofd_packets/00064077 [23:35:53]Write 353 bytes [23:35:53]NVStorageSaveData done [23:35:53]OFDSenderStorePacket done [23:35:53]KKMCreateOFDPacket done [23:35:53]NVStorageSaveData kkm_last_timestamp [23:35:53]File name is /storage/kkm_last_timestamp [23:35:53]Write 4 bytes [23:35:53]NVStorageSaveData done [23:35:53]ExternCall_PrintAddStr [23:35:53]wPrintStart [23:35:53]Write to MH i2c: 01 00 00 73 09 7C [23:35:53]Write i2c OK [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: 01 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: 01 07 00 [23:35:53]MH_I2C_Read... [23:35:53]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 FF 0F 91 [23:35:53]RasterBufferAndPrint [23:35:53]line Счет N : (3)73619 [23:35:53]line ИНН: 02508201610067 [23:35:53]line Контрольно-Кассовый Чек [23:35:53]line ПРОДАЖА [23:35:53]line Товар: 4700000482757 [23:35:53]line Напиток Nitro Fr газ манг,клуб ж/б 0,45л [23:35:53]line 1.000 * 95.00 [23:35:53]line = 95.00 [23:35:53]line НДС 12% НСП 1% [23:35:53]line > о реализуемом товаре [23:35:53]line ИТОГО: 95.00 [23:35:53]line НСП 1% : 0.84 [23:35:53]line НДС 12% : 10.09 [23:35:53]line Наличными: 95.00 [23:35:53]line Безнал.: 0.00 [23:35:53]line Место: АЗС № 117 "Партнер Нефть" [23:35:53]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:35:53]line СНО: Общий режим [23:35:53]line Чек 162 04.06.2024 23:35 [23:35:53]line Смена: 374 ФФД: 1.0 [23:35:53]line ЗНМ: 0300000031 [23:35:53]line РНМ: 0000000000092737 [23:35:53]line Версия ККМ: 001 [23:35:53]line ФМ: 0000000000875074 [23:35:53]line ФД: 64077 [23:35:53]line ФПД: 25922415774650 [23:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T233552&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64077&fm=25922415774650&tin=02508201610067®Number=0000000000092737&sum=9500 [23:35:53]line 0 [23:35:53]OFD Sender: Processing packet 64077 [packets to send 14, broken 13] [23:35:53]ProducePacketName [23:35:53]name=ofd_packets/00064077 [23:35:53]OFD Sender: To server: pG, [23:35:53]CommunicateWithHost lk.salyk.kg:30040 [23:35:53]ConnectInit lk.salyk.kg [23:35:53]written 0, free lines is 4095 [23:35:53]Connected sock=10 [23:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 43 01 00 00 D9 60 3B 01 C8 C9 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 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 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 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 A2 00 00 00 F4 03 04 00 D8 A4 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4D FA 00 00 35 04 06 00 17 93 88 62 4B BA F9 4E 33 7B E6 46 F1 B4 [23:35: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 AE AB 47 00 8A 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4D FA 00 00 F4 03 04 00 E5 50 5F 66 B6 04 01 00 00 BF 9A B2 BD A9 B2 D1 D1 [23:35:53]CommunicateWithHost err = 0 [23:35:53]CheckOFDResponse [23:35:53]1017 (14) - 77093643461234 [23:35:53]1041 (16) - 0000000000875074 [23:35:53]1040 (4) - 64077 [23:35:53]1012 (4) - 04.06.2024 17:37 [23:35:53]1206 (1) - 0 [23:35:53]OFD Sender: Remove packet 64077 [23:35:53]ProducePacketName [23:35:53]name=ofd_packets/00064077 [23:35:53]NVStorageDeleteData [23:35:54]Write to MH i2c: 01 00 00 9C 09 A5 [23:35:54]Write i2c OK [23:35:54]MH_I2C_Read... [23:35:54]Read from MH i2c: 01 [23:35:54]MH_I2C_Read... [23:35:54]Read from MH i2c: 01 07 00 [23:35:54]MH_I2C_Read... [23:35:54]Read from MH i2c: 01 07 00 9C 09 00 00 00 00 00 DF 0C 97 [23:35:54]RasterBufferAndPrint [23:35:54]line [23:35:54]line [23:35:54]line [23:35:54]line [23:35:54]line [23:35:54]written 0, free lines is 3304 [23:35:54]MH_Cut [23:35:54]Write to MH i2c: D1 01 00 A3 09 01 7E [23:35:54]Write i2c OK [23:35:54]MH_I2C_Read... [23:35:54]Read from MH i2c: D1 [23:35:54]MH_I2C_Read... [23:35:54]Read from MH i2c: D1 01 00 [23:35:54]MH_I2C_Read... [23:35:54]Read from MH i2c: D1 01 00 A3 09 00 7D [23:35:54]Write to MH i2c: 01 00 00 A4 09 AD [23:35:54]Write i2c OK [23:35:54]MH_I2C_Read... [23:35:54]OFD Sender: No OFD packet to send [23:35:54]*** Cut start [23:35:54]*** Partial cut [23:35:54]*** CUTSNS_PIN = 1 [23:35:54]*** CUTSNS_PIN = 0 [23:35:55]*** Brake cut motor [23:35:55]Read from MH i2c: 01 [23:35:55]MH_I2C_Read... [23:35:55]*** Stop cut motor [23:35:55]*** Cut end [23:35:55]Read from MH i2c: 01 07 00 [23:35:55]MH_I2C_Read... [23:35:55]Read from MH i2c: 01 07 00 A4 09 00 00 00 00 00 FF 0F C2 [23:35:55]process_action close_receipt done [23:35:55]requested_data is exist [23:35:55]produce_requested_data [23:35:55]requested_item fm.sn is exist - process it [23:35:55]wFMCommunicate request_size=4 [23:35:55]MH_SAM_APDU [23:35:55]CAPDU: 80 11 00 00 [23:35:55]Write to MH i2c: E2 08 00 A5 09 80 11 00 00 00 00 00 00 28 [23:35:55]Write i2c OK [23:35:55]MH_I2C_Read... [23:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:55]Read from MH i2c: E2 [23:35:55]MH_I2C_Read... [23:35:55]Read from MH i2c: E2 17 00 [23:35:55]MH_I2C_Read... [23:35:55]Read from MH i2c: E2 17 00 A5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7A [23: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 [23:35:55]wFMCommunicate OK [23:35:55]requested_item fd.num is exist - process it [23:35:55]SAM_PROTO_GetFieldsCounters [23:35:55]wFMCommunicate request_size=4 [23:35:55]MH_SAM_APDU [23:35:55]CAPDU: 80 13 00 00 [23:35:55]Write to MH i2c: E2 08 00 A6 09 80 13 00 00 00 00 00 00 2B [23:35:55]Write i2c OK [23:35:55]MH_I2C_Read... [23:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:55]Read from MH i2c: E2 [23:35:55]MH_I2C_Read... [23:35:55]Read from MH i2c: E2 62 00 [23:35:55]MH_I2C_Read... [23:35:55]Read from MH i2c: E2 62 00 A6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4D FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [23: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 4D FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:55]wFMCommunicate OK [23:35:55]SAM_PROTO_GetFieldsCounters done [23:35:55]requested_item shift.num is exist - process it [23:35:55]requested_item shift.opened is exist - process it [23:35:55]req_shift_opened [23:35:55]FM_GetShiftState [23:35:55]SAM_PROTO_GetShiftState [23:35:55]wFMCommunicate request_size=4 [23:35:55]MH_SAM_APDU [23:35:55]CAPDU: 80 13 01 00 [23:35:55]Write to MH i2c: E2 08 00 A7 09 80 13 01 00 00 00 00 00 2D [23:35:55]Write i2c OK [23:35:55]MH_I2C_Read... [23:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:55]Read from MH i2c: E2 [23:35:55]MH_I2C_Read... [23:35:55]Read from MH i2c: E2 0E 00 [23:35:55]MH_I2C_Read... [23:35:55]Read from MH i2c: E2 0E 00 A7 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 CD [23:35:55]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:35:55]wFMCommunicate OK [23:35:55]SAM_PROTO_GetShiftState done [23:35:55]FM_GetShiftState done [23:35:55]req_shift_opened done [23:35:55]requested_item shift.open_date is exist - process it [23:35:55]req_shift_open_date [23:35:55]req_shift_open_date done [23:35:55]produce_requested_data done [23:35:55]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64077,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [23:35:55]process_action_free close_receipt [23:35:55]json_value_free [23:35:55]json_value_free done [23:35:55]process_json_proto returns [23:35:55]Send response to host [23:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64077,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [23:35:55]free response buf [23:35:55]execute_script done [23:35:55]execute_script returns [23:35:55]free content buf [23:35:55]Sock 8.Close socket [23:35:55]Sock 8.Thread stoped [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:32]accept exits with 9 [23:50:32]New connection [23:50:32]New thread 3067133284 created [23:50:32]Thread 3067276644 joined [23:50:32]Waiting for new connection... [23:50:32] Sock 9.Parse request [23:50:32]Sock 9.Check first char [23:50:32]Sock 9.First char is OK [23:50:32]request: POST /json_proto HTTP/1.0 [23:50:32]Method: POST [23:50:32]URL: /json_proto [23:50:32]Method is POST - this is cgi request [23:50:32]url: /json_proto [23:50:32]query_string will be loaded in cgi processing [23:50:32]execute_cgi json_proto POST (null) [23:50:32]execute_cgi path=json_proto method=POST [23:50:32]POST find Content-Length [23:50:32]Host: 172.17.60.69:8080 [23:50:32]Content-Length: 911 [23:50:32]Content-Type: application/json [23:50:32] [23:50:32]POST finish read [23:50:32]Found Content-Length = 911 [23:50:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73620", "tax_sys" : 0, "items" : [ { "code": "2000038180017", "name": "\u041A\u043E\u0444\u0435 \u041C\u043E\u043A\u043A\u043E\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:32]execute_script... [23:50:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73620", "tax_sys" : 0, "items" : [ { "code": "2000038180017", "name": "\u041A\u043E\u0444\u0435 \u041C\u043E\u043A\u043A\u043E\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:32]POST & json_proto [23:50:32]process_json_proto [23:50:32]json parsed OK: [23:50:32]protocol is kg_v1.0 [23:50:32]action value=close_receipt [23:50:32]process_action close_receipt [23:50:32]cmd_close_receipt [23:50:32]MH_GetDate [23:50:32]Write to MH i2c: F0 00 00 A8 09 A0 [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: F0 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: F0 09 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: F0 09 00 A8 09 00 49 A8 5F 66 D2 83 5F 66 79 [23:50:32]GetLastDocTimeStamp 1717544152 [23:50:32]current date 1717545033 [23:50:32]FM_GetShiftState [23:50:32]SAM_PROTO_GetShiftState [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 13 01 00 [23:50:32]Write to MH i2c: E2 08 00 A9 09 80 13 01 00 00 00 00 00 2F [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 0E 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 0E 00 A9 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 CF [23:50:32]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:50:32]wFMCommunicate OK [23:50:32]SAM_PROTO_GetShiftState done [23:50:32]FM_GetShiftState done [23:50:32]opened in 1717459574 [23:50:32]opened+sec_in_day 1717545974 [23:50:32]quantity*price = 12000 [23:50:32]sum+1 = 12001 [23:50:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 163 04.06.2024 23:50 Смена: 374 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64078 ФПД: 269533959676538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T235033&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64078&fm=269533959676538&tin=02508201610067®Number=0000000000092737&sum=18000 0 [23:50:33]StoreToDocumentArchive [23:50:33]shift 374 fd 64078 [23:50:33]save to /storage/0374/doc_00064078 [23:50:33]save last doc name /storage/0374/doc_00064078 to /storage/kkm_last_doc_name [23:50:33]save OK [23:50:33]Clear old archive folders... [23:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=388 [23:50:33]tlvbuf is 00FCB8C0 [23:50:33]SAM_PROTO_ClearQueue [23:50:33]wFMCommunicate request_size=4 [23:50:33]MH_SAM_APDU [23:50:33]CAPDU: 80 09 00 00 [23:50:33]Write to MH i2c: E2 08 00 B6 09 80 09 00 00 00 00 00 00 31 [23:50:33]Write i2c OK [23:50:33]MH_I2C_Read... [23:50:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:33]Read from MH i2c: E2 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 03 00 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 03 00 B6 09 00 90 00 33 [23:50:33]RAPDU: 90 00 [23:50:33]wFMCommunicate OK [23:50:33]SAM_PROTO_ClearQueue done [23:50:33]KKMCreateOFDPacket [23:50:33]OFDProtocolAddRootSTLVToBuf [23:50:33]FM_MakeSignedData [23:50:33]FM_MakeSignedData [23:50:33]SAM_PROTO_SignData [23:50:33]wFMCommunicate request_size=4 [23:50:33]MH_SAM_APDU [23:50:33]CAPDU: 80 0D 01 02 [23:50:33]Write to MH i2c: E2 08 00 B7 09 80 0D 01 02 00 00 00 00 39 [23:50:33]Write i2c OK [23:50:33]MH_I2C_Read... [23:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:33]Read from MH i2c: E2 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 03 00 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 03 00 B7 09 00 90 00 34 [23:50:33]RAPDU: 90 00 [23:50:33]wFMCommunicate OK [23:50:33]wFMCommunicate request_size=255 [23:50:33]MH_SAM_APDU [23:50:33]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 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE 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 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 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [23:50:33]Write to MH i2c: E2 02 01 B8 09 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 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE 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 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 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 EC [23:50:33]Write i2c OK [23:50:33]MH_I2C_Read... [23:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:34]Read from MH i2c: E2 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 03 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 03 00 B8 09 00 90 00 35 [23:50:34]RAPDU: 90 00 [23:50:34]wFMCommunicate OK [23:50:34]wFMCommunicate request_size=147 [23:50:34]MH_SAM_APDU [23:50:34]CAPDU: 80 0D 02 02 8E F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 49 A8 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E FA 00 00 35 04 06 00 F5 23 C3 EB E2 7A [23:50:34]Write to MH i2c: E2 96 00 B9 09 80 0D 02 02 8E 00 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 49 A8 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E FA 00 00 35 04 06 00 F5 23 C3 EB E2 7A 00 00 74 [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:34]Read from MH i2c: E2 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 03 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 03 00 B9 09 00 90 00 36 [23:50:34]RAPDU: 90 00 [23:50:34]wFMCommunicate OK [23:50:34]wFMCommunicate request_size=4 [23:50:34]MH_SAM_APDU [23:50:34]CAPDU: 80 0D 03 02 [23:50:34]Write to MH i2c: E2 08 00 BA 09 80 0D 03 02 00 00 00 00 3E [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:34]Read from MH i2c: E2 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 0B 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 0B 00 BA 09 00 16 67 BF 30 A7 B0 1A 71 90 00 8D [23:50:34]RAPDU: 16 67 BF 30 A7 B0 1A 71 90 00 [23:50:34]wFMCommunicate OK [23:50:34]SAM_PROTO_SignData done [23:50:34]FM_MakeSignedData done [23:50:34]CreateOFDProtocolMessage [23:50:34]wFMCommunicate request_size=4 [23:50:34]MH_SAM_APDU [23:50:34]CAPDU: 80 11 00 00 [23:50:34]Write to MH i2c: E2 08 00 BB 09 80 11 00 00 00 00 00 00 3E [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:34]Read from MH i2c: E2 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 17 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 17 00 BB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 90 [23:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:50:34]wFMCommunicate OK [23:50:34]CreateOFDProtocolMessage done [23:50:34]OFDSenderStorePacket 64078 [23:50:34]StoreOFDPacket docnum=64078 [23:50: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 98 01 00 00 B5 06 90 01 C8 60 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 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE 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 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 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 49 A8 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E FA 00 00 35 04 06 00 F5 23 C3 EB E2 7A 16 67 BF 30 A7 B0 1A 71 [23:50:34]CheckFolder [23:50:34]dirname=/storage/ofd_packets [23:50:34]CheckFolder done [23:50:34]ProducePacketName [23:50:34]name=ofd_packets/00064078 [23:50:34]NVStorageSaveData ofd_packets/00064078 [23:50:34]File name is /storage/ofd_packets/00064078 [23:50:34]Write 438 bytes [23:50:34]NVStorageSaveData done [23:50:34]OFDSenderStorePacket done [23:50:34]KKMCreateOFDPacket done [23:50:34]NVStorageSaveData kkm_last_timestamp [23:50:34]File name is /storage/kkm_last_timestamp [23:50:34]Write 4 bytes [23:50:34]NVStorageSaveData done [23:50:34]ExternCall_PrintAddStr [23:50:34]wPrintStart [23:50:34]Write to MH i2c: 01 00 00 BC 09 C5 [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 07 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: 01 07 00 BC 09 00 00 00 00 00 FF 0F DA [23:50:34]RasterBufferAndPrint [23:50:34]line Счет N : (3)73620 [23:50:34]line ИНН: 02508201610067 [23:50:34]line Контрольно-Кассовый Чек [23:50:34]line ПРОДАЖА [23:50:34]line Товар: 2000038180017 [23:50:34]line Кофе Моккочино (GABB TRADE) [23:50:34]line 1.000 * 120.00 [23:50:34]line = 120.00 [23:50:34]line НДС 12% НСП 1% [23:50:34]line > о реализуемом товаре [23:50:34]line Товар: 4700000310043 [23:50:34]line Вода Жалалабат 27 1л [23:50:34]line 1.000 * 60.00 [23:50:34]line = 60.00 [23:50:34]line НДС 12% НСП 1% [23:50:34]line > о реализуемом товаре [23:50:34]line ИТОГО: 180.00 [23:50:34]line НСП 1% : 1.59 [23:50:34]line НДС 12% : 19.11 [23:50:34]line Наличными: 180.00 [23:50:34]line Безнал.: 0.00 [23:50:34]line Место: АЗС № 117 "Партнер Нефть" [23:50:34]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [23:50:34]line СНО: Общий режим [23:50:34]line Чек 163 04.06.2024 23:50 [23:50:34]line Смена: 374 ФФД: 1.0 [23:50:34]line ЗНМ: 0300000031 [23:50:34]line РНМ: 0000000000092737 [23:50:34]line Версия ККМ: 001 [23:50:34]line ФМ: 0000000000875074 [23:50:34]line ФД: 64078 [23:50:34]line ФПД: 269533959676538 [23:50:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T235033&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64078&fm=269533959676538&tin=02508201610067®Number=0000000000092737&sum=18000 [23:50:34]line 0 [23:50:34]OFD Sender: Processing packet 64078 [packets to send 14, broken 13] [23:50:34]ProducePacketName [23:50:34]name=ofd_packets/00064078 [23:50:34]OFD Sender: To server: pG, [23:50:34]CommunicateWithHost lk.salyk.kg:30040 [23:50:34]ConnectInit lk.salyk.kg [23:50:34]written 0, free lines is 4095 [23:50:34]Connected sock=10 [23:50: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 98 01 00 00 B5 06 90 01 C8 60 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 38 31 38 30 30 31 37 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9C D0 BE D0 BA D0 BA D0 BE 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 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 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 49 A8 5F 66 0E 04 04 00 76 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E FA 00 00 35 04 06 00 F5 23 C3 EB E2 7A 16 67 BF 30 A7 B0 1A 71 [23:50: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 AB B6 47 00 6F 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4E FA 00 00 F4 03 04 00 56 54 5F 66 B6 04 01 00 00 03 E7 47 52 BC 4F 6C 8B [23:50:35]CommunicateWithHost err = 0 [23:50:35]CheckOFDResponse [23:50:35]1017 (14) - 77093643461234 [23:50:35]1041 (16) - 0000000000875074 [23:50:35]1040 (4) - 64078 [23:50:35]1012 (4) - 04.06.2024 17:52 [23:50:35]1206 (1) - 0 [23:50:35]OFD Sender: Remove packet 64078 [23:50:35]ProducePacketName [23:50:35]name=ofd_packets/00064078 [23:50:35]NVStorageDeleteData [23:50:35]Write to MH i2c: 01 00 00 EB 09 F4 [23:50:35]Write i2c OK [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: 01 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: 01 07 00 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 86 0C 8D [23:50:35]RasterBufferAndPrint [23:50:35]line [23:50:35]line [23:50:35]line [23:50:35]line [23:50:35]line [23:50:35]written 0, free lines is 3212 [23:50:35]MH_Cut [23:50:35]Write to MH i2c: D1 01 00 F2 09 01 CD [23:50:35]Write i2c OK [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: D1 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: D1 01 00 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: D1 01 00 F2 09 00 CC [23:50:35]Write to MH i2c: 01 00 00 F3 09 FC [23:50:35]Write i2c OK [23:50:35]MH_I2C_Read... [23:50:35]OFD Sender: No OFD packet to send [23:50:36]*** Cut start [23:50:36]*** Partial cut [23:50:36]*** CUTSNS_PIN = 1 [23:50:36]*** CUTSNS_PIN = 0 [23:50:36]*** Brake cut motor [23:50:36]Read from MH i2c: 01 [23:50:36]MH_I2C_Read... [23:50:36]*** Stop cut motor [23:50:36]*** Cut end [23:50:36]Read from MH i2c: 01 07 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: 01 07 00 F3 09 00 00 00 00 00 FF 0F 11 [23:50:36]process_action close_receipt done [23:50:36]requested_data is exist [23:50:36]produce_requested_data [23:50:36]requested_item fm.sn is exist - process it [23:50:36]wFMCommunicate request_size=4 [23:50:36]MH_SAM_APDU [23:50:36]CAPDU: 80 11 00 00 [23:50:36]Write to MH i2c: E2 08 00 F4 09 80 11 00 00 00 00 00 00 77 [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 17 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 17 00 F4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C9 [23:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:50:36]wFMCommunicate OK [23:50:36]requested_item fd.num is exist - process it [23:50:36]SAM_PROTO_GetFieldsCounters [23:50:36]wFMCommunicate request_size=4 [23:50:36]MH_SAM_APDU [23:50:36]CAPDU: 80 13 00 00 [23:50:36]Write to MH i2c: E2 08 00 F5 09 80 13 00 00 00 00 00 00 7A [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 62 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 62 00 F5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [23:50: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 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:36]wFMCommunicate OK [23:50:36]SAM_PROTO_GetFieldsCounters done [23:50:36]requested_item shift.num is exist - process it [23:50:36]requested_item shift.opened is exist - process it [23:50:36]req_shift_opened [23:50:36]FM_GetShiftState [23:50:36]SAM_PROTO_GetShiftState [23:50:36]wFMCommunicate request_size=4 [23:50:36]MH_SAM_APDU [23:50:36]CAPDU: 80 13 01 00 [23:50:36]Write to MH i2c: E2 08 00 F6 09 80 13 01 00 00 00 00 00 7C [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:37]Read from MH i2c: E2 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 0E 00 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 0E 00 F6 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1C [23:50:37]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:50:37]wFMCommunicate OK [23:50:37]SAM_PROTO_GetShiftState done [23:50:37]FM_GetShiftState done [23:50:37]req_shift_opened done [23:50:37]requested_item shift.open_date is exist - process it [23:50:37]req_shift_open_date [23:50:37]req_shift_open_date done [23:50:37]produce_requested_data done [23:50:37]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64078,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [23:50:37]process_action_free close_receipt [23:50:37]json_value_free [23:50:37]json_value_free done [23:50:37]process_json_proto returns [23:50:37]Send response to host [23:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64078,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [23:50:37]free response buf [23:50:37]execute_script done [23:50:37]execute_script returns [23:50:37]free content buf [23:50:37]Sock 9.Close socket [23:50:37]Sock 9.Thread stoped [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:12]accept exits with 8 [23:57:12]New connection [23:57:12]New thread 3067276644 created [23:57:12]Thread 3067133284 joined [23:57:12]Waiting for new connection... [23:57:12] Sock 8.Parse request [23:57:12]Sock 8.Check first char [23:57:12]Sock 8.First char is OK [23:57:12]request: POST /json_proto HTTP/1.0 [23:57:12]Method: POST [23:57:12]URL: /json_proto [23:57:12]Method is POST - this is cgi request [23:57:12]url: /json_proto [23:57:12]query_string will be loaded in cgi processing [23:57:12]execute_cgi json_proto POST (null) [23:57:12]execute_cgi path=json_proto method=POST [23:57:12]POST find Content-Length [23:57:12]Host: 172.17.60.69:8080 [23:57:12]Content-Length: 215 [23:57:12]Content-Type: application/json [23:57:12] [23:57:12]POST finish read [23:57:12]Found Content-Length = 215 [23:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:12]execute_script... [23:57:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:12]POST & json_proto [23:57:12]process_json_proto [23:57:12]json parsed OK: [23:57:12]protocol is kg_v1.0 [23:57:12]action value=get_value [23:57:12]process_action get_value [23:57:12]cmd_get_value [23:57:12]process_action get_value done [23:57:12]requested_data is exist [23:57:12]produce_requested_data [23:57:12]requested_item kkm.sn is exist - process it [23:57:12]requested_item kkm.ver is exist - process it [23:57:12]requested_item fm.sn is exist - process it [23:57:12]wFMCommunicate request_size=4 [23:57:12]MH_SAM_APDU [23:57:12]CAPDU: 80 11 00 00 [23:57:12]Write to MH i2c: E2 08 00 F7 09 80 11 00 00 00 00 00 00 7A [23:57:12]Write i2c OK [23:57:12]MH_I2C_Read... [23:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:12]Read from MH i2c: E2 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 17 00 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 17 00 F7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 CC [23:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:57:12]wFMCommunicate OK [23:57:12]requested_item fd.num is exist - process it [23:57:12]SAM_PROTO_GetFieldsCounters [23:57:12]wFMCommunicate request_size=4 [23:57:12]MH_SAM_APDU [23:57:12]CAPDU: 80 13 00 00 [23:57:12]Write to MH i2c: E2 08 00 F8 09 80 13 00 00 00 00 00 00 7D [23:57:12]Write i2c OK [23:57:12]MH_I2C_Read... [23:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:12]Read from MH i2c: E2 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 62 00 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 62 00 F8 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [23:57: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 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:12]wFMCommunicate OK [23:57:12]SAM_PROTO_GetFieldsCounters done [23:57:12]requested_item shift.num is exist - process it [23:57:12]requested_item shift.opened is exist - process it [23:57:12]req_shift_opened [23:57:12]FM_GetShiftState [23:57:12]SAM_PROTO_GetShiftState [23:57:12]wFMCommunicate request_size=4 [23:57:12]MH_SAM_APDU [23:57:12]CAPDU: 80 13 01 00 [23:57:12]Write to MH i2c: E2 08 00 F9 09 80 13 01 00 00 00 00 00 7F [23:57:12]Write i2c OK [23:57:12]MH_I2C_Read... [23:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:12]Read from MH i2c: E2 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 0E 00 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 0E 00 F9 09 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 1F [23:57:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:57:12]wFMCommunicate OK [23:57:12]SAM_PROTO_GetShiftState done [23:57:12]FM_GetShiftState done [23:57:12]req_shift_opened done [23:57:12]requested_item shift.open_date is exist - process it [23:57:12]req_shift_open_date [23:57:12]req_shift_open_date done [23:57:12]produce_requested_data done [23:57:12]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64078,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [23:57:12]process_action_free get_value [23:57:12]json_value_free [23:57:12]json_value_free done [23:57:12]process_json_proto returns [23:57:12]Send response to host [23:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64078,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [23:57:12]free response buf [23:57:12]execute_script done [23:57:12]execute_script returns [23:57:12]free content buf [23:57:12]Sock 8.Close socket [23:57:12]Sock 8.Thread stoped [23:57:12]accept exits with 9 [23:57:12]New connection [23:57:12]New thread 3067133284 created [23:57:12]Thread 3067276644 joined [23:57:12]Waiting for new connection... [23:57:12] Sock 9.Parse request [23:57:12]Sock 9.Check first char [23:57:12]Sock 9.First char is OK [23:57:12]request: POST /json_proto HTTP/1.0 [23:57:12]Method: POST [23:57:12]URL: /json_proto [23:57:12]Method is POST - this is cgi request [23:57:12]url: /json_proto [23:57:12]query_string will be loaded in cgi processing [23:57:12]execute_cgi json_proto POST (null) [23:57:12]execute_cgi path=json_proto method=POST [23:57:12]POST find Content-Length [23:57:12]Host: 172.17.60.69:8080 [23:57:12]Content-Length: 331 [23:57:12]Content-Type: application/json [23:57:12] [23:57:12]POST finish read [23:57:12]Found Content-Length = 331 [23:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:57:12]execute_script... [23:57:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:57:12]POST & json_proto [23:57:12]process_json_proto [23:57:12]json parsed OK: [23:57:12]protocol is kg_v1.0 [23:57:12]action value=get_value [23:57:12]process_action get_value [23:57:12]cmd_get_value [23:57:12]process_action get_value done [23:57:12]requested_data is exist [23:57:12]produce_requested_data [23:57:12]requested_item fm.sale.total is exist - process it [23:57:12]SAM_PROTO_GetFMData [23:57:12]wFMCommunicate request_size=4 [23:57:12]MH_SAM_APDU [23:57:12]CAPDU: 80 13 03 00 [23:57:12]Write to MH i2c: E2 08 00 FA 09 80 13 03 00 00 00 00 00 82 [23:57:12]Write i2c OK [23:57:12]MH_I2C_Read... [23:57:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:57:13]Read from MH i2c: E2 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 FD 00 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 FD 00 FA 09 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 C3 [23:57:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [23:57:13]wFMCommunicate OK [23:57:13]wFMCommunicate request_size=4 [23:57:13]MH_SAM_APDU [23:57:13]CAPDU: 80 17 00 00 [23:57:13]Write to MH i2c: E2 08 00 FB 09 80 17 00 00 00 00 00 00 84 [23:57:13]Write i2c OK [23:57:13]MH_I2C_Read... [23:57:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:13]Read from MH i2c: E2 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 FD 00 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 FD 00 FB 09 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 2D [23:57:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 [23:57:13]wFMCommunicate OK [23:57:13]wFMCommunicate request_size=4 [23:57:13]MH_SAM_APDU [23:57:13]CAPDU: 80 17 00 00 [23:57:13]Write to MH i2c: E2 08 00 FC 09 80 17 00 00 00 00 00 00 85 [23:57:13]Write i2c OK [23:57:13]MH_I2C_Read... [23:57:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:13]Read from MH i2c: E2 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 FD 00 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 FD 00 FC 09 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 97 [23:57:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:57:13]wFMCommunicate OK [23:57:13]wFMCommunicate request_size=4 [23:57:13]MH_SAM_APDU [23:57:13]CAPDU: 80 17 00 00 [23:57:13]Write to MH i2c: E2 08 00 FD 09 80 17 00 00 00 00 00 00 86 [23:57:13]Write i2c OK [23:57:13]MH_I2C_Read... [23:57:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:13]Read from MH i2c: E2 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 FD 00 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 FD 00 FD 09 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 12 [23:57:13]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:57:13]wFMCommunicate OK [23:57:13]wFMCommunicate request_size=4 [23:57:13]MH_SAM_APDU [23:57:13]CAPDU: 80 17 00 00 [23:57:13]Write to MH i2c: E2 08 00 FE 09 80 17 00 00 00 00 00 00 87 [23:57:13]Write i2c OK [23:57:13]MH_I2C_Read... [23:57:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:57:14]Read from MH i2c: E2 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 E2 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 E2 00 FE 09 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [23:57:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:57:14]wFMCommunicate OK [23:57:14]SAM_PROTO_GetFMData done [23:57:14]requested_item fm.sale_refund.total is exist - process it [23:57:14]requested_item fm.buy.total is exist - process it [23:57:14]requested_item shift.sale.total is exist - process it [23:57:14]SAM_PROTO_GetShiftData [23:57:14]wFMCommunicate request_size=4 [23:57:14]MH_SAM_APDU [23:57:14]CAPDU: 80 13 02 00 [23:57:14]Write to MH i2c: E2 08 00 FF 09 80 13 02 00 00 00 00 00 86 [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:57:14]Read from MH i2c: E2 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 FD 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 FD 00 FF 09 00 B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 B2 [23:57:14]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:57:14]wFMCommunicate OK [23:57:14]wFMCommunicate request_size=4 [23:57:14]MH_SAM_APDU [23:57:14]CAPDU: 80 17 00 00 [23:57:14]Write to MH i2c: E2 08 00 00 0A 80 17 00 00 00 00 00 00 8A [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:14]Read from MH i2c: E2 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 FD 00 [23:57:14]MH_I2C_Read... [23:57:14]Read from MH i2c: E2 FD 00 00 0A 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 CC [23:57:14]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:57:14]wFMCommunicate OK [23:57:14]wFMCommunicate request_size=4 [23:57:14]MH_SAM_APDU [23:57:14]CAPDU: 80 17 00 00 [23:57:14]Write to MH i2c: E2 08 00 01 0A 80 17 00 00 00 00 00 00 8B [23:57:14]Write i2c OK [23:57:14]MH_I2C_Read... [23:57:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:15]Read from MH i2c: E2 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: E2 FD 00 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: E2 FD 00 01 0A 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [23:57:15]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:15]wFMCommunicate OK [23:57:15]wFMCommunicate request_size=4 [23:57:15]MH_SAM_APDU [23:57:15]CAPDU: 80 17 00 00 [23:57:15]Write to MH i2c: E2 08 00 02 0A 80 17 00 00 00 00 00 00 8C [23:57:15]Write i2c OK [23:57:15]MH_I2C_Read... [23:57:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:15]Read from MH i2c: E2 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: E2 FD 00 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: E2 FD 00 02 0A 00 EF 03 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 90 00 04 [23:57:15]RAPDU: EF 03 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 90 00 [23:57:15]wFMCommunicate OK [23:57:15]wFMCommunicate request_size=4 [23:57:15]MH_SAM_APDU [23:57:15]CAPDU: 80 17 00 00 [23:57:15]Write to MH i2c: E2 08 00 03 0A 80 17 00 00 00 00 00 00 8D [23:57:15]Write i2c OK [23:57:15]MH_I2C_Read... [23:57:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:57:15]Read from MH i2c: E2 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: E2 D6 00 [23:57:15]MH_I2C_Read... [23:57:15]Read from MH i2c: E2 D6 00 03 0A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [23:57:15]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:57:15]wFMCommunicate OK [23:57:15]SAM_PROTO_GetShiftData done [23:57:15]requested_item shift.sale.total_cash is exist - process it [23:57:15]requested_item shift.sale_refund.total is exist - process it [23:57:15]requested_item shift.sale_refund.total_cash is exist - process it [23:57:15]requested_item shift.buy.total is exist - process it [23:57:15]requested_item shift.buy.total_cash is exist - process it [23:57:15]produce_requested_data done [23:57:15]produce_requested_data return {"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:57:15]process_action_free get_value [23:57:15]json_value_free [23:57:15]json_value_free done [23:57:15]process_json_proto returns [23:57:15]Send response to host [23:57:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:57:15]free response buf [23:57:15]execute_script done [23:57:15]execute_script returns [23:57:15]free content buf [23:57:15]Sock 9.Close socket [23:57:15]Sock 9.Thread stoped [23:57:15]OFD Sender: No OFD packet to send [23:57:16]accept exits with 8 [23:57:16]New connection [23:57:16]New thread 3067276644 created [23:57:16]Thread 3067133284 joined [23:57:16]Waiting for new connection... [23:57:16] Sock 8.Parse request [23:57:16]Sock 8.Check first char [23:57:16]Sock 8.First char is OK [23:57:16]request: POST /json_proto HTTP/1.0 [23:57:16]Method: POST [23:57:16]URL: /json_proto [23:57:16]Method is POST - this is cgi request [23:57:16]url: /json_proto [23:57:16]query_string will be loaded in cgi processing [23:57:16]execute_cgi json_proto POST (null) [23:57:16]execute_cgi path=json_proto method=POST [23:57:16]POST find Content-Length [23:57:16]Host: 172.17.60.69:8080 [23:57:16]Content-Length: 331 [23:57:16]Content-Type: application/json [23:57:16] [23:57:16]POST finish read [23:57:16]Found Content-Length = 331 [23:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:57:16]execute_script... [23:57:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:57:16]POST & json_proto [23:57:16]process_json_proto [23:57:16]json parsed OK: [23:57:16]protocol is kg_v1.0 [23:57:16]action value=get_value [23:57:16]process_action get_value [23:57:16]cmd_get_value [23:57:16]process_action get_value done [23:57:16]requested_data is exist [23:57:16]produce_requested_data [23:57:16]requested_item fm.sale.total is exist - process it [23:57:16]SAM_PROTO_GetFMData [23:57:16]wFMCommunicate request_size=4 [23:57:16]MH_SAM_APDU [23:57:16]CAPDU: 80 13 03 00 [23:57:16]Write to MH i2c: E2 08 00 04 0A 80 13 03 00 00 00 00 00 8D [23:57:16]Write i2c OK [23:57:16]MH_I2C_Read... [23:57:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:57:16]Read from MH i2c: E2 [23:57:16]MH_I2C_Read... [23:57:16]Read from MH i2c: E2 FD 00 [23:57:16]MH_I2C_Read... [23:57:16]Read from MH i2c: E2 FD 00 04 0A 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 CE [23:57:16]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [23:57:16]wFMCommunicate OK [23:57:16]wFMCommunicate request_size=4 [23:57:16]MH_SAM_APDU [23:57:16]CAPDU: 80 17 00 00 [23:57:16]Write to MH i2c: E2 08 00 05 0A 80 17 00 00 00 00 00 00 8F [23:57:16]Write i2c OK [23:57:16]MH_I2C_Read... [23:57:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:16]Read from MH i2c: E2 [23:57:16]MH_I2C_Read... [23:57:16]Read from MH i2c: E2 FD 00 [23:57:16]MH_I2C_Read... [23:57:16]Read from MH i2c: E2 FD 00 05 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 38 [23:57: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 FB F1 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 [23:57:16]wFMCommunicate OK [23:57:16]wFMCommunicate request_size=4 [23:57:16]MH_SAM_APDU [23:57:16]CAPDU: 80 17 00 00 [23:57:16]Write to MH i2c: E2 08 00 06 0A 80 17 00 00 00 00 00 00 90 [23:57:16]Write i2c OK [23:57:16]MH_I2C_Read... [23:57:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:17]Read from MH i2c: E2 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 FD 00 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 FD 00 06 0A 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 A2 [23:57:17]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:57:17]wFMCommunicate OK [23:57:17]wFMCommunicate request_size=4 [23:57:17]MH_SAM_APDU [23:57:17]CAPDU: 80 17 00 00 [23:57:17]Write to MH i2c: E2 08 00 07 0A 80 17 00 00 00 00 00 00 91 [23:57:17]Write i2c OK [23:57:17]MH_I2C_Read... [23:57:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:17]Read from MH i2c: E2 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 FD 00 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 FD 00 07 0A 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 1D [23:57: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 [23:57:17]wFMCommunicate OK [23:57:17]wFMCommunicate request_size=4 [23:57:17]MH_SAM_APDU [23:57:17]CAPDU: 80 17 00 00 [23:57:17]Write to MH i2c: E2 08 00 08 0A 80 17 00 00 00 00 00 00 92 [23:57:17]Write i2c OK [23:57:17]MH_I2C_Read... [23:57:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:57:17]Read from MH i2c: E2 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 E2 00 [23:57:17]MH_I2C_Read... [23:57:17]Read from MH i2c: E2 E2 00 08 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:57:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:57:17]wFMCommunicate OK [23:57:17]SAM_PROTO_GetFMData done [23:57:17]requested_item fm.sale_refund.total is exist - process it [23:57:17]requested_item fm.buy.total is exist - process it [23:57:17]requested_item shift.sale.total is exist - process it [23:57:17]SAM_PROTO_GetShiftData [23:57:17]wFMCommunicate request_size=4 [23:57:17]MH_SAM_APDU [23:57:17]CAPDU: 80 13 02 00 [23:57:17]Write to MH i2c: E2 08 00 09 0A 80 13 02 00 00 00 00 00 91 [23:57:17]Write i2c OK [23:57:17]MH_I2C_Read... [23:57:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:57:18]Read from MH i2c: E2 [23:57:18]MH_I2C_Read... [23:57:18]Read from MH i2c: E2 FD 00 [23:57:18]MH_I2C_Read... [23:57:18]Read from MH i2c: E2 FD 00 09 0A 00 B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 BD [23:57:18]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:57:18]wFMCommunicate OK [23:57:18]wFMCommunicate request_size=4 [23:57:18]MH_SAM_APDU [23:57:18]CAPDU: 80 17 00 00 [23:57:18]Write to MH i2c: E2 08 00 0A 0A 80 17 00 00 00 00 00 00 94 [23:57:18]Write i2c OK [23:57:18]MH_I2C_Read... [23:57:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:18]Read from MH i2c: E2 [23:57:18]MH_I2C_Read... [23:57:18]Read from MH i2c: E2 FD 00 [23:57:18]MH_I2C_Read... [23:57:18]Read from MH i2c: E2 FD 00 0A 0A 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D6 [23:57:18]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:57:18]wFMCommunicate OK [23:57:18]wFMCommunicate request_size=4 [23:57:18]MH_SAM_APDU [23:57:18]CAPDU: 80 17 00 00 [23:57:18]Write to MH i2c: E2 08 00 0B 0A 80 17 00 00 00 00 00 00 95 [23:57:18]Write i2c OK [23:57:18]MH_I2C_Read... [23:57:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:19]Read from MH i2c: E2 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: E2 FD 00 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: E2 FD 00 0B 0A 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BD [23:57:19]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:19]wFMCommunicate OK [23:57:19]wFMCommunicate request_size=4 [23:57:19]MH_SAM_APDU [23:57:19]CAPDU: 80 17 00 00 [23:57:19]Write to MH i2c: E2 08 00 0C 0A 80 17 00 00 00 00 00 00 96 [23:57:19]Write i2c OK [23:57:19]MH_I2C_Read... [23:57:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:19]Read from MH i2c: E2 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: E2 FD 00 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: E2 FD 00 0C 0A 00 EF 03 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 90 00 0E [23:57:19]RAPDU: EF 03 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 90 00 [23:57:19]wFMCommunicate OK [23:57:19]wFMCommunicate request_size=4 [23:57:19]MH_SAM_APDU [23:57:19]CAPDU: 80 17 00 00 [23:57:19]Write to MH i2c: E2 08 00 0D 0A 80 17 00 00 00 00 00 00 97 [23:57:19]Write i2c OK [23:57:19]MH_I2C_Read... [23:57:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:57:20]Read from MH i2c: E2 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 D6 00 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 D6 00 0D 0A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 79 [23:57:20]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:57:20]wFMCommunicate OK [23:57:20]SAM_PROTO_GetShiftData done [23:57:20]requested_item shift.sale.total_cash is exist - process it [23:57:20]requested_item shift.sale_refund.total is exist - process it [23:57:20]requested_item shift.sale_refund.total_cash is exist - process it [23:57:20]requested_item shift.buy.total is exist - process it [23:57:20]requested_item shift.buy.total_cash is exist - process it [23:57:20]produce_requested_data done [23:57:20]produce_requested_data return {"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:57:20]process_action_free get_value [23:57:20]json_value_free [23:57:20]json_value_free done [23:57:20]process_json_proto returns [23:57:20]Send response to host [23:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:57:20]free response buf [23:57:20]execute_script done [23:57:20]execute_script returns [23:57:20]free content buf [23:57:20]Sock 8.Close socket [23:57:20]Sock 8.Thread stoped [23:57:20]accept exits with 10 [23:57:20]New connection [23:57:20]New thread 3067133284 created [23:57:20]Thread 3067276644 joined [23:57:20]Waiting for new connection... [23:57:20] Sock 10.Parse request [23:57:20]Sock 10.Check first char [23:57:20]Sock 10.First char is OK [23:57:20]request: POST /json_proto HTTP/1.0 [23:57:20]Method: POST [23:57:20]URL: /json_proto [23:57:20]Method is POST - this is cgi request [23:57:20]url: /json_proto [23:57:20]query_string will be loaded in cgi processing [23:57:20]execute_cgi json_proto POST (null) [23:57:20]execute_cgi path=json_proto method=POST [23:57:20]POST find Content-Length [23:57:20]Host: 172.17.60.69:8080 [23:57:20]Content-Length: 245 [23:57:20]Content-Type: application/json [23:57:20] [23:57:20]POST finish read [23:57:20]Found Content-Length = 245 [23:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0438\u043A\u0441\u0430\u0439 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:20]execute_script... [23:57:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0438\u043A\u0441\u0430\u0439 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:20]POST & json_proto [23:57:20]process_json_proto [23:57:20]json parsed OK: [23:57:20]protocol is kg_v1.0 [23:57:20]action value=x_report [23:57:20]process_action x_report [23:57:20]cmd_x_report [23:57:20]MH_GetDate [23:57:20]Write to MH i2c: F0 00 00 0E 0A 07 [23:57:20]Write i2c OK [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: F0 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: F0 09 00 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: F0 09 00 0E 0A 00 E0 A9 5F 66 D2 83 5F 66 78 [23:57:20]GetLastDocTimeStamp 1717545033 [23:57:20]current date 1717545440 [23:57:20]FM_GetShiftState [23:57:20]SAM_PROTO_GetShiftState [23:57:20]wFMCommunicate request_size=4 [23:57:20]MH_SAM_APDU [23:57:20]CAPDU: 80 13 01 00 [23:57:20]Write to MH i2c: E2 08 00 0F 0A 80 13 01 00 00 00 00 00 96 [23:57:20]Write i2c OK [23:57:20]MH_I2C_Read... [23:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:20]Read from MH i2c: E2 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 0E 00 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 0E 00 0F 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 36 [23:57:20]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:57:20]wFMCommunicate OK [23:57:20]SAM_PROTO_GetShiftState done [23:57:20]FM_GetShiftState done [23:57:20]KKMCreateXReportDocument [23:57:20]Load OK [23:57:20]Malloc new data [23:57:20]MH_GetDate [23:57:20]Write to MH i2c: F0 00 00 10 0A 09 [23:57:20]Write i2c OK [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: F0 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: F0 09 00 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: F0 09 00 10 0A 00 E0 A9 5F 66 D2 83 5F 66 7A [23:57:20]Malloc new data [23:57:20]Malloc new data [23:57:20]wFMCommunicate request_size=4 [23:57:20]MH_SAM_APDU [23:57:20]CAPDU: 80 11 00 00 [23:57:20]Write to MH i2c: E2 08 00 11 0A 80 11 00 00 00 00 00 00 95 [23:57:20]Write i2c OK [23:57:20]MH_I2C_Read... [23:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:20]Read from MH i2c: E2 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 17 00 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 17 00 11 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 E7 [23:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:57:20]wFMCommunicate OK [23:57:20]SAM_PROTO_GetFieldsCounters [23:57:20]wFMCommunicate request_size=4 [23:57:20]MH_SAM_APDU [23:57:20]CAPDU: 80 13 00 00 [23:57:20]Write to MH i2c: E2 08 00 12 0A 80 13 00 00 00 00 00 00 98 [23:57:20]Write i2c OK [23:57:20]MH_I2C_Read... [23:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:20]Read from MH i2c: E2 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 62 00 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 62 00 12 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [23:57:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:20]wFMCommunicate OK [23:57:20]SAM_PROTO_GetFieldsCounters done [23:57:20]Malloc new data [23:57:20]Malloc new data [23:57:20]Malloc new data [23:57:20]KKMCreateXReportDocument OK [23:57:20]KKMSetXReportData OK [23:57:20]KKMPrepareXReportFMData [23:57:20]SAM_PROTO_GetShiftData [23:57:20]wFMCommunicate request_size=4 [23:57:20]MH_SAM_APDU [23:57:20]CAPDU: 80 13 02 00 [23:57:20]Write to MH i2c: E2 08 00 13 0A 80 13 02 00 00 00 00 00 9B [23:57:20]Write i2c OK [23:57:20]MH_I2C_Read... [23:57:21]OFD Sender: No OFD packet to send [23:57:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:57:21]Read from MH i2c: E2 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: E2 FD 00 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: E2 FD 00 13 0A 00 B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 C7 [23:57:21]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:57:21]wFMCommunicate OK [23:57:21]wFMCommunicate request_size=4 [23:57:21]MH_SAM_APDU [23:57:21]CAPDU: 80 17 00 00 [23:57:21]Write to MH i2c: E2 08 00 14 0A 80 17 00 00 00 00 00 00 9E [23:57:21]Write i2c OK [23:57:21]MH_I2C_Read... [23:57:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:21]Read from MH i2c: E2 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: E2 FD 00 [23:57:21]MH_I2C_Read... [23:57:21]Read from MH i2c: E2 FD 00 14 0A 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E0 [23:57:21]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:57:21]wFMCommunicate OK [23:57:21]wFMCommunicate request_size=4 [23:57:21]MH_SAM_APDU [23:57:21]CAPDU: 80 17 00 00 [23:57:21]Write to MH i2c: E2 08 00 15 0A 80 17 00 00 00 00 00 00 9F [23:57:21]Write i2c OK [23:57:21]MH_I2C_Read... [23:57:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:22]Read from MH i2c: E2 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 FD 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 FD 00 15 0A 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [23:57:22]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:22]wFMCommunicate OK [23:57:22]wFMCommunicate request_size=4 [23:57:22]MH_SAM_APDU [23:57:22]CAPDU: 80 17 00 00 [23:57:22]Write to MH i2c: E2 08 00 16 0A 80 17 00 00 00 00 00 00 A0 [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:22]Read from MH i2c: E2 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 FD 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 FD 00 16 0A 00 EF 03 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 90 00 18 [23:57:22]RAPDU: EF 03 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 90 00 [23:57:22]wFMCommunicate OK [23:57:22]wFMCommunicate request_size=4 [23:57:22]MH_SAM_APDU [23:57:22]CAPDU: 80 17 00 00 [23:57:22]Write to MH i2c: E2 08 00 17 0A 80 17 00 00 00 00 00 00 A1 [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:57:22]Read from MH i2c: E2 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 D6 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 D6 00 17 0A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 83 [23:57:23]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:57:23]wFMCommunicate OK [23:57:23]SAM_PROTO_GetShiftData done [23:57:23]1194 (1205) - счетчики итогов смены [23:57:23] 1134 (4) - 163 - количество чеков со всеми признаками расчетов [23:57:23] 1129 (155) - счетчики операций «приход» [23:57:23] 1135 (4) - 159 - количество чеков по признаку расчетов [23:57:23] 1201 (3) - 51525.40 - общая итоговая сумма в чеках [23:57:23] 1136 (3) - 41315.00 - итоговая сумма в чеках наличными [23:57:23] 1138 (3) - 10210.40 - итоговая сумма в чеках безналичными [23:57:23] 1024 (122) - суммы налогов [23:57:23] 1006 (9) - суммы НДС [23:57:23] 1010 (1) - 0% - код ставки НДС [23:57:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:23] 1006 (12) - суммы НДС [23:57:23] 1010 (1) - 12% - код ставки НДС [23:57:23] 1011 (3) - 5472.54 - сумма НДС по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 0% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (11) - суммы НСП [23:57:23] 1014 (1) - 1% - код ставки НСП [23:57:23] 1015 (2) - 455.98 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 2% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 3% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 5% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 0,50% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 1,50% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1130 (152) - счетчики операций «возврат прихода» [23:57:23] 1135 (4) - 4 - количество чеков по признаку расчетов [23:57:23] 1201 (3) - 724.00 - общая итоговая сумма в чеках [23:57:23] 1136 (2) - 629.00 - итоговая сумма в чеках наличными [23:57:23] 1138 (2) - 95.00 - итоговая сумма в чеках безналичными [23:57:23] 1024 (121) - суммы налогов [23:57:23] 1006 (9) - суммы НДС [23:57:23] 1010 (1) - 0% - код ставки НДС [23:57:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:23] 1006 (11) - суммы НДС [23:57:23] 1010 (1) - 12% - код ставки НДС [23:57:23] 1011 (2) - 76.88 - сумма НДС по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 0% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (11) - суммы НСП [23:57:23] 1014 (1) - 1% - код ставки НСП [23:57:23] 1015 (2) - 6.41 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 2% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 3% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 5% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 0,50% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 1,50% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1131 (141) - счетчики операций «расход» [23:57:23] 1135 (4) - 0 - количество чеков по признаку расчетов [23:57:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:57:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:57:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:57:23] 1024 (117) - суммы налогов [23:57:23] 1006 (9) - суммы НДС [23:57:23] 1010 (1) - 0% - код ставки НДС [23:57:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:23] 1006 (9) - суммы НДС [23:57:23] 1010 (1) - 12% - код ставки НДС [23:57:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 0% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 1% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 2% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 3% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 5% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 0,50% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 1,50% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1132 (141) - счетчики операций «возврат расхода» [23:57:23] 1135 (4) - 0 - количество чеков по признаку расчетов [23:57:23] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:57:23] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:57:23] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:57:23] 1024 (117) - суммы налогов [23:57:23] 1006 (9) - суммы НДС [23:57:23] 1010 (1) - 0% - код ставки НДС [23:57:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:23] 1006 (9) - суммы НДС [23:57:23] 1010 (1) - 12% - код ставки НДС [23:57:23] 1011 (0) - 0.00 - сумма НДС по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 0% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 1% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 2% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 3% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 5% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 0,50% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1007 (9) - суммы НСП [23:57:23] 1014 (1) - 1,50% - код ставки НСП [23:57:23] 1015 (0) - 0.00 - сумма НСП по ставке [23:57:23] 1133 (588) - - счетчики коррекции - не используются [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1194 (04AA) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1134 (046E) [23:57:23]Malloc new data [23:57:23]Processing tag 1129 (0469) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1135 (046F) [23:57:23]Malloc new data [23:57:23]Processing tag 1201 (04B1) [23:57:23]Malloc new data [23:57:23]Processing tag 1136 (0470) [23:57:23]Malloc new data [23:57:23]Processing tag 1138 (0472) [23:57:23]Malloc new data [23:57:23]Processing tag 1024 (0400) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1006 (03EE) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1010 (03F2) [23:57:23]Malloc new data [23:57:23]Processing tag 1011 (03F3) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1006 (03EE) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1010 (03F2) [23:57:23]Malloc new data [23:57:23]Processing tag 1011 (03F3) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]SetTLVBufToDocument err=0 [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1130 (046A) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1135 (046F) [23:57:23]Malloc new data [23:57:23]Processing tag 1201 (04B1) [23:57:23]Malloc new data [23:57:23]Processing tag 1136 (0470) [23:57:23]Malloc new data [23:57:23]Processing tag 1138 (0472) [23:57:23]Malloc new data [23:57:23]Processing tag 1024 (0400) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1006 (03EE) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1010 (03F2) [23:57:23]Malloc new data [23:57:23]Processing tag 1011 (03F3) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1006 (03EE) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1010 (03F2) [23:57:23]Malloc new data [23:57:23]Processing tag 1011 (03F3) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]SetTLVBufToDocument err=0 [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1131 (046B) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1135 (046F) [23:57:23]Malloc new data [23:57:23]Processing tag 1201 (04B1) [23:57:23]Malloc new data [23:57:23]Processing tag 1136 (0470) [23:57:23]Malloc new data [23:57:23]Processing tag 1138 (0472) [23:57:23]Malloc new data [23:57:23]Processing tag 1024 (0400) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1006 (03EE) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1010 (03F2) [23:57:23]Malloc new data [23:57:23]Processing tag 1011 (03F3) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1006 (03EE) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1010 (03F2) [23:57:23]Malloc new data [23:57:23]Processing tag 1011 (03F3) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:23]Malloc new data [23:57:23]SetTLVBufToDocument err=0 [23:57:23]Processing tag 1007 (03EF) [23:57:23]Load OK [23:57:23]SetTLVBufToDocument [23:57:23]Processing tag 1014 (03F6) [23:57:23]Malloc new data [23:57:23]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1007 (03EF) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1014 (03F6) [23:57:24]Malloc new data [23:57:24]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1007 (03EF) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1014 (03F6) [23:57:24]Malloc new data [23:57:24]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]SetTLVBufToDocument err=0 [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1132 (046C) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1135 (046F) [23:57:24]Malloc new data [23:57:24]Processing tag 1201 (04B1) [23:57:24]Malloc new data [23:57:24]Processing tag 1136 (0470) [23:57:24]Malloc new data [23:57:24]Processing tag 1138 (0472) [23:57:24]Malloc new data [23:57:24]Processing tag 1024 (0400) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1006 (03EE) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1010 (03F2) [23:57:24]Malloc new data [23:57:24]Processing tag 1011 (03F3) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1006 (03EE) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1010 (03F2) [23:57:24]Malloc new data [23:57:24]Processing tag 1011 (03F3) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1007 (03EF) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1014 (03F6) [23:57:24]Malloc new data [23:57:24]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1007 (03EF) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1014 (03F6) [23:57:24]Malloc new data [23:57:24]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1007 (03EF) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1014 (03F6) [23:57:24]Malloc new data [23:57:24]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1007 (03EF) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1014 (03F6) [23:57:24]Malloc new data [23:57:24]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1007 (03EF) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1014 (03F6) [23:57:24]Malloc new data [23:57:24]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1007 (03EF) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1014 (03F6) [23:57:24]Malloc new data [23:57:24]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1007 (03EF) [23:57:24]Load OK [23:57:24]SetTLVBufToDocument [23:57:24]Processing tag 1014 (03F6) [23:57:24]Malloc new data [23:57:24]Processing tag 1015 (03F7) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]SetTLVBufToDocument err=0 [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Processing tag 1133 (046D) [23:57:24]Malloc new data [23:57:24]SetTLVBufToDocument err=0 [23:57:24]SetTLVBufToDocument err=0 [23:57:24]Malloc new data [23:57:24]SAM_PROTO_GetFMData [23:57:24]wFMCommunicate request_size=4 [23:57:24]MH_SAM_APDU [23:57:24]CAPDU: 80 13 03 00 [23:57:24]Write to MH i2c: E2 08 00 18 0A 80 13 03 00 00 00 00 00 A1 [23:57:24]Write i2c OK [23:57:24]MH_I2C_Read... [23:57:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:57:24]Read from MH i2c: E2 [23:57:24]MH_I2C_Read... [23:57:24]Read from MH i2c: E2 FD 00 [23:57:24]MH_I2C_Read... [23:57:24]Read from MH i2c: E2 FD 00 18 0A 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 E2 [23:57:24]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [23:57:24]wFMCommunicate OK [23:57:24]wFMCommunicate request_size=4 [23:57:24]MH_SAM_APDU [23:57:24]CAPDU: 80 17 00 00 [23:57:24]Write to MH i2c: E2 08 00 19 0A 80 17 00 00 00 00 00 00 A3 [23:57:24]Write i2c OK [23:57:24]MH_I2C_Read... [23:57:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:25]Read from MH i2c: E2 [23:57:25]MH_I2C_Read... [23:57:25]Read from MH i2c: E2 FD 00 [23:57:25]MH_I2C_Read... [23:57:25]Read from MH i2c: E2 FD 00 19 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 4C [23:57:25]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 [23:57:25]wFMCommunicate OK [23:57:25]wFMCommunicate request_size=4 [23:57:25]MH_SAM_APDU [23:57:25]CAPDU: 80 17 00 00 [23:57:25]Write to MH i2c: E2 08 00 1A 0A 80 17 00 00 00 00 00 00 A4 [23:57:25]Write i2c OK [23:57:25]MH_I2C_Read... [23:57:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:25]Read from MH i2c: E2 [23:57:25]MH_I2C_Read... [23:57:25]Read from MH i2c: E2 FD 00 [23:57:25]MH_I2C_Read... [23:57:25]Read from MH i2c: E2 FD 00 1A 0A 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 B6 [23:57:25]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:57:26]wFMCommunicate OK [23:57:26]wFMCommunicate request_size=4 [23:57:26]MH_SAM_APDU [23:57:26]CAPDU: 80 17 00 00 [23:57:26]Write to MH i2c: E2 08 00 1B 0A 80 17 00 00 00 00 00 00 A5 [23:57:26]Write i2c OK [23:57:26]MH_I2C_Read... [23:57:26]OFD Sender: No OFD packet to send [23:57:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:26]Read from MH i2c: E2 [23:57:26]MH_I2C_Read... [23:57:26]Read from MH i2c: E2 FD 00 [23:57:26]MH_I2C_Read... [23:57:26]Read from MH i2c: E2 FD 00 1B 0A 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 31 [23:57:26]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:57:26]wFMCommunicate OK [23:57:26]wFMCommunicate request_size=4 [23:57:26]MH_SAM_APDU [23:57:26]CAPDU: 80 17 00 00 [23:57:26]Write to MH i2c: E2 08 00 1C 0A 80 17 00 00 00 00 00 00 A6 [23:57:26]Write i2c OK [23:57:26]MH_I2C_Read... [23:57:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:57:26]Read from MH i2c: E2 [23:57:26]MH_I2C_Read... [23:57:26]Read from MH i2c: E2 E2 00 [23:57:26]MH_I2C_Read... [23:57:26]Read from MH i2c: E2 E2 00 1C 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 84 [23:57:26]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:57:27]wFMCommunicate OK [23:57:27]SAM_PROTO_GetFMData done [23:57:27]FM_GetFMData:85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 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 FB F1 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 [23:57:27]oper:6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 [23:57:27]total:CD 9F 12 77 [23:57:27]Malloc new data [23:57:27]oper:6F 04 04 00 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 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 FB F1 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 [23:57:27]total:B4 D5 81 03 [23:57:27]Malloc new data [23:57:27]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:57:27]total: [23:57:27]Malloc new data [23:57:27]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:57:28]total: [23:57:28]Malloc new data [23:57:28]KKMPrepareXReportFMData err=0 [23:57:28]Х отчет ИНН: 02508201610067 Кассир: Сиксай К. 04.06.2024 23:57 Смена: 266 РНМ: 0000000000092737 ЗНМ: 0300000031 СНО: Общий режим Всего чеков: 163 ИТОГИ ПРИХОД Чеков: 159 Общий итог: 51525.40 Итого наличными: 41315.00 Итого безнал.: 10210.40 НДС 0% : 0.00 НДС 12% : 5472.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 455.98 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 724.00 Итого наличными: 629.00 Итого безнал.: 95.00 НДС 0% : 0.00 НДС 12% : 76.88 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 6.41 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 40686.00 НС Приход: 19977092.61 НС Возвр.Прихода: 588405.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875074 [23:57:28]StoreToDocumentArchive [23:57:28]MH_GetDate [23:57:28]Write to MH i2c: F0 00 00 1D 0A 16 [23:57:28]Write i2c OK [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: F0 [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: F0 09 00 [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: F0 09 00 1D 0A 00 E8 A9 5F 66 D2 83 5F 66 8F [23:57:28]shift 266 fd 1717545448 [23:57:28]Create dir for shift 0266 [23:57:28]save to /storage/0266/doc_1717545448 [23:57:28]save last doc name /storage/0266/doc_1717545448 to /storage/kkm_last_doc_name [23:57:28]save OK [23:57:28]Clear old archive folders... [23:57:28]NVStorageSaveData kkm_last_timestamp [23:57:28]File name is /storage/kkm_last_timestamp [23:57:28]Write 4 bytes [23:57:28]NVStorageSaveData done [23:57:28]ExternCall_PrintAddStr [23:57:28]wPrintStart [23:57:28]Write to MH i2c: 01 00 00 1E 0A 28 [23:57:28]Write i2c OK [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: 01 [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: 01 07 00 [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: 01 07 00 1E 0A 00 00 00 00 00 FF 0F 3D [23:57:28]RasterBufferAndPrint [23:57:28]line Х отчет [23:57:28]line ИНН: 02508201610067 [23:57:28]line Кассир: Сиксай К. [23:57:28]line 04.06.2024 23:57 [23:57:28]line Смена: 266 [23:57:28]line РНМ: 0000000000092737 [23:57:28]line ЗНМ: 0300000031 [23:57:28]line СНО: Общий режим [23:57:28]line Всего чеков: 163 [23:57:28]line ИТОГИ ПРИХОД [23:57:28]line Чеков: 159 [23:57:28]line Общий итог: 51525.40 [23:57:28]line Итого наличными: 41315.00 [23:57:28]line Итого безнал.: 10210.40 [23:57:28]line НДС 0% : 0.00 [23:57:28]line НДС 12% : 5472.54 [23:57:28]line НСП 0% : 0.00 [23:57:28]line НСП 1,50% : 0.00 [23:57:28]line НСП 0,50% : 0.00 [23:57:28]line НСП 5% : 0.00 [23:57:28]line НСП 3% : 0.00 [23:57:28]line НСП 2% : 0.00 [23:57:28]line НСП 1% : 455.98 [23:57:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:57:28]line Чеков: 4 [23:57:28]line Общий итог: 724.00 [23:57:28]line Итого наличными: 629.00 [23:57:28]line Итого безнал.: 95.00 [23:57:28]line НДС 0% : 0.00 [23:57:28]line НДС 12% : 76.88 [23:57:28]line НСП 0% : 0.00 [23:57:28]line НСП 1,50% : 0.00 [23:57:28]line НСП 0,50% : 0.00 [23:57:28]line НСП 5% : 0.00 [23:57:28]line НСП 3% : 0.00 [23:57:28]line НСП 2% : 0.00 [23:57:28]line НСП 1% : 6.41 [23:57:28]line ИТОГИ РАСХОД [23:57:28]line Чеков: 0 [23:57:28]line Общий итог: 0.00 [23:57:28]line Итого наличными: 0.00 [23:57:28]line Итого безнал.: 0.00 [23:57:28]line НДС 0% : 0.00 [23:57:28]line НДС 12% : 0.00 [23:57:28]line НСП 0% : 0.00 [23:57:28]line НСП 1,50% : 0.00 [23:57:28]line НСП 0,50% : 0.00 [23:57:28]line НСП 5% : 0.00 [23:57:28]line НСП 3% : 0.00 [23:57:28]line НСП 2% : 0.00 [23:57:28]line НСП 1% : 0.00 [23:57:28]line ИТОГИ ВОЗВРАТ РАСХОДА [23:57:28]line Чеков: 0 [23:57:28]line Общий итог: 0.00 [23:57:28]line Итого наличными: 0.00 [23:57:28]line Итого безнал.: 0.00 [23:57:28]line НДС 0% : 0.00 [23:57:28]line НДС 12% : 0.00 [23:57:28]line НСП 0% : 0.00 [23:57:28]line НСП 1,50% : 0.00 [23:57:28]line НСП 0,50% : 0.00 [23:57:28]line НСП 5% : 0.00 [23:57:28]line НСП 3% : 0.00 [23:57:28]line НСП 2% : 0.00 [23:57:28]line НСП 1% : 0.00 [23:57:28]line Сумма внесений: 0.00 [23:57:28]line Сумма выплат: 0.00 [23:57:28]line Нал. в кассе: 40686.00 [23:57:28]line НС Приход: 19977092.61 [23:57:28]line НС Возвр.Прихода: 588405.00 [23:57:28]line НС Расход: 0.00 [23:57:28]line НС Возвр.Расхода: 0.00 [23:57:28]line ФМ: 0000000000875074 [23:57:28]written 0, free lines is 4095 [23:57:28]Write to MH i2c: 01 00 00 69 0A 73 [23:57:28]Write i2c OK [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: 01 [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: 01 07 00 [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: 01 07 00 69 0A 00 00 00 00 00 B1 0A 35 [23:57:28]RasterBufferAndPrint [23:57:28]line [23:57:28]line [23:57:28]line [23:57:28]line [23:57:28]line [23:57:28]written 0, free lines is 2769 [23:57:28]MH_Cut [23:57:28]Write to MH i2c: D1 01 00 70 0A 01 4C [23:57:28]Write i2c OK [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: D1 [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: D1 01 00 [23:57:28]MH_I2C_Read... [23:57:28]Read from MH i2c: D1 01 00 70 0A 00 4B [23:57:28]Write to MH i2c: 01 00 00 71 0A 7B [23:57:28]Write i2c OK [23:57:28]MH_I2C_Read... [23:57:29]*** Cut start [23:57:29]*** Partial cut [23:57:29]*** CUTSNS_PIN = 1 [23:57:30]*** CUTSNS_PIN = 0 [23:57:30]*** Brake cut motor [23:57:30]Read from MH i2c: 01 [23:57:30]MH_I2C_Read... [23:57:30]*** Stop cut motor [23:57:30]*** Cut end [23:57:30]Read from MH i2c: 01 07 00 [23:57:30]MH_I2C_Read... [23:57:30]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 FF 0F 90 [23:57:30]process_action x_report done [23:57:30]requested_data is exist [23:57:30]produce_requested_data [23:57:30]requested_item fd.num is exist - process it [23:57:30]SAM_PROTO_GetFieldsCounters [23:57:30]wFMCommunicate request_size=4 [23:57:30]MH_SAM_APDU [23:57:30]CAPDU: 80 13 00 00 [23:57:30]Write to MH i2c: E2 08 00 72 0A 80 13 00 00 00 00 00 00 F8 [23:57:30]Write i2c OK [23:57:30]MH_I2C_Read... [23:57:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:30]Read from MH i2c: E2 [23:57:30]MH_I2C_Read... [23:57:30]Read from MH i2c: E2 62 00 [23:57:30]MH_I2C_Read... [23:57:30]Read from MH i2c: E2 62 00 72 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [23:57: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 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:30]wFMCommunicate OK [23:57:30]SAM_PROTO_GetFieldsCounters done [23:57:30]requested_item shift.num is exist - process it [23:57:30]requested_item shift.opened is exist - process it [23:57:30]req_shift_opened [23:57:30]FM_GetShiftState [23:57:30]SAM_PROTO_GetShiftState [23:57:30]wFMCommunicate request_size=4 [23:57:30]MH_SAM_APDU [23:57:30]CAPDU: 80 13 01 00 [23:57:30]Write to MH i2c: E2 08 00 73 0A 80 13 01 00 00 00 00 00 FA [23:57:30]Write i2c OK [23:57:30]MH_I2C_Read... [23:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:30]Read from MH i2c: E2 [23:57:30]MH_I2C_Read... [23:57:30]Read from MH i2c: E2 0E 00 [23:57:30]MH_I2C_Read... [23:57:30]Read from MH i2c: E2 0E 00 73 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 9A [23:57:30]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:57:30]wFMCommunicate OK [23:57:30]SAM_PROTO_GetShiftState done [23:57:30]FM_GetShiftState done [23:57:30]req_shift_opened done [23:57:30]requested_item shift.open_date is exist - process it [23:57:30]req_shift_open_date [23:57:30]req_shift_open_date done [23:57:30]produce_requested_data done [23:57:30]produce_requested_data return {"fd.num":64078,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [23:57:30]process_action_free x_report [23:57:30]json_value_free [23:57:30]json_value_free done [23:57:31]process_json_proto returns [23:57:31]Send response to host [23:57:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":64078,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [23:57:31]free response buf [23:57:31]execute_script done [23:57:31]execute_script returns [23:57:31]free content buf [23:57:31]Sock 10.Close socket [23:57:31]Sock 10.Thread stoped [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:03]accept exits with 8 [23:58:03]New connection [23:58:03]New thread 3067276644 created [23:58:03]Thread 3067133284 joined [23:58:03]Waiting for new connection... [23:58:03] Sock 8.Parse request [23:58:03]Sock 8.Check first char [23:58:03]Sock 8.First char is OK [23:58:03]request: POST /json_proto HTTP/1.0 [23:58:03]Method: POST [23:58:03]URL: /json_proto [23:58:03]Method is POST - this is cgi request [23:58:03]url: /json_proto [23:58:03]query_string will be loaded in cgi processing [23:58:03]execute_cgi json_proto POST (null) [23:58:03]execute_cgi path=json_proto method=POST [23:58:03]POST find Content-Length [23:58:03]Host: 172.17.60.69:8080 [23:58:03]Content-Length: 215 [23:58:03]Content-Type: application/json [23:58:03] [23:58:03]POST finish read [23:58:03]Found Content-Length = 215 [23:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:03]execute_script... [23:58:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:03]POST & json_proto [23:58:03]process_json_proto [23:58:03]json parsed OK: [23:58:03]protocol is kg_v1.0 [23:58:03]action value=get_value [23:58:03]process_action get_value [23:58:03]cmd_get_value [23:58:03]process_action get_value done [23:58:03]requested_data is exist [23:58:03]produce_requested_data [23:58:03]requested_item kkm.sn is exist - process it [23:58:03]requested_item kkm.ver is exist - process it [23:58:03]requested_item fm.sn is exist - process it [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 11 00 00 [23:58:03]Write to MH i2c: E2 08 00 74 0A 80 11 00 00 00 00 00 00 F8 [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 17 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 17 00 74 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 4A [23:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:58:03]wFMCommunicate OK [23:58:03]requested_item fd.num is exist - process it [23:58:03]SAM_PROTO_GetFieldsCounters [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 13 00 00 [23:58:03]Write to MH i2c: E2 08 00 75 0A 80 13 00 00 00 00 00 00 FB [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 62 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 62 00 75 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [23:58: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 4E FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:03]wFMCommunicate OK [23:58:03]SAM_PROTO_GetFieldsCounters done [23:58:03]requested_item shift.num is exist - process it [23:58:03]requested_item shift.opened is exist - process it [23:58:03]req_shift_opened [23:58:03]FM_GetShiftState [23:58:03]SAM_PROTO_GetShiftState [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 13 01 00 [23:58:03]Write to MH i2c: E2 08 00 76 0A 80 13 01 00 00 00 00 00 FD [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 0E 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 0E 00 76 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 9D [23:58:04]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:58:04]wFMCommunicate OK [23:58:04]SAM_PROTO_GetShiftState done [23:58:04]FM_GetShiftState done [23:58:04]req_shift_opened done [23:58:04]requested_item shift.open_date is exist - process it [23:58:04]req_shift_open_date [23:58:04]req_shift_open_date done [23:58:04]produce_requested_data done [23:58:04]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64078,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574} [23:58:04]process_action_free get_value [23:58:04]json_value_free [23:58:04]json_value_free done [23:58:04]process_json_proto returns [23:58:04]Send response to host [23:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64078,"shift.num":374,"shift.opened":1,"shift.open_date":1717459574}}} [23:58:04]free response buf [23:58:04]execute_script done [23:58:04]execute_script returns [23:58:04]free content buf [23:58:04]Sock 8.Close socket [23:58:04]Sock 8.Thread stoped [23:58:04]accept exits with 9 [23:58:04]New connection [23:58:04]New thread 3067133284 created [23:58:04]Thread 3067276644 joined [23:58:04]Waiting for new connection... [23:58:04] Sock 9.Parse request [23:58:04]Sock 9.Check first char [23:58:04]Sock 9.First char is OK [23:58:04]request: POST /json_proto HTTP/1.0 [23:58:04]Method: POST [23:58:04]URL: /json_proto [23:58:04]Method is POST - this is cgi request [23:58:04]url: /json_proto [23:58:04]query_string will be loaded in cgi processing [23:58:04]execute_cgi json_proto POST (null) [23:58:04]execute_cgi path=json_proto method=POST [23:58:04]POST find Content-Length [23:58:04]Host: 172.17.60.69:8080 [23:58:04]Content-Length: 331 [23:58:04]Content-Type: application/json [23:58:04] [23:58:04]POST finish read [23:58:04]Found Content-Length = 331 [23:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:04]execute_script... [23:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:04]POST & json_proto [23:58:04]process_json_proto [23:58:04]json parsed OK: [23:58:04]protocol is kg_v1.0 [23:58:04]action value=get_value [23:58:04]process_action get_value [23:58:04]cmd_get_value [23:58:04]process_action get_value done [23:58:04]requested_data is exist [23:58:04]produce_requested_data [23:58:04]requested_item fm.sale.total is exist - process it [23:58:04]SAM_PROTO_GetFMData [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 13 03 00 [23:58:04]Write to MH i2c: E2 08 00 77 0A 80 13 03 00 00 00 00 00 00 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 77 0A 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 41 [23:58:04]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 17 00 00 [23:58:04]Write to MH i2c: E2 08 00 78 0A 80 17 00 00 00 00 00 00 02 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 78 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 AB [23:58: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 FB F1 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 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 17 00 00 [23:58:04]Write to MH i2c: E2 08 00 79 0A 80 17 00 00 00 00 00 00 03 [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 [23:58:04]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 79 0A 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 15 [23:58:05]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:58:05]wFMCommunicate OK [23:58:05]wFMCommunicate request_size=4 [23:58:05]MH_SAM_APDU [23:58:05]CAPDU: 80 17 00 00 [23:58:05]Write to MH i2c: E2 08 00 7A 0A 80 17 00 00 00 00 00 00 04 [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:05]Read from MH i2c: E2 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 7A 0A 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 90 [23:58: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 [23:58:05]wFMCommunicate OK [23:58:05]wFMCommunicate request_size=4 [23:58:05]MH_SAM_APDU [23:58:05]CAPDU: 80 17 00 00 [23:58:05]Write to MH i2c: E2 08 00 7B 0A 80 17 00 00 00 00 00 00 05 [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:58:05]Read from MH i2c: E2 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 E2 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 E2 00 7B 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E3 [23:58: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 [23:58:05]wFMCommunicate OK [23:58:05]SAM_PROTO_GetFMData done [23:58:05]requested_item fm.sale_refund.total is exist - process it [23:58:05]requested_item fm.buy.total is exist - process it [23:58:05]requested_item shift.sale.total is exist - process it [23:58:05]SAM_PROTO_GetShiftData [23:58:05]wFMCommunicate request_size=4 [23:58:05]MH_SAM_APDU [23:58:05]CAPDU: 80 13 02 00 [23:58:05]Write to MH i2c: E2 08 00 7C 0A 80 13 02 00 00 00 00 00 04 [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:06]Read from MH i2c: E2 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 7C 0A 00 B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 30 [23:58:06]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:58:06]wFMCommunicate OK [23:58:06]wFMCommunicate request_size=4 [23:58:06]MH_SAM_APDU [23:58:06]CAPDU: 80 17 00 00 [23:58:06]Write to MH i2c: E2 08 00 7D 0A 80 17 00 00 00 00 00 00 07 [23:58:06]Write i2c OK [23:58:06]MH_I2C_Read... [23:58:06]OFD Sender: No OFD packet to send [23:58:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:06]Read from MH i2c: E2 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 7D 0A 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 49 [23:58:06]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:58:06]wFMCommunicate OK [23:58:06]wFMCommunicate request_size=4 [23:58:06]MH_SAM_APDU [23:58:06]CAPDU: 80 17 00 00 [23:58:06]Write to MH i2c: E2 08 00 7E 0A 80 17 00 00 00 00 00 00 08 [23:58:06]Write i2c OK [23:58:06]MH_I2C_Read... [23:58:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:06]Read from MH i2c: E2 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 7E 0A 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [23:58:06]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:06]wFMCommunicate OK [23:58:06]wFMCommunicate request_size=4 [23:58:06]MH_SAM_APDU [23:58:06]CAPDU: 80 17 00 00 [23:58:06]Write to MH i2c: E2 08 00 7F 0A 80 17 00 00 00 00 00 00 09 [23:58:06]Write i2c OK [23:58:06]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 7F 0A 00 EF 03 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 90 00 81 [23:58:07]RAPDU: EF 03 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 90 00 [23:58:07]wFMCommunicate OK [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 17 00 00 [23:58:07]Write to MH i2c: E2 08 00 80 0A 80 17 00 00 00 00 00 00 0A [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 D6 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 D6 00 80 0A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EC [23:58:07]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:07]wFMCommunicate OK [23:58:07]SAM_PROTO_GetShiftData done [23:58:07]requested_item shift.sale.total_cash is exist - process it [23:58:07]requested_item shift.sale_refund.total is exist - process it [23:58:07]requested_item shift.sale_refund.total_cash is exist - process it [23:58:07]requested_item shift.buy.total is exist - process it [23:58:07]requested_item shift.buy.total_cash is exist - process it [23:58:07]produce_requested_data done [23:58:07]produce_requested_data return {"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:58:07]process_action_free get_value [23:58:07]json_value_free [23:58:07]json_value_free done [23:58:07]process_json_proto returns [23:58:07]Send response to host [23:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:58:07]free response buf [23:58:07]execute_script done [23:58:07]execute_script returns [23:58:07]free content buf [23:58:07]Sock 9.Close socket [23:58:07]Sock 9.Thread stoped [23:58:07]accept exits with 8 [23:58:07]New connection [23:58:07]New thread 3067276644 created [23:58:07]Thread 3067133284 joined [23:58:07]Waiting for new connection... [23:58:07] Sock 8.Parse request [23:58:07]Sock 8.Check first char [23:58:07]Sock 8.First char is OK [23:58:07]request: POST /json_proto HTTP/1.0 [23:58:07]Method: POST [23:58:07]URL: /json_proto [23:58:07]Method is POST - this is cgi request [23:58:07]url: /json_proto [23:58:07]query_string will be loaded in cgi processing [23:58:07]execute_cgi json_proto POST (null) [23:58:07]execute_cgi path=json_proto method=POST [23:58:07]POST find Content-Length [23:58:07]Host: 172.17.60.69:8080 [23:58:07]Content-Length: 331 [23:58:07]Content-Type: application/json [23:58:07] [23:58:07]POST finish read [23:58:07]Found Content-Length = 331 [23:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:07]execute_script... [23:58:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:07]POST & json_proto [23:58:07]process_json_proto [23:58:07]json parsed OK: [23:58:07]protocol is kg_v1.0 [23:58:07]action value=get_value [23:58:07]process_action get_value [23:58:07]cmd_get_value [23:58:07]process_action get_value done [23:58:07]requested_data is exist [23:58:07]produce_requested_data [23:58:07]requested_item fm.sale.total is exist - process it [23:58:07]SAM_PROTO_GetFMData [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 13 03 00 [23:58:07]Write to MH i2c: E2 08 00 81 0A 80 13 03 00 00 00 00 00 0A [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:08]Read from MH i2c: E2 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 FD 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 FD 00 81 0A 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 4B [23:58:08]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [23:58:08]wFMCommunicate OK [23:58:08]wFMCommunicate request_size=4 [23:58:08]MH_SAM_APDU [23:58:08]CAPDU: 80 17 00 00 [23:58:08]Write to MH i2c: E2 08 00 82 0A 80 17 00 00 00 00 00 00 0C [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:08]Read from MH i2c: E2 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 FD 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 FD 00 82 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 B5 [23:58:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 [23:58:08]wFMCommunicate OK [23:58:08]wFMCommunicate request_size=4 [23:58:08]MH_SAM_APDU [23:58:08]CAPDU: 80 17 00 00 [23:58:08]Write to MH i2c: E2 08 00 83 0A 80 17 00 00 00 00 00 00 0D [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:09]Read from MH i2c: E2 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 83 0A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 1F [23:58: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 [23:58:09]wFMCommunicate OK [23:58:09]wFMCommunicate request_size=4 [23:58:09]MH_SAM_APDU [23:58:09]CAPDU: 80 17 00 00 [23:58:09]Write to MH i2c: E2 08 00 84 0A 80 17 00 00 00 00 00 00 0E [23:58:09]Write i2c OK [23:58:09]MH_I2C_Read... [23:58:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:09]Read from MH i2c: E2 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 84 0A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 9A [23:58:09]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:58:09]wFMCommunicate OK [23:58:09]wFMCommunicate request_size=4 [23:58:09]MH_SAM_APDU [23:58:09]CAPDU: 80 17 00 00 [23:58:09]Write to MH i2c: E2 08 00 85 0A 80 17 00 00 00 00 00 00 0F [23:58:09]Write i2c OK [23:58:09]MH_I2C_Read... [23:58:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:58:09]Read from MH i2c: E2 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 E2 00 [23:58:09]MH_I2C_Read... [23:58:10]Read from MH i2c: E2 E2 00 85 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 ED [23:58: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 [23:58:10]wFMCommunicate OK [23:58:10]SAM_PROTO_GetFMData done [23:58:10]requested_item fm.sale_refund.total is exist - process it [23:58:10]requested_item fm.buy.total is exist - process it [23:58:10]requested_item shift.sale.total is exist - process it [23:58:10]SAM_PROTO_GetShiftData [23:58:10]wFMCommunicate request_size=4 [23:58:10]MH_SAM_APDU [23:58:10]CAPDU: 80 13 02 00 [23:58:10]Write to MH i2c: E2 08 00 86 0A 80 13 02 00 00 00 00 00 0E [23:58:10]Write i2c OK [23:58:10]MH_I2C_Read... [23:58:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:10]Read from MH i2c: E2 [23:58:10]MH_I2C_Read... [23:58:10]Read from MH i2c: E2 FD 00 [23:58:10]MH_I2C_Read... [23:58:10]Read from MH i2c: E2 FD 00 86 0A 00 B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 3A [23:58:10]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:58:10]wFMCommunicate OK [23:58:10]wFMCommunicate request_size=4 [23:58:10]MH_SAM_APDU [23:58:10]CAPDU: 80 17 00 00 [23:58:10]Write to MH i2c: E2 08 00 87 0A 80 17 00 00 00 00 00 00 11 [23:58:10]Write i2c OK [23:58:10]MH_I2C_Read... [23:58:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:11]Read from MH i2c: E2 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 FD 00 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 FD 00 87 0A 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 53 [23:58:11]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:58:11]wFMCommunicate OK [23:58:11]wFMCommunicate request_size=4 [23:58:11]MH_SAM_APDU [23:58:11]CAPDU: 80 17 00 00 [23:58:11]Write to MH i2c: E2 08 00 88 0A 80 17 00 00 00 00 00 00 12 [23:58:11]OFD Sender: No OFD packet to send [23:58:11]Write i2c OK [23:58:11]MH_I2C_Read... [23:58:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:11]Read from MH i2c: E2 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 FD 00 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 FD 00 88 0A 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [23:58:11]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:11]wFMCommunicate OK [23:58:11]wFMCommunicate request_size=4 [23:58:11]MH_SAM_APDU [23:58:11]CAPDU: 80 17 00 00 [23:58:11]Write to MH i2c: E2 08 00 89 0A 80 17 00 00 00 00 00 00 13 [23:58:11]Write i2c OK [23:58:11]MH_I2C_Read... [23:58:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:11]Read from MH i2c: E2 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 FD 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 FD 00 89 0A 00 EF 03 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 90 00 8B [23:58:12]RAPDU: EF 03 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 90 00 [23:58:12]wFMCommunicate OK [23:58:12]wFMCommunicate request_size=4 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 17 00 00 [23:58:12]Write to MH i2c: E2 08 00 8A 0A 80 17 00 00 00 00 00 00 14 [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:58:12]Read from MH i2c: E2 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 D6 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 D6 00 8A 0A 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [23:58:12]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:12]wFMCommunicate OK [23:58:12]SAM_PROTO_GetShiftData done [23:58:12]requested_item shift.sale.total_cash is exist - process it [23:58:12]requested_item shift.sale_refund.total is exist - process it [23:58:12]requested_item shift.sale_refund.total_cash is exist - process it [23:58:12]requested_item shift.buy.total is exist - process it [23:58:12]requested_item shift.buy.total_cash is exist - process it [23:58:12]produce_requested_data done [23:58:12]produce_requested_data return {"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:58:12]process_action_free get_value [23:58:12]json_value_free [23:58:12]json_value_free done [23:58:12]process_json_proto returns [23:58:12]Send response to host [23:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:58:12]free response buf [23:58:12]execute_script done [23:58:12]execute_script returns [23:58:12]free content buf [23:58:12]Sock 8.Close socket [23:58:12]Sock 8.Thread stoped [23:58:12]accept exits with 9 [23:58:12]New connection [23:58:12]New thread 3067133284 created [23:58:12]Thread 3067276644 joined [23:58:12]Waiting for new connection... [23:58:12] Sock 9.Parse request [23:58:12]Sock 9.Check first char [23:58:12]Sock 9.First char is OK [23:58:12]request: POST /json_proto HTTP/1.0 [23:58:12]Method: POST [23:58:12]URL: /json_proto [23:58:12]Method is POST - this is cgi request [23:58:12]url: /json_proto [23:58:12]query_string will be loaded in cgi processing [23:58:12]execute_cgi json_proto POST (null) [23:58:12]execute_cgi path=json_proto method=POST [23:58:12]POST find Content-Length [23:58:12]Host: 172.17.60.69:8080 [23:58:12]Content-Length: 248 [23:58:12]Content-Type: application/json [23:58:12] [23:58:12]POST finish read [23:58:12]Found Content-Length = 248 [23:58:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0438\u043A\u0441\u0430\u0439 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:12]execute_script... [23:58:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0438\u043A\u0441\u0430\u0439 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:12]POST & json_proto [23:58:12]process_json_proto [23:58:12]json parsed OK: [23:58:12]protocol is kg_v1.0 [23:58:12]action value=close_shift [23:58:12]process_action close_shift [23:58:12]cmd_close_shift [23:58:12]MH_GetDate [23:58:12]Write to MH i2c: F0 00 00 8B 0A 84 [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 8B 0A 00 15 AA 5F 66 D2 83 5F 66 2B [23:58:12]GetLastDocTimeStamp 1717545440 [23:58:12]current date 1717545493 [23:58:12]FM_GetShiftState [23:58:12]SAM_PROTO_GetShiftState [23:58:12]wFMCommunicate request_size=4 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 13 01 00 [23:58:12]Write to MH i2c: E2 08 00 8C 0A 80 13 01 00 00 00 00 00 13 [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:12]Read from MH i2c: E2 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 0E 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 0E 00 8C 0A 00 09 00 01 76 5A 5E 66 00 00 00 00 90 00 B3 [23:58:12]RAPDU: 09 00 01 76 5A 5E 66 00 00 00 00 90 00 [23:58:12]wFMCommunicate OK [23:58:12]SAM_PROTO_GetShiftState done [23:58:12]FM_GetShiftState done [23:58:12]KKMCreateCloseShiftDocument [23:58:12]Load OK [23:58:12]Malloc new data [23:58:12]MH_GetDate [23:58:12]Write to MH i2c: F0 00 00 8D 0A 86 [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 8D 0A 00 15 AA 5F 66 D2 83 5F 66 2D [23:58:12]Malloc new data [23:58:12]Malloc new data [23:58:12]Malloc new data [23:58:12]Malloc new data [23:58:12]KKMCreateCloseShiftDocument OK [23:58:12]KKMSetCloseShiftData OK [23:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=67 [23:58:12]tlvbuf is 01124D60 [23:58:12]KKMLoadAndSignCloseShiftData [23:58:12]SAM_PROTO_ProcessDocument [23:58:12]wFMCommunicate request_size=9 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 15 01 00 04 05 00 43 00 [23:58:12]Write to MH i2c: E2 0C 00 8E 0A 80 15 01 00 04 00 05 00 43 00 00 00 67 [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:58:12]Read from MH i2c: E2 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 03 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [23:58:12]RAPDU: 90 00 [23:58:12]wFMCommunicate OK [23:58:12]wFMCommunicate request_size=23 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:58:12]Write to MH i2c: E2 1A 00 8F 0A 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 0E [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:12]Read from MH i2c: E2 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 03 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [23:58:12]RAPDU: 90 00 [23:58:12]wFMCommunicate OK [23:58:12]wFMCommunicate request_size=26 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 [23:58:13]Write to MH i2c: E2 1D 00 90 0A 80 15 02 00 15 00 FD 03 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 00 00 0B [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:13]Read from MH i2c: E2 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [23:58:13]RAPDU: 90 00 [23:58:13]wFMCommunicate OK [23:58:13]wFMCommunicate request_size=13 [23:58:13]MH_SAM_APDU [23:58:13]CAPDU: 80 15 02 00 08 F4 03 04 00 15 AA 5F 66 [23:58:13]Write to MH i2c: E2 10 00 91 0A 80 15 02 00 08 00 F4 03 04 00 15 AA 5F 66 00 00 AA [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:13]Read from MH i2c: E2 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 91 0A 00 90 00 0F [23:58:13]RAPDU: 90 00 [23:58:13]wFMCommunicate OK [23:58:13]wFMCommunicate request_size=25 [23:58:13]MH_SAM_APDU [23:58:13]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 [23:58:13]Write to MH i2c: E2 1C 00 92 0A 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 81 [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:13]Read from MH i2c: E2 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 03 00 92 0A 00 90 00 10 [23:58:13]RAPDU: 90 00 [23:58:13]wFMCommunicate OK [23:58:13]wFMCommunicate request_size=4 [23:58:13]MH_SAM_APDU [23:58:13]CAPDU: 80 15 03 00 [23:58:13]Write to MH i2c: E2 08 00 93 0A 80 15 03 00 00 00 00 00 1E [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:58:13]Read from MH i2c: E2 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 FD 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 FD 00 93 0A 00 FC 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 4F FA 00 00 0E 04 04 00 76 01 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A5 00 00 00 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 90 00 CE [23:58:13]RAPDU: FC 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 4F FA 00 00 0E 04 04 00 76 01 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A5 00 00 00 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 90 00 [23:58:14]wFMCommunicate OK [23:58:14]SAM_PROTO_ProcessDocument answer len = 1276 [23:58:14]SAM_PROTO_ProcessDocument remain to read = 1028 [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 17 00 00 [23:58:14]Write to MH i2c: E2 08 00 94 0A 80 17 00 00 00 00 00 00 1E [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 94 0A 00 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1C [23:58:14]RAPDU: 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:58:14]wFMCommunicate OK [23:58:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:14]SAM_PROTO_ProcessDocument remain to read = 778 [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 17 00 00 [23:58:14]Write to MH i2c: E2 08 00 95 0A 80 17 00 00 00 00 00 00 1F [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 95 0A 00 04 F7 03 00 00 EF 03 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 90 00 85 [23:58:14]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [23:58:15]wFMCommunicate OK [23:58:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:15]SAM_PROTO_ProcessDocument remain to read = 528 [23:58:15]wFMCommunicate request_size=4 [23:58:15]MH_SAM_APDU [23:58:15]CAPDU: 80 17 00 00 [23:58:15]Write to MH i2c: E2 08 00 96 0A 80 17 00 00 00 00 00 00 20 [23:58:15]Write i2c OK [23:58:15]MH_I2C_Read... [23:58:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:15]Read from MH i2c: E2 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 96 0A 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [23:58:15]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:15]wFMCommunicate OK [23:58:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:15]SAM_PROTO_ProcessDocument remain to read = 278 [23:58:15]wFMCommunicate request_size=4 [23:58:15]MH_SAM_APDU [23:58:15]CAPDU: 80 17 00 00 [23:58:15]Write to MH i2c: E2 08 00 97 0A 80 17 00 00 00 00 00 00 21 [23:58:15]Write i2c OK [23:58:15]MH_I2C_Read... [23:58:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:15]Read from MH i2c: E2 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 97 0A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 5B [23:58:16]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:58:16]wFMCommunicate OK [23:58:16]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:16]SAM_PROTO_ProcessDocument remain to read = 28 [23:58:16]wFMCommunicate request_size=4 [23:58:16]MH_SAM_APDU [23:58:16]CAPDU: 80 17 00 00 [23:58:16]Write to MH i2c: E2 08 00 98 0A 80 17 00 00 00 00 00 00 22 [23:58:16]Write i2c OK [23:58:16]MH_I2C_Read... [23:58:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [23:58:16]Read from MH i2c: E2 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 1F 00 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 1F 00 98 0A 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 35 0C 78 5A 3A B3 90 00 65 [23:58:16]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 35 0C 78 5A 3A B3 90 00 [23:58:16]wFMCommunicate OK [23:58:16]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [23:58:16]SAM_PROTO_ProcessDocument done [23:58:16]1209 (1) - 1.0 - номер версии ФФД [23:58:16]1041 (16) - 0000000000875074 - номер ФМ [23:58:16]1040 (4) - 64079 - номер ФД [23:58:16]1038 (4) - 374 - номер смены [23:58:16]1118 (4) - 163 - количество кассовых чеков за смену [23:58:16]1111 (4) - 165 - общее количество ФД за смену [23:58:16]1194 (1205) - счетчики итогов смены [23:58:16] 1134 (4) - 163 - количество чеков со всеми признаками расчетов [23:58:16] 1129 (155) - счетчики операций «приход» [23:58:16] 1135 (4) - 159 - количество чеков по признаку расчетов [23:58:16] 1201 (3) - 51525.40 - общая итоговая сумма в чеках [23:58:16] 1136 (3) - 41315.00 - итоговая сумма в чеках наличными [23:58:16] 1138 (3) - 10210.40 - итоговая сумма в чеках безналичными [23:58:16] 1024 (122) - суммы налогов [23:58:16] 1006 (9) - суммы НДС [23:58:16] 1010 (1) - 0% - код ставки НДС [23:58:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:16] 1006 (12) - суммы НДС [23:58:16] 1010 (1) - 12% - код ставки НДС [23:58:16] 1011 (3) - 5472.54 - сумма НДС по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 0% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (11) - суммы НСП [23:58:16] 1014 (1) - 1% - код ставки НСП [23:58:16] 1015 (2) - 455.98 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 2% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 3% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 5% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 0,50% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 1,50% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1130 (152) - счетчики операций «возврат прихода» [23:58:16] 1135 (4) - 4 - количество чеков по признаку расчетов [23:58:16] 1201 (3) - 724.00 - общая итоговая сумма в чеках [23:58:16] 1136 (2) - 629.00 - итоговая сумма в чеках наличными [23:58:16] 1138 (2) - 95.00 - итоговая сумма в чеках безналичными [23:58:16] 1024 (121) - суммы налогов [23:58:16] 1006 (9) - суммы НДС [23:58:16] 1010 (1) - 0% - код ставки НДС [23:58:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:16] 1006 (11) - суммы НДС [23:58:16] 1010 (1) - 12% - код ставки НДС [23:58:16] 1011 (2) - 76.88 - сумма НДС по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 0% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (11) - суммы НСП [23:58:16] OFD Sender: No OFD packet to send [23:58:16] 1014 (1) - 1% - код ставки НСП [23:58:16] 1015 (2) - 6.41 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 2% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 3% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 5% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 0,50% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 1,50% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1131 (141) - счетчики операций «расход» [23:58:16] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:16] 1024 (117) - суммы налогов [23:58:16] 1006 (9) - суммы НДС [23:58:16] 1010 (1) - 0% - код ставки НДС [23:58:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:16] 1006 (9) - суммы НДС [23:58:16] 1010 (1) - 12% - код ставки НДС [23:58:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 0% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 1% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 2% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 3% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 5% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 0,50% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 1,50% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1132 (141) - счетчики операций «возврат расхода» [23:58:16] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:16] 1024 (117) - суммы налогов [23:58:16] 1006 (9) - суммы НДС [23:58:16] 1010 (1) - 0% - код ставки НДС [23:58:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:16] 1006 (9) - суммы НДС [23:58:16] 1010 (1) - 12% - код ставки НДС [23:58:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 0% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 1% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 2% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 3% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 5% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 0,50% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1007 (9) - суммы НСП [23:58:16] 1014 (1) - 1,50% - код ставки НСП [23:58:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:16] 1133 (588) - - счетчики коррекции - не используются [23:58:16]1077 (6) - 58327675058867 - ФПД [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1209 (04B9) [23:58:16]Malloc new data [23:58:16]Processing tag 1041 (0411) [23:58:16]Processing tag 1040 (0410) [23:58:16]Malloc new data [23:58:16]Processing tag 1038 (040E) [23:58:16]Malloc new data [23:58:16]Processing tag 1118 (045E) [23:58:16]Malloc new data [23:58:16]Processing tag 1111 (0457) [23:58:16]Malloc new data [23:58:16]Processing tag 1194 (04AA) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1134 (046E) [23:58:16]Malloc new data [23:58:16]Processing tag 1129 (0469) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1135 (046F) [23:58:16]Malloc new data [23:58:16]Processing tag 1201 (04B1) [23:58:16]Malloc new data [23:58:16]Processing tag 1136 (0470) [23:58:16]Malloc new data [23:58:16]Processing tag 1138 (0472) [23:58:16]Malloc new data [23:58:16]Processing tag 1024 (0400) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1006 (03EE) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1010 (03F2) [23:58:16]Malloc new data [23:58:16]Processing tag 1011 (03F3) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1006 (03EE) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1010 (03F2) [23:58:16]Malloc new data [23:58:16]Processing tag 1011 (03F3) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1007 (03EF) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1014 (03F6) [23:58:16]Malloc new data [23:58:16]Processing tag 1015 (03F7) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1007 (03EF) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1014 (03F6) [23:58:16]Malloc new data [23:58:16]Processing tag 1015 (03F7) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1007 (03EF) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1014 (03F6) [23:58:16]Malloc new data [23:58:16]Processing tag 1015 (03F7) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1007 (03EF) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1014 (03F6) [23:58:16]Malloc new data [23:58:16]Processing tag 1015 (03F7) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1007 (03EF) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1014 (03F6) [23:58:16]Malloc new data [23:58:16]Processing tag 1015 (03F7) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1007 (03EF) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1014 (03F6) [23:58:16]Malloc new data [23:58:16]Processing tag 1015 (03F7) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1007 (03EF) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1014 (03F6) [23:58:16]Malloc new data [23:58:16]Processing tag 1015 (03F7) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]SetTLVBufToDocument err=0 [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1130 (046A) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1135 (046F) [23:58:16]Malloc new data [23:58:16]Processing tag 1201 (04B1) [23:58:16]Malloc new data [23:58:16]Processing tag 1136 (0470) [23:58:16]Malloc new data [23:58:16]Processing tag 1138 (0472) [23:58:16]Malloc new data [23:58:16]Processing tag 1024 (0400) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1006 (03EE) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1010 (03F2) [23:58:16]Malloc new data [23:58:16]Processing tag 1011 (03F3) [23:58:16]Malloc new data [23:58:16]SetTLVBufToDocument err=0 [23:58:16]Processing tag 1006 (03EE) [23:58:16]Load OK [23:58:16]SetTLVBufToDocument [23:58:16]Processing tag 1010 (03F2) [23:58:16]Malloc new data [23:58:16]Processing tag 1011 (03F3) [23:58:16]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]SetTLVBufToDocument err=0 [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1131 (046B) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1135 (046F) [23:58:17]Malloc new data [23:58:17]Processing tag 1201 (04B1) [23:58:17]Malloc new data [23:58:17]Processing tag 1136 (0470) [23:58:17]Malloc new data [23:58:17]Processing tag 1138 (0472) [23:58:17]Malloc new data [23:58:17]Processing tag 1024 (0400) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1006 (03EE) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1010 (03F2) [23:58:17]Malloc new data [23:58:17]Processing tag 1011 (03F3) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1006 (03EE) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1010 (03F2) [23:58:17]Malloc new data [23:58:17]Processing tag 1011 (03F3) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]SetTLVBufToDocument err=0 [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1132 (046C) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1135 (046F) [23:58:17]Malloc new data [23:58:17]Processing tag 1201 (04B1) [23:58:17]Malloc new data [23:58:17]Processing tag 1136 (0470) [23:58:17]Malloc new data [23:58:17]Processing tag 1138 (0472) [23:58:17]Malloc new data [23:58:17]Processing tag 1024 (0400) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1006 (03EE) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1010 (03F2) [23:58:17]Malloc new data [23:58:17]Processing tag 1011 (03F3) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1006 (03EE) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1010 (03F2) [23:58:17]Malloc new data [23:58:17]Processing tag 1011 (03F3) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1007 (03EF) [23:58:17]Load OK [23:58:17]SetTLVBufToDocument [23:58:17]Processing tag 1014 (03F6) [23:58:17]Malloc new data [23:58:17]Processing tag 1015 (03F7) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]SetTLVBufToDocument err=0 [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1133 (046D) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Processing tag 1077 (0435) [23:58:17]Malloc new data [23:58:17]SetTLVBufToDocument err=0 [23:58:17]Malloc new data [23:58:17]SAM_PROTO_GetFMData [23:58:17]wFMCommunicate request_size=4 [23:58:17]MH_SAM_APDU [23:58:17]CAPDU: 80 13 03 00 [23:58:17]Write to MH i2c: E2 08 00 99 0A 80 13 03 00 00 00 00 00 22 [23:58:17]Write i2c OK [23:58:17]MH_I2C_Read... [23:58:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:17]Read from MH i2c: E2 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: E2 FD 00 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: E2 FD 00 99 0A 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 63 [23:58:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [23:58:18]wFMCommunicate OK [23:58:18]wFMCommunicate request_size=4 [23:58:18]MH_SAM_APDU [23:58:18]CAPDU: 80 17 00 00 [23:58:18]Write to MH i2c: E2 08 00 9A 0A 80 17 00 00 00 00 00 00 24 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:18]Read from MH i2c: E2 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 9A 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 CD [23:58:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 [23:58:18]wFMCommunicate OK [23:58:18]wFMCommunicate request_size=4 [23:58:18]MH_SAM_APDU [23:58:18]CAPDU: 80 17 00 00 [23:58:18]Write to MH i2c: E2 08 00 9B 0A 80 17 00 00 00 00 00 00 25 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:18]Read from MH i2c: E2 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 9B 0A 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 37 [23:58:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:58:19]wFMCommunicate OK [23:58:19]wFMCommunicate request_size=4 [23:58:19]MH_SAM_APDU [23:58:19]CAPDU: 80 17 00 00 [23:58:19]Write to MH i2c: E2 08 00 9C 0A 80 17 00 00 00 00 00 00 26 [23:58:19]Write i2c OK [23:58:19]MH_I2C_Read... [23:58:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:19]Read from MH i2c: E2 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 9C 0A 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 B2 [23:58:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:58:19]wFMCommunicate OK [23:58:19]wFMCommunicate request_size=4 [23:58:19]MH_SAM_APDU [23:58:19]CAPDU: 80 17 00 00 [23:58:19]Write to MH i2c: E2 08 00 9D 0A 80 17 00 00 00 00 00 00 27 [23:58:19]Write i2c OK [23:58:19]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 E2 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 E2 00 9D 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 05 [23:58:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:20]wFMCommunicate OK [23:58:20]SAM_PROTO_GetFMData done [23:58:20]Malloc new data [23:58:20]Malloc new data [23:58:20]Malloc new data [23:58:20]Malloc new data [23:58:20]KKMLoadAndSignCloseShiftData err=0 [23:58:20]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сиксай К. 04.06.2024 23:58 Смена: 374 РНМ: 0000000000092737 ЗНМ: 0300000031 СНО: Общий режим Чеков за смену: 163 ФД за смену: 165 Всего чеков: 163 ИТОГИ ПРИХОД Чеков: 159 Общий итог: 51525.40 Итого наличными: 41315.00 Итого безнал.: 10210.40 НДС 0% : 0.00 НДС 12% : 5472.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 455.98 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 724.00 Итого наличными: 629.00 Итого безнал.: 95.00 НДС 0% : 0.00 НДС 12% : 76.88 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 6.41 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 40686.00 НС Приход: 19977092.61 НС Возвр.Прихода: 588405.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 64079 ФМ: 0000000000875074 ФПД: 58327675058867 [23:58:20]StoreToDocumentArchive [23:58:20]shift 374 fd 64079 [23:58:20]save to /storage/0374/doc_00064079 [23:58:20]save last doc name /storage/0374/doc_00064079 to /storage/kkm_last_doc_name [23:58:20]save OK [23:58:20]Clear old archive folders... [23:58:20]Remove dir /storage/0266 [23:58:20]opendir ok [23:58:20]file . [23:58:20]file .. [23:58:20]file doc_1717545448 [23:58:20]remove file /storage/0266/doc_1717545448 [23:58:20]remove dir /storage/0266 [23:58:20]NVStorageSaveData kkm_registers [23:58:20]File name is /storage/kkm_registers [23:58:20]Write 24 bytes [23:58:20]NVStorageSaveData done [23:58:20]NVStorageSaveData kkm_registers [23:58:20]File name is /storage/kkm_registers [23:58:20]Write 24 bytes [23:58:20]NVStorageSaveData done [23:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=1381 [23:58:20]tlvbuf is 00FF2700 [23:58:20]SAM_PROTO_ClearQueue [23:58:20]wFMCommunicate request_size=4 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 09 00 00 [23:58:20]Write to MH i2c: E2 08 00 9E 0A 80 09 00 00 00 00 00 00 1A [23:58:20]Write i2c OK [23:58:20]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 03 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [23:58:20]RAPDU: 90 00 [23:58:20]wFMCommunicate OK [23:58:20]SAM_PROTO_ClearQueue done [23:58:20]KKMCreateOFDPacket [23:58:20]OFDProtocolAddRootSTLVToBuf [23:58:20]FM_MakeSignedData [23:58:20]FM_MakeSignedData [23:58:20]SAM_PROTO_SignData [23:58:20]wFMCommunicate request_size=4 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 0D 01 02 [23:58:20]Write to MH i2c: E2 08 00 9F 0A 80 0D 01 02 00 00 00 00 22 [23:58:20]Write i2c OK [23:58:20]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 03 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [23:58:20]RAPDU: 90 00 [23:58:20]wFMCommunicate OK [23:58:20]wFMCommunicate request_size=255 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 0D 02 02 FA 05 00 65 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 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 F4 03 04 00 15 AA 5F 66 0E 04 04 00 76 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 A3 00 00 00 57 04 04 00 A5 00 00 00 AA 04 DB 04 6E 04 04 00 A3 00 00 00 69 04 A2 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 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 B6 59 08 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 [23:58:20]Write to MH i2c: E2 02 01 A0 0A 80 0D 02 02 FA 00 05 00 65 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 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 F4 03 04 00 15 AA 5F 66 0E 04 04 00 76 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 A3 00 00 00 57 04 04 00 A5 00 00 00 AA 04 DB 04 6E 04 04 00 A3 00 00 00 69 04 A2 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 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 B6 59 08 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 00 00 E0 [23:58:21]Write i2c OK [23:58:21]MH_I2C_Read... [23:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:21]Read from MH i2c: E2 [23:58:21]MH_I2C_Read... [23:58:21]Read from MH i2c: E2 03 00 [23:58:21]MH_I2C_Read... [23:58:21]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [23:58:21]RAPDU: 90 00 [23:58:21]wFMCommunicate OK [23:58:21]wFMCommunicate request_size=255 [23:58:21]MH_SAM_APDU [23:58:21]CAPDU: 80 0D 02 02 FA 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 1E B2 6A 04 9F 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E 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 81 02 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 [23:58:21]Write to MH i2c: E2 02 01 A1 0A 80 0D 02 02 FA 00 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 1E B2 6A 04 9F 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E 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 81 02 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 OFD Sender: No OFD packet to send [23:58:21]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 00 00 07 [23:58:21]Write i2c OK [23:58:21]MH_I2C_Read... [23:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:22]Read from MH i2c: E2 [23:58:22]MH_I2C_Read... [23:58:22]Read from MH i2c: E2 03 00 [23:58:22]MH_I2C_Read... [23:58:22]Read from MH i2c: E2 03 00 A1 0A 00 90 00 1F [23:58:22]RAPDU: 90 00 [23:58:22]wFMCommunicate OK [23:58:22]wFMCommunicate request_size=255 [23:58:22]MH_SAM_APDU [23:58:22]CAPDU: 80 0D 02 02 FA 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 [23:58:22]Write to MH i2c: E2 02 01 A2 0A 80 0D 02 02 FA 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 00 00 ED [23:58:22]Write i2c OK [23:58:22]MH_I2C_Read... [23:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:22]Read from MH i2c: E2 [23:58:22]MH_I2C_Read... [23:58:22]Read from MH i2c: E2 03 00 [23:58:22]MH_I2C_Read... [23:58:22]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [23:58:22]RAPDU: 90 00 [23:58:22]wFMCommunicate OK [23:58:22]wFMCommunicate request_size=255 [23:58:22]MH_SAM_APDU [23:58:22]CAPDU: 80 0D 02 02 FA 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 [23:58:22]Write to MH i2c: E2 02 01 A3 0A 80 0D 02 02 FA 00 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 00 00 EB [23:58:23]Write i2c OK [23:58:23]MH_I2C_Read... [23:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:23]Read from MH i2c: E2 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: E2 03 00 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [23:58:23]RAPDU: 90 00 [23:58:23]wFMCommunicate OK [23:58:23]wFMCommunicate request_size=255 [23:58:23]MH_SAM_APDU [23:58:23]CAPDU: 80 0D 02 02 FA 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 [23:58:23]Write to MH i2c: E2 02 01 A4 0A 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 00 B3 [23:58:23]Write i2c OK [23:58:23]MH_I2C_Read... [23:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:23]Read from MH i2c: E2 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: E2 03 00 [23:58:23]MH_I2C_Read... [23:58:23]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [23:58:23]RAPDU: 90 00 [23:58:23]wFMCommunicate OK [23:58:23]wFMCommunicate request_size=140 [23:58:23]MH_SAM_APDU [23:58:23]CAPDU: 80 0D 02 02 87 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F 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 35 0C 78 5A 3A B3 [23:58:24]Write to MH i2c: E2 8F 00 A5 0A 80 0D 02 02 87 00 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F 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 35 0C 78 5A 3A B3 00 00 B0 [23:58:24]Write i2c OK [23:58:24]MH_I2C_Read... [23:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:24]Read from MH i2c: E2 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 03 00 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [23:58:24]RAPDU: 90 00 [23:58:24]wFMCommunicate OK [23:58:24]wFMCommunicate request_size=4 [23:58:24]MH_SAM_APDU [23:58:24]CAPDU: 80 0D 03 02 [23:58:24]Write to MH i2c: E2 08 00 A6 0A 80 0D 03 02 00 00 00 00 2B [23:58:24]Write i2c OK [23:58:24]MH_I2C_Read... [23:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:24]Read from MH i2c: E2 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 0B 00 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 0B 00 A6 0A 00 D0 C0 4E 76 56 8F 14 97 90 00 10 [23:58:24]RAPDU: D0 C0 4E 76 56 8F 14 97 90 00 [23:58:24]wFMCommunicate OK [23:58:24]SAM_PROTO_SignData done [23:58:24]FM_MakeSignedData done [23:58:24]CreateOFDProtocolMessage [23:58:24]wFMCommunicate request_size=4 [23:58:24]MH_SAM_APDU [23:58:24]CAPDU: 80 11 00 00 [23:58:24]Write to MH i2c: E2 08 00 A7 0A 80 11 00 00 00 00 00 00 2B [23:58:24]Write i2c OK [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 [23:58:24]MH_I2C_Read... [23:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:24]Read from MH i2c: E2 17 00 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 17 00 A7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 7D [23:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [23:58:24]wFMCommunicate OK [23:58:24]CreateOFDProtocolMessage done [23:58:24]OFDSenderStorePacket 64079 [23:58:24]StoreOFDPacket docnum=64079 [23:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 79 05 00 00 5F CF 71 05 DB 26 5A 05 01 00 05 00 65 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 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 F4 03 04 00 15 AA 5F 66 0E 04 04 00 76 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 A3 00 00 00 57 04 04 00 A5 00 00 00 AA 04 DB 04 6E 04 04 00 A3 00 00 00 69 04 A2 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 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 B6 59 08 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 1E B2 6A 04 9F 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E 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 81 02 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 4F 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 35 0C 78 5A 3A B3 D0 C0 4E 76 56 8F 14 97 [23:58:24]CheckFolder [23:58:24]dirname=/storage/ofd_packets [23:58:24]CheckFolder done [23:58:24]ProducePacketName [23:58:24]name=ofd_packets/00064079 [23:58:24]NVStorageSaveData ofd_packets/00064079 [23:58:24]File name is /storage/ofd_packets/00064079 [23:58:24]Write 1431 bytes [23:58:24]NVStorageSaveData done [23:58:24]OFDSenderStorePacket done [23:58:24]KKMCreateOFDPacket done [23:58:24]NVStorageSaveData kkm_last_timestamp [23:58:24]File name is /storage/kkm_last_timestamp [23:58:24]Write 4 bytes [23:58:24]NVStorageSaveData done [23:58:24]ExternCall_PrintAddStr [23:58:24]wPrintStart [23:58:24]Write to MH i2c: 01 00 00 A8 0A B2 [23:58:24]Write i2c OK [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: 01 [23:58:24]MH_I2C_Read... [23:58:24]OFD Sender: Processing packet 64079 [packets to send 14, broken 13] [23:58:24]ProducePacketName [23:58:24]name=ofd_packets/00064079 [23:58:24]OFD Sender: To server: pG, [23:58:24]CommunicateWithHost lk.salyk.kg:30040 [23:58:24]ConnectInit lk.salyk.kg [23:58:24]Read from MH i2c: 01 07 00 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 FF 0F C7 [23:58:24]RasterBufferAndPrint [23:58:24]line Отчет о закрытии смены [23:58:24]line ФФД: 1.0 [23:58:24]line ИНН: 02508201610067 [23:58:24]line Кассир: Сиксай К. [23:58:24]line 04.06.2024 23:58 [23:58:24]line Смена: 374 [23:58:24]line РНМ: 0000000000092737 [23:58:24]line ЗНМ: 0300000031 [23:58:24]line СНО: Общий режим [23:58:24]line Чеков за смену: 163 [23:58:24]line ФД за смену: 165 [23:58:24]line Всего чеков: 163 [23:58:24]line ИТОГИ ПРИХОД [23:58:24]line Чеков: 159 [23:58:24]line Общий итог: 51525.40 [23:58:25]line Итого наличными: 41315.00 [23:58:25]line Итого безнал.: 10210.40 [23:58:25]line НДС 0% : 0.00 [23:58:25]line НДС 12% : 5472.54 [23:58:25]line НСП 0% : 0.00 [23:58:25]line НСП 1,50% : 0.00 [23:58:25]line НСП 0,50% : 0.00 [23:58:25]line НСП 5% : 0.00 [23:58:25]line НСП 3% : 0.00 [23:58:25]line НСП 2% : 0.00 [23:58:25]line НСП 1% : 455.98 [23:58:25]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:58:25]line Чеков: 4 [23:58:25]line Общий итог: 724.00 [23:58:25]line Итого наличными: 629.00 [23:58:25]line Итого безнал.: 95.00 [23:58:25]line НДС 0% : 0.00 [23:58:25]line НДС 12% : 76.88 [23:58:25]line НСП 0% : 0.00 [23:58:25]line НСП 1,50% : 0.00 [23:58:25]line НСП 0,50% : 0.00 [23:58:25]line НСП 5% : 0.00 [23:58:25]line НСП 3% : 0.00 [23:58:25]line НСП 2% : 0.00 [23:58:25]line НСП 1% : 6.41 [23:58:25]line ИТОГИ РАСХОД [23:58:25]line Чеков: 0 [23:58:25]line Общий итог: 0.00 [23:58:25]line Итого наличными: 0.00 [23:58:25]line Итого безнал.: 0.00 [23:58:25]line НДС 0% : 0.00 [23:58:25]line НДС 12% : 0.00 [23:58:25]line НСП 0% : 0.00 [23:58:25]line НСП 1,50% : 0.00 [23:58:25]line НСП 0,50% : 0.00 [23:58:25]line НСП 5% : 0.00 [23:58:25]line НСП 3% : 0.00 [23:58:25]line НСП 2% : 0.00 [23:58:25]line НСП 1% : 0.00 [23:58:25]line ИТОГИ ВОЗВРАТ РАСХОДА [23:58:25]line Чеков: 0 [23:58:25]line Общий итог: 0.00 [23:58:25]line Итого наличными: 0.00 [23:58:25]line Итого безнал.: 0.00 [23:58:25]line НДС 0% : 0.00 [23:58:25]line НДС 12% : 0.00 [23:58:25]line НСП 0% : 0.00 [23:58:25]line НСП 1,50% : 0.00 [23:58:25]line НСП 0,50% : 0.00 [23:58:25]line НСП 5% : 0.00 [23:58:25]line НСП 3% : 0.00 [23:58:25]line НСП 2% : 0.00 [23:58:25]line НСП 1% : 0.00 [23:58:25]line Сумма внесений: 0.00 [23:58:25]line Сумма выплат: 0.00 [23:58:25]line Нал. в кассе: 40686.00 [23:58:25]line НС Приход: 19977092.61 [23:58:25]line НС Возвр.Прихода: 588405.00 [23:58:25]line НС Расход: 0.00 [23:58:25]line НС Возвр.Расхода: 0.00 [23:58:25]line ФД: 64079 [23:58:25]line ФМ: 0000000000875074 [23:58:25]line ФПД: 58327675058867 [23:58:25]written 0, free lines is 4095 [23:58:25]Connected sock=10 [23:58: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 79 05 00 00 5F CF 71 05 DB 26 5A 05 01 00 05 00 65 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 11 00 D0 A1 D0 B8 D0 BA D1 81 D0 B0 D0 B9 20 D0 9A 2E 20 F4 03 04 00 15 AA 5F 66 0E 04 04 00 76 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 A3 00 00 00 57 04 04 00 A5 00 00 00 AA 04 DB 04 6E 04 04 00 A3 00 00 00 69 04 A2 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 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 B6 59 08 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 1E B2 6A 04 9F 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E 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 81 02 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 Write to MH i2c: 03 01 0A 00 00 00 F6 F8 03 0A 01 02 00 [23:58:25]00 F7 Write i2c OK [23:58:25]03 MH_I2C_Read... [23:58:25]01 00 00 EF 03 0A Read from MH i2c: 00 01 F6 [23:58:25]03 MH_I2C_Read... [23:58:25]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 Read from MH i2c: 03 01 01 07 00 00 00 [23:58:25]EF MH_I2C_Read... [23:58:25]03 0A 00 F6 03 01 00 Read from MH i2c: 03 01 F7 07 03 00 01 F8 00 0A 00 00 00 00 00 00 8E 0A A1 [23:58:25]RasterBufferAndPrint [23:58:26]EF line [23:58:26]03 line [23:58:26]line [23:58:26]line [23:58:26]line [23:58:26]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 written 0, free lines is 2885 [23:58:26]00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 MH_Cut [23:58:26]03 Write to MH i2c: 01 D1 00 01 00 00 F7 FF 03 0A 00 01 00 DB EF [23:58:26]03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [23:58:26]01 MH_I2C_Read... [23:58:26]00 02 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 D1 01 [23:58:26]00 MH_I2C_Read... [23:58:26]03 Read from MH i2c: F7 D1 03 01 00 00 EF 03 09 00 F6 03 01 00 00 04 [23:58:26]F7 MH_I2C_Read... [23:58:26]03 00 00 EF 03 09 00 F6 03 01 00 05 F7 Read from MH i2c: 03 D1 00 01 00 00 EF FF 03 0A 09 00 00 DA F6 [23:58:26]03 Write to MH i2c: 01 01 00 00 06 00 F7 00 03 0B 00 00 0B D0 [23:58:26]04 8D Write i2c OK [23:58:26]00 MH_I2C_Read... [23:58:26]6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F 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 35 0C 78 5A 3A B3 D0 C0 4E 76 56 8F 14 97 [23:58: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 81 DE 47 00 B0 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 *** Cut start [23:58:27]11 *** Partial cut [23:58:27]04 *** CUTSNS_PIN = 1 [23:58:27]10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 10 04 04 00 4F FA 00 00 F4 03 04 00 2E 56 5F 66 B6 04 01 00 00 B4 E5 66 6C DE C9 77 9E [23:58:27]CommunicateWithHost err = 0 [23:58:27]*** CUTSNS_PIN = 0 [23:58:27]CheckOFDResponse [23:58:27]1017 (14) - 77093643461234 [23:58:27]1041 (16) - 0000000000875074 [23:58:27]1040 (4) - 64079 [23:58:27]1012 (4) - 04.06.2024 18:00 [23:58:27]1206 (1) - 0 [23:58:27]OFD Sender: Remove packet 64079 [23:58:27]ProducePacketName [23:58:27]name=ofd_packets/00064079 [23:58:27]NVStorageDeleteData [23:58:27]*** Brake cut motor [23:58:27]OFD Sender: No OFD packet to send [23:58:27]Read from MH i2c: 01 [23:58:27]MH_I2C_Read... [23:58:27]*** Stop cut motor [23:58:27]*** Cut end [23:58:27]Read from MH i2c: 01 07 00 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: 01 07 00 00 0B 00 00 00 00 00 FF 0F 20 [23:58:27]process_action close_shift done [23:58:27]requested_data is exist [23:58:27]produce_requested_data [23:58:27]requested_item fd.num is exist - process it [23:58:27]SAM_PROTO_GetFieldsCounters [23:58:27]wFMCommunicate request_size=4 [23:58:27]MH_SAM_APDU [23:58:27]CAPDU: 80 13 00 00 [23:58:27]Write to MH i2c: E2 08 00 01 0B 80 13 00 00 00 00 00 00 88 [23:58:27]Write i2c OK [23:58:27]MH_I2C_Read... [23:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:27]Read from MH i2c: E2 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 62 00 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 62 00 01 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4F FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [23:58: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 4F FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:28]wFMCommunicate OK [23:58:28]SAM_PROTO_GetFieldsCounters done [23:58:28]requested_item shift.num is exist - process it [23:58:28]requested_item shift.opened is exist - process it [23:58:28]req_shift_opened [23:58:28]FM_GetShiftState [23:58:28]SAM_PROTO_GetShiftState [23:58:28]wFMCommunicate request_size=4 [23:58:28]MH_SAM_APDU [23:58:28]CAPDU: 80 13 01 00 [23:58:28]Write to MH i2c: E2 08 00 02 0B 80 13 01 00 00 00 00 00 8A [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:28]Read from MH i2c: E2 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 0E 00 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 0E 00 02 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 95 [23:58:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:58:28]wFMCommunicate OK [23:58:28]SAM_PROTO_GetShiftState done [23:58:28]FM_GetShiftState done [23:58:28]req_shift_opened done [23:58:28]requested_item shift.open_date is exist - process it [23:58:28]req_shift_open_date [23:58:28]FM_GetShiftState [23:58:28]SAM_PROTO_GetShiftState [23:58:28]wFMCommunicate request_size=4 [23:58:28]MH_SAM_APDU [23:58:28]CAPDU: 80 13 01 00 [23:58:28]Write to MH i2c: E2 08 00 03 0B 80 13 01 00 00 00 00 00 8B [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:28]Read from MH i2c: E2 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 0E 00 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 0E 00 03 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 96 [23:58:28]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:58:28]wFMCommunicate OK [23:58:28]SAM_PROTO_GetShiftState done [23:58:28]FM_GetShiftState done [23:58:28]req_shift_open_date done [23:58:28]produce_requested_data done [23:58:28]produce_requested_data return {"fd.num":64079,"shift.num":374,"shift.opened":0,"shift.open_date":0} [23:58:28]process_action_free close_shift [23:58:28]json_value_free [23:58:28]json_value_free done [23:58:28]process_json_proto returns [23:58:28]Send response to host [23:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":64079,"shift.num":374,"shift.opened":0,"shift.open_date":0}}} [23:58:28]free response buf [23:58:28]execute_script done [23:58:28]execute_script returns [23:58:28]free content buf [23:58:28]Sock 9.Close socket [23:58:28]Sock 9.Thread stoped [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:21]accept exits with 8 [00:05:21]New connection [00:05:21]New thread 3067276644 created [00:05:21]Thread 3067133284 joined [00:05:21]Waiting for new connection... [00:05:21] Sock 8.Parse request [00:05:21]Sock 8.Check first char [00:05:21]Sock 8.First char is OK [00:05:21]request: POST /json_proto HTTP/1.0 [00:05:21]Method: POST [00:05:21]URL: /json_proto [00:05:21]Method is POST - this is cgi request [00:05:21]url: /json_proto [00:05:21]query_string will be loaded in cgi processing [00:05:21]execute_cgi json_proto POST (null) [00:05:21]execute_cgi path=json_proto method=POST [00:05:21]POST find Content-Length [00:05:21]Host: 172.17.60.69:8080 [00:05:21]Content-Length: 215 [00:05:21]Content-Type: application/json [00:05:21] [00:05:21]POST finish read [00:05:21]Found Content-Length = 215 [00:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:21]execute_script... [00:05:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:21]POST & json_proto [00:05:21]process_json_proto [00:05:21]json parsed OK: [00:05:21]protocol is kg_v1.0 [00:05:21]action value=get_value [00:05:21]process_action get_value [00:05:21]cmd_get_value [00:05:21]process_action get_value done [00:05:21]requested_data is exist [00:05:21]produce_requested_data [00:05:21]requested_item kkm.sn is exist - process it [00:05:21]requested_item kkm.ver is exist - process it [00:05:21]requested_item fm.sn is exist - process it [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 11 00 00 [00:05:21]Write to MH i2c: E2 08 00 04 0B 80 11 00 00 00 00 00 00 89 [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 17 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 17 00 04 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 DB [00: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 [00:05:21]wFMCommunicate OK [00:05:21]requested_item fd.num is exist - process it [00:05:21]SAM_PROTO_GetFieldsCounters [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 13 00 00 [00:05:21]Write to MH i2c: E2 08 00 05 0B 80 13 00 00 00 00 00 00 8C [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 62 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 62 00 05 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 4F FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [00: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 4F FA 00 00 0E 04 04 00 76 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:21]wFMCommunicate OK [00:05:21]SAM_PROTO_GetFieldsCounters done [00:05:21]requested_item shift.num is exist - process it [00:05:21]requested_item shift.opened is exist - process it [00:05:21]req_shift_opened [00:05:21]FM_GetShiftState [00:05:21]SAM_PROTO_GetShiftState [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 13 01 00 [00:05:21]Write to MH i2c: E2 08 00 06 0B 80 13 01 00 00 00 00 00 8E [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 0E 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 0E 00 06 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 99 [00:05:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:05:21]wFMCommunicate OK [00:05:21]SAM_PROTO_GetShiftState done [00:05:21]FM_GetShiftState done [00:05:21]req_shift_opened done [00:05:21]requested_item shift.open_date is exist - process it [00:05:21]req_shift_open_date [00:05:21]FM_GetShiftState [00:05:21]SAM_PROTO_GetShiftState [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 13 01 00 [00:05:21]Write to MH i2c: E2 08 00 07 0B 80 13 01 00 00 00 00 00 8F [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:21]Read from MH i2c: E2 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 0E 00 [00:05:21]MH_I2C_Read... [00:05:21]Read from MH i2c: E2 0E 00 07 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9A [00:05:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:05:21]wFMCommunicate OK [00:05:21]SAM_PROTO_GetShiftState done [00:05:21]FM_GetShiftState done [00:05:21]req_shift_open_date done [00:05:21]produce_requested_data done [00:05:21]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64079,"shift.num":374,"shift.opened":0,"shift.open_date":0} [00:05:21]process_action_free get_value [00:05:21]json_value_free [00:05:21]json_value_free done [00:05:21]process_json_proto returns [00:05:21]Send response to host [00:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64079,"shift.num":374,"shift.opened":0,"shift.open_date":0}}} [00:05:21]free response buf [00:05:21]execute_script done [00:05:21]execute_script returns [00:05:21]free content buf [00:05:21]Sock 8.Close socket [00:05:21]Sock 8.Thread stoped [00:05:21]accept exits with 9 [00:05:21]New connection [00:05:21]New thread 3067133284 created [00:05:21]Thread 3067276644 joined [00:05:21]Waiting for new connection... [00:05:21] Sock 9.Parse request [00:05:21]Sock 9.Check first char [00:05:21]Sock 9.First char is OK [00:05:21]request: POST /json_proto HTTP/1.0 [00:05:21]Method: POST [00:05:21]URL: /json_proto [00:05:21]Method is POST - this is cgi request [00:05:21]url: /json_proto [00:05:21]query_string will be loaded in cgi processing [00:05:21]execute_cgi json_proto POST (null) [00:05:21]execute_cgi path=json_proto method=POST [00:05:21]POST find Content-Length [00:05:21]Host: 172.17.60.69:8080 [00:05:21]Content-Length: 331 [00:05:21]Content-Type: application/json [00:05:21] [00:05:21]POST finish read [00:05:21]Found Content-Length = 331 [00:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:21]execute_script... [00:05:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:21]POST & json_proto [00:05:21]process_json_proto [00:05:21]json parsed OK: [00:05:21]protocol is kg_v1.0 [00:05:21]action value=get_value [00:05:21]process_action get_value [00:05:21]cmd_get_value [00:05:21]process_action get_value done [00:05:21]requested_data is exist [00:05:21]produce_requested_data [00:05:21]requested_item fm.sale.total is exist - process it [00:05:21]SAM_PROTO_GetFMData [00:05:21]wFMCommunicate request_size=4 [00:05:21]MH_SAM_APDU [00:05:21]CAPDU: 80 13 03 00 [00:05:21]Write to MH i2c: E2 08 00 08 0B 80 13 03 00 00 00 00 00 92 [00:05:21]Write i2c OK [00:05:21]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 08 0B 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 D3 [00:05:22]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [00:05:22]wFMCommunicate OK [00:05:22]wFMCommunicate request_size=4 [00:05:22]MH_SAM_APDU [00:05:22]CAPDU: 80 17 00 00 [00:05:22]Write to MH i2c: E2 08 00 09 0B 80 17 00 00 00 00 00 00 94 [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 09 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 3D [00:05:22]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 [00:05:22]wFMCommunicate OK [00:05:22]wFMCommunicate request_size=4 [00:05:22]MH_SAM_APDU [00:05:22]CAPDU: 80 17 00 00 [00:05:22]Write to MH i2c: E2 08 00 0A 0B 80 17 00 00 00 00 00 00 95 [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:22]Read from MH i2c: E2 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 [00:05:22]MH_I2C_Read... [00:05:22]Read from MH i2c: E2 FD 00 0A 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [00:05:22]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:05:22]wFMCommunicate OK [00:05:22]wFMCommunicate request_size=4 [00:05:22]MH_SAM_APDU [00:05:22]CAPDU: 80 17 00 00 [00:05:22]Write to MH i2c: E2 08 00 0B 0B 80 17 00 00 00 00 00 00 96 [00:05:22]Write i2c OK [00:05:22]MH_I2C_Read... [00:05:22]OFD Sender: No OFD packet to send [00:05:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 0B 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [00:05:23]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:05:23]wFMCommunicate OK [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 17 00 00 [00:05:23]Write to MH i2c: E2 08 00 0C 0B 80 17 00 00 00 00 00 00 97 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 E2 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 E2 00 0C 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [00:05:23]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:23]wFMCommunicate OK [00:05:23]SAM_PROTO_GetFMData done [00:05:23]requested_item fm.sale_refund.total is exist - process it [00:05:23]requested_item fm.buy.total is exist - process it [00:05:23]requested_item shift.sale.total is exist - process it [00:05:23]SAM_PROTO_GetShiftData [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 13 02 00 [00:05:23]Write to MH i2c: E2 08 00 0D 0B 80 13 02 00 00 00 00 00 96 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:23]Read from MH i2c: E2 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 [00:05:23]MH_I2C_Read... [00:05:23]Read from MH i2c: E2 FD 00 0D 0B 00 B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 C2 [00:05:23]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A3 00 00 00 69 04 9B 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 1C 9F 4E 70 04 03 00 AC 0A 3F 72 04 03 00 70 94 0F 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B6 59 08 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 1E B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 D0 1A 01 70 04 02 00 B4 F5 72 04 02 00 1C 25 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 08 1E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:05:23]wFMCommunicate OK [00:05:23]wFMCommunicate request_size=4 [00:05:23]MH_SAM_APDU [00:05:23]CAPDU: 80 17 00 00 [00:05:23]Write to MH i2c: E2 08 00 0E 0B 80 17 00 00 00 00 00 00 99 [00:05:23]Write i2c OK [00:05:23]MH_I2C_Read... [00:05:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:24]Read from MH i2c: E2 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 FD 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 FD 00 0E 0B 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 DB [00:05:24]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 81 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:05:24]wFMCommunicate OK [00:05:24]wFMCommunicate request_size=4 [00:05:24]MH_SAM_APDU [00:05:24]CAPDU: 80 17 00 00 [00:05:24]Write to MH i2c: E2 08 00 0F 0B 80 17 00 00 00 00 00 00 9A [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:24]Read from MH i2c: E2 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 FD 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 FD 00 0F 0B 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C2 [00:05:24]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:05:24]wFMCommunicate OK [00:05:24]wFMCommunicate request_size=4 [00:05:24]MH_SAM_APDU [00:05:24]CAPDU: 80 17 00 00 [00:05:24]Write to MH i2c: E2 08 00 10 0B 80 17 00 00 00 00 00 00 9B [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:24]Read from MH i2c: E2 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 FD 00 [00:05:24]MH_I2C_Read... [00:05:24]Read from MH i2c: E2 FD 00 10 0B 00 EF 03 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 90 00 13 [00:05:24]RAPDU: EF 03 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 90 00 [00:05:24]wFMCommunicate OK [00:05:24]wFMCommunicate request_size=4 [00:05:24]MH_SAM_APDU [00:05:24]CAPDU: 80 17 00 00 [00:05:24]Write to MH i2c: E2 08 00 11 0B 80 17 00 00 00 00 00 00 9C [00:05:24]Write i2c OK [00:05:24]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 D6 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 D6 00 11 0B 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [00:05:25]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:25]wFMCommunicate OK [00:05:25]SAM_PROTO_GetShiftData done [00:05:25]requested_item shift.sale.total_cash is exist - process it [00:05:25]requested_item shift.sale_refund.total is exist - process it [00:05:25]requested_item shift.sale_refund.total_cash is exist - process it [00:05:25]requested_item shift.buy.total is exist - process it [00:05:25]requested_item shift.buy.total_cash is exist - process it [00:05:25]produce_requested_data done [00:05:25]produce_requested_data return {"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:25]process_action_free get_value [00:05:25]json_value_free [00:05:25]json_value_free done [00:05:25]process_json_proto returns [00:05:25]Send response to host [00:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":51525.40,"shift.sale.total_cash":41315.00,"shift.sale_refund.total":724.00,"shift.sale_refund.total_cash":629.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:25]free response buf [00:05:25]execute_script done [00:05:25]execute_script returns [00:05:25]free content buf [00:05:25]Sock 9.Close socket [00:05:25]Sock 9.Thread stoped [00:05:25]accept exits with 8 [00:05:25]New connection [00:05:25]New thread 3067276644 created [00:05:25]Thread 3067133284 joined [00:05:25]Waiting for new connection... [00:05:25] Sock 8.Parse request [00:05:25]Sock 8.Check first char [00:05:25]Sock 8.First char is OK [00:05:25]request: POST /json_proto HTTP/1.0 [00:05:25]Method: POST [00:05:25]URL: /json_proto [00:05:25]Method is POST - this is cgi request [00:05:25]url: /json_proto [00:05:25]query_string will be loaded in cgi processing [00:05:25]execute_cgi json_proto POST (null) [00:05:25]execute_cgi path=json_proto method=POST [00:05:25]POST find Content-Length [00:05:25]Host: 172.17.60.69:8080 [00:05:25]Content-Length: 282 [00:05:25]Content-Type: application/json [00:05:25] [00:05:25]POST finish read [00:05:25]Found Content-Length = 282 [00:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_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" ] } } [00:05:25]execute_script... [00:05:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_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" ] } } [00:05:25]POST & json_proto [00:05:25]process_json_proto [00:05:25]json parsed OK: [00:05:25]protocol is kg_v1.0 [00:05:25]action value=open_shift [00:05:25]process_action open_shift [00:05:25]cmd_open_shift [00:05:25]MH_GetDate [00:05:25]Write to MH i2c: F0 00 00 12 0B 0C [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: F0 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: F0 09 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: F0 09 00 12 0B 00 C5 AB 5F 66 D2 83 5F 66 64 [00:05:25]GetLastDocTimeStamp 1717545493 [00:05:25]current date 1717545925 [00:05:25]FM_GetShiftState [00:05:25]SAM_PROTO_GetShiftState [00:05:25]wFMCommunicate request_size=4 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 13 01 00 [00:05:25]Write to MH i2c: E2 08 00 13 0B 80 13 01 00 00 00 00 00 9B [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 0E 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 0E 00 13 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A6 [00:05:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:05:25]wFMCommunicate OK [00:05:25]SAM_PROTO_GetShiftState done [00:05:25]FM_GetShiftState done [00:05:25]KKMCreateOpenShiftDocument [00:05:25]Load OK [00:05:25]Malloc new data [00:05:25]MH_GetDate [00:05:25]Write to MH i2c: F0 00 00 14 0B 0E [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: F0 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: F0 09 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: F0 09 00 14 0B 00 C5 AB 5F 66 D2 83 5F 66 66 [00:05:25]Malloc new data [00:05:25]KKMCreateOpenShiftDocument OK [00:05:25]KKMSetOpenShiftData OK [00:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=233 [00:05:25]tlvbuf is 00FE79B0 [00:05:25]KKMLoadAndSignOpenShiftData [00:05:25]SAM_PROTO_ProcessDocument [00:05:25]wFMCommunicate request_size=9 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 15 01 00 04 02 00 E9 00 [00:05:25]Write to MH i2c: E2 0C 00 15 0B 80 15 01 00 04 00 02 00 E9 00 00 00 92 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 15 0B 00 90 00 94 [00:05:25]RAPDU: 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=23 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:05:25]Write to MH i2c: E2 1A 00 16 0B 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 96 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 16 0B 00 90 00 95 [00:05:25]RAPDU: 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=37 [00:05:25]MH_SAM_APDU [00:05:25]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 [00:05:25]Write to MH i2c: E2 28 00 17 0B 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 C0 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 17 0B 00 90 00 96 [00:05:25]RAPDU: 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=114 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 15 02 00 6D F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 [00:05:25]Write to MH i2c: E2 75 00 18 0B 80 15 02 00 6D 00 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 00 00 4E [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 18 0B 00 90 00 97 [00:05:25]RAPDU: 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=51 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:05:25]Write to MH i2c: E2 36 00 19 0B 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 4F [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 19 0B 00 90 00 98 [00:05:25]RAPDU: 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=13 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 15 02 00 08 F4 03 04 00 C5 AB 5F 66 [00:05:25]Write to MH i2c: E2 10 00 1A 0B 80 15 02 00 08 00 F4 03 04 00 C5 AB 5F 66 00 00 E5 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 1A 0B 00 90 00 99 [00:05:25]RAPDU: 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=25 [00:05:25]MH_SAM_APDU [00:05:25]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 [00:05:25]Write to MH i2c: E2 1C 00 1B 0B 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 0B [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:05:25]Read from MH i2c: E2 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 [00:05:25]MH_I2C_Read... [00:05:25]Read from MH i2c: E2 03 00 1B 0B 00 90 00 9A [00:05:25]RAPDU: 90 00 [00:05:25]wFMCommunicate OK [00:05:25]wFMCommunicate request_size=4 [00:05:25]MH_SAM_APDU [00:05:25]CAPDU: 80 15 03 00 [00:05:25]Write to MH i2c: E2 08 00 1C 0B 80 15 03 00 00 00 00 00 A8 [00:05:25]Write i2c OK [00:05:25]MH_I2C_Read... [00:05:26]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:05:26]Read from MH i2c: E2 [00:05:26]MH_I2C_Read... [00:05:26]Read from MH i2c: E2 38 00 [00:05:26]MH_I2C_Read... [00:05:26]Read from MH i2c: E2 38 00 1C 0B 00 33 00 B9 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 50 FA 00 00 0E 04 04 00 77 01 00 00 35 04 06 00 FB 15 90 F8 CA 23 90 00 BA [00:05:26]RAPDU: 33 00 B9 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 50 FA 00 00 0E 04 04 00 77 01 00 00 35 04 06 00 FB 15 90 F8 CA 23 90 00 [00:05:26]wFMCommunicate OK [00:05:26]SAM_PROTO_ProcessDocument answer len = 51 [00:05:26]SAM_PROTO_ProcessDocument done [00:05:26]SetTLVBufToDocument [00:05:26]Processing tag 1209 (04B9) [00:05:26]Malloc new data [00:05:26]Processing tag 1041 (0411) [00:05:26]Processing tag 1040 (0410) [00:05:26]Malloc new data [00:05:26]Processing tag 1038 (040E) [00:05:26]Malloc new data [00:05:26]Processing tag 1077 (0435) [00:05:26]Malloc new data [00:05:26]SetTLVBufToDocument err=0 [00:05:26]KKMLoadAndSignOpenShiftData store KKM data [00:05:26]KKMLoadAndSignOpenShiftData err=0 [00:05:26]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Койгельдиева Р. Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 Место: АЗС № 117 "Партнер Нефть" 05.06.2024 00:05 Смена: 375 РНМ: 0000000000092737 ЗНМ: 0300000031 ФД: 64080 ФМ: 0000000000875074 ФПД: 276070045108771 [00:05:26]StoreToDocumentArchive [00:05:26]shift 375 fd 64080 [00:05:26]Create dir for shift 0375 [00:05:26]save to /storage/0375/doc_00064080 [00:05:26]save last doc name /storage/0375/doc_00064080 to /storage/kkm_last_doc_name [00:05:26]save OK [00:05:26]Clear old archive folders... [00:05:26]Remove dir /storage/0374 [00:05:26]opendir ok [00:05:26]file . [00:05:26]file .. [00:05:26]file doc_00063915 [00:05:26]remove file /storage/0374/doc_00063915 [00:05:26]file doc_00063916 [00:05:26]remove file /storage/0374/doc_00063916 [00:05:26]file doc_00063917 [00:05:26]remove file /storage/0374/doc_00063917 [00:05:26]file doc_00063918 [00:05:26]remove file /storage/0374/doc_00063918 [00:05:26]file doc_00063919 [00:05:26]remove file /storage/0374/doc_00063919 [00:05:26]file doc_00063920 [00:05:26]remove file /storage/0374/doc_00063920 [00:05:26]file doc_00063921 [00:05:26]remove file /storage/0374/doc_00063921 [00:05:26]file doc_00063922 [00:05:26]remove file /storage/0374/doc_00063922 [00:05:26]file doc_00063923 [00:05:26]remove file /storage/0374/doc_00063923 [00:05:26]file doc_00063924 [00:05:26]remove file /storage/0374/doc_00063924 [00:05:26]file doc_00063925 [00:05:26]remove file /storage/0374/doc_00063925 [00:05:26]file doc_00063926 [00:05:26]remove file /storage/0374/doc_00063926 [00:05:26]file doc_00063927 [00:05:26]remove file /storage/0374/doc_00063927 [00:05:26]file doc_00063928 [00:05:26]remove file /storage/0374/doc_00063928 [00:05:26]file doc_00063929 [00:05:26]remove file /storage/0374/doc_00063929 [00:05:26]file doc_00063930 [00:05:26]remove file /storage/0374/doc_00063930 [00:05:26]file doc_00063931 [00:05:26]remove file /storage/0374/doc_00063931 [00:05:26]file doc_00063932 [00:05:26]remove file /storage/0374/doc_00063932 [00:05:26]file doc_00063933 [00:05:26]remove file /storage/0374/doc_00063933 [00:05:26]file doc_00063934 [00:05:26]remove file /storage/0374/doc_00063934 [00:05:26]file doc_00063935 [00:05:26]remove file /storage/0374/doc_00063935 [00:05:26]file doc_00063936 [00:05:26]remove file /storage/0374/doc_00063936 [00:05:26]file doc_00063937 [00:05:26]remove file /storage/0374/doc_00063937 [00:05:26]file doc_00063938 [00:05:26]remove file /storage/0374/doc_00063938 [00:05:26]file doc_00063939 [00:05:26]remove file /storage/0374/doc_00063939 [00:05:26]file doc_00063940 [00:05:26]remove file /storage/0374/doc_00063940 [00:05:26]file doc_00063941 [00:05:26]remove file /storage/0374/doc_00063941 [00:05:26]file doc_00063942 [00:05:26]remove file /storage/0374/doc_00063942 [00:05:26]file doc_00063943 [00:05:26]remove file /storage/0374/doc_00063943 [00:05:26]file doc_00063944 [00:05:26]remove file /storage/0374/doc_00063944 [00:05:26]file doc_00063945 [00:05:26]remove file /storage/0374/doc_00063945 [00:05:26]file doc_00063946 [00:05:26]remove file /storage/0374/doc_00063946 [00:05:26]file doc_00063947 [00:05:26]remove file /storage/0374/doc_00063947 [00:05:26]file doc_00063948 [00:05:26]remove file /storage/0374/doc_00063948 [00:05:26]file doc_00063949 [00:05:26]remove file /storage/0374/doc_00063949 [00:05:26]file doc_00063950 [00:05:26]remove file /storage/0374/doc_00063950 [00:05:26]file doc_00063951 [00:05:26]remove file /storage/0374/doc_00063951 [00:05:26]file doc_00063952 [00:05:26]remove file /storage/0374/doc_00063952 [00:05:26]file doc_00063953 [00:05:26]remove file /storage/0374/doc_00063953 [00:05:26]file doc_00063954 [00:05:26]remove file /storage/0374/doc_00063954 [00:05:26]file doc_00063955 [00:05:26]remove file /storage/0374/doc_00063955 [00:05:26]file doc_00063956 [00:05:26]remove file /storage/0374/doc_00063956 [00:05:26]file doc_00063957 [00:05:26]remove file /storage/0374/doc_00063957 [00:05:26]file doc_00063958 [00:05:26]remove file /storage/0374/doc_00063958 [00:05:26]file doc_00063959 [00:05:26]remove file /storage/0374/doc_00063959 [00:05:26]file doc_00063960 [00:05:26]remove file /storage/0374/doc_00063960 [00:05:26]file doc_00063961 [00:05:26]remove file /storage/0374/doc_00063961 [00:05:26]file doc_00063962 [00:05:26]remove file /storage/0374/doc_00063962 [00:05:26]file doc_00063963 [00:05:26]remove file /storage/0374/doc_00063963 [00:05:26]file doc_00063964 [00:05:26]remove file /storage/0374/doc_00063964 [00:05:26]file doc_00063965 [00:05:26]remove file /storage/0374/doc_00063965 [00:05:26]file doc_00063966 [00:05:26]remove file /storage/0374/doc_00063966 [00:05:26]file doc_00063967 [00:05:26]remove file /storage/0374/doc_00063967 [00:05:26]file doc_00063968 [00:05:26]remove file /storage/0374/doc_00063968 [00:05:26]file doc_00063969 [00:05:26]remove file /storage/0374/doc_00063969 [00:05:26]file doc_00063970 [00:05:26]remove file /storage/0374/doc_00063970 [00:05:26]file doc_00063971 [00:05:26]remove file /storage/0374/doc_00063971 [00:05:26]file doc_00063972 [00:05:26]remove file /storage/0374/doc_00063972 [00:05:26]file doc_00063973 [00:05:26]remove file /storage/0374/doc_00063973 [00:05:26]file doc_00063974 [00:05:26]remove file /storage/0374/doc_00063974 [00:05:26]file doc_00063975 [00:05:26]remove file /storage/0374/doc_00063975 [00:05:26]file doc_00063976 [00:05:26]remove file /storage/0374/doc_00063976 [00:05:26]file doc_00063977 [00:05:26]remove file /storage/0374/doc_00063977 [00:05:26]file doc_00063978 [00:05:26]remove file /storage/0374/doc_00063978 [00:05:26]file doc_00063979 [00:05:26]remove file /storage/0374/doc_00063979 [00:05:26]file doc_00063980 [00:05:26]remove file /storage/0374/doc_00063980 [00:05:26]file doc_00063981 [00:05:26]remove file /storage/0374/doc_00063981 [00:05:26]file doc_00063982 [00:05:26]remove file /storage/0374/doc_00063982 [00:05:26]file doc_00063983 [00:05:26]remove file /storage/0374/doc_00063983 [00:05:26]file doc_00063984 [00:05:26]remove file /storage/0374/doc_00063984 [00:05:26]file doc_00063985 [00:05:26]remove file /storage/0374/doc_00063985 [00:05:26]file doc_00063986 [00:05:26]remove file /storage/0374/doc_00063986 [00:05:26]file doc_00063987 [00:05:26]remove file /storage/0374/doc_00063987 [00:05:26]file doc_00063988 [00:05:26]remove file /storage/0374/doc_00063988 [00:05:26]file doc_00063989 [00:05:26]remove file /storage/0374/doc_00063989 [00:05:26]file doc_00063990 [00:05:26]remove file /storage/0374/doc_00063990 [00:05:26]file doc_00063991 [00:05:26]remove file /storage/0374/doc_00063991 [00:05:26]file doc_00063992 [00:05:26]remove file /storage/0374/doc_00063992 [00:05:26]file doc_00063993 [00:05:26]remove file /storage/0374/doc_00063993 [00:05:26]file doc_00063994 [00:05:26]remove file /storage/0374/doc_00063994 [00:05:26]file doc_00063995 [00:05:26]remove file /storage/0374/doc_00063995 [00:05:26]file doc_00063996 [00:05:26]remove file /storage/0374/doc_00063996 [00:05:26]file doc_00063997 [00:05:26]remove file /storage/0374/doc_00063997 [00:05:26]file doc_00063998 [00:05:26]remove file /storage/0374/doc_00063998 [00:05:26]file doc_00063999 [00:05:26]remove file /storage/0374/doc_00063999 [00:05:26]file doc_00064000 [00:05:26]remove file /storage/0374/doc_00064000 [00:05:26]file doc_00064001 [00:05:26]remove file /storage/0374/doc_00064001 [00:05:26]file doc_00064002 [00:05:26]remove file /storage/0374/doc_00064002 [00:05:26]file doc_00064003 [00:05:26]remove file /storage/0374/doc_00064003 [00:05:26]file doc_00064004 [00:05:26]remove file /storage/0374/doc_00064004 [00:05:26]file doc_00064005 [00:05:26]remove file /storage/0374/doc_00064005 [00:05:26]file doc_00064006 [00:05:26]remove file /storage/0374/doc_00064006 [00:05:26]file doc_00064007 [00:05:26]remove file /storage/0374/doc_00064007 [00:05:26]file doc_00064008 [00:05:26]remove file /storage/0374/doc_00064008 [00:05:26]file doc_00064009 [00:05:26]remove file /storage/0374/doc_00064009 [00:05:26]file doc_00064010 [00:05:26]remove file /storage/0374/doc_00064010 [00:05:26]file doc_00064011 [00:05:26]remove file /storage/0374/doc_00064011 [00:05:26]file doc_00064012 [00:05:26]remove file /storage/0374/doc_00064012 [00:05:26]file doc_00064013 [00:05:26]remove file /storage/0374/doc_00064013 [00:05:26]file doc_00064014 [00:05:26]remove file /storage/0374/doc_00064014 [00:05:26]file doc_00064015 [00:05:26]remove file /storage/0374/doc_00064015 [00:05:26]file doc_00064016 [00:05:26]remove file /storage/0374/doc_00064016 [00:05:26]file doc_00064017 [00:05:26]remove file /storage/0374/doc_00064017 [00:05:26]file doc_00064018 [00:05:26]remove file /storage/0374/doc_00064018 [00:05:26]file doc_00064019 [00:05:26]remove file /storage/0374/doc_00064019 [00:05:26]file doc_00064020 [00:05:26]remove file /storage/0374/doc_00064020 [00:05:26]file doc_00064021 [00:05:26]remove file /storage/0374/doc_00064021 [00:05:26]file doc_00064022 [00:05:26]remove file /storage/0374/doc_00064022 [00:05:26]file doc_00064023 [00:05:26]remove file /storage/0374/doc_00064023 [00:05:26]file doc_00064024 [00:05:26]remove file /storage/0374/doc_00064024 [00:05:26]file doc_00064025 [00:05:26]remove file /storage/0374/doc_00064025 [00:05:26]file doc_00064026 [00:05:26]remove file /storage/0374/doc_00064026 [00:05:26]file doc_00064027 [00:05:26]remove file /storage/0374/doc_00064027 [00:05:26]file doc_00064028 [00:05:26]remove file /storage/0374/doc_00064028 [00:05:26]file doc_00064029 [00:05:26]remove file /storage/0374/doc_00064029 [00:05:26]file doc_00064030 [00:05:26]remove file /storage/0374/doc_00064030 [00:05:26]file doc_00064031 [00:05:27]remove file /storage/0374/doc_00064031 [00:05:27]file doc_00064032 [00:05:27]remove file /storage/0374/doc_00064032 [00:05:27]file doc_00064033 [00:05:27]remove file /storage/0374/doc_00064033 [00:05:27]file doc_00064034 [00:05:27]remove file /storage/0374/doc_00064034 [00:05:27]file doc_00064035 [00:05:27]remove file /storage/0374/doc_00064035 [00:05:27]file doc_00064036 [00:05:27]remove file /storage/0374/doc_00064036 [00:05:27]file doc_00064037 [00:05:27]remove file /storage/0374/doc_00064037 [00:05:27]file doc_00064038 [00:05:27]remove file /storage/0374/doc_00064038 [00:05:27]file doc_00064039 [00:05:27]remove file /storage/0374/doc_00064039 [00:05:27]file doc_00064040 [00:05:27]remove file /storage/0374/doc_00064040 [00:05:27]file doc_00064041 [00:05:27]remove file /storage/0374/doc_00064041 [00:05:27]file doc_00064042 [00:05:27]remove file /storage/0374/doc_00064042 [00:05:27]file doc_00064043 [00:05:27]remove file /storage/0374/doc_00064043 [00:05:27]file doc_00064044 [00:05:27]remove file /storage/0374/doc_00064044 [00:05:27]file doc_00064045 [00:05:27]remove file /storage/0374/doc_00064045 [00:05:27]file doc_00064046 [00:05:27]remove file /storage/0374/doc_00064046 [00:05:27]file doc_00064047 [00:05:27]remove file /storage/0374/doc_00064047 [00:05:27]file doc_00064048 [00:05:27]remove file /storage/0374/doc_00064048 [00:05:27]file doc_00064049 [00:05:27]remove file /storage/0374/doc_00064049 [00:05:27]file doc_00064050 [00:05:27]remove file /storage/0374/doc_00064050 [00:05:27]file doc_00064051 [00:05:27]remove file /storage/0374/doc_00064051 [00:05:27]file doc_00064052 [00:05:27]remove file /storage/0374/doc_00064052 [00:05:27]file doc_00064053 [00:05:27]remove file /storage/0374/doc_00064053 [00:05:27]file doc_00064054 [00:05:27]remove file /storage/0374/doc_00064054 [00:05:27]file doc_00064055 [00:05:27]remove file /storage/0374/doc_00064055 [00:05:27]file doc_00064056 [00:05:27]remove file /storage/0374/doc_00064056 [00:05:27]file doc_00064057 [00:05:27]remove file /storage/0374/doc_00064057 [00:05:27]file doc_00064058 [00:05:27]remove file /storage/0374/doc_00064058 [00:05:27]file doc_00064059 [00:05:27]remove file /storage/0374/doc_00064059 [00:05:27]file doc_00064060 [00:05:27]remove file /storage/0374/doc_00064060 [00:05:27]file doc_00064061 [00:05:27]remove file /storage/0374/doc_00064061 [00:05:27]file doc_00064062 [00:05:27]remove file /storage/0374/doc_00064062 [00:05:27]file doc_00064063 [00:05:27]remove file /storage/0374/doc_00064063 [00:05:27]file doc_00064064 [00:05:27]remove file /storage/0374/doc_00064064 [00:05:27]file doc_00064065 [00:05:27]remove file /storage/0374/doc_00064065 [00:05:27]file doc_00064066 [00:05:27]remove file /storage/0374/doc_00064066 [00:05:27]file doc_00064067 [00:05:27]remove file /storage/0374/doc_00064067 [00:05:27]file doc_00064068 [00:05:27]remove file /storage/0374/doc_00064068 [00:05:27]file doc_00064069 [00:05:27]remove file /storage/0374/doc_00064069 [00:05:27]file doc_00064070 [00:05:27]remove file /storage/0374/doc_00064070 [00:05:27]file doc_00064071 [00:05:27]remove file /storage/0374/doc_00064071 [00:05:27]file doc_00064072 [00:05:27]remove file /storage/0374/doc_00064072 [00:05:27]file doc_00064073 [00:05:27]remove file /storage/0374/doc_00064073 [00:05:27]file doc_00064074 [00:05:27]remove file /storage/0374/doc_00064074 [00:05:27]file doc_00064075 [00:05:27]remove file /storage/0374/doc_00064075 [00:05:27]file doc_00064076 [00:05:27]remove file /storage/0374/doc_00064076 [00:05:27]file doc_00064077 [00:05:27]remove file /storage/0374/doc_00064077 [00:05:27]file doc_00064078 [00:05:27]remove file /storage/0374/doc_00064078 [00:05:27]file doc_00064079 [00:05:27]remove file /storage/0374/doc_00064079 [00:05:27]remove dir /storage/0374 [00:05:27]ProcessDocumentItem done err = 0, tmpTLVsize=284 [00:05:27]tlvbuf is 00FC1B10 [00:05:27]SAM_PROTO_ClearQueue [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 09 00 00 [00:05:27]Write to MH i2c: E2 08 00 1D 0B 80 09 00 00 00 00 00 00 9A [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_ClearQueue done [00:05:27]KKMCreateOFDPacket [00:05:27]OFDProtocolAddRootSTLVToBuf [00:05:27]FM_MakeSignedData [00:05:27]FM_MakeSignedData [00:05:27]SAM_PROTO_SignData [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 0D 01 02 [00:05:27]Write to MH i2c: E2 08 00 1E 0B 80 0D 01 02 00 00 00 00 A2 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 1E 0B 00 90 00 9D [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=255 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 0D 02 02 FA 02 00 1C 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 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 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C5 AB 5F 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 [00:05:27]Write to MH i2c: E2 02 01 1F 0B 80 0D 02 02 FA 00 02 00 1C 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 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 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C5 AB 5F 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 00 00 41 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 1F 0B 00 90 00 9E [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=43 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 0D 02 02 26 10 04 04 00 50 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 FB 15 90 F8 CA 23 [00:05:27]Write to MH i2c: E2 2E 00 20 0B 80 0D 02 02 26 00 10 04 04 00 50 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 FB 15 90 F8 CA 23 00 00 5B [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 03 00 20 0B 00 90 00 9F [00:05:27]RAPDU: 90 00 [00:05:27]wFMCommunicate OK [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 0D 03 02 [00:05:27]Write to MH i2c: E2 08 00 21 0B 80 0D 03 02 00 00 00 00 A7 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0B 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 0B 00 21 0B 00 DF 0F FA A6 22 18 9C C3 90 00 CF [00:05:27]RAPDU: DF 0F FA A6 22 18 9C C3 90 00 [00:05:27]wFMCommunicate OK [00:05:27]SAM_PROTO_SignData done [00:05:27]FM_MakeSignedData done [00:05:27]CreateOFDProtocolMessage [00:05:27]wFMCommunicate request_size=4 [00:05:27]MH_SAM_APDU [00:05:27]CAPDU: 80 11 00 00 [00:05:27]Write to MH i2c: E2 08 00 22 0B 80 11 00 00 00 00 00 00 A7 [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:27]Read from MH i2c: E2 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 17 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: E2 17 00 22 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 F9 [00:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:05:27]wFMCommunicate OK [00:05:27]CreateOFDProtocolMessage done [00:05:27]OFDSenderStorePacket 64080 [00:05:27]StoreOFDPacket docnum=64080 [00:05: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 30 01 00 00 70 B9 28 01 19 DA 5A 02 01 00 02 00 1C 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 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 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C5 AB 5F 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 10 04 04 00 50 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 FB 15 90 F8 CA 23 DF 0F FA A6 22 18 9C C3 [00:05:27]CheckFolder [00:05:27]dirname=/storage/ofd_packets [00:05:27]CheckFolder done [00:05:27]ProducePacketName [00:05:27]name=ofd_packets/00064080 [00:05:27]NVStorageSaveData ofd_packets/00064080 [00:05:27]File name is /storage/ofd_packets/00064080 [00:05:27]Write 334 bytes [00:05:27]NVStorageSaveData done [00:05:27]OFDSenderStorePacket done [00:05:27]KKMCreateOFDPacket done [00:05:27]NVStorageSaveData kkm_last_timestamp [00:05:27]File name is /storage/kkm_last_timestamp [00:05:27]Write 4 bytes [00:05:27]NVStorageSaveData done [00:05:27]ExternCall_PrintAddStr [00:05:27]wPrintStart [00:05:27]Write to MH i2c: 01 00 00 23 0B 2E [00:05:27]Write i2c OK [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: 01 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: 01 07 00 [00:05:27]MH_I2C_Read... [00:05:27]Read from MH i2c: 01 07 00 23 0B 00 00 00 00 00 FF 0F 43 [00:05:27]RasterBufferAndPrint [00:05:27]line Отчет об открытии смены [00:05:27]line ФФД: 1.0 [00:05:27]line ИНН: 02508201610067 [00:05:27]line Кассир: Койгельдиева Р. [00:05:27]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [00:05:27]line Место: АЗС № 117 "Партнер Нефть" [00:05:27]line 05.06.2024 00:05 [00:05:27]line Смена: 375 [00:05:27]line РНМ: 0000000000092737 [00:05:27]line ЗНМ: 0300000031 [00:05:27]line ФД: 64080 [00:05:27]line ФМ: 0000000000875074 [00:05:27]line ФПД: 276070045108771 [00:05:27]written 0, free lines is 4095 [00:05:27]OFD Sender: Processing packet 64080 [packets to send 14, broken 13] [00:05:27]ProducePacketName [00:05:27]name=ofd_packets/00064080 [00:05:27]OFD Sender: To server: pG, [00:05:27]CommunicateWithHost lk.salyk.kg:30040 [00:05:27]ConnectInit lk.salyk.kg [00:05:28]Connected sock=10 [00:05:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 30 01 00 00 70 B9 28 01 19 DA 5A 02 01 00 02 00 1C 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 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 F1 03 69 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 20 31 30 31 2F 31 20 28 D0 BA D0 BE D0 BB D1 8C D1 86 D0 BE 29 2C 20 34 32 2E 35 30 30 31 34 30 2C 20 37 38 2E 33 38 36 35 39 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C5 AB 5F 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 10 04 04 00 50 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 FB 15 90 F8 CA 23 DF 0F FA A6 22 18 9C C3 [00:05:28]Write to MH i2c: 01 00 00 35 0B 40 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 07 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: 01 07 00 35 0B 00 00 00 00 00 76 0E CB [00:05:28]RasterBufferAndPrint [00:05:28]line [00:05:28]line [00:05:28]line [00:05:28]line [00:05:28]line [00:05:28]written 0, free lines is 3718 [00:05:28]MH_Cut [00:05:28]Write to MH i2c: D1 01 00 3C 0B 01 19 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: D1 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: D1 01 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: D1 01 00 3C 0B 00 18 [00:05:28]Write to MH i2c: 01 00 00 3D 0B 48 [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05: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 87 66 47 00 A6 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 50 FA 00 00 F4 03 04 00 D3 57 5F 66 B6 04 01 00 00 34 29 DA F4 EB 43 57 58 [00:05:28]CommunicateWithHost err = 0 [00:05:28]CheckOFDResponse [00:05:28]1017 (14) - 77093643461234 [00:05:28]1041 (16) - 0000000000875074 [00:05:28]1040 (4) - 64080 [00:05:28]1012 (4) - 04.06.2024 18:07 [00:05:28]1206 (1) - 0 [00:05:28]OFD Sender: Remove packet 64080 [00:05:28]ProducePacketName [00:05:28]name=ofd_packets/00064080 [00:05:28]NVStorageDeleteData [00:05:28]*** Cut start [00:05:28]*** Partial cut [00:05:28]*** CUTSNS_PIN = 1 [00:05:28]*** CUTSNS_PIN = 0 [00:05:28]OFD Sender: No OFD packet to send [00:05:28]*** Brake cut motor [00:05:29]Read from MH i2c: 01 [00:05:29]MH_I2C_Read... [00:05:29]*** Stop cut motor [00:05:29]*** Cut end [00:05:29]Read from MH i2c: 01 07 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: 01 07 00 3D 0B 00 00 00 00 00 FF 0F 5D [00:05:29]process_action open_shift done [00:05:29]requested_data is exist [00:05:29]produce_requested_data [00:05:29]requested_item fd.num is exist - process it [00:05:29]SAM_PROTO_GetFieldsCounters [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 13 00 00 [00:05:29]Write to MH i2c: E2 08 00 3E 0B 80 13 00 00 00 00 00 00 C5 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 62 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 62 00 3E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 50 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [00:05: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 50 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:29]wFMCommunicate OK [00:05:29]SAM_PROTO_GetFieldsCounters done [00:05:29]requested_item shift.num is exist - process it [00:05:29]requested_item shift.opened is exist - process it [00:05:29]req_shift_opened [00:05:29]FM_GetShiftState [00:05:29]SAM_PROTO_GetShiftState [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 13 01 00 [00:05:29]Write to MH i2c: E2 08 00 3F 0B 80 13 01 00 00 00 00 00 C7 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 0E 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 0E 00 3F 0B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 08 [00:05:29]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [00:05:29]wFMCommunicate OK [00:05:29]SAM_PROTO_GetShiftState done [00:05:29]FM_GetShiftState done [00:05:29]req_shift_opened done [00:05:29]requested_item shift.open_date is exist - process it [00:05:29]req_shift_open_date [00:05:29]req_shift_open_date done [00:05:29]produce_requested_data done [00:05:29]produce_requested_data return {"fd.num":64080,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [00:05:29]process_action_free open_shift [00:05:29]json_value_free [00:05:29]json_value_free done [00:05:29]process_json_proto returns [00:05:29]Send response to host [00:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":64080,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [00:05:29]free response buf [00:05:29]execute_script done [00:05:29]execute_script returns [00:05:29]free content buf [00:05:29]Sock 8.Close socket [00:05:29]Sock 8.Thread stoped [00:05:29]accept exits with 9 [00:05:29]New connection [00:05:29]New thread 3067133284 created [00:05:29]Thread 3067276644 joined [00:05:29]Waiting for new connection... [00:05:29] Sock 9.Parse request [00:05:29]Sock 9.Check first char [00:05:29]Sock 9.First char is OK [00:05:29]request: POST /json_proto HTTP/1.0 [00:05:29]Method: POST [00:05:29]URL: /json_proto [00:05:29]Method is POST - this is cgi request [00:05:29]url: /json_proto [00:05:29]query_string will be loaded in cgi processing [00:05:29]execute_cgi json_proto POST (null) [00:05:29]execute_cgi path=json_proto method=POST [00:05:29]POST find Content-Length [00:05:29]Host: 172.17.60.69:8080 [00:05:29]Content-Length: 331 [00:05:29]Content-Type: application/json [00:05:29] [00:05:29]POST finish read [00:05:29]Found Content-Length = 331 [00:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:29]execute_script... [00:05:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:05:29]POST & json_proto [00:05:29]process_json_proto [00:05:29]json parsed OK: [00:05:29]protocol is kg_v1.0 [00:05:29]action value=get_value [00:05:29]process_action get_value [00:05:29]cmd_get_value [00:05:29]process_action get_value done [00:05:29]requested_data is exist [00:05:29]produce_requested_data [00:05:29]requested_item fm.sale.total is exist - process it [00:05:29]SAM_PROTO_GetFMData [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 13 03 00 [00:05:29]Write to MH i2c: E2 08 00 40 0B 80 13 03 00 00 00 00 00 CA [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:05:30]Read from MH i2c: E2 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 40 0B 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 0B [00:05:30]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [00:05:30]wFMCommunicate OK [00:05:30]wFMCommunicate request_size=4 [00:05:30]MH_SAM_APDU [00:05:30]CAPDU: 80 17 00 00 [00:05:30]Write to MH i2c: E2 08 00 41 0B 80 17 00 00 00 00 00 00 CC [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:30]Read from MH i2c: E2 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 41 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 75 [00:05:30]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 [00:05:30]wFMCommunicate OK [00:05:30]wFMCommunicate request_size=4 [00:05:30]MH_SAM_APDU [00:05:30]CAPDU: 80 17 00 00 [00:05:30]Write to MH i2c: E2 08 00 42 0B 80 17 00 00 00 00 00 00 CD [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:30]Read from MH i2c: E2 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: E2 FD 00 42 0B 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 DF [00:05:30]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:05:30]wFMCommunicate OK [00:05:30]wFMCommunicate request_size=4 [00:05:30]MH_SAM_APDU [00:05:30]CAPDU: 80 17 00 00 [00:05:30]Write to MH i2c: E2 08 00 43 0B 80 17 00 00 00 00 00 00 CE [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:31]Read from MH i2c: E2 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 FD 00 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 FD 00 43 0B 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 5A [00:05:31]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:05:31]wFMCommunicate OK [00:05:31]wFMCommunicate request_size=4 [00:05:31]MH_SAM_APDU [00:05:31]CAPDU: 80 17 00 00 [00:05:31]Write to MH i2c: E2 08 00 44 0B 80 17 00 00 00 00 00 00 CF [00:05:31]Write i2c OK [00:05:31]MH_I2C_Read... [00:05:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:05:31]Read from MH i2c: E2 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 E2 00 [00:05:31]MH_I2C_Read... [00:05:31]Read from MH i2c: E2 E2 00 44 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AD [00:05:31]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:31]wFMCommunicate OK [00:05:31]SAM_PROTO_GetFMData done [00:05:31]requested_item fm.sale_refund.total is exist - process it [00:05:31]requested_item fm.buy.total is exist - process it [00:05:31]requested_item shift.sale.total is exist - process it [00:05:31]SAM_PROTO_GetShiftData [00:05:31]wFMCommunicate request_size=4 [00:05:31]MH_SAM_APDU [00:05:31]CAPDU: 80 13 02 00 [00:05:31]Write to MH i2c: E2 08 00 45 0B 80 13 02 00 00 00 00 00 CE [00:05:31]Write i2c OK [00:05:31]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 FD 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 FD 00 45 0B 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 41 [00:05:32]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:05:32]wFMCommunicate OK [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 17 00 00 [00:05:32]Write to MH i2c: E2 08 00 46 0B 80 17 00 00 00 00 00 00 D1 [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 FD 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 FD 00 46 0B 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 D9 [00:05:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:05:32]wFMCommunicate OK [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 17 00 00 [00:05:32]Write to MH i2c: E2 08 00 47 0B 80 17 00 00 00 00 00 00 D2 [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:33]Read from MH i2c: E2 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 47 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 A4 [00:05:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:05:33]wFMCommunicate OK [00:05:33]wFMCommunicate request_size=4 [00:05:33]MH_SAM_APDU [00:05:33]CAPDU: 80 17 00 00 [00:05:33]Write to MH i2c: E2 08 00 48 0B 80 17 00 00 00 00 00 00 D3 [00:05:33]Write i2c OK [00:05:33]MH_I2C_Read... [00:05:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:05:33]Read from MH i2c: E2 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 FD 00 48 0B 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 45 [00:05:33]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:05:33]wFMCommunicate OK [00:05:33]wFMCommunicate request_size=4 [00:05:33]MH_SAM_APDU [00:05:33]CAPDU: 80 17 00 00 [00:05:33]Write to MH i2c: E2 08 00 49 0B 80 17 00 00 00 00 00 00 D4 [00:05:33]Write i2c OK [00:05:33]MH_I2C_Read... [00:05:33]OFD Sender: No OFD packet to send [00:05:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:05:33]Read from MH i2c: E2 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 BD 00 [00:05:33]MH_I2C_Read... [00:05:33]Read from MH i2c: E2 BD 00 49 0B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BA [00:05:34]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:05:34]wFMCommunicate OK [00:05:34]SAM_PROTO_GetShiftData done [00:05:34]requested_item shift.sale.total_cash is exist - process it [00:05:34]requested_item shift.sale_refund.total is exist - process it [00:05:34]requested_item shift.sale_refund.total_cash is exist - process it [00:05:34]requested_item shift.buy.total is exist - process it [00:05:34]requested_item shift.buy.total_cash is exist - process it [00:05:34]produce_requested_data done [00:05:34]produce_requested_data return {"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:05:34]process_action_free get_value [00:05:34]json_value_free [00:05:34]json_value_free done [00:05:34]process_json_proto returns [00:05:34]Send response to host [00:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:05:34]free response buf [00:05:34]execute_script done [00:05:34]execute_script returns [00:05:34]free content buf [00:05:34]Sock 9.Close socket [00:05:34]Sock 9.Thread stoped [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:35]accept exits with 8 [00:06:35]New connection [00:06:35]New thread 3067276644 created [00:06:35]Thread 3067133284 joined [00:06:35]Waiting for new connection... [00:06:35] Sock 8.Parse request [00:06:35]Sock 8.Check first char [00:06:35]Sock 8.First char is OK [00:06:35]request: POST /json_proto HTTP/1.0 [00:06:35]Method: POST [00:06:35]URL: /json_proto [00:06:35]Method is POST - this is cgi request [00:06:35]url: /json_proto [00:06:35]query_string will be loaded in cgi processing [00:06:35]execute_cgi json_proto POST (null) [00:06:35]execute_cgi path=json_proto method=POST [00:06:35]POST find Content-Length [00:06:35]Host: 172.17.60.69:8080 [00:06:35]Content-Length: 215 [00:06:35]Content-Type: application/json [00:06:35] [00:06:35]POST finish read [00:06:35]Found Content-Length = 215 [00:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:35]execute_script... [00:06:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:35]POST & json_proto [00:06:35]process_json_proto [00:06:35]json parsed OK: [00:06:35]protocol is kg_v1.0 [00:06:35]action value=get_value [00:06:35]process_action get_value [00:06:35]cmd_get_value [00:06:35]process_action get_value done [00:06:35]requested_data is exist [00:06:35]produce_requested_data [00:06:35]requested_item kkm.sn is exist - process it [00:06:35]requested_item kkm.ver is exist - process it [00:06:35]requested_item fm.sn is exist - process it [00:06:35]wFMCommunicate request_size=4 [00:06:35]MH_SAM_APDU [00:06:35]CAPDU: 80 11 00 00 [00:06:35]Write to MH i2c: E2 08 00 4A 0B 80 11 00 00 00 00 00 00 CF [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:35]Read from MH i2c: E2 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 17 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 17 00 4A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 21 [00: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 [00:06:35]wFMCommunicate OK [00:06:35]requested_item fd.num is exist - process it [00:06:35]SAM_PROTO_GetFieldsCounters [00:06:35]wFMCommunicate request_size=4 [00:06:35]MH_SAM_APDU [00:06:35]CAPDU: 80 13 00 00 [00:06:35]Write to MH i2c: E2 08 00 4B 0B 80 13 00 00 00 00 00 00 D2 [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 62 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 62 00 4B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 50 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [00:06: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 50 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:36]wFMCommunicate OK [00:06:36]SAM_PROTO_GetFieldsCounters done [00:06:36]requested_item shift.num is exist - process it [00:06:36]requested_item shift.opened is exist - process it [00:06:36]req_shift_opened [00:06:36]FM_GetShiftState [00:06:36]SAM_PROTO_GetShiftState [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 13 01 00 [00:06:36]Write to MH i2c: E2 08 00 4C 0B 80 13 01 00 00 00 00 00 D4 [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 0E 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 0E 00 4C 0B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 15 [00:06:36]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [00:06:36]wFMCommunicate OK [00:06:36]SAM_PROTO_GetShiftState done [00:06:36]FM_GetShiftState done [00:06:36]req_shift_opened done [00:06:36]requested_item shift.open_date is exist - process it [00:06:36]req_shift_open_date [00:06:36]req_shift_open_date done [00:06:36]produce_requested_data done [00:06:36]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64080,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [00:06:36]process_action_free get_value [00:06:36]json_value_free [00:06:36]json_value_free done [00:06:36]process_json_proto returns [00:06:36]Send response to host [00:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64080,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [00:06:36]free response buf [00:06:36]execute_script done [00:06:36]execute_script returns [00:06:36]free content buf [00:06:36]Sock 8.Close socket [00:06:36]Sock 8.Thread stoped [00:06:38]OFD Sender: No OFD packet to send [00:06:39]accept exits with 9 [00:06:39]New connection [00:06:39]New thread 3067133284 created [00:06:39]Thread 3067276644 joined [00:06:39]Waiting for new connection... [00:06:39] Sock 9.Parse request [00:06:39]Sock 9.Check first char [00:06:39]Sock 9.First char is OK [00:06:39]request: POST /json_proto HTTP/1.0 [00:06:39]Method: POST [00:06:39]URL: /json_proto [00:06:39]Method is POST - this is cgi request [00:06:39]url: /json_proto [00:06:39]query_string will be loaded in cgi processing [00:06:39]execute_cgi json_proto POST (null) [00:06:39]execute_cgi path=json_proto method=POST [00:06:39]POST find Content-Length [00:06:39]Host: 172.17.60.69:8080 [00:06:39]Content-Length: 331 [00:06:39]Content-Type: application/json [00:06:39] [00:06:39]POST finish read [00:06:39]Found Content-Length = 331 [00:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:39]execute_script... [00:06:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:39]POST & json_proto [00:06:39]process_json_proto [00:06:39]json parsed OK: [00:06:39]protocol is kg_v1.0 [00:06:39]action value=get_value [00:06:39]process_action get_value [00:06:39]cmd_get_value [00:06:39]process_action get_value done [00:06:39]requested_data is exist [00:06:39]produce_requested_data [00:06:39]requested_item fm.sale.total is exist - process it [00:06:39]SAM_PROTO_GetFMData [00:06:39]wFMCommunicate request_size=4 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 13 03 00 [00:06:39]Write to MH i2c: E2 08 00 4D 0B 80 13 03 00 00 00 00 00 D7 [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 FD 00 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 FD 00 4D 0B 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 18 [00:06:39]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [00:06:39]wFMCommunicate OK [00:06:39]wFMCommunicate request_size=4 [00:06:39]MH_SAM_APDU [00:06:39]CAPDU: 80 17 00 00 [00:06:39]Write to MH i2c: E2 08 00 4E 0B 80 17 00 00 00 00 00 00 D9 [00:06:39]Write i2c OK [00:06:39]MH_I2C_Read... [00:06:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:39]Read from MH i2c: E2 [00:06:39]MH_I2C_Read... [00:06:39]Read from MH i2c: E2 FD 00 [00:06:39]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 FD 00 4E 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 82 [00:06:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 [00:06:40]wFMCommunicate OK [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 17 00 00 [00:06:40]Write to MH i2c: E2 08 00 4F 0B 80 17 00 00 00 00 00 00 DA [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:40]Read from MH i2c: E2 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 FD 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 FD 00 4F 0B 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 EC [00:06:40]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:06:40]wFMCommunicate OK [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 17 00 00 [00:06:40]Write to MH i2c: E2 08 00 50 0B 80 17 00 00 00 00 00 00 DB [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:40]Read from MH i2c: E2 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 FD 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 FD 00 50 0B 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 67 [00:06:40]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:06:40]wFMCommunicate OK [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 17 00 00 [00:06:40]Write to MH i2c: E2 08 00 51 0B 80 17 00 00 00 00 00 00 DC [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:06:40]Read from MH i2c: E2 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 E2 00 [00:06:40]MH_I2C_Read... [00:06:40]Read from MH i2c: E2 E2 00 51 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BA [00:06:40]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:40]wFMCommunicate OK [00:06:40]SAM_PROTO_GetFMData done [00:06:40]requested_item fm.sale_refund.total is exist - process it [00:06:40]requested_item fm.buy.total is exist - process it [00:06:40]requested_item shift.sale.total is exist - process it [00:06:40]SAM_PROTO_GetShiftData [00:06:40]wFMCommunicate request_size=4 [00:06:40]MH_SAM_APDU [00:06:40]CAPDU: 80 13 02 00 [00:06:40]Write to MH i2c: E2 08 00 52 0B 80 13 02 00 00 00 00 00 DB [00:06:40]Write i2c OK [00:06:40]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 52 0B 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 4E [00:06:41]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:06:41]wFMCommunicate OK [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 17 00 00 [00:06:41]Write to MH i2c: E2 08 00 53 0B 80 17 00 00 00 00 00 00 DE [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 53 0B 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 E6 [00:06:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:06:41]wFMCommunicate OK [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 17 00 00 [00:06:41]Write to MH i2c: E2 08 00 54 0B 80 17 00 00 00 00 00 00 DF [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:41]Read from MH i2c: E2 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 [00:06:41]MH_I2C_Read... [00:06:41]Read from MH i2c: E2 FD 00 54 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 B1 [00:06:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:06:41]wFMCommunicate OK [00:06:41]wFMCommunicate request_size=4 [00:06:41]MH_SAM_APDU [00:06:41]CAPDU: 80 17 00 00 [00:06:41]Write to MH i2c: E2 08 00 55 0B 80 17 00 00 00 00 00 00 E0 [00:06:41]Write i2c OK [00:06:41]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 FD 00 55 0B 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 52 [00:06:42]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:06:42]wFMCommunicate OK [00:06:42]wFMCommunicate request_size=4 [00:06:42]MH_SAM_APDU [00:06:42]CAPDU: 80 17 00 00 [00:06:42]Write to MH i2c: E2 08 00 56 0B 80 17 00 00 00 00 00 00 E1 [00:06:42]Write i2c OK [00:06:42]MH_I2C_Read... [00:06:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:06:42]Read from MH i2c: E2 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 BD 00 [00:06:42]MH_I2C_Read... [00:06:42]Read from MH i2c: E2 BD 00 56 0B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C7 [00:06:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:42]wFMCommunicate OK [00:06:42]SAM_PROTO_GetShiftData done [00:06:42]requested_item shift.sale.total_cash is exist - process it [00:06:42]requested_item shift.sale_refund.total is exist - process it [00:06:42]requested_item shift.sale_refund.total_cash is exist - process it [00:06:42]requested_item shift.buy.total is exist - process it [00:06:42]requested_item shift.buy.total_cash is exist - process it [00:06:42]produce_requested_data done [00:06:42]produce_requested_data return {"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:06:42]process_action_free get_value [00:06:42]json_value_free [00:06:42]json_value_free done [00:06:42]process_json_proto returns [00:06:42]Send response to host [00:06:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:06:42]free response buf [00:06:42]execute_script done [00:06:42]execute_script returns [00:06:42]free content buf [00:06:42]Sock 9.Close socket [00:06:42]Sock 9.Thread stoped [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:12]accept exits with 8 [00:08:12]New connection [00:08:12]New thread 3067276644 created [00:08:12]Thread 3067133284 joined [00:08:12]Waiting for new connection... [00:08:12] Sock 8.Parse request [00:08:12]Sock 8.Check first char [00:08:12]Sock 8.First char is OK [00:08:12]request: POST /json_proto HTTP/1.0 [00:08:12]Method: POST [00:08:12]URL: /json_proto [00:08:12]Method is POST - this is cgi request [00:08:12]url: /json_proto [00:08:12]query_string will be loaded in cgi processing [00:08:12]execute_cgi json_proto POST (null) [00:08:12]execute_cgi path=json_proto method=POST [00:08:12]POST find Content-Length [00:08:12]Host: 172.17.60.69:8080 [00:08:12]Content-Length: 215 [00:08:12]Content-Type: application/json [00:08:12] [00:08:12]POST finish read [00:08:12]Found Content-Length = 215 [00:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:12]execute_script... [00:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:12]POST & json_proto [00:08:12]process_json_proto [00:08:12]json parsed OK: [00:08:12]protocol is kg_v1.0 [00:08:12]action value=get_value [00:08:12]process_action get_value [00:08:12]cmd_get_value [00:08:12]process_action get_value done [00:08:12]requested_data is exist [00:08:12]produce_requested_data [00:08:12]requested_item kkm.sn is exist - process it [00:08:12]requested_item kkm.ver is exist - process it [00:08:12]requested_item fm.sn is exist - process it [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 11 00 00 [00:08:12]Write to MH i2c: E2 08 00 57 0B 80 11 00 00 00 00 00 00 DC [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 17 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 17 00 57 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 2E [00:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [00:08:12]wFMCommunicate OK [00:08:12]requested_item fd.num is exist - process it [00:08:12]SAM_PROTO_GetFieldsCounters [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 13 00 00 [00:08:12]Write to MH i2c: E2 08 00 58 0B 80 13 00 00 00 00 00 00 DF [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 62 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 62 00 58 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 50 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [00:08:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 50 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:12]wFMCommunicate OK [00:08:12]SAM_PROTO_GetFieldsCounters done [00:08:12]requested_item shift.num is exist - process it [00:08:12]requested_item shift.opened is exist - process it [00:08:12]req_shift_opened [00:08:12]FM_GetShiftState [00:08:12]SAM_PROTO_GetShiftState [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 13 01 00 [00:08:12]Write to MH i2c: E2 08 00 59 0B 80 13 01 00 00 00 00 00 E1 [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 0E 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 0E 00 59 0B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 22 [00:08:12]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [00:08:12]wFMCommunicate OK [00:08:12]SAM_PROTO_GetShiftState done [00:08:12]FM_GetShiftState done [00:08:12]req_shift_opened done [00:08:12]requested_item shift.open_date is exist - process it [00:08:12]req_shift_open_date [00:08:12]req_shift_open_date done [00:08:12]produce_requested_data done [00:08:12]produce_requested_data return {"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64080,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [00:08:12]process_action_free get_value [00:08:12]json_value_free [00:08:12]json_value_free done [00:08:12]process_json_proto returns [00:08:12]Send response to host [00:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000031","kkm.ver":"001","fm.sn":"0000000000875074","fd.num":64080,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [00:08:12]free response buf [00:08:12]execute_script done [00:08:12]execute_script returns [00:08:12]free content buf [00:08:12]Sock 8.Close socket [00:08:12]Sock 8.Thread stoped [00:08:14]OFD Sender: No OFD packet to send [00:08:15]accept exits with 9 [00:08:15]New connection [00:08:15]New thread 3067133284 created [00:08:15]Thread 3067276644 joined [00:08:15]Waiting for new connection... [00:08:15] Sock 9.Parse request [00:08:15]Sock 9.Check first char [00:08:15]Sock 9.First char is OK [00:08:15]request: POST /json_proto HTTP/1.0 [00:08:15]Method: POST [00:08:15]URL: /json_proto [00:08:15]Method is POST - this is cgi request [00:08:15]url: /json_proto [00:08:15]query_string will be loaded in cgi processing [00:08:15]execute_cgi json_proto POST (null) [00:08:15]execute_cgi path=json_proto method=POST [00:08:15]POST find Content-Length [00:08:15]Host: 172.17.60.69:8080 [00:08:15]Content-Length: 331 [00:08:15]Content-Type: application/json [00:08:15] [00:08:15]POST finish read [00:08:15]Found Content-Length = 331 [00:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:15]execute_script... [00:08:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:15]POST & json_proto [00:08:15]process_json_proto [00:08:15]json parsed OK: [00:08:15]protocol is kg_v1.0 [00:08:15]action value=get_value [00:08:15]process_action get_value [00:08:15]cmd_get_value [00:08:15]process_action get_value done [00:08:15]requested_data is exist [00:08:15]produce_requested_data [00:08:15]requested_item fm.sale.total is exist - process it [00:08:15]SAM_PROTO_GetFMData [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 13 03 00 [00:08:15]Write to MH i2c: E2 08 00 5A 0B 80 13 03 00 00 00 00 00 E4 [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 5A 0B 00 C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 25 [00:08:16]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 62 F7 00 00 69 04 A1 00 6F 04 04 00 FE F4 00 00 B1 04 04 00 CD 9F 12 77 70 04 04 00 42 C2 44 66 72 04 04 00 8B DD CD 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 FC 82 A5 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 33 B7 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 64 02 00 00 B1 04 04 00 B4 D5 81 03 70 04 04 00 14 55 66 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 8C 5A 5F EF 03 09 90 00 [00:08:16]wFMCommunicate OK [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 17 00 00 [00:08:16]Write to MH i2c: E2 08 00 5B 0B 80 17 00 00 00 00 00 00 E6 [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 5B 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB F1 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 8F [00:08: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 FB F1 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 [00:08:16]wFMCommunicate OK [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 17 00 00 [00:08:16]Write to MH i2c: E2 08 00 5C 0B 80 17 00 00 00 00 00 00 E7 [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 5C 0B 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 F9 [00:08: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 [00:08:16]wFMCommunicate OK [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 17 00 00 [00:08:16]Write to MH i2c: E2 08 00 5D 0B 80 17 00 00 00 00 00 00 E8 [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:17]Read from MH i2c: E2 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 5D 0B 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 74 [00:08: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 [00:08:17]wFMCommunicate OK [00:08:17]wFMCommunicate request_size=4 [00:08:17]MH_SAM_APDU [00:08:17]CAPDU: 80 17 00 00 [00:08:17]Write to MH i2c: E2 08 00 5E 0B 80 17 00 00 00 00 00 00 E9 [00:08:17]Write i2c OK [00:08:17]MH_I2C_Read... [00:08:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:17]Read from MH i2c: E2 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 E2 00 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 E2 00 5E 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C7 [00:08:17]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:17]wFMCommunicate OK [00:08:17]SAM_PROTO_GetFMData done [00:08:17]requested_item fm.sale_refund.total is exist - process it [00:08:17]requested_item fm.buy.total is exist - process it [00:08:17]requested_item shift.sale.total is exist - process it [00:08:17]SAM_PROTO_GetShiftData [00:08:17]wFMCommunicate request_size=4 [00:08:17]MH_SAM_APDU [00:08:17]CAPDU: 80 13 02 00 [00:08:17]Write to MH i2c: E2 08 00 5F 0B 80 13 02 00 00 00 00 00 E8 [00:08:17]Write i2c OK [00:08:17]MH_I2C_Read... [00:08:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:17]Read from MH i2c: E2 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 5F 0B 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 5B [00:08:17]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:08:17]wFMCommunicate OK [00:08:17]wFMCommunicate request_size=4 [00:08:17]MH_SAM_APDU [00:08:17]CAPDU: 80 17 00 00 [00:08:17]Write to MH i2c: E2 08 00 60 0B 80 17 00 00 00 00 00 00 EB [00:08:17]Write i2c OK [00:08:17]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 60 0B 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 F3 [00:08:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 17 00 00 [00:08:18]Write to MH i2c: E2 08 00 61 0B 80 17 00 00 00 00 00 00 EC [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 61 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 BE [00:08:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 17 00 00 [00:08:18]Write to MH i2c: E2 08 00 62 0B 80 17 00 00 00 00 00 00 ED [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 62 0B 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 5F [00:08:18]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 17 00 00 [00:08:18]Write to MH i2c: E2 08 00 63 0B 80 17 00 00 00 00 00 00 EE [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:08:19]Read from MH i2c: E2 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 BD 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 BD 00 63 0B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D4 [00:08:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:19]wFMCommunicate OK [00:08:19]SAM_PROTO_GetShiftData done [00:08:19]requested_item shift.sale.total_cash is exist - process it [00:08:19]requested_item shift.sale_refund.total is exist - process it [00:08:19]requested_item shift.sale_refund.total_cash is exist - process it [00:08:19]requested_item shift.buy.total is exist - process it [00:08:19]requested_item shift.buy.total_cash is exist - process it [00:08:19]produce_requested_data done [00:08:19]produce_requested_data return {"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:19]process_action_free get_value [00:08:19]json_value_free [00:08:19]json_value_free done [00:08:19]process_json_proto returns [00:08:19]Send response to host [00:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":19977092.61,"fm.sale_refund.total":588405.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:19]free response buf [00:08:19]execute_script done [00:08:19]execute_script returns [00:08:19]free content buf [00:08:19]Sock 9.Close socket [00:08:19]Sock 9.Thread stoped [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [01:38:27]ConnectInit Can't connect to host [01:38:31]OFD Sender: Processing packet 64081 [packets to send 14, broken 13] [01:38:31]ProducePacketName [01:38:31]name=ofd_packets/00064081 [01:38:31]OFD Sender: To server: pG, [01:38:31]CommunicateWithHost lk.salyk.kg:30040 [01:38:31]ConnectInit lk.salyk.kg [01:38:31]Connected sock=8 [01:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 29 01 00 00 52 1B 21 01 6E 68 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 01 00 00 00 F4 03 04 00 8E BF 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 51 FA 00 00 35 04 06 00 C1 EE CF B2 67 AF 0F 18 E2 A3 11 E0 1F BC [01:38: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 AC 8D 47 00 88 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 51 FA 00 00 F4 03 04 00 A3 6D 5F 66 B6 04 01 00 00 92 12 0C 94 BD 47 0D 2F [01:38:31]CommunicateWithHost err = 0 [01:38:31]CheckOFDResponse [01:38:31]1017 (14) - 77093643461234 [01:38:31]1041 (16) - 0000000000875074 [01:38:31]1040 (4) - 64081 [01:38:31]1012 (4) - 04.06.2024 19:40 [01:38:31]1206 (1) - 0 [01:38:31]OFD Sender: Remove packet 64081 [01:38:31]ProducePacketName [01:38:31]name=ofd_packets/00064081 [01:38:31]NVStorageDeleteData [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:45]accept exits with 9 [02:50:45]New connection [02:50:45]New thread 3067133284 created [02:50:45]Thread 3067276644 joined [02:50:45]Waiting for new connection... [02:50:45] Sock 9.Parse request [02:50:45]Sock 9.Check first char [02:50:45]Sock 9.First char is OK [02:50:45]request: POST /json_proto HTTP/1.0 [02:50:45]Method: POST [02:50:45]URL: /json_proto [02:50:45]Method is POST - this is cgi request [02:50:45]url: /json_proto [02:50:45]query_string will be loaded in cgi processing [02:50:45]execute_cgi json_proto POST (null) [02:50:45]execute_cgi path=json_proto method=POST [02:50:45]POST find Content-Length [02:50:45]Host: 172.17.60.69:8080 [02:50:45]Content-Length: 669 [02:50:45]Content-Type: application/json [02:50:45] [02:50:45]POST finish read [02:50:45]Found Content-Length = 669 [02:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)73622", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:45]execute_script... [02:50: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)73622", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:45]POST & json_proto [02:50:45]process_json_proto [02:50:45]json parsed OK: [02:50:45]protocol is kg_v1.0 [02:50:45]action value=close_receipt [02:50:45]process_action close_receipt [02:50:45]cmd_close_receipt [02:50:45]MH_GetDate [02:50:45]Write to MH i2c: F0 00 00 AD 0B A7 [02:50:45]Write i2c OK [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: F0 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: F0 09 00 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: F0 09 00 AD 0B 00 87 D2 5F 66 D2 83 5F 66 E8 [02:50:45]GetLastDocTimeStamp 1717550990 [02:50:45]current date 1717555847 [02:50:45]FM_GetShiftState [02:50:45]SAM_PROTO_GetShiftState [02:50:45]wFMCommunicate request_size=4 [02:50:45]MH_SAM_APDU [02:50:45]CAPDU: 80 13 01 00 [02:50:45]Write to MH i2c: E2 08 00 AE 0B 80 13 01 00 00 00 00 00 36 [02:50:45]Write i2c OK [02:50:45]MH_I2C_Read... [02:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:45]Read from MH i2c: E2 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: E2 0E 00 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: E2 0E 00 AE 0B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 77 [02:50:45]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [02:50:45]wFMCommunicate OK [02:50:45]SAM_PROTO_GetShiftState done [02:50:45]FM_GetShiftState done [02:50:45]opened in 1717545925 [02:50:45]opened+sec_in_day 1717632325 [02:50:45]quantity*price = 17000 [02:50:45]sum+1 = 17001 [02:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 117 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 СНО: Общий режим Чек 2 05.06.2024 02:50 Смена: 375 ФФД: 1.0 ЗНМ: 0300000031 РНМ: 0000000000092737 Версия ККМ: 001 ФМ: 0000000000875074 ФД: 64082 ФПД: 141179320748098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T025047&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64082&fm=141179320748098&tin=02508201610067®Number=0000000000092737&sum=17000 0 [02:50:47]StoreToDocumentArchive [02:50:47]shift 375 fd 64082 [02:50:47]save to /storage/0375/doc_00064082 [02:50:47]save last doc name /storage/0375/doc_00064082 to /storage/kkm_last_doc_name [02:50:47]save OK [02:50:47]Clear old archive folders... [02:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=282 [02:50:47]tlvbuf is 01088610 [02:50:47]SAM_PROTO_ClearQueue [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 09 00 00 [02:50:47]Write to MH i2c: E2 08 00 BB 0B 80 09 00 00 00 00 00 00 38 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 BB 0B 00 90 00 3A [02:50:47]RAPDU: 90 00 [02:50:47]wFMCommunicate OK [02:50:47]SAM_PROTO_ClearQueue done [02:50:47]KKMCreateOFDPacket [02:50:47]OFDProtocolAddRootSTLVToBuf [02:50:47]FM_MakeSignedData [02:50:47]FM_MakeSignedData [02:50:47]SAM_PROTO_SignData [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 0D 01 02 [02:50:47]Write to MH i2c: E2 08 00 BC 0B 80 0D 01 02 00 00 00 00 40 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 BC 0B 00 90 00 3B [02:50:47]RAPDU: 90 00 [02:50:47]wFMCommunicate OK [02:50:47]wFMCommunicate request_size=255 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 87 D2 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 [02:50:47]Write to MH i2c: E2 02 01 BD 0B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 87 D2 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 E9 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 BD 0B 00 90 00 3C [02:50:47]RAPDU: 90 00 [02:50:47]wFMCommunicate OK [02:50:47]wFMCommunicate request_size=41 [02:50:47]MH_SAM_APDU [02:50:47]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 52 FA 00 00 35 04 06 00 80 66 DF 43 48 42 [02:50:47]Write to MH i2c: E2 2C 00 BE 0B 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 52 FA 00 00 35 04 06 00 80 66 DF 43 48 42 00 00 EF [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [02:50:47]RAPDU: 90 00 [02:50:47]wFMCommunicate OK [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 0D 03 02 [02:50:47]Write to MH i2c: E2 08 00 BF 0B 80 0D 03 02 00 00 00 00 45 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 0B 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 0B 00 BF 0B 00 A6 77 31 D1 91 0F EC 0B 90 00 FC [02:50:47]RAPDU: A6 77 31 D1 91 0F EC 0B 90 00 [02:50:47]wFMCommunicate OK [02:50:47]SAM_PROTO_SignData done [02:50:47]FM_MakeSignedData done [02:50:47]CreateOFDProtocolMessage [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 11 00 00 [02:50:47]Write to MH i2c: E2 08 00 C0 0B 80 11 00 00 00 00 00 00 45 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 17 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 17 00 C0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 97 [02:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [02:50:47]wFMCommunicate OK [02:50:47]CreateOFDProtocolMessage done [02:50:47]OFDSenderStorePacket 64082 [02:50:47]StoreOFDPacket docnum=64082 [02:50:47]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 72 4D 26 01 90 71 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 87 D2 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 52 FA 00 00 35 04 06 00 80 66 DF 43 48 42 A6 77 31 D1 91 0F EC 0B [02:50:47]CheckFolder [02:50:47]dirname=/storage/ofd_packets [02:50:47]CheckFolder done [02:50:47]ProducePacketName [02:50:47]name=ofd_packets/00064082 [02:50:47]NVStorageSaveData ofd_packets/00064082 [02:50:47]File name is /storage/ofd_packets/00064082 [02:50:47]Write 332 bytes [02:50:47]NVStorageSaveData done [02:50:47]OFDSenderStorePacket done [02:50:47]KKMCreateOFDPacket done [02:50:47]NVStorageSaveData kkm_last_timestamp [02:50:47]File name is /storage/kkm_last_timestamp [02:50:47]Write 4 bytes [02:50:47]NVStorageSaveData done [02:50:47]ExternCall_PrintAddStr [02:50:47]wPrintStart [02:50:47]Write to MH i2c: 01 00 00 C1 0B CC [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 C1 0B 00 00 00 00 00 FF 0F E1 [02:50:47]RasterBufferAndPrint [02:50:47]line Счет N : (3)73622 [02:50:47]line ИНН: 02508201610067 [02:50:47]line Контрольно-Кассовый Чек [02:50:47]line ПРОДАЖА [02:50:47]line Товар: 4700000480357 [02:50:47]line Пиво шахтерское 1л ПЭТ [02:50:47]line 1.000 * 170.00 [02:50:47]line = 170.00 [02:50:47]line НДС 12% НСП 1% [02:50:47]line > о реализуемом товаре [02:50:47]line ИТОГО: 170.00 [02:50:47]line НСП 1% : 1.50 [02:50:47]line НДС 12% : 18.05 [02:50:47]line Наличными: 170.00 [02:50:47]line Безнал.: 0.00 [02:50:47]line Место: АЗС № 117 "Партнер Нефть" [02:50:47]line Адрес: 720001, г. Каракол, ул. Прежевальского 101/1 (кольцо), 42.500140, 78.386597 [02:50:47]line СНО: Общий режим [02:50:47]line Чек 2 05.06.2024 02:50 [02:50:47]line Смена: 375 ФФД: 1.0 [02:50:47]line ЗНМ: 0300000031 [02:50:47]line РНМ: 0000000000092737 [02:50:47]line Версия ККМ: 001 [02:50:47]line ФМ: 0000000000875074 [02:50:47]line ФД: 64082 [02:50:47]line ФПД: 141179320748098 [02:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240605T025047&type=1&operation_type=1&fn_number=0000000000875074&fd_number=64082&fm=141179320748098&tin=02508201610067®Number=0000000000092737&sum=17000 [02:50:47]line 0 [02:50:47]OFD Sender: Processing packet 64082 [packets to send 14, broken 13] [02:50:47]ProducePacketName [02:50:47]name=ofd_packets/00064082 [02:50:47]OFD Sender: To server: pG, [02:50:47]CommunicateWithHost lk.salyk.kg:30040 [02:50:47]ConnectInit lk.salyk.kg [02:50:47]written 0, free lines is 4095 [02:50:48]Connected sock=10 [02:50:48]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 72 4D 26 01 90 71 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 87 D2 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 52 FA 00 00 35 04 06 00 80 66 DF 43 48 42 A6 77 31 D1 91 0F EC 0B [02:50:48]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 8A DC 47 00 C8 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 52 FA 00 00 F4 03 04 00 94 7E 5F 66 B6 04 01 00 00 6B 51 01 78 FA D0 38 A7 [02:50:48]CommunicateWithHost err = 0 [02:50:48]CheckOFDResponse [02:50:48]1017 (14) - 77093643461234 [02:50:48]1041 (16) - 0000000000875074 [02:50:48]1040 (4) - 64082 [02:50:48]1012 (4) - 04.06.2024 20:52 [02:50:48]1206 (1) - 0 [02:50:48]OFD Sender: Remove packet 64082 [02:50:48]ProducePacketName [02:50:48]name=ofd_packets/00064082 [02:50:48]NVStorageDeleteData [02:50:48]Write to MH i2c: 01 00 00 E9 0B F4 [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: 01 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: 01 07 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: 01 07 00 E9 0B 00 00 00 00 00 03 0D 0B [02:50:48]RasterBufferAndPrint [02:50:48]line [02:50:48]line [02:50:48]line [02:50:48]line [02:50:48]line [02:50:48]written 0, free lines is 3337 [02:50:48]MH_Cut [02:50:48]Write to MH i2c: D1 01 00 F0 0B 01 CD [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: D1 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: D1 01 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: D1 01 00 F0 0B 00 CC [02:50:48]Write to MH i2c: 01 00 00 F1 0B FC [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]OFD Sender: No OFD packet to send [02:50:49]*** Cut start [02:50:49]*** Partial cut [02:50:49]*** CUTSNS_PIN = 1 [02:50:49]*** CUTSNS_PIN = 0 [02:50:49]*** Brake cut motor [02:50:49]Read from MH i2c: 01 [02:50:49]MH_I2C_Read... [02:50:49]*** Stop cut motor [02:50:49]*** Cut end [02:50:49]Read from MH i2c: 01 07 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: 01 07 00 F1 0B 00 00 00 00 00 FF 0F 11 [02:50:49]process_action close_receipt done [02:50:49]requested_data is exist [02:50:49]produce_requested_data [02:50:49]requested_item fm.sn is exist - process it [02:50:49]wFMCommunicate request_size=4 [02:50:49]MH_SAM_APDU [02:50:49]CAPDU: 80 11 00 00 [02:50:49]Write to MH i2c: E2 08 00 F2 0B 80 11 00 00 00 00 00 00 77 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:49]Read from MH i2c: E2 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 17 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 17 00 F2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 C9 [02:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 90 00 [02:50:49]wFMCommunicate OK [02:50:49]requested_item fd.num is exist - process it [02:50:49]SAM_PROTO_GetFieldsCounters [02:50:49]wFMCommunicate request_size=4 [02:50:49]MH_SAM_APDU [02:50:49]CAPDU: 80 13 00 00 [02:50:49]Write to MH i2c: E2 08 00 F3 0B 80 13 00 00 00 00 00 00 7A [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:49]Read from MH i2c: E2 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 62 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 62 00 F3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 33 37 10 04 04 00 52 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [02:50: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 52 FA 00 00 0E 04 04 00 77 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:50:49]wFMCommunicate OK [02:50:49]SAM_PROTO_GetFieldsCounters done [02:50:49]requested_item shift.num is exist - process it [02:50:49]requested_item shift.opened is exist - process it [02:50:49]req_shift_opened [02:50:49]FM_GetShiftState [02:50:49]SAM_PROTO_GetShiftState [02:50:49]wFMCommunicate request_size=4 [02:50:49]MH_SAM_APDU [02:50:49]CAPDU: 80 13 01 00 [02:50:49]Write to MH i2c: E2 08 00 F4 0B 80 13 01 00 00 00 00 00 7C [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:49]Read from MH i2c: E2 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 0E 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 0E 00 F4 0B 00 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 BD [02:50:49]RAPDU: 09 00 01 C5 AB 5F 66 00 00 00 00 90 00 [02:50:49]wFMCommunicate OK [02:50:49]SAM_PROTO_GetShiftState done [02:50:49]FM_GetShiftState done [02:50:49]req_shift_opened done [02:50:49]requested_item shift.open_date is exist - process it [02:50:49]req_shift_open_date [02:50:50]req_shift_open_date done [02:50:50]produce_requested_data done [02:50:50]produce_requested_data return {"fm.sn":"0000000000875074","fd.num":64082,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925} [02:50:50]process_action_free close_receipt [02:50:50]json_value_free [02:50:50]json_value_free done [02:50:50]process_json_proto returns [02:50:50]Send response to host [02:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875074","fd.num":64082,"shift.num":375,"shift.opened":1,"shift.open_date":1717545925}}} [02:50:50]free response buf [02:50:50]execute_script done [02:50:50]execute_script returns [02:50:50]free content buf [02:50:50]Sock 9.Close socket [02:50:50]Sock 9.Thread stoped [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send